Releases: 0no-co/wonka
v4.0.12
v4.0.11
v4.0.10
v4.0.7
v4.0.6
v4.0.5
v4.0.3
v4.0.0
In v4.0.0
of Wonka, we’ve migrated to BuckleScript v7 and genType
for automatic type generation for TypeScript. The Flow types are derived from the automatic types and are generated by flowgen
.
This may mean that bsb-native and Dune/Esy builds are temporarily broken, as they haven’t been tested yet. If so, they will be fixed in a future minor release. Please stick with v3.2.2
if you’re having trouble.
This release has no breaking changes for Reason/OCaml in terms of API changes. You can use the library exactly as you have before.
The test suite has been rewritten and a huge amount of operators have been revised to behave more predictably and correctly, especially when they're used with synchronous or iterable (cold) sources.
v4.0.0-rc.0
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 }) => { /* ... */ });