Releases: shtaif/react-async-iterators
Releases · shtaif/react-async-iterators
v0.7.1
v0.7.0
0.7.0 (2025-01-22)
Features
iterateFormatted
's to also format given iterables' current values if present (#56) (9f6e47a)- export a
AsyncIterableSubject
type and add it along related references (#54) (39eae6f) - Iterate: support initial value in function form (#49) (bfc1f09)
- special handling for async iterables with a current value( #55) (01a30fc)
- useAsyncIter: allow initial value to be a function, called once on mount (#48) (9a7e9e4)
Bug Fixes
- iterateFormatted: function's type signature does not not handle maybe-async-iterable kind of types correctly (#57) (f073d90)
Documentation
v0.6.0
v0.5.1
v0.5.0
v0.4.1
v0.4.0
0.4.0 (2025-01-06)
Features
- add to package exports the
IterationResultSet
type returned fromuseAsyncIterMulti
(#33) (b0c8899) - implement the new
useAsyncIterMulti
hook (#28) (d813fa0)
Bug Fixes
ReactAsyncIterable
s wrapping iters which yield non-nullable values are having the format function's result ignored if it returnedundefined
ornull
(#32) (828d872)
Documentation
v0.3.0
0.3.0 (2025-01-05)
Features
- add a convenience alias export
<It>
for<Iterate>
(#19) (679cb23) - add an exposed
MaybeAsyncIterable
helper generic type (#25) (dd06927) - make
useAsyncIterState
iterable's type more accurate (#23) (bd75364)
Bug Fixes
<Iterate>
render function parameter typing not inferring correctly in conjunction withinitialValue
with plain values semantics (#24) (fe45bbb)- make iterators of the
useAsyncIterState
hook's iterable individually closable to prevent leaving around unsettled promises (#22) (25e1ab5) - yielding consecutive identical values causes unnecessary re-renders for
useAsyncIter
and<Iterate>
in misalignment withReact.useState
(#21) (2a35f72)
Refactor
- fix import path of
iterateFormatted
on package's public export (#17) (f3481e6) - various misc refactorings (#26) (20af9b0)