tree-processor 0.8.2 → 0.9.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/README.en.md +293 -12
- package/README.md +293 -14
- package/dist/.tsbuildinfo +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/stats.html +1 -1
- package/dist/tree-processor.cjs.js +130 -95
- package/dist/tree-processor.esm.js +72 -37
- package/dist/tree-processor.umd.js +70 -35
- package/package.json +11 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tree-processor",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "A lightweight TypeScript library for processing tree-structured data with comprehensive methods (map, filter, find, push, pop, remove, getParent, includes, etc.), supporting tree-shaking and custom field names",
|
|
5
5
|
"main": "dist/tree-processor.cjs.js",
|
|
6
6
|
"module": "dist/tree-processor.esm.js",
|
|
@@ -20,13 +20,18 @@
|
|
|
20
20
|
"README.md"
|
|
21
21
|
],
|
|
22
22
|
"scripts": {
|
|
23
|
-
"build": "rollup -c",
|
|
24
|
-
"test": "vitest",
|
|
23
|
+
"build": "rimraf dist && rollup -c",
|
|
24
|
+
"test": "npm run build && vitest run src/index-all-dist.test.ts",
|
|
25
|
+
"test:src": "vitest run src/index.test.ts",
|
|
26
|
+
"test:dist": "npm run build && vitest run src/index-dist-only.test.ts",
|
|
25
27
|
"test:coverage": "vitest --coverage",
|
|
28
|
+
"update:badge": "node scripts/update-coverage-badge.js",
|
|
29
|
+
"update:downloads": "node scripts/update-downloads-badge.js",
|
|
26
30
|
"size:dist": "node scripts/check-size.js",
|
|
27
31
|
"size:src": "node scripts/check-src-size.js",
|
|
28
32
|
"size:all": "npm run size:src && npm run size:dist",
|
|
29
|
-
"prepublishOnly": "npm run build"
|
|
33
|
+
"prepublishOnly": "npm run build",
|
|
34
|
+
"ci": "npm test -- --run && npm run test:coverage && npm run update:badge && npm run update:downloads"
|
|
30
35
|
},
|
|
31
36
|
"keywords": [
|
|
32
37
|
"tree",
|
|
@@ -61,7 +66,9 @@
|
|
|
61
66
|
"@rollup/plugin-typescript": "^12.1.0",
|
|
62
67
|
"@types/node": "^22.10.2",
|
|
63
68
|
"@vitest/coverage-v8": "^4.0.18",
|
|
69
|
+
"rimraf": "^6.1.2",
|
|
64
70
|
"rollup": "^4.24.0",
|
|
71
|
+
"rollup-plugin-node-externals": "^8.1.2",
|
|
65
72
|
"rollup-plugin-visualizer": "^6.0.5",
|
|
66
73
|
"terser": "^5.36.0",
|
|
67
74
|
"tslib": "^2.8.1",
|