@thi.ng/zipper 2.1.98 → 2.1.99
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/README.md +2 -2
- package/package.json +6 -6
- package/zipper.d.ts +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2024-04-
|
|
3
|
+
- **Last updated**: 2024-04-20T14:42:45Z
|
|
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
|
+
### [2.1.99](https://github.com/thi-ng/umbrella/tree/@thi.ng/zipper@2.1.99) (2024-04-20)
|
|
13
|
+
|
|
14
|
+
#### ♻️ Refactoring
|
|
15
|
+
|
|
16
|
+
- update type usage ([6637fe4](https://github.com/thi-ng/umbrella/commit/6637fe4))
|
|
17
|
+
|
|
12
18
|
### [2.1.64](https://github.com/thi-ng/umbrella/tree/@thi.ng/zipper@2.1.64) (2023-11-09)
|
|
13
19
|
|
|
14
20
|
#### ♻️ Refactoring
|
package/README.md
CHANGED
|
@@ -68,10 +68,10 @@ import * as zip from "@thi.ng/zipper";
|
|
|
68
68
|
Browser ESM import:
|
|
69
69
|
|
|
70
70
|
```html
|
|
71
|
-
<script type="module" src="https://
|
|
71
|
+
<script type="module" src="https://esm.run/@thi.ng/zipper"></script>
|
|
72
72
|
```
|
|
73
73
|
|
|
74
|
-
[
|
|
74
|
+
[JSDelivr documentation](https://www.jsdelivr.com/)
|
|
75
75
|
|
|
76
76
|
For Node.js REPL:
|
|
77
77
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/zipper",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.99",
|
|
4
4
|
"description": "Functional tree editing, manipulation & navigation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@thi.ng/api": "^8.
|
|
40
|
-
"@thi.ng/arrays": "^2.9.
|
|
41
|
-
"@thi.ng/checks": "^3.6.
|
|
42
|
-
"@thi.ng/errors": "^2.5.
|
|
39
|
+
"@thi.ng/api": "^8.11.0",
|
|
40
|
+
"@thi.ng/arrays": "^2.9.4",
|
|
41
|
+
"@thi.ng/checks": "^3.6.2",
|
|
42
|
+
"@thi.ng/errors": "^2.5.5"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@microsoft/api-extractor": "^7.43.0",
|
|
@@ -95,5 +95,5 @@
|
|
|
95
95
|
],
|
|
96
96
|
"year": 2015
|
|
97
97
|
},
|
|
98
|
-
"gitHead": "
|
|
98
|
+
"gitHead": "8339d05ecc857e529c7325a9839c0063b89e728d\n"
|
|
99
99
|
}
|
package/zipper.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { FnO } from "@thi.ng/api";
|
|
1
|
+
import type { FnO, Maybe } from "@thi.ng/api";
|
|
2
2
|
import type { Path, ZipperOps } from "./api.js";
|
|
3
3
|
export declare class Location<T> {
|
|
4
4
|
protected readonly _node: T;
|
|
5
5
|
protected readonly _ops: ZipperOps<T>;
|
|
6
|
-
protected readonly _path: Path<T
|
|
6
|
+
protected readonly _path: Maybe<Path<T>>;
|
|
7
7
|
constructor(node: T, ops: ZipperOps<T>, path?: Path<T>);
|
|
8
8
|
get isBranch(): boolean;
|
|
9
9
|
get isFirst(): boolean;
|
|
@@ -14,15 +14,15 @@ export declare class Location<T> {
|
|
|
14
14
|
get path(): T[] | undefined;
|
|
15
15
|
get lefts(): T[] | undefined;
|
|
16
16
|
get rights(): T[] | undefined;
|
|
17
|
-
get left(): Location<T
|
|
18
|
-
get right(): Location<T
|
|
17
|
+
get left(): Maybe<Location<T>>;
|
|
18
|
+
get right(): Maybe<Location<T>>;
|
|
19
19
|
get leftmost(): Location<T>;
|
|
20
20
|
get rightmost(): Location<T>;
|
|
21
|
-
get down(): Location<T
|
|
22
|
-
get up(): Location<T
|
|
21
|
+
get down(): Maybe<Location<T>>;
|
|
22
|
+
get up(): Maybe<Location<T>>;
|
|
23
23
|
get root(): T;
|
|
24
|
-
get prev(): Location<T
|
|
25
|
-
get next(): Location<T
|
|
24
|
+
get prev(): Maybe<Location<T>>;
|
|
25
|
+
get next(): Maybe<Location<T>>;
|
|
26
26
|
replace(x: T): Location<T>;
|
|
27
27
|
update(fn: FnO<T, T>, ...xs: any[]): Location<T>;
|
|
28
28
|
insertLeft(x: T): Location<T>;
|