@thi.ng/transducers-patch 0.4.30 → 0.4.32
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 +1 -1
- package/README.md +7 -10
- package/api.d.ts +3 -3
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<!-- This file is generated - DO NOT EDIT! -->
|
|
2
2
|
|
|
3
|
-
# 
|
|
3
|
+
# 
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@thi.ng/transducers-patch)
|
|
6
6
|

|
|
7
|
-
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
This project is part of the
|
|
10
10
|
[@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo.
|
|
@@ -21,7 +21,7 @@ This project is part of the
|
|
|
21
21
|
|
|
22
22
|
## About
|
|
23
23
|
|
|
24
|
-
Reducers for patch-based, immutable-by-default array & object editing
|
|
24
|
+
Reducers for patch-based, immutable-by-default array & object editing
|
|
25
25
|
|
|
26
26
|
The `patchArray` and `patchObj` reducers can be used in any
|
|
27
27
|
reducer/transducer scenario and are useful for any form of declarative
|
|
@@ -50,11 +50,8 @@ ES module import:
|
|
|
50
50
|
|
|
51
51
|
For Node.js REPL:
|
|
52
52
|
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
node --experimental-repl-await
|
|
56
|
-
|
|
57
|
-
> const transducersPatch = await import("@thi.ng/transducers-patch");
|
|
53
|
+
```js
|
|
54
|
+
const transducersPatch = await import("@thi.ng/transducers-patch");
|
|
58
55
|
```
|
|
59
56
|
|
|
60
57
|
Package sizes (brotli'd, pre-treeshake): ESM: 497 bytes
|
|
@@ -172,7 +169,7 @@ state.next(["delete", "x"]);
|
|
|
172
169
|
|
|
173
170
|
## Authors
|
|
174
171
|
|
|
175
|
-
Karsten Schmidt
|
|
172
|
+
- [Karsten Schmidt](https://thi.ng)
|
|
176
173
|
|
|
177
174
|
If this project contributes to an academic publication, please cite it as:
|
|
178
175
|
|
|
@@ -187,4 +184,4 @@ If this project contributes to an academic publication, please cite it as:
|
|
|
187
184
|
|
|
188
185
|
## License
|
|
189
186
|
|
|
190
|
-
© 2020 - 2022 Karsten Schmidt // Apache
|
|
187
|
+
© 2020 - 2022 Karsten Schmidt // Apache License 2.0
|
package/api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FnO, Path } from "@thi.ng/api";
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
export type Patch = "set" | "insert" | "update" | "delete";
|
|
3
|
+
export type PatchArrayOp<T> = ["set", number, T] | ["insert", number, T[]] | ["update", number, FnO<T, T>, ...any[]] | ["delete", number];
|
|
4
|
+
export type PatchObjOp = ["set", Path, any] | ["update", Path, FnO<any, any>, ...any[]] | ["delete", Path];
|
|
5
5
|
//# sourceMappingURL=api.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/transducers-patch",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.32",
|
|
4
4
|
"description": "Reducers for patch-based, immutable-by-default array & object editing",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"url": "https://patreon.com/thing_umbrella"
|
|
22
22
|
}
|
|
23
23
|
],
|
|
24
|
-
"author": "Karsten Schmidt
|
|
24
|
+
"author": "Karsten Schmidt (https://thi.ng)",
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"scripts": {
|
|
27
27
|
"build": "yarn clean && tsc --declaration",
|
|
@@ -34,19 +34,19 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.
|
|
38
|
-
"@thi.ng/checks": "^3.3.
|
|
39
|
-
"@thi.ng/errors": "^2.2.
|
|
40
|
-
"@thi.ng/paths": "^5.1.
|
|
41
|
-
"@thi.ng/transducers": "^8.3.
|
|
37
|
+
"@thi.ng/api": "^8.6.1",
|
|
38
|
+
"@thi.ng/checks": "^3.3.5",
|
|
39
|
+
"@thi.ng/errors": "^2.2.6",
|
|
40
|
+
"@thi.ng/paths": "^5.1.26",
|
|
41
|
+
"@thi.ng/transducers": "^8.3.27"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@microsoft/api-extractor": "^7.33.
|
|
45
|
-
"@thi.ng/testament": "^0.3.
|
|
44
|
+
"@microsoft/api-extractor": "^7.33.7",
|
|
45
|
+
"@thi.ng/testament": "^0.3.7",
|
|
46
46
|
"rimraf": "^3.0.2",
|
|
47
47
|
"tools": "^0.0.1",
|
|
48
|
-
"typedoc": "^0.23.
|
|
49
|
-
"typescript": "^4.
|
|
48
|
+
"typedoc": "^0.23.22",
|
|
49
|
+
"typescript": "^4.9.4"
|
|
50
50
|
},
|
|
51
51
|
"keywords": [
|
|
52
52
|
"array",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"status": "alpha",
|
|
87
87
|
"year": 2020
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "7b2af448da8a63fb21704a79cc4cdf1f3d7d7a64\n"
|
|
90
90
|
}
|