@thi.ng/zipper
Advanced tools
Comparing version 2.1.98 to 2.1.99
# Change Log | ||
- **Last updated**: 2024-04-11T12:32:44Z | ||
- **Last updated**: 2024-04-20T14:42:45Z | ||
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub) | ||
@@ -12,2 +12,8 @@ | ||
### [2.1.99](https://github.com/thi-ng/umbrella/tree/@thi.ng/zipper@2.1.99) (2024-04-20) | ||
#### ♻️ Refactoring | ||
- update type usage ([6637fe4](https://github.com/thi-ng/umbrella/commit/6637fe4)) | ||
### [2.1.64](https://github.com/thi-ng/umbrella/tree/@thi.ng/zipper@2.1.64) (2023-11-09) | ||
@@ -14,0 +20,0 @@ |
{ | ||
"name": "@thi.ng/zipper", | ||
"version": "2.1.98", | ||
"version": "2.1.99", | ||
"description": "Functional tree editing, manipulation & navigation", | ||
@@ -39,6 +39,6 @@ "type": "module", | ||
"dependencies": { | ||
"@thi.ng/api": "^8.10.1", | ||
"@thi.ng/arrays": "^2.9.3", | ||
"@thi.ng/checks": "^3.6.1", | ||
"@thi.ng/errors": "^2.5.4" | ||
"@thi.ng/api": "^8.11.0", | ||
"@thi.ng/arrays": "^2.9.4", | ||
"@thi.ng/checks": "^3.6.2", | ||
"@thi.ng/errors": "^2.5.5" | ||
}, | ||
@@ -99,3 +99,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "18a0c063a7b33d790e5bc2486c106f45f663ac28\n" | ||
"gitHead": "8339d05ecc857e529c7325a9839c0063b89e728d\n" | ||
} |
@@ -71,6 +71,6 @@ <!-- This file is generated - DO NOT EDIT! --> | ||
```html | ||
<script type="module" src="https://cdn.skypack.dev/@thi.ng/zipper"></script> | ||
<script type="module" src="https://esm.run/@thi.ng/zipper"></script> | ||
``` | ||
[Skypack documentation](https://docs.skypack.dev/) | ||
[JSDelivr documentation](https://www.jsdelivr.com/) | ||
@@ -77,0 +77,0 @@ For Node.js REPL: |
@@ -1,2 +0,2 @@ | ||
import type { FnO } from "@thi.ng/api"; | ||
import type { FnO, Maybe } from "@thi.ng/api"; | ||
import type { Path, ZipperOps } from "./api.js"; | ||
@@ -6,3 +6,3 @@ export declare class Location<T> { | ||
protected readonly _ops: ZipperOps<T>; | ||
protected readonly _path: Path<T> | undefined; | ||
protected readonly _path: Maybe<Path<T>>; | ||
constructor(node: T, ops: ZipperOps<T>, path?: Path<T>); | ||
@@ -18,11 +18,11 @@ get isBranch(): boolean; | ||
get rights(): T[] | undefined; | ||
get left(): Location<T> | undefined; | ||
get right(): Location<T> | undefined; | ||
get left(): Maybe<Location<T>>; | ||
get right(): Maybe<Location<T>>; | ||
get leftmost(): Location<T>; | ||
get rightmost(): Location<T>; | ||
get down(): Location<T> | undefined; | ||
get up(): Location<T> | undefined; | ||
get down(): Maybe<Location<T>>; | ||
get up(): Maybe<Location<T>>; | ||
get root(): T; | ||
get prev(): Location<T> | undefined; | ||
get next(): Location<T> | undefined; | ||
get prev(): Maybe<Location<T>>; | ||
get next(): Maybe<Location<T>>; | ||
replace(x: T): Location<T>; | ||
@@ -29,0 +29,0 @@ update(fn: FnO<T, T>, ...xs: any[]): Location<T>; |
30885
Updated@thi.ng/api@^8.11.0
Updated@thi.ng/arrays@^2.9.4
Updated@thi.ng/checks@^3.6.2
Updated@thi.ng/errors@^2.5.5