Skip to content

Releases: shtaif/react-async-iterators

v0.7.1

23 Jan 09:11
Compare
Choose a tag to compare

0.7.1 (2025-01-23)

Bug Fixes

  • iterateFormatted: compute formatted current value on demand instead of eagerly as the underlying value might change at any later time (#63) (c4174ee)

Documentation

  • fix mentions of the current value property from .current.value to .value.current (#64) (f2e4fef)
  • various docs touchups (#62) (9ad4aeb)

v0.7.0

22 Jan 21:20
Compare
Choose a tag to compare

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

09 Jan 09:46
Compare
Choose a tag to compare

0.6.0 (2025-01-09)

Features

  • useAsyncIterState: support for setting state with a function to calculate the new state from the previous (#45) (392b2e9)
  • useAsyncIterState: support setting an initial value via an argument (#46) (08a664d)

v0.5.1

08 Jan 19:59
Compare
Choose a tag to compare

0.5.1 (2025-01-08)

Bug Fixes

  • useAsyncIterState: disallow user manipulation of the state iterable's current value property (#43) (6dd5ac5)
  • useAsyncIterState: rapidly updating state yields the first update instead of the last update's value (#44) (b11b5a5)

Documentation

  • useAsyncIterState: missing documentations for the state iterable's added current value property (#42) (675331f)

v0.5.0

08 Jan 01:18
Compare
Choose a tag to compare

0.5.0 (2025-01-08)

Features

  • implement the new <IterateMulti> component (#39) (18997f8)
  • useAsyncIterState: add a current value property on useAsyncIterState hook's returned iterable (#41) (6e1a36b)

Documentation

v0.4.1

07 Jan 22:50
Compare
Choose a tag to compare

0.4.1 (2025-01-07)

Bug Fixes

  • first yielding wrongly ignored if yielded value is identical to the last one stored before (#36) (23ad98c)

v0.4.0

06 Jan 10:46
Compare
Choose a tag to compare

0.4.0 (2025-01-06)

Features

  • add to package exports the IterationResultSet type returned from useAsyncIterMulti (#33) (b0c8899)
  • implement the new useAsyncIterMulti hook (#28) (d813fa0)

Bug Fixes

  • ReactAsyncIterables wrapping iters which yield non-nullable values are having the format function's result ignored if it returned undefined or null (#32) (828d872)

Documentation

v0.3.0

05 Jan 20:17
Compare
Choose a tag to compare

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 with initialValue 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 with React.useState (#21) (2a35f72)

Refactor

  • fix import path of iterateFormatted on package's public export (#17) (f3481e6)
  • various misc refactorings (#26) (20af9b0)

Tests

  • add tests for rapid yielding iterables value batching for useAsyncIter and <Iterate> (#20) (ebcbfd4)

v0.2.0

25 Dec 18:52
Compare
Choose a tag to compare

0.2.0 (2024-12-25)

Features

v0.1.0

24 Dec 15:55
Compare
Choose a tag to compare

0.1.0 (2024-12-24)

Features

  • implement iterateFormatted async iter value formatting helper (#11) (dfc7ab7)

Documentation