@thi.ng/transducers 9.2.12 → 9.2.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/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
+ ### [9.2.13](https://github.com/thi-ng/umbrella/tree/@thi.ng/transducers@9.2.13) (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
  ### [9.2.11](https://github.com/thi-ng/umbrella/tree/@thi.ng/transducers@9.2.11) (2024-12-27)
13
19
 
14
20
  #### ♻️ Refactoring
package/README.md CHANGED
@@ -150,7 +150,7 @@ For Node.js REPL:
150
150
  const tx = await import("@thi.ng/transducers");
151
151
  ```
152
152
 
153
- Package sizes (brotli'd, pre-treeshake): ESM: 9.09 KB
153
+ Package sizes (brotli'd, pre-treeshake): ESM: 9.12 KB
154
154
 
155
155
  ## Dependencies
156
156
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/transducers",
3
- "version": "9.2.12",
3
+ "version": "9.2.13",
4
4
  "description": "Collection of ~170 lightweight, composable transducers, reducers, generators, iterators for functional data transformations",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -45,8 +45,8 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "@thi.ng/api": "^8.11.16",
48
- "@thi.ng/arrays": "^2.10.9",
49
- "@thi.ng/checks": "^3.6.18",
48
+ "@thi.ng/arrays": "^2.10.10",
49
+ "@thi.ng/checks": "^3.6.19",
50
50
  "@thi.ng/compare": "^2.4.8",
51
51
  "@thi.ng/compose": "^3.0.19",
52
52
  "@thi.ng/errors": "^2.5.22",
@@ -605,5 +605,5 @@
605
605
  ],
606
606
  "year": 2016
607
607
  },
608
- "gitHead": "56c1d57a96565bbcc8c06c73779a619bba0db368\n"
608
+ "gitHead": "6542b842120bef47cc18d45a1b1db68307a7f04b\n"
609
609
  }
package/partition-by.js CHANGED
@@ -10,7 +10,7 @@ function partitionBy(...args) {
10
10
  return [
11
11
  init,
12
12
  (acc) => {
13
- if (chunk && chunk.length) {
13
+ if (chunk?.length) {
14
14
  acc = reduce(acc, chunk);
15
15
  chunk = null;
16
16
  }
package/partition-when.js CHANGED
@@ -8,7 +8,7 @@ function partitionWhen(...args) {
8
8
  return [
9
9
  init,
10
10
  (acc) => {
11
- if (chunk && chunk.length) {
11
+ if (chunk?.length) {
12
12
  acc = reduce(acc, chunk);
13
13
  chunk = null;
14
14
  }