@thi.ng/transducers-async 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -1
- package/README.md +2 -2
- package/merge.js +1 -1
- package/package.json +7 -7
- package/sidechain.js +1 -1
- package/sync.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2024-04-
|
|
3
|
+
- **Last updated**: 2024-04-13T16:05:36Z
|
|
4
4
|
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
5
|
|
|
6
6
|
All notable changes to this project will be documented in this file.
|
|
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
|
|
|
9
9
|
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
10
10
|
and/or version bumps of transitive dependencies.
|
|
11
11
|
|
|
12
|
+
### [0.1.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/transducers-async@0.1.1) (2024-04-11)
|
|
13
|
+
|
|
14
|
+
#### ♻️ Refactoring
|
|
15
|
+
|
|
16
|
+
- use Promise.race() for merge/sidechain/sync ([c712bca](https://github.com/thi-ng/umbrella/commit/c712bca))
|
|
17
|
+
|
|
12
18
|
## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/transducers-async@0.1.0) (2024-04-08)
|
|
13
19
|
|
|
14
20
|
#### 🚀 Features
|
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
|
-
> This is one of
|
|
10
|
+
> This is one of 192 standalone projects, maintained as part
|
|
11
11
|
> of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
|
|
12
12
|
> and anti-framework.
|
|
13
13
|
>
|
|
@@ -98,7 +98,7 @@ For Node.js REPL:
|
|
|
98
98
|
const txa = await import("@thi.ng/transducers-async");
|
|
99
99
|
```
|
|
100
100
|
|
|
101
|
-
Package sizes (brotli'd, pre-treeshake): ESM: 2.
|
|
101
|
+
Package sizes (brotli'd, pre-treeshake): ESM: 2.23 KB
|
|
102
102
|
|
|
103
103
|
## Dependencies
|
|
104
104
|
|
package/merge.js
CHANGED
|
@@ -12,7 +12,7 @@ async function* merge(src) {
|
|
|
12
12
|
(iter) => iter.iter.next().then((res) => ({ iter, res }))
|
|
13
13
|
);
|
|
14
14
|
while (true) {
|
|
15
|
-
const { iter, res } = await Promise.
|
|
15
|
+
const { iter, res } = await Promise.race(promises);
|
|
16
16
|
if (res.done) {
|
|
17
17
|
promises.splice(iter.id, 1);
|
|
18
18
|
if ($remove(iter.id))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/transducers-async",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Async versions of various highly composable transducers, reducers and iterators",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@thi.ng/api": "^8.10.
|
|
40
|
-
"@thi.ng/checks": "^3.6.
|
|
41
|
-
"@thi.ng/compose": "^3.0.
|
|
42
|
-
"@thi.ng/errors": "^2.5.
|
|
43
|
-
"@thi.ng/transducers": "^9.0.
|
|
39
|
+
"@thi.ng/api": "^8.10.1",
|
|
40
|
+
"@thi.ng/checks": "^3.6.1",
|
|
41
|
+
"@thi.ng/compose": "^3.0.1",
|
|
42
|
+
"@thi.ng/errors": "^2.5.4",
|
|
43
|
+
"@thi.ng/transducers": "^9.0.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@microsoft/api-extractor": "^7.43.0",
|
|
@@ -180,5 +180,5 @@
|
|
|
180
180
|
"status": "alpha",
|
|
181
181
|
"year": 2018
|
|
182
182
|
},
|
|
183
|
-
"gitHead": "
|
|
183
|
+
"gitHead": "fd7ab12d565809a2300783881c62b883dbd25c23\n"
|
|
184
184
|
}
|
package/sidechain.js
CHANGED
package/sync.js
CHANGED
|
@@ -48,7 +48,7 @@ async function* sync(src, opts) {
|
|
|
48
48
|
(iter) => iter.iter.next().then((res) => ({ iter, res }))
|
|
49
49
|
);
|
|
50
50
|
while (true) {
|
|
51
|
-
const { iter, res } = await Promise.
|
|
51
|
+
const { iter, res } = await Promise.race(promises);
|
|
52
52
|
if (res.done) {
|
|
53
53
|
promises.splice(iter.id, 1);
|
|
54
54
|
if ($remove(iter.id))
|