@thi.ng/transducers 8.9.4 → 8.9.6

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**: 2024-02-19T16:07:07Z
3
+ - **Last updated**: 2024-02-22T23:15:26Z
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,18 @@ 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
+ ### [8.9.6](https://github.com/thi-ng/umbrella/tree/@thi.ng/transducers@8.9.6) (2024-02-22)
13
+
14
+ #### ♻️ Refactoring
15
+
16
+ - update object destructuring in all pkgs & examples ([f36aeb0](https://github.com/thi-ng/umbrella/commit/f36aeb0))
17
+
18
+ ### [8.9.5](https://github.com/thi-ng/umbrella/tree/@thi.ng/transducers@8.9.5) (2024-02-22)
19
+
20
+ #### ♻️ Refactoring
21
+
22
+ - update all `node:*` imports ([c71a526](https://github.com/thi-ng/umbrella/commit/c71a526))
23
+
12
24
  ## [8.9.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/transducers@8.9.0) (2024-02-06)
13
25
 
14
26
  #### 🚀 Features
package/README.md CHANGED
@@ -18,7 +18,7 @@
18
18
  [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
19
19
 
20
20
  > [!NOTE]
21
- > This is one of 189 standalone projects, maintained as part
21
+ > This is one of 190 standalone projects, maintained as part
22
22
  > of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
23
23
  > and anti-framework.
24
24
  >
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/transducers",
3
- "version": "8.9.4",
3
+ "version": "8.9.6",
4
4
  "description": "Lightweight transducer implementations for ES6 / TypeScript",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -39,14 +39,14 @@
39
39
  "test": "bun test"
40
40
  },
41
41
  "dependencies": {
42
- "@thi.ng/api": "^8.9.24",
43
- "@thi.ng/arrays": "^2.8.1",
44
- "@thi.ng/checks": "^3.4.24",
45
- "@thi.ng/compare": "^2.2.20",
46
- "@thi.ng/compose": "^2.1.63",
47
- "@thi.ng/errors": "^2.4.17",
48
- "@thi.ng/math": "^5.10.1",
49
- "@thi.ng/random": "^3.6.31"
42
+ "@thi.ng/api": "^8.9.25",
43
+ "@thi.ng/arrays": "^2.8.2",
44
+ "@thi.ng/checks": "^3.5.0",
45
+ "@thi.ng/compare": "^2.2.21",
46
+ "@thi.ng/compose": "^2.1.64",
47
+ "@thi.ng/errors": "^2.4.18",
48
+ "@thi.ng/math": "^5.10.2",
49
+ "@thi.ng/random": "^3.6.32"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@microsoft/api-extractor": "^7.40.1",
@@ -588,5 +588,5 @@
588
588
  ],
589
589
  "year": 2016
590
590
  },
591
- "gitHead": "2724c87ca41810f2112f9d8c3d6b90dfaeea876b\n"
591
+ "gitHead": "16f2b92b5410bd35dcde6c2971c8e62783ebc472\n"
592
592
  }
package/partition-sync.js CHANGED
@@ -7,14 +7,13 @@ function partitionSync(...args) {
7
7
  const iter = __iter(partitionSync, args, iterator);
8
8
  if (iter)
9
9
  return iter;
10
- const { key, mergeOnly, reset, all, backPressure } = {
11
- key: identity,
12
- mergeOnly: false,
13
- reset: true,
14
- all: true,
15
- backPressure: 0,
16
- ...args[1]
17
- };
10
+ const {
11
+ key = identity,
12
+ mergeOnly = false,
13
+ reset = true,
14
+ all = true,
15
+ backPressure = 0
16
+ } = args[1];
18
17
  const requiredKeys = isArray(args[0]) ? new Set(args[0]) : args[0];
19
18
  const currKeys = /* @__PURE__ */ new Set();
20
19
  const cache = /* @__PURE__ */ new Map();
package/rechunk.d.ts CHANGED
@@ -18,7 +18,7 @@ import type { Transducer } from "./api.js";
18
18
  *
19
19
  * @example
20
20
  * ```ts
21
- * import { spawn } from "child_process"
21
+ * import { spawn } from "node:child_process"
22
22
  * import { fromNodeJS, trace } from "@thi.ng/rstream";
23
23
  *
24
24
  * const cmd = spawn("ls", ["-la"]);
package/word-wrap.js CHANGED
@@ -6,11 +6,7 @@ function wordWrap(...args) {
6
6
  return iter;
7
7
  }
8
8
  const lineLength = args[0];
9
- const { delim, always } = {
10
- delim: 1,
11
- always: true,
12
- ...args[1]
13
- };
9
+ const { delim = 1, always = true } = args[1];
14
10
  return partitionBy(() => {
15
11
  let n = 0;
16
12
  let flag = false;