@thi.ng/rstream 7.2.29 → 7.2.31
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 +10 -20
- package/api.d.ts +4 -4
- package/forkjoin.d.ts +1 -1
- package/object.d.ts +1 -1
- package/package.json +20 -16
- package/sync.d.ts +1 -1
- package/view.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2022-
|
|
3
|
+
- **Last updated**: 2022-12-16T12:52:25Z
|
|
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
|
+
### [7.2.31](https://github.com/thi-ng/umbrella/tree/@thi.ng/rstream@7.2.31) (2022-12-16)
|
|
13
|
+
|
|
14
|
+
#### 🩹 Bug fixes
|
|
15
|
+
|
|
16
|
+
- (TS4.9 regression) update defWorker(), add explicit typehint ([bce5df7](https://github.com/thi-ng/umbrella/commit/bce5df7))
|
|
17
|
+
|
|
12
18
|
### [7.2.7](https://github.com/thi-ng/umbrella/tree/@thi.ng/rstream@7.2.7) (2022-06-09)
|
|
13
19
|
|
|
14
20
|
#### ♻️ Refactoring
|
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<!-- This file is generated - DO NOT EDIT! -->
|
|
2
2
|
|
|
3
|
-
# 
|
|
3
|
+
# 
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@thi.ng/rstream)
|
|
6
6
|

|
|
7
|
-
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
This project is part of the
|
|
10
10
|
[@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo.
|
|
@@ -41,13 +41,11 @@ This project is part of the
|
|
|
41
41
|
- [Other subscription ops](#other-subscription-ops)
|
|
42
42
|
- [Error handling](#error-handling)
|
|
43
43
|
- [Authors](#authors)
|
|
44
|
-
- [Maintainer](#maintainer)
|
|
45
|
-
- [Contributors](#contributors)
|
|
46
44
|
- [License](#license)
|
|
47
45
|
|
|
48
46
|
## About
|
|
49
47
|
|
|
50
|
-
Reactive streams & subscription primitives for constructing dataflow graphs / pipelines
|
|
48
|
+
Reactive streams & subscription primitives for constructing dataflow graphs / pipelines
|
|
51
49
|
|
|
52
50
|
This library provides & uses three key building blocks for reactive
|
|
53
51
|
programming:
|
|
@@ -194,14 +192,11 @@ ES module import:
|
|
|
194
192
|
|
|
195
193
|
For Node.js REPL:
|
|
196
194
|
|
|
197
|
-
```
|
|
198
|
-
|
|
199
|
-
node --experimental-repl-await
|
|
200
|
-
|
|
201
|
-
> const rstream = await import("@thi.ng/rstream");
|
|
195
|
+
```js
|
|
196
|
+
const rstream = await import("@thi.ng/rstream");
|
|
202
197
|
```
|
|
203
198
|
|
|
204
|
-
Package sizes (
|
|
199
|
+
Package sizes (brotli'd, pre-treeshake): ESM: 5.60 KB
|
|
205
200
|
|
|
206
201
|
## Dependencies
|
|
207
202
|
|
|
@@ -878,14 +873,9 @@ src.next(2)
|
|
|
878
873
|
|
|
879
874
|
## Authors
|
|
880
875
|
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
-
|
|
884
|
-
|
|
885
|
-
### Contributors
|
|
886
|
-
|
|
887
|
-
- André Wachter ([@andrew8er](https://github.com/andrew8er))
|
|
888
|
-
- Gavin Cannizzaro ([@gavinpc-mindgrub](https://github.com/gavinpc-mindgrub))
|
|
876
|
+
- [Karsten Schmidt](https://thi.ng) (Main author)
|
|
877
|
+
- [André Wachter](https://github.com/andrew8er)
|
|
878
|
+
- [Gavin Cannizzaro](https://github.com/gavinpc-mindgrub)
|
|
889
879
|
|
|
890
880
|
If this project contributes to an academic publication, please cite it as:
|
|
891
881
|
|
|
@@ -900,4 +890,4 @@ If this project contributes to an academic publication, please cite it as:
|
|
|
900
890
|
|
|
901
891
|
## License
|
|
902
892
|
|
|
903
|
-
© 2017 - 2022 Karsten Schmidt // Apache
|
|
893
|
+
© 2017 - 2022 Karsten Schmidt // Apache License 2.0
|
package/api.d.ts
CHANGED
|
@@ -72,7 +72,7 @@ export interface WithTransform<A, B> {
|
|
|
72
72
|
}
|
|
73
73
|
export interface TransformableOpts<A, B> extends CommonOpts, WithTransform<A, B> {
|
|
74
74
|
}
|
|
75
|
-
export
|
|
75
|
+
export type ErrorHandler = Fn<any, boolean>;
|
|
76
76
|
export interface WithErrorHandler {
|
|
77
77
|
/**
|
|
78
78
|
* Optional error handler to use for this
|
|
@@ -181,7 +181,7 @@ export interface ISubscription<A, B> extends IDeref<B | undefined>, ISubscriber<
|
|
|
181
181
|
export interface IStream<T> extends ISubscriber<T> {
|
|
182
182
|
cancel: StreamCancel;
|
|
183
183
|
}
|
|
184
|
-
export
|
|
185
|
-
export
|
|
186
|
-
export
|
|
184
|
+
export type StreamCancel = () => void;
|
|
185
|
+
export type StreamSource<T> = (sub: Stream<T>) => StreamCancel | void;
|
|
186
|
+
export type WorkerSource = Worker | Blob | Fn0<Worker> | string;
|
|
187
187
|
//# sourceMappingURL=api.d.ts.map
|
package/forkjoin.d.ts
CHANGED
|
@@ -103,7 +103,7 @@ export interface ForkJoinOpts<IN, MSG, RES, OUT> extends Partial<CommonOpts> {
|
|
|
103
103
|
* @param opts -
|
|
104
104
|
*/
|
|
105
105
|
export declare const forkJoin: <IN, MSG, RES, OUT>(opts: ForkJoinOpts<IN, MSG, RES, OUT>) => Subscription<any, OUT>;
|
|
106
|
-
|
|
106
|
+
type Sliceable<T> = ArrayLike<T> & {
|
|
107
107
|
slice(a: number, b?: number): Sliceable<T>;
|
|
108
108
|
};
|
|
109
109
|
/**
|
package/object.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Keys, Predicate2 } from "@thi.ng/api";
|
|
2
2
|
import type { CommonOpts } from "./api.js";
|
|
3
3
|
import { Subscription } from "./subscription.js";
|
|
4
|
-
export
|
|
4
|
+
export type KeyStreams<T, K extends Keys<T>> = {
|
|
5
5
|
[id in K]-?: Subscription<T[id], T[id]>;
|
|
6
6
|
};
|
|
7
7
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/rstream",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.31",
|
|
4
4
|
"description": "Reactive streams & subscription primitives for constructing dataflow graphs / pipelines",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -21,11 +21,15 @@
|
|
|
21
21
|
"url": "https://patreon.com/thing_umbrella"
|
|
22
22
|
}
|
|
23
23
|
],
|
|
24
|
-
"author": "Karsten Schmidt
|
|
24
|
+
"author": "Karsten Schmidt (https://thi.ng)",
|
|
25
|
+
"contributors": [
|
|
26
|
+
"André Wachter (https://github.com/andrew8er)",
|
|
27
|
+
"Gavin Cannizzaro (https://github.com/gavinpc-mindgrub)"
|
|
28
|
+
],
|
|
25
29
|
"license": "Apache-2.0",
|
|
26
30
|
"scripts": {
|
|
27
31
|
"build": "yarn clean && tsc --declaration",
|
|
28
|
-
"clean": "rimraf '*.js' '*.d.ts' '*.map' doc",
|
|
32
|
+
"clean": "rimraf '*.js' '*.d.ts' '*.map' doc internal",
|
|
29
33
|
"doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
|
|
30
34
|
"doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
|
|
31
35
|
"doc:readme": "yarn doc:stats && tools:readme",
|
|
@@ -34,22 +38,22 @@
|
|
|
34
38
|
"test": "testament test"
|
|
35
39
|
},
|
|
36
40
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.
|
|
38
|
-
"@thi.ng/arrays": "^2.4.
|
|
39
|
-
"@thi.ng/associative": "^6.2.
|
|
40
|
-
"@thi.ng/atom": "^5.1.
|
|
41
|
-
"@thi.ng/checks": "^3.3.
|
|
42
|
-
"@thi.ng/errors": "^2.2.
|
|
43
|
-
"@thi.ng/logger": "^1.4.
|
|
44
|
-
"@thi.ng/transducers": "^8.3.
|
|
41
|
+
"@thi.ng/api": "^8.6.0",
|
|
42
|
+
"@thi.ng/arrays": "^2.4.5",
|
|
43
|
+
"@thi.ng/associative": "^6.2.19",
|
|
44
|
+
"@thi.ng/atom": "^5.1.25",
|
|
45
|
+
"@thi.ng/checks": "^3.3.5",
|
|
46
|
+
"@thi.ng/errors": "^2.2.6",
|
|
47
|
+
"@thi.ng/logger": "^1.4.5",
|
|
48
|
+
"@thi.ng/transducers": "^8.3.26"
|
|
45
49
|
},
|
|
46
50
|
"devDependencies": {
|
|
47
|
-
"@microsoft/api-extractor": "^7.33.
|
|
48
|
-
"@thi.ng/testament": "^0.3.
|
|
51
|
+
"@microsoft/api-extractor": "^7.33.7",
|
|
52
|
+
"@thi.ng/testament": "^0.3.7",
|
|
49
53
|
"rimraf": "^3.0.2",
|
|
50
54
|
"tools": "^0.0.1",
|
|
51
|
-
"typedoc": "^0.23.
|
|
52
|
-
"typescript": "^4.
|
|
55
|
+
"typedoc": "^0.23.22",
|
|
56
|
+
"typescript": "^4.9.4"
|
|
53
57
|
},
|
|
54
58
|
"keywords": [
|
|
55
59
|
"async",
|
|
@@ -201,5 +205,5 @@
|
|
|
201
205
|
],
|
|
202
206
|
"year": 2017
|
|
203
207
|
},
|
|
204
|
-
"gitHead": "
|
|
208
|
+
"gitHead": "f445a9cc8022bcdebbf6ff91fd66ced016d72f01\n"
|
|
205
209
|
}
|
package/sync.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { Always, Derefed, IObjectOf } from "@thi.ng/api";
|
|
|
2
2
|
import { PartitionSync } from "@thi.ng/transducers/partition-sync";
|
|
3
3
|
import type { ISubscribable, ISubscription, TransformableOpts } from "./api.js";
|
|
4
4
|
import { Subscription } from "./subscription.js";
|
|
5
|
-
export
|
|
5
|
+
export type SyncTuple<T extends IObjectOf<ISubscribable<any>>> = {
|
|
6
6
|
[id in keyof T]: Always<Derefed<T[id]>>;
|
|
7
7
|
};
|
|
8
8
|
export interface StreamSyncOpts<A extends IObjectOf<ISubscribable<any>>, B = SyncTuple<A>> extends TransformableOpts<SyncTuple<A>, B> {
|
package/view.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export interface FromViewOpts<P, A, B> extends Partial<CommonOpts> {
|
|
|
7
7
|
tx?: Fn<A, B>;
|
|
8
8
|
equiv?: Predicate2<A>;
|
|
9
9
|
}
|
|
10
|
-
export
|
|
10
|
+
export type FromViewUnsafeOpts<T> = FromViewOpts<Path, any, T>;
|
|
11
11
|
/**
|
|
12
12
|
* Unchecked version of {@link fromView}. Paths can be given as string
|
|
13
13
|
* or tuple.
|