@thi.ng/rstream 9.2.31 → 9.2.33

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2025-07-11T22:07:07Z
3
+ - **Last updated**: 2025-07-20T14:56:01Z
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.
@@ -11,6 +11,14 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
11
11
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
12
12
  and/or version bumps of transitive dependencies.
13
13
 
14
+ ### [9.2.33](https://github.com/thi-ng/umbrella/tree/@thi.ng/rstream@9.2.33) (2025-07-20)
15
+
16
+ #### 🩹 Bug fixes
17
+
18
+ - fix [#531](https://github.com/thi-ng/umbrella/issues/531), update resolve() done() handling ([2dec309](https://github.com/thi-ng/umbrella/commit/2dec309))
19
+ - update done() handling to also dispatch if parent already unsubbed
20
+ - fix code example in docs
21
+
14
22
  ### [9.2.4](https://github.com/thi-ng/umbrella/tree/@thi.ng/rstream@9.2.4) (2025-01-14)
15
23
 
16
24
  #### ♻️ Refactoring
package/README.md CHANGED
@@ -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.33 KB
218
+ Package sizes (brotli'd, pre-treeshake): ESM: 6.34 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.2.31",
3
+ "version": "9.2.33",
4
4
  "description": "Reactive streams & subscription primitives for constructing dataflow graphs / pipelines",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -43,18 +43,18 @@
43
43
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
44
44
  },
45
45
  "dependencies": {
46
- "@thi.ng/api": "^8.11.30",
47
- "@thi.ng/arrays": "^2.13.2",
48
- "@thi.ng/associative": "^7.1.2",
49
- "@thi.ng/atom": "^5.3.34",
50
- "@thi.ng/checks": "^3.7.10",
51
- "@thi.ng/errors": "^2.5.36",
52
- "@thi.ng/logger": "^3.1.11",
53
- "@thi.ng/transducers": "^9.6.0"
46
+ "@thi.ng/api": "^8.11.31",
47
+ "@thi.ng/arrays": "^2.13.4",
48
+ "@thi.ng/associative": "^7.1.4",
49
+ "@thi.ng/atom": "^5.3.35",
50
+ "@thi.ng/checks": "^3.7.11",
51
+ "@thi.ng/errors": "^2.5.37",
52
+ "@thi.ng/logger": "^3.1.12",
53
+ "@thi.ng/transducers": "^9.6.2"
54
54
  },
55
55
  "devDependencies": {
56
- "@types/node": "^24.0.12",
57
- "esbuild": "^0.25.6",
56
+ "@types/node": "^24.0.15",
57
+ "esbuild": "^0.25.8",
58
58
  "typedoc": "^0.28.7",
59
59
  "typescript": "^5.8.3"
60
60
  },
@@ -222,5 +222,5 @@
222
222
  ],
223
223
  "year": 2017
224
224
  },
225
- "gitHead": "63a8b97642b9c481bb623e8d53e6250749a2cbfb\n"
225
+ "gitHead": "3cd1bea8b2bf6b859609f6d5c14b4eb64745681f\n"
226
226
  }
package/resolve.d.ts CHANGED
@@ -21,7 +21,7 @@ export interface ResolverOpts extends IID<string> {
21
21
  * import { fromIterable, resolve, trace } from "@thi.ng/rstream";
22
22
  * import { delayed } from "@thi.ng/transducers";
23
23
  *
24
- * fromIterable([1, 2, 3], 500)
24
+ * fromIterable([1, 2, 3], { delay: 500 })
25
25
  * .transform(delayed(1000))
26
26
  * .subscribe(resolve())
27
27
  * .subscribe(trace("result"));
package/resolve.js CHANGED
@@ -33,7 +33,8 @@ class Resolver extends Subscription {
33
33
  );
34
34
  }
35
35
  done() {
36
- if (this.parent && this.parent.getState() === State.DONE && this.outstanding === 0) {
36
+ const pstate = this.parent?.getState();
37
+ if ((pstate === State.DONE || pstate === State.UNSUBSCRIBED) && this.outstanding === 0) {
37
38
  super.done();
38
39
  }
39
40
  }