🎩 A tiny but capable push & pull stream library for TypeScript and Flow
toAsyncIterable
, converting a Wonka source to a JS Async Iterable, by @kitten (See #133)d.ts
bundling. Only a single wonka.d.ts
typings file will now be available to TypeScript, by @kitten (See #135)wonka
internals and exports. This will replace the documentation and give consumers more guidance on each of the library's extensive utilities, by @kitten (See #136)takeUntil
missing a Close
signal to the notifier source emitting a Push
signal (See #128)Some minor fixes and goodies 🎉
make
fromIterable
(which takes over functionality from fromArray
)
combine
as a variadic function and zip
for any length of an array of sourcesIn v6.0.0
of Wonka, we've migrated fully to TypeScript.
If you're using this project with Reason or OCaml before, we're sorry for
the inconvenience. However, v4 and v5-rc will remain usable for these
platforms and languages.
The move of Wonka to a TypeScript-first codebase allows us to focus on the goals of the project that have been most relevant for the urql project. These goals ultimately don't surround being cross-platform and supporting Reason but being a low-overhead, low-size streaming utility library that remains bug free. However, the previous codebase didn't allow us to always guarantee the latter (low-size) as best as we'd like and caused problems for keeping the library bug-free, as a Reason codebase simply isn't as accessible as a TypeScript codebase.
The internal API and data structures of Wonka haven't changed in v6.0.0
compared to the prior releases and are based on v4.0.14
. This means that
from a TypeScript, Flow, and JS perspective, v6.0.0
is backwards compatible
and continues to function as before.
However, the fromList
API has been removed so far, and we reserve ourselves
room to make more breaking changes were behaviour before was broken.
We're also dropping IE11 support and are now bundling against an ES2015 target.
uglify-es
minification which could lead to broken output code.undefined
due to a unit
return type (See https://github.com/kitten/wonka/commit/c1c5d590f281b36791e8f024ff3113201a06b5f3)