Skip to content

Handling of async iterables with a current value #55

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 12, 2025

Conversation

shtaif
Copy link
Owner

@shtaif shtaif commented Jan 12, 2025

This change is basically a breaking change, however isn't communicated as such because library is still considered on a "beta" status at the moment (in a 0.x.x version range).

When consumed, the initial reported value is the current value, with precedence over any manually supplied initial value, and the "isPending" stage (when pending: true) is skipped.

@shtaif shtaif self-assigned this Jan 12, 2025
@shtaif shtaif marked this pull request as ready for review January 12, 2025 21:59
@shtaif shtaif merged commit 01a30fc into master Jan 12, 2025
6 checks passed
@shtaif shtaif deleted the iters-with-curr-value-special-handling branch January 12, 2025 22:03
shtaif pushed a commit that referenced this pull request Jan 22, 2025
## [0.7.0](v0.6.0...v0.7.0) (2025-01-22)

### Features

* `iterateFormatted`'s to also format given iterables' current values if present ([#56](#56)) ([9f6e47a](9f6e47a))
* export a `AsyncIterableSubject` type and add it along related references ([#54](#54)) ([39eae6f](39eae6f))
* **Iterate:** support initial value in function form ([#49](#49)) ([bfc1f09](bfc1f09))
* special handling for async iterables with a current value( [#55](#55)) ([01a30fc](01a30fc))
* **useAsyncIter:** allow initial value to be a function, called once on mount ([#48](#48)) ([9a7e9e4](9a7e9e4))

### Bug Fixes

* **iterateFormatted:** function's type signature does not not handle maybe-async-iterable kind of types correctly ([#57](#57)) ([f073d90](f073d90))

### Documentation

* docs edits ([#53](#53)) ([c5bfba4](c5bfba4))
* **readme:** Initial proper `README.md` ([#60](#60)) ([4e1c4a9](4e1c4a9))
Copy link

🎉 This PR is included in version 0.7.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant