Skip to content

v3.1.0

Compare
Choose a tag to compare
@kitten kitten released this 25 Jul 15:16
12738f1

With this release a new documentation site for Wonka is finally ready! You can find it at wonka.kitten.sh. It contains a "Getting Started" guide, docs on how Wonka works and why it exists, and an extensive API reference with sections for each utility (sources, operators, and sinks)

This release also introduces four new operators! 🎉

fromObservable has been added to convert spec-compliant JS Observables to Wonka sources, and toObservable has been added to convert Wonka sources to JS Observables.

fromCallbag has been added to convert spec-compliant JS Callbags to Wonka sources, and toCallbag has been added to convert Wonka sources to JS Callbags.

This should facilitate full interoperability with Observables (including libraries like zen-observable and RxJS) and with Callbags!

Furthermore, the buffer operator has been added. It can be used to group emitted values from a Wonka source into arrays every time a notifier source emits.

The sample operator has been moved out of WonkaJs and is now usable in non-JavaScript environments. It never actually used any JS APIs and has erroneously been locked down before.

Lastly, this release fixes a bug in the bsconfig.json config. Before the namespace flag has been flipped to true, which caused unexpected issues. This wasn't needed since all modules in Wonka have been named to avoid conflicts already and caused every module to only be accessible under Wonka.Wonka instead of just Wonka.