@thi.ng/transducers-patch 0.4.112 → 0.4.113

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-03-27T09:53:46Z
3
+ - **Last updated**: 2024-04-08T14:59:30Z
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.4.113](https://github.com/thi-ng/umbrella/tree/@thi.ng/transducers-patch@0.4.113) (2024-04-08)
13
+
14
+ #### ♻️ Refactoring
15
+
16
+ - update reducer handling due to updates in [@thi.ng/transducers](https://github.com/thi-ng/umbrella/tree/main/packages/transducers) pkg ([a5d296e](https://github.com/thi-ng/umbrella/commit/a5d296e))
17
+
12
18
  ### [0.4.76](https://github.com/thi-ng/umbrella/tree/@thi.ng/transducers-patch@0.4.76) (2023-11-09)
13
19
 
14
20
  #### ♻️ Refactoring
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
8
8
 
9
9
  > [!NOTE]
10
- > This is one of 190 standalone projects, maintained as part
10
+ > This is one of 191 standalone projects, maintained as part
11
11
  > of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
12
12
  > and anti-framework.
13
13
  >
@@ -45,7 +45,13 @@ state update. By default all edits are performed non-destructively, but
45
45
  yarn add @thi.ng/transducers-patch
46
46
  ```
47
47
 
48
- ES module import:
48
+ ESM import:
49
+
50
+ ```ts
51
+ import * as tp from "@thi.ng/transducers-patch";
52
+ ```
53
+
54
+ Browser ESM import:
49
55
 
50
56
  ```html
51
57
  <script type="module" src="https://cdn.skypack.dev/@thi.ng/transducers-patch"></script>
@@ -56,7 +62,7 @@ ES module import:
56
62
  For Node.js REPL:
57
63
 
58
64
  ```js
59
- const transducersPatch = await import("@thi.ng/transducers-patch");
65
+ const tp = await import("@thi.ng/transducers-patch");
60
66
  ```
61
67
 
62
68
  Package sizes (brotli'd, pre-treeshake): ESM: 497 bytes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/transducers-patch",
3
- "version": "0.4.112",
3
+ "version": "0.4.113",
4
4
  "description": "Reducers for patch-based, immutable-by-default array & object editing",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -36,11 +36,11 @@
36
36
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
37
37
  },
38
38
  "dependencies": {
39
- "@thi.ng/api": "^8.9.31",
40
- "@thi.ng/checks": "^3.5.5",
41
- "@thi.ng/errors": "^2.5.2",
42
- "@thi.ng/paths": "^5.1.76",
43
- "@thi.ng/transducers": "^8.9.18"
39
+ "@thi.ng/api": "^8.10.0",
40
+ "@thi.ng/checks": "^3.6.0",
41
+ "@thi.ng/errors": "^2.5.3",
42
+ "@thi.ng/paths": "^5.1.77",
43
+ "@thi.ng/transducers": "^9.0.0"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@microsoft/api-extractor": "^7.43.0",
@@ -87,5 +87,5 @@
87
87
  "status": "alpha",
88
88
  "year": 2020
89
89
  },
90
- "gitHead": "ce5ae2a322d50a7ce8ecccbd94fa55c496ba04fd\n"
90
+ "gitHead": "85ac4bd4d6d89f8e3689e2863d5bea0cecdb371c\n"
91
91
  }
package/patch-array.d.ts CHANGED
@@ -33,6 +33,6 @@ import type { PatchArrayOp } from "./api.js";
33
33
  * // [ 42, 20, 10, 3 ]
34
34
  * ```
35
35
  */
36
- export declare function patchArray<T>(immutable?: boolean): Reducer<T[], PatchArrayOp<T> | PatchArrayOp<T>[]>;
36
+ export declare function patchArray<T>(immutable?: boolean): Reducer<PatchArrayOp<T> | PatchArrayOp<T>[], T[]>;
37
37
  export declare function patchArray<T>(immutable: boolean, init: T[], patches: Iterable<PatchArrayOp<T> | PatchArrayOp<T>[]>): T[];
38
38
  //# sourceMappingURL=patch-array.d.ts.map
package/patch-obj.d.ts CHANGED
@@ -9,6 +9,6 @@ import type { PatchObjOp } from "./api.js";
9
9
  * - UPDATE
10
10
  * - DELETE
11
11
  */
12
- export declare function patchObj(): Reducer<any, PatchObjOp>;
12
+ export declare function patchObj(): Reducer<PatchObjOp, any>;
13
13
  export declare function patchObj(init: any, patches: Iterable<PatchObjOp>): any;
14
14
  //# sourceMappingURL=patch-obj.d.ts.map