@thi.ng/rstream 8.3.19 → 8.3.20
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 +9 -3
- package/package.json +11 -10
- package/subscription.d.ts +1 -1
- package/transduce.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2024-
|
|
3
|
+
- **Last updated**: 2024-04-08T14:59:30Z
|
|
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
|
+
### [8.3.20](https://github.com/thi-ng/umbrella/tree/@thi.ng/rstream@8.3.20) (2024-04-08)
|
|
13
|
+
|
|
14
|
+
#### ♻️ Refactoring
|
|
15
|
+
|
|
16
|
+
- update reducer handling due to updates in [@thi.ng/transducers](https://github.com/thi-ng/umbrella/tree/main/packages/transducers) pkg ([e0e5654](https://github.com/thi-ng/umbrella/commit/e0e5654))
|
|
17
|
+
|
|
12
18
|
### [8.3.6](https://github.com/thi-ng/umbrella/tree/@thi.ng/rstream@8.3.6) (2024-02-22)
|
|
13
19
|
|
|
14
20
|
#### ♻️ Refactoring
|
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 191 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
|
>
|
|
@@ -194,7 +194,13 @@ src.transformTopic("foo", map((e) => e.value), { error: handleError })
|
|
|
194
194
|
yarn add @thi.ng/rstream
|
|
195
195
|
```
|
|
196
196
|
|
|
197
|
-
|
|
197
|
+
ESM import:
|
|
198
|
+
|
|
199
|
+
```ts
|
|
200
|
+
import * as rs from "@thi.ng/rstream";
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
Browser ESM import:
|
|
198
204
|
|
|
199
205
|
```html
|
|
200
206
|
<script type="module" src="https://cdn.skypack.dev/@thi.ng/rstream"></script>
|
|
@@ -205,7 +211,7 @@ ES module import:
|
|
|
205
211
|
For Node.js REPL:
|
|
206
212
|
|
|
207
213
|
```js
|
|
208
|
-
const
|
|
214
|
+
const rs = await import("@thi.ng/rstream");
|
|
209
215
|
```
|
|
210
216
|
|
|
211
217
|
Package sizes (brotli'd, pre-treeshake): ESM: 6.16 KB
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/rstream",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.20",
|
|
4
4
|
"description": "Reactive streams & subscription primitives for constructing dataflow graphs / pipelines",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@thi.ng/api": "^8.
|
|
44
|
-
"@thi.ng/arrays": "^2.9.
|
|
45
|
-
"@thi.ng/associative": "^6.3.
|
|
46
|
-
"@thi.ng/atom": "^5.2.
|
|
47
|
-
"@thi.ng/checks": "^3.
|
|
48
|
-
"@thi.ng/errors": "^2.5.
|
|
49
|
-
"@thi.ng/logger": "^3.0.
|
|
50
|
-
"@thi.ng/transducers": "^
|
|
43
|
+
"@thi.ng/api": "^8.10.0",
|
|
44
|
+
"@thi.ng/arrays": "^2.9.2",
|
|
45
|
+
"@thi.ng/associative": "^6.3.55",
|
|
46
|
+
"@thi.ng/atom": "^5.2.42",
|
|
47
|
+
"@thi.ng/checks": "^3.6.0",
|
|
48
|
+
"@thi.ng/errors": "^2.5.3",
|
|
49
|
+
"@thi.ng/logger": "^3.0.8",
|
|
50
|
+
"@thi.ng/transducers": "^9.0.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@microsoft/api-extractor": "^7.43.0",
|
|
@@ -207,6 +207,7 @@
|
|
|
207
207
|
}
|
|
208
208
|
},
|
|
209
209
|
"thi.ng": {
|
|
210
|
+
"alias": "rs",
|
|
210
211
|
"related": [
|
|
211
212
|
"atom",
|
|
212
213
|
"hdom",
|
|
@@ -215,5 +216,5 @@
|
|
|
215
216
|
],
|
|
216
217
|
"year": 2017
|
|
217
218
|
},
|
|
218
|
-
"gitHead": "
|
|
219
|
+
"gitHead": "85ac4bd4d6d89f8e3689e2863d5bea0cecdb371c\n"
|
|
219
220
|
}
|
package/subscription.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ export declare class Subscription<A, B> implements ISubscription<A, B> {
|
|
|
60
60
|
closeOut: CloseMode;
|
|
61
61
|
parent?: ISubscription<any, A>;
|
|
62
62
|
__owner?: ISubscription<any, any>;
|
|
63
|
-
protected xform?: Reducer<B[]
|
|
63
|
+
protected xform?: Reducer<A, B[]>;
|
|
64
64
|
protected cacheLast: boolean;
|
|
65
65
|
protected last: any;
|
|
66
66
|
protected state: State;
|
package/transduce.d.ts
CHANGED
|
@@ -27,5 +27,5 @@ import type { Subscription } from "./subscription.js";
|
|
|
27
27
|
* @param rfn -
|
|
28
28
|
* @param init -
|
|
29
29
|
*/
|
|
30
|
-
export declare const transduce: <A, B, C>(src: Subscription<any, A>, xform: Transducer<A, B>, rfn: Reducer<
|
|
30
|
+
export declare const transduce: <A, B, C>(src: Subscription<any, A>, xform: Transducer<A, B>, rfn: Reducer<B, C>, init?: C) => Promise<C>;
|
|
31
31
|
//# sourceMappingURL=transduce.d.ts.map
|