@thi.ng/transducers-async 0.3.7 → 0.3.9

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-01-04T21:07:38Z
3
+ - **Last updated**: 2025-01-14T12:23:33Z
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.3.8](https://github.com/thi-ng/umbrella/tree/@thi.ng/transducers-async@0.3.8) (2025-01-14)
13
+
14
+ #### ♻️ Refactoring
15
+
16
+ - use optional chaining & nullish coalescing ([c5a0a13](https://github.com/thi-ng/umbrella/commit/c5a0a13))
17
+
12
18
  ### [0.3.6](https://github.com/thi-ng/umbrella/tree/@thi.ng/transducers-async@0.3.6) (2024-12-27)
13
19
 
14
20
  #### ♻️ Refactoring
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/transducers-async",
3
- "version": "0.3.7",
3
+ "version": "0.3.9",
4
4
  "description": "Async versions of various highly composable transducers, reducers and iterators",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -42,11 +42,11 @@
42
42
  "dependencies": {
43
43
  "@thi.ng/api": "^8.11.16",
44
44
  "@thi.ng/buffers": "^1.0.1",
45
- "@thi.ng/checks": "^3.6.18",
45
+ "@thi.ng/checks": "^3.6.19",
46
46
  "@thi.ng/compose": "^3.0.19",
47
47
  "@thi.ng/errors": "^2.5.22",
48
48
  "@thi.ng/timestamp": "^1.1.1",
49
- "@thi.ng/transducers": "^9.2.12"
49
+ "@thi.ng/transducers": "^9.2.14"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@microsoft/api-extractor": "^7.48.1",
@@ -213,5 +213,5 @@
213
213
  "status": "alpha",
214
214
  "year": 2018
215
215
  },
216
- "gitHead": "56c1d57a96565bbcc8c06c73779a619bba0db368\n"
216
+ "gitHead": "d888087b36b086fd8c3e7dc98d35857266f78942\n"
217
217
  }
package/pubsub.js CHANGED
@@ -47,7 +47,7 @@ class PubSub {
47
47
  for await (let val of this.src) {
48
48
  const topic = this.topicFn(val);
49
49
  const subs = this.topics.get(topic);
50
- if (!(subs && subs.length)) continue;
50
+ if (!subs?.length) continue;
51
51
  for (let s of subs) s.resolve(val);
52
52
  await Promise.all(subs.map((x) => x.notifyP));
53
53
  }