serializable-bptree 4.0.0 → 4.0.2
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.
|
@@ -14,7 +14,6 @@ export declare abstract class SerializeStrategy<K, V> {
|
|
|
14
14
|
* The rule for generating node IDs is set.
|
|
15
15
|
* When a new node is created within the tree, the value returned by this method becomes the node's ID.
|
|
16
16
|
*
|
|
17
|
-
* **WARNING!** The return value should never be `null`.
|
|
18
17
|
* @param isLeaf This is a flag that indicates whether the node is a leaf node or not.
|
|
19
18
|
*/
|
|
20
19
|
abstract id(isLeaf: boolean): string | Promise<string>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class InvertedWeakMap<K extends string | number | symbol, V extends WeakKey> {
|
|
2
|
+
private readonly _map;
|
|
3
|
+
private readonly _registry;
|
|
4
|
+
constructor();
|
|
5
|
+
clear(): void;
|
|
6
|
+
delete(key: K): boolean;
|
|
7
|
+
get(key: K): V | undefined;
|
|
8
|
+
has(key: K): boolean;
|
|
9
|
+
set(key: K, value: V): this;
|
|
10
|
+
get size(): number;
|
|
11
|
+
keys(): IterableIterator<K>;
|
|
12
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "serializable-bptree",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"description": "Store the B+tree flexibly, not only in-memory.",
|
|
5
5
|
"main": "dist/cjs/index.cjs",
|
|
6
6
|
"module": "dist/esm/index.mjs",
|
|
@@ -8,8 +8,7 @@
|
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
10
|
"import": "./dist/esm/index.mjs",
|
|
11
|
-
"require": "./dist/cjs/index.cjs"
|
|
12
|
-
"types": "./dist/typings/index.d.ts"
|
|
11
|
+
"require": "./dist/cjs/index.cjs"
|
|
13
12
|
}
|
|
14
13
|
},
|
|
15
14
|
"files": [
|
|
@@ -36,13 +35,10 @@
|
|
|
36
35
|
},
|
|
37
36
|
"license": "MIT",
|
|
38
37
|
"devDependencies": {
|
|
39
|
-
"@types/jest": "^29.5.
|
|
40
|
-
"esbuild": "^0.
|
|
38
|
+
"@types/jest": "^29.5.13",
|
|
39
|
+
"esbuild": "^0.23.1",
|
|
41
40
|
"jest": "^29.7.0",
|
|
42
|
-
"ts-jest": "^29.
|
|
43
|
-
"typescript": "^5.
|
|
44
|
-
},
|
|
45
|
-
"dependencies": {
|
|
46
|
-
"cachebranch": "^1.2.0"
|
|
41
|
+
"ts-jest": "^29.2.5",
|
|
42
|
+
"typescript": "^5.6.2"
|
|
47
43
|
}
|
|
48
44
|
}
|