@sepiariver/unique-set 2.0.2 → 3.1.0
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/PERF.md +30 -140
- package/README.md +48 -60
- package/dist/index.d.mts +12 -38
- package/dist/index.d.ts +15 -0
- package/dist/index.js +183 -375
- package/dist/index.mjs +132 -154
- package/index.ts +147 -177
- package/package.json +7 -6
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sepiariver/unique-set",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "3.1.0",
|
|
4
|
+
"description": "A Set-like collection that deduplicates by deep value equality using a streaming structural hash and fast-deep-equal.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
7
7
|
"types": "dist/index.d.mts",
|
|
@@ -12,8 +12,9 @@
|
|
|
12
12
|
"scripts": {
|
|
13
13
|
"test": "npm run build && vitest basic.spec.ts",
|
|
14
14
|
"bench": "npm run build && vitest bench.spec.ts bench-nested.spec.ts",
|
|
15
|
+
"bench-large": "NODE_OPTIONS='--max-old-space-size=4096' npm run build && vitest bench-large.spec.ts",
|
|
15
16
|
"lint": "tsc",
|
|
16
|
-
"build": "tsup index.ts --format esm --dts"
|
|
17
|
+
"build": "tsup index.ts --format esm,cjs --dts"
|
|
17
18
|
},
|
|
18
19
|
"repository": {
|
|
19
20
|
"type": "git",
|
|
@@ -22,10 +23,10 @@
|
|
|
22
23
|
"keywords": [
|
|
23
24
|
"Set",
|
|
24
25
|
"unique",
|
|
25
|
-
"bloom",
|
|
26
26
|
"deep",
|
|
27
27
|
"compare",
|
|
28
|
-
"equal"
|
|
28
|
+
"equal",
|
|
29
|
+
"hash"
|
|
29
30
|
],
|
|
30
31
|
"author": "sepiariver",
|
|
31
32
|
"license": "MIT",
|
|
@@ -41,4 +42,4 @@
|
|
|
41
42
|
"typescript": "^5.7.2",
|
|
42
43
|
"vitest": "^2.1.8"
|
|
43
44
|
}
|
|
44
|
-
}
|
|
45
|
+
}
|