Skip to content

v4.0.0-rc.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@kitten kitten released this 07 Jan 17:55
7db1de1

This is a prerelease for v4.0.0 🎉

In the v4 releases Wonka is focusing on adding some smaller missing functionality and increasing it's rigidity. Specifically it's looking to fix some edge cases and providing an even more consistent experience, without odd timing issues or bugs.

In this first release Wonka has been upgraded to BuckleScript v7.0.2 and is now using genType to generate its TypeScript typings (from which the Flow typings are derived).

There aren't any breaking changes in Reason/OCaml (although bsb-native and dune support may be momentarily broken).

The biggest breaking change in TypeScript/Flow/JS comes from the move to BS7, where records now compile to raw, objects so the following migrations have to be made when moving to Wonka v4:

// before:
const [unsubscribe] = Wonka.subscribe(fn)(source);
// after:
const { unsubscribe } = Wonka.subscribe(fn)(source);

// before:
const [source, next, complete] = Wonka.makeSubject();
// after:
const { source, next, complete } = Wonka.makeSubject();

// before:
Wonka.make(([next, complete]) => { /* ... */ });
// after:
Wonka.make(({ next, complete }) => { /* ... */ });