@thi.ng/transducers 8.9.5 → 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 +7 -1
- package/package.json +2 -2
- package/partition-sync.js +7 -8
- package/word-wrap.js +1 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2024-02-
|
|
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,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
|
+
### [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
|
+
|
|
12
18
|
### [8.9.5](https://github.com/thi-ng/umbrella/tree/@thi.ng/transducers@8.9.5) (2024-02-22)
|
|
13
19
|
|
|
14
20
|
#### ♻️ Refactoring
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/transducers",
|
|
3
|
-
"version": "8.9.
|
|
3
|
+
"version": "8.9.6",
|
|
4
4
|
"description": "Lightweight transducer implementations for ES6 / TypeScript",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -588,5 +588,5 @@
|
|
|
588
588
|
],
|
|
589
589
|
"year": 2016
|
|
590
590
|
},
|
|
591
|
-
"gitHead": "
|
|
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 {
|
|
11
|
-
key
|
|
12
|
-
mergeOnly
|
|
13
|
-
reset
|
|
14
|
-
all
|
|
15
|
-
backPressure
|
|
16
|
-
|
|
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/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;
|