@thi.ng/rstream 9.3.12 → 9.3.13
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/README.md +2 -2
- package/package.json +12 -11
- package/pubsub.js +4 -4
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 214 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
|
>
|
|
@@ -215,7 +215,7 @@ For Node.js REPL:
|
|
|
215
215
|
const rs = await import("@thi.ng/rstream");
|
|
216
216
|
```
|
|
217
217
|
|
|
218
|
-
Package sizes (brotli'd, pre-treeshake): ESM: 6.
|
|
218
|
+
Package sizes (brotli'd, pre-treeshake): ESM: 6.37 KB
|
|
219
219
|
|
|
220
220
|
## Dependencies
|
|
221
221
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/rstream",
|
|
3
|
-
"version": "9.3.
|
|
3
|
+
"version": "9.3.13",
|
|
4
4
|
"description": "Reactive streams & subscription primitives for constructing dataflow graphs / pipelines",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "https://github.com/thi-ng/umbrella.git"
|
|
11
|
+
"url": "git+https://github.com/thi-ng/umbrella.git",
|
|
12
|
+
"directory": "packages/rstream"
|
|
12
13
|
},
|
|
13
14
|
"homepage": "https://thi.ng/rstream",
|
|
14
15
|
"funding": [
|
|
@@ -43,14 +44,14 @@
|
|
|
43
44
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
44
45
|
},
|
|
45
46
|
"dependencies": {
|
|
46
|
-
"@thi.ng/api": "^8.12.
|
|
47
|
-
"@thi.ng/arrays": "^2.14.
|
|
48
|
-
"@thi.ng/associative": "^7.1.
|
|
49
|
-
"@thi.ng/atom": "^5.3.
|
|
50
|
-
"@thi.ng/checks": "^3.8.
|
|
51
|
-
"@thi.ng/errors": "^2.6.
|
|
52
|
-
"@thi.ng/logger": "^3.2.
|
|
53
|
-
"@thi.ng/transducers": "^9.6.
|
|
47
|
+
"@thi.ng/api": "^8.12.14",
|
|
48
|
+
"@thi.ng/arrays": "^2.14.7",
|
|
49
|
+
"@thi.ng/associative": "^7.1.26",
|
|
50
|
+
"@thi.ng/atom": "^5.3.55",
|
|
51
|
+
"@thi.ng/checks": "^3.8.4",
|
|
52
|
+
"@thi.ng/errors": "^2.6.3",
|
|
53
|
+
"@thi.ng/logger": "^3.2.13",
|
|
54
|
+
"@thi.ng/transducers": "^9.6.23"
|
|
54
55
|
},
|
|
55
56
|
"devDependencies": {
|
|
56
57
|
"@types/node": "^24.10.9",
|
|
@@ -222,5 +223,5 @@
|
|
|
222
223
|
],
|
|
223
224
|
"year": 2017
|
|
224
225
|
},
|
|
225
|
-
"gitHead": "
|
|
226
|
+
"gitHead": "4bd1b9d8ae52ba32b90a1b9a55d329c708ca7865\n"
|
|
226
227
|
}
|
package/pubsub.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EquivMap } from "@thi.ng/associative/equiv-map";
|
|
2
|
-
import {
|
|
2
|
+
import { unsupportedOp } from "@thi.ng/errors/unsupported";
|
|
3
3
|
import { __optsWithID } from "./idgen.js";
|
|
4
4
|
import { LOGGER } from "./logger.js";
|
|
5
5
|
import { Subscription, subscription } from "./subscription.js";
|
|
@@ -23,13 +23,13 @@ class PubSub extends Subscription {
|
|
|
23
23
|
* Unsupported. Use {@link PubSub.subscribeTopic} instead.
|
|
24
24
|
*/
|
|
25
25
|
subscribe() {
|
|
26
|
-
return
|
|
26
|
+
return unsupportedOp(`use subscribeTopic() instead`);
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
29
|
* Unsupported. Use {@link PubSub.subscribeTopic} instead.
|
|
30
30
|
*/
|
|
31
31
|
transform() {
|
|
32
|
-
return
|
|
32
|
+
return unsupportedOp(`use subscribeTopic() instead`);
|
|
33
33
|
}
|
|
34
34
|
subscribeTopic(topicID, sub, opts) {
|
|
35
35
|
let t = this.topics.get(topicID);
|
|
@@ -64,7 +64,7 @@ class PubSub extends Subscription {
|
|
|
64
64
|
this.topics.clear();
|
|
65
65
|
return super.unsubscribe();
|
|
66
66
|
}
|
|
67
|
-
return
|
|
67
|
+
return unsupportedOp();
|
|
68
68
|
}
|
|
69
69
|
done() {
|
|
70
70
|
for (const t of this.topics.values()) {
|