tree-processor 0.4.0 → 0.5.1

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.md CHANGED
@@ -12,7 +12,7 @@
12
12
  - 🎯 **类似数组 API** - 提供 map、filter、find 等熟悉的数组方法
13
13
  - ⚙️ **自定义字段名** - 支持自定义 children 和 id 字段名
14
14
  - ✅ **零依赖** - 无外部依赖,开箱即用
15
- - 🧪 **完善的测试覆盖** - 包含 103 个测试用例,覆盖基础功能、边界情况、异常处理、复杂场景等
15
+ - 🧪 **完善的测试覆盖** - 包含 117 个测试用例,覆盖基础功能、边界情况、异常处理、复杂场景、npm 包导入等
16
16
 
17
17
  ## 📦 安装
18
18
 
package/dist/stats.html CHANGED
@@ -4929,7 +4929,7 @@ var drawChart = (function (exports) {
4929
4929
  </script>
4930
4930
  <script>
4931
4931
  /*<!--*/
4932
- const data = {"version":2,"tree":{"name":"root","children":[{"name":"tree-processor.umd.js","children":[{"name":"src/index.ts","uid":"07707b15-1"}]}],"isRoot":true},"nodeParts":{"07707b15-1":{"renderedLength":11403,"gzipLength":1547,"brotliLength":1351,"metaUid":"07707b15-0"}},"nodeMetas":{"07707b15-0":{"id":"\\src\\index.ts","moduleParts":{"tree-processor.umd.js":"07707b15-1"},"imported":[],"importedBy":[],"isEntry":true}},"env":{"rollup":"4.56.0"},"options":{"gzip":true,"brotli":true,"sourcemap":false}};
4932
+ const data = {"version":2,"tree":{"name":"root","children":[{"name":"tree-processor.cjs.js","children":[{"name":"src/index.ts","uid":"08ab48be-1"}]}],"isRoot":true},"nodeParts":{"08ab48be-1":{"renderedLength":11403,"gzipLength":1547,"brotliLength":1351,"metaUid":"08ab48be-0"}},"nodeMetas":{"08ab48be-0":{"id":"\\src\\index.ts","moduleParts":{"tree-processor.cjs.js":"08ab48be-1"},"imported":[],"importedBy":[],"isEntry":true}},"env":{"rollup":"4.56.0"},"options":{"gzip":true,"brotli":true,"sourcemap":false}};
4933
4933
 
4934
4934
  const run = () => {
4935
4935
  const width = window.innerWidth;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tree-processor",
3
- "version": "0.4.0",
3
+ "version": "0.5.1",
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",
@@ -49,7 +49,7 @@
49
49
  "license": "MIT",
50
50
  "repository": {
51
51
  "type": "git",
52
- "url": ""
52
+ "url": "https://github.com/knott11/tree-processor"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@rollup/plugin-commonjs": "^28.0.1",