Skip to content

Commit 852e4eb

Browse files
committed
Merge branch 'master' of https://github.com/shtaif/react-async-iterators into async-iter-memo
2 parents c9d0e57 + ec357ad commit 852e4eb

40 files changed

+5848
-405
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: CI - tests type check
2+
3+
on:
4+
pull_request:
5+
branches: [master]
6+
7+
jobs:
8+
run_tests_ts_type_check:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
ref: ${{ github.head_ref }}
14+
15+
- uses: ./.github/actions/ci-common-setup
16+
17+
- name: TypeScript test build
18+
run: pnpm run test-typings-check

.releaserc.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ plugins:
1515
types:
1616
- { type: feat, section: Features, hidden: false }
1717
- { type: fix, section: Bug Fixes, hidden: false }
18+
- { type: docs, section: Documentation, hidden: false }
19+
- { type: build, section: Build System, hidden: false }
1820
- { type: perf, section: Performance, hidden: false }
19-
- { type: refactor, section: Refactor, hidden: false }
20-
- { type: test, section: Tests, hidden: false }
2121
- { type: revert, section: Reverts, hidden: false }
22-
- { type: docs, section: Documentation, hidden: false }
22+
- { type: refactor, section: Refactor, hidden: true }
23+
- { type: test, section: Tests, hidden: true }
2324
- { type: ci, section: Continuous Integration, hidden: true }
24-
- { type: build, section: Build System, hidden: false }
2525

2626
- - '@semantic-release/changelog'
2727
- {}

CHANGELOG.md

Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,171 @@
1+
## [0.9.2](https://github.com/shtaif/react-async-iterators/compare/v0.9.1...v0.9.2) (2025-01-31)
2+
3+
4+
### Bug Fixes
5+
6+
* **useAsyncIterState:** individual iterators types' `.return` method should not be optional ([#78](https://github.com/shtaif/react-async-iterators/issues/78)) ([ae5d546](https://github.com/shtaif/react-async-iterators/commit/ae5d5460bc8ee0d4f08ddde8b4b02222d68167b4))
7+
8+
9+
### Documentation
10+
11+
* **readme:** edit some wordings, fix some code blocks rendered unformatted ([#77](https://github.com/shtaif/react-async-iterators/issues/77)) ([af888c9](https://github.com/shtaif/react-async-iterators/commit/af888c90273d36fc35ddf4e3a44afecb2391d0e3))
12+
13+
## [0.9.1](https://github.com/shtaif/react-async-iterators/compare/v0.9.0...v0.9.1) (2025-01-30)
14+
15+
16+
### Documentation
17+
18+
* **readme:** more edits ([#75](https://github.com/shtaif/react-async-iterators/issues/75)) ([c0229fa](https://github.com/shtaif/react-async-iterators/commit/c0229fa2274b530ed48efd37163e7fc5af3cb9e4))
19+
20+
## [0.9.0](https://github.com/shtaif/react-async-iterators/compare/v0.8.0...v0.9.0) (2025-01-28)
21+
22+
23+
### Features
24+
25+
* **ItMulti:** support for handling initializer functions as initial values ([#71](https://github.com/shtaif/react-async-iterators/issues/71)) ([4435461](https://github.com/shtaif/react-async-iterators/commit/4435461b664ebac6f6448228d0833e65ea2d3cf4))
26+
* **useAsyncIterMulti:** support getting initial values as initializer functions ([#70](https://github.com/shtaif/react-async-iterators/issues/70)) ([57056b2](https://github.com/shtaif/react-async-iterators/commit/57056b2bc12e2f4a195b00b7514686d2348e5c1e))
27+
28+
29+
### Documentation
30+
31+
* **readme:** various edits ([#74](https://github.com/shtaif/react-async-iterators/issues/74)) ([79d0834](https://github.com/shtaif/react-async-iterators/commit/79d083462efadf8b6393c2730a2cee4e26c47b88))
32+
* various edits ([#72](https://github.com/shtaif/react-async-iterators/issues/72)) ([6f8da52](https://github.com/shtaif/react-async-iterators/commit/6f8da5202df10718300bf714dcf25b085887631e))
33+
34+
## [0.8.0](https://github.com/shtaif/react-async-iterators/compare/v0.7.1...v0.8.0) (2025-01-27)
35+
36+
37+
### Features
38+
39+
* add default initial value parameters to `useAsyncIterMulti` and `IterateMulti` ([#69](https://github.com/shtaif/react-async-iterators/issues/69)) ([f5e214b](https://github.com/shtaif/react-async-iterators/commit/f5e214b1bbf57dfcd90f31fabb3d9f7a674bd12a))
40+
41+
42+
### Documentation
43+
44+
* **readme:** fix documentation mistakes for `useAsyncIterMulti`'s options object argument ([#67](https://github.com/shtaif/react-async-iterators/issues/67)) ([bfbb352](https://github.com/shtaif/react-async-iterators/commit/bfbb352c5fe42f298e830d75340f0e14b44ee373))
45+
* **readme:** further content for `README.md` ([#65](https://github.com/shtaif/react-async-iterators/issues/65)) ([3a256e8](https://github.com/shtaif/react-async-iterators/commit/3a256e8f225f9ede95cad106816055e0b882f7dd))
46+
* **readme:** more edits ([#66](https://github.com/shtaif/react-async-iterators/issues/66)) ([8a6fc81](https://github.com/shtaif/react-async-iterators/commit/8a6fc81399e7a15402fe01dc7d28759a90e38ca7))
47+
48+
## [0.7.1](https://github.com/shtaif/react-async-iterators/compare/v0.7.0...v0.7.1) (2025-01-23)
49+
50+
51+
### Bug Fixes
52+
53+
* **iterateFormatted:** compute formatted current value on demand instead of eagerly as the underlying value might change at any later time ([#63](https://github.com/shtaif/react-async-iterators/issues/63)) ([c4174ee](https://github.com/shtaif/react-async-iterators/commit/c4174ee072052d6cf2546e4921aecf982d84b11c))
54+
55+
56+
### Documentation
57+
58+
* fix mentions of the current value property from `.current.value` to `.value.current` ([#64](https://github.com/shtaif/react-async-iterators/issues/64)) ([f2e4fef](https://github.com/shtaif/react-async-iterators/commit/f2e4feff6d2fe60833a0444c844be8bbc40f5434))
59+
* various docs touchups ([#62](https://github.com/shtaif/react-async-iterators/issues/62)) ([9ad4aeb](https://github.com/shtaif/react-async-iterators/commit/9ad4aeb4c9c73487276eceb76c8c114f0f6f4d84))
60+
61+
## [0.7.0](https://github.com/shtaif/react-async-iterators/compare/v0.6.0...v0.7.0) (2025-01-22)
62+
63+
64+
### Features
65+
66+
* `iterateFormatted`'s to also format given iterables' current values if present ([#56](https://github.com/shtaif/react-async-iterators/issues/56)) ([9f6e47a](https://github.com/shtaif/react-async-iterators/commit/9f6e47ac3bc717eb3f72307893899e57398bd7d7))
67+
* export a `AsyncIterableSubject` type and add it along related references ([#54](https://github.com/shtaif/react-async-iterators/issues/54)) ([39eae6f](https://github.com/shtaif/react-async-iterators/commit/39eae6fe7aa7f595cdb20f640be6de2264170212))
68+
* **Iterate:** support initial value in function form ([#49](https://github.com/shtaif/react-async-iterators/issues/49)) ([bfc1f09](https://github.com/shtaif/react-async-iterators/commit/bfc1f09ba8b68b50dd62ceeb84833b8ccad7265e))
69+
* special handling for async iterables with a current value( [#55](https://github.com/shtaif/react-async-iterators/issues/55)) ([01a30fc](https://github.com/shtaif/react-async-iterators/commit/01a30fce01eb5f0ebd2b9c712ace66efdc89a99b))
70+
* **useAsyncIter:** allow initial value to be a function, called once on mount ([#48](https://github.com/shtaif/react-async-iterators/issues/48)) ([9a7e9e4](https://github.com/shtaif/react-async-iterators/commit/9a7e9e4ab66bccacefc7e47c4f82bee390d22e08))
71+
72+
73+
### Bug Fixes
74+
75+
* **iterateFormatted:** function's type signature does not not handle maybe-async-iterable kind of types correctly ([#57](https://github.com/shtaif/react-async-iterators/issues/57)) ([f073d90](https://github.com/shtaif/react-async-iterators/commit/f073d905ba0e4fd3a1faa0b45204738c405837dc))
76+
77+
78+
### Documentation
79+
80+
* docs edits ([#53](https://github.com/shtaif/react-async-iterators/issues/53)) ([c5bfba4](https://github.com/shtaif/react-async-iterators/commit/c5bfba42c923530ba8eed5b25a5024fa09563013))
81+
* **readme:** Initial proper `README.md` ([#60](https://github.com/shtaif/react-async-iterators/issues/60)) ([4e1c4a9](https://github.com/shtaif/react-async-iterators/commit/4e1c4a97d9222c2600c946004d0e6f2e0d3a28d5))
82+
83+
## [0.6.0](https://github.com/shtaif/react-async-iterators/compare/v0.5.1...v0.6.0) (2025-01-09)
84+
85+
86+
### Features
87+
88+
* **useAsyncIterState:** support for setting state with a function to calculate the new state from the previous ([#45](https://github.com/shtaif/react-async-iterators/issues/45)) ([392b2e9](https://github.com/shtaif/react-async-iterators/commit/392b2e908d8be96bb499aa13efa096d32cf9026f))
89+
* **useAsyncIterState:** support setting an initial value via an argument ([#46](https://github.com/shtaif/react-async-iterators/issues/46)) ([08a664d](https://github.com/shtaif/react-async-iterators/commit/08a664df85cffe76b88601b6e49fb32f98166057))
90+
91+
## [0.5.1](https://github.com/shtaif/react-async-iterators/compare/v0.5.0...v0.5.1) (2025-01-08)
92+
93+
94+
### Bug Fixes
95+
96+
* **useAsyncIterState:** disallow user manipulation of the state iterable's current value property ([#43](https://github.com/shtaif/react-async-iterators/issues/43)) ([6dd5ac5](https://github.com/shtaif/react-async-iterators/commit/6dd5ac5eb852da01e8178b332e0c083ca74bf091))
97+
* **useAsyncIterState:** rapidly updating state yields the first update instead of the last update's value ([#44](https://github.com/shtaif/react-async-iterators/issues/44)) ([b11b5a5](https://github.com/shtaif/react-async-iterators/commit/b11b5a56c1ac3621b58a37fa04902b6bfd20da1a))
98+
99+
100+
### Documentation
101+
102+
* **useAsyncIterState:** missing documentations for the state iterable's added current value property ([#42](https://github.com/shtaif/react-async-iterators/issues/42)) ([675331f](https://github.com/shtaif/react-async-iterators/commit/675331f444189124c55b19e21938f56d1d8343b7))
103+
104+
## [0.5.0](https://github.com/shtaif/react-async-iterators/compare/v0.4.1...v0.5.0) (2025-01-08)
105+
106+
107+
### Features
108+
109+
* implement the new `<IterateMulti>` component ([#39](https://github.com/shtaif/react-async-iterators/issues/39)) ([18997f8](https://github.com/shtaif/react-async-iterators/commit/18997f803dbecbf8cf959891ee1a6698b3f3f8a1))
110+
* **useAsyncIterState:** add a current value property on `useAsyncIterState` hook's returned iterable ([#41](https://github.com/shtaif/react-async-iterators/issues/41)) ([6e1a36b](https://github.com/shtaif/react-async-iterators/commit/6e1a36b090bc5028499b50fe99e9019b0dc1f90c))
111+
112+
113+
### Documentation
114+
115+
* various JSDocs blocks edits ([#38](https://github.com/shtaif/react-async-iterators/issues/38)) ([b313438](https://github.com/shtaif/react-async-iterators/commit/b3134383ebe3d83e596f47a32b4546ca140d3029))
116+
117+
## [0.4.1](https://github.com/shtaif/react-async-iterators/compare/v0.4.0...v0.4.1) (2025-01-07)
118+
119+
120+
### Bug Fixes
121+
122+
* first yielding wrongly ignored if yielded value is identical to the last one stored before ([#36](https://github.com/shtaif/react-async-iterators/issues/36)) ([23ad98c](https://github.com/shtaif/react-async-iterators/commit/23ad98c6240469b3b0ad131be5c9f64e3c8a8d6b))
123+
124+
## [0.4.0](https://github.com/shtaif/react-async-iterators/compare/v0.3.0...v0.4.0) (2025-01-06)
125+
126+
127+
### Features
128+
129+
* add to package exports the `IterationResultSet` type returned from `useAsyncIterMulti` ([#33](https://github.com/shtaif/react-async-iterators/issues/33)) ([b0c8899](https://github.com/shtaif/react-async-iterators/commit/b0c889982948277f9520e02fadb2a3d6c4797855))
130+
* implement the new `useAsyncIterMulti` hook ([#28](https://github.com/shtaif/react-async-iterators/issues/28)) ([d813fa0](https://github.com/shtaif/react-async-iterators/commit/d813fa0afbcccc89ffc1eec414d9c474e0f3f977))
131+
132+
133+
### Bug Fixes
134+
135+
* `ReactAsyncIterable`s wrapping iters which yield non-nullable values are having the format function's result ignored if it returned `undefined` or `null` ([#32](https://github.com/shtaif/react-async-iterators/issues/32)) ([828d872](https://github.com/shtaif/react-async-iterators/commit/828d87239f3d9a634a48d40f615ad77c70e6e02c))
136+
137+
138+
### Documentation
139+
140+
* various docs edits ([#31](https://github.com/shtaif/react-async-iterators/issues/31)) ([3f08461](https://github.com/shtaif/react-async-iterators/commit/3f08461bab91fe5700f41267b772c2f8f149425b))
141+
142+
## [0.3.0](https://github.com/shtaif/react-async-iterators/compare/v0.2.0...v0.3.0) (2025-01-05)
143+
144+
145+
### Features
146+
147+
* add a convenience alias export `<It>` for `<Iterate>` ([#19](https://github.com/shtaif/react-async-iterators/issues/19)) ([679cb23](https://github.com/shtaif/react-async-iterators/commit/679cb23b682d5cc24cc138546cd6e78329ae9542))
148+
* add an exposed `MaybeAsyncIterable` helper generic type ([#25](https://github.com/shtaif/react-async-iterators/issues/25)) ([dd06927](https://github.com/shtaif/react-async-iterators/commit/dd069273489ae9b04cf47e3e885d1ee9073690cb))
149+
* make `useAsyncIterState` iterable's type more accurate ([#23](https://github.com/shtaif/react-async-iterators/issues/23)) ([bd75364](https://github.com/shtaif/react-async-iterators/commit/bd75364ebd4a4127b0d1dd774b020a5e71791246))
150+
151+
152+
### Bug Fixes
153+
154+
* `<Iterate>` render function parameter typing not inferring correctly in conjunction with `initialValue` with plain values semantics ([#24](https://github.com/shtaif/react-async-iterators/issues/24)) ([fe45bbb](https://github.com/shtaif/react-async-iterators/commit/fe45bbb452670b86c396375c21755f2e16f6385d))
155+
* make iterators of the `useAsyncIterState` hook's iterable individually closable to prevent leaving around unsettled promises ([#22](https://github.com/shtaif/react-async-iterators/issues/22)) ([25e1ab5](https://github.com/shtaif/react-async-iterators/commit/25e1ab5b93211e5b87f562e92f4560f2d4159d0c))
156+
* yielding consecutive identical values causes unnecessary re-renders for `useAsyncIter` and `<Iterate>` in misalignment with `React.useState` ([#21](https://github.com/shtaif/react-async-iterators/issues/21)) ([2a35f72](https://github.com/shtaif/react-async-iterators/commit/2a35f728062c2e70dda3d9510f8a9fa9c20987d5))
157+
158+
159+
### Refactor
160+
161+
* fix import path of `iterateFormatted` on package's public export ([#17](https://github.com/shtaif/react-async-iterators/issues/17)) ([f3481e6](https://github.com/shtaif/react-async-iterators/commit/f3481e6d1373324bd0e73d809b27d0c6ac4e00dd))
162+
* various misc refactorings ([#26](https://github.com/shtaif/react-async-iterators/issues/26)) ([20af9b0](https://github.com/shtaif/react-async-iterators/commit/20af9b0216084988866fbef6e671f8d6bda287f1))
163+
164+
165+
### Tests
166+
167+
* add tests for rapid yielding iterables value batching for `useAsyncIter` and `<Iterate>` ([#20](https://github.com/shtaif/react-async-iterators/issues/20)) ([ebcbfd4](https://github.com/shtaif/react-async-iterators/commit/ebcbfd45ba27d0bd2151bf9e5469a018db24e3dd))
168+
1169
## [0.2.0](https://github.com/shtaif/react-async-iterators/compare/v0.1.0...v0.2.0) (2024-12-25)
2170

3171

0 commit comments

Comments
 (0)