@vope/utils 1.9.0 → 1.9.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/CHANGELOG.md +89 -0
- package/package.json +82 -81
- package/sub_storage/package.json +1 -0
- /package/dist/{src/async-lock.d.ts → async-lock.d.ts} +0 -0
- /package/dist/{src/calc.d.ts → calc.d.ts} +0 -0
- /package/dist/{src/clamp.d.ts → clamp.d.ts} +0 -0
- /package/dist/{src/classnames.d.ts → classnames.d.ts} +0 -0
- /package/dist/{src/compare → compare}/version.d.ts +0 -0
- /package/dist/{src/compare → compare}/weak-equal.d.ts +0 -0
- /package/dist/{src/convert → convert}/json.d.ts +0 -0
- /package/dist/{src/convert → convert}/object.d.ts +0 -0
- /package/dist/{src/convert → convert}/strings.d.ts +0 -0
- /package/dist/{src/cron.d.ts → cron.d.ts} +0 -0
- /package/dist/{src/desens.d.ts → desens.d.ts} +0 -0
- /package/dist/{src/dic.d.ts → dic.d.ts} +0 -0
- /package/dist/{src/disable-enumerable.d.ts → disable-enumerable.d.ts} +0 -0
- /package/dist/{src/each.d.ts → each.d.ts} +0 -0
- /package/dist/{src/encoding.d.ts → encoding.d.ts} +0 -0
- /package/dist/{src/flat-tree.d.ts → flat-tree.d.ts} +0 -0
- /package/dist/{src/index-sort.d.ts → index-sort.d.ts} +0 -0
- /package/dist/{src/index.d.ts → index.d.ts} +0 -0
- /package/dist/{src/input-regex.d.ts → input-regex.d.ts} +0 -0
- /package/dist/{src/is → is}/class.d.ts +0 -0
- /package/dist/{src/is → is}/empty.d.ts +0 -0
- /package/dist/{src/is → is}/key.d.ts +0 -0
- /package/dist/{src/is → is}/null.d.ts +0 -0
- /package/dist/{src/load → load}/image.d.ts +0 -0
- /package/dist/{src/memory → memory}/basic.d.ts +0 -0
- /package/dist/{src/memory → memory}/list.d.ts +0 -0
- /package/dist/{src/memory → memory}/power.d.ts +0 -0
- /package/dist/{src/memory → memory}/simple.d.ts +0 -0
- /package/dist/{src/neo4j-anchors.d.ts → neo4j-anchors.d.ts} +0 -0
- /package/dist/{src/neo4j.d.ts → neo4j.d.ts} +0 -0
- /package/dist/{src/once.d.ts → once.d.ts} +0 -0
- /package/dist/{src/parse → parse}/num.d.ts +0 -0
- /package/dist/{src/power → power}/decon.d.ts +0 -0
- /package/dist/{src/rotate → rotate}/angle.d.ts +0 -0
- /package/dist/{src/rotate → rotate}/rad.d.ts +0 -0
- /package/dist/{src/serialize → serialize}/url-params.d.ts +0 -0
- /package/dist/{src/storage → storage}/offline.d.ts +0 -0
- /package/dist/{src/style → style}/css.d.ts +0 -0
- /package/dist/{src/subscriber.d.ts → subscriber.d.ts} +0 -0
- /package/dist/{src/table → table}/flex.d.ts +0 -0
- /package/dist/{src/union.d.ts → union.d.ts} +0 -0
- /package/dist/{src/url → url}/join.d.ts +0 -0
- /package/dist/{src/url → url}/params.d.ts +0 -0
- /package/dist/{src/wait.d.ts → wait.d.ts} +0 -0
- /package/sub_storage/{src/storage/offline.d.ts → offline.d.ts} +0 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [1.9.1] - 2026-05-11
|
|
9
|
+
### Fixed
|
|
10
|
+
- 修复升级依赖 typescript 引起的 .d.ts 文件生成路径错误问题
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
- 发布 [CHANGELOG.md](./CHANGELOG.md) 文件
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## [1.9.0] - 2026-05-11
|
|
17
|
+
### Changed
|
|
18
|
+
- 升级依赖
|
|
19
|
+
|
|
20
|
+
## [1.8.0] - 2026-05-11
|
|
21
|
+
### Changed
|
|
22
|
+
- 优化 [forBfsEach](src/each.ts) ,减少迭代次数
|
|
23
|
+
- 重构 [inputRegex](src/input-regex.ts) ,优先使用浏览器自带的 RegExp.escape 方法,同时对 polyfill 进行强化
|
|
24
|
+
- 升级依赖 typescript 到 6.0.3
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## [1.7.6] - 2026-04-08
|
|
28
|
+
|
|
29
|
+
### Added
|
|
30
|
+
- 添加 [forDfsStackEach](src/each.ts) 方法,支撑在树结构中类似于统计子节点的数据量场景
|
|
31
|
+
|
|
32
|
+
### Changed
|
|
33
|
+
- [OfflineStorage](src/storage//offline.ts) 添加 @ts-ignore 忽略 ts 错误信息
|
|
34
|
+
- 将 shims.env.d.ts 重命名为 shime.env.d.ts
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
## [1.7.5] - 2026-04-03
|
|
38
|
+
|
|
39
|
+
### Added
|
|
40
|
+
- [`FlatTree.getSub`](src/flat-tree.ts) 方法支持设置参数value=null时获取所有顶级节点
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
## [1.7.4] - 2026-04-01
|
|
44
|
+
|
|
45
|
+
### Added
|
|
46
|
+
- 添加 [`FlatTree.getSub`](src/flat-tree.ts) 方法,支持获取子节点及回调处理
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
## [1.7.3] - 2026-03-25
|
|
50
|
+
|
|
51
|
+
### Changed
|
|
52
|
+
- 修改 README.md
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
## [1.7.2] - 2026-03-24
|
|
56
|
+
|
|
57
|
+
### Added
|
|
58
|
+
- 添加 [forBfsEach](src/each.ts) 和 [forDfsEach](src/each.ts) 函数及其测试
|
|
59
|
+
- 添加 [FlatTree](src/flat-tree.ts) 类及其测试,支持树结构的扁平化存储和遍历(包括 BFS 和 DFS 模式)
|
|
60
|
+
- 添加 [Union](src/union.ts) 命名空间导出,现在可通过 Union.Status 推导出 Union 实例的联合状态
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
## [1.7.1] - 2026-01-06
|
|
64
|
+
|
|
65
|
+
### Added
|
|
66
|
+
- [MemorySimple](src/memory/simple.ts) 添加 emit 配置参数
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
## [1.7.0] - 2025-11-26
|
|
70
|
+
|
|
71
|
+
### Added
|
|
72
|
+
- 添加 [asyncLock](src/async-lock.ts) 功能
|
|
73
|
+
- 添加 [calc.getExpMN](src/calc.ts) 计算函数
|
|
74
|
+
- 添加 [calc.multiply](src/calc.ts) 计算函数
|
|
75
|
+
- 添加 [calc.divide](src/calc.ts) 计算函数
|
|
76
|
+
- 添加 [disableEnumerable](src/disable-enumerable.ts) 功能
|
|
77
|
+
- 添加 [indexSort](src/index-sort.ts) 功能
|
|
78
|
+
- 添加 版本变更日志
|
|
79
|
+
|
|
80
|
+
### Fixed
|
|
81
|
+
- 修复 [Subscriber.$off](src/subscriber.ts) 实例方法调用且之前未 $once 时报错的问题
|
|
82
|
+
|
|
83
|
+
### Changed
|
|
84
|
+
- 优化 [calc.formatter](src/calc.ts) 函数
|
|
85
|
+
- 优化 [calc.clamp](src/calc.ts) 函数
|
|
86
|
+
- [MemoryBasic](src/memory/basic.ts) 添加 emit 配置项,原 list 和 memorys 属性改成 [LIST_SYMBOL] 和 [MEMORYS_SYMBOL]
|
|
87
|
+
- namespace [Memory](src/memory/basic.ts) 移到 memory/basic.ts 内
|
|
88
|
+
- 使用 AI 优化测试用例
|
|
89
|
+
- 更新 csstype 依赖到 3.2.3
|
package/package.json
CHANGED
|
@@ -1,81 +1,82 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@vope/utils",
|
|
3
|
-
"version": "1.9.
|
|
4
|
-
"description": "",
|
|
5
|
-
"publishConfig": {
|
|
6
|
-
"access": "public",
|
|
7
|
-
"registry": "https://registry.npmjs.org/"
|
|
8
|
-
},
|
|
9
|
-
"types": "./dist/index.d.ts",
|
|
10
|
-
"typings": "./dist/index.d.ts",
|
|
11
|
-
"module": "./dist/index.js",
|
|
12
|
-
"main": "./dist/index.js",
|
|
13
|
-
"scripts": {
|
|
14
|
-
"start": "esbuild ./start.ts --outfile=start.cjs --format=cjs & node ./start.cjs",
|
|
15
|
-
"poststart": "esbuild ./pre.ts --outfile=pre.cjs --format=cjs & node ./pre.cjs",
|
|
16
|
-
"build": "npm run start & node ./build.cjs",
|
|
17
|
-
"premocha": "node ./build.cjs --type=test",
|
|
18
|
-
"mocha": "mocha __tests/**/*.js",
|
|
19
|
-
"test": "npm run mocha",
|
|
20
|
-
"prepublishOnly": "npm run build & npm run test",
|
|
21
|
-
"debug": "npm run start & npm run premocha",
|
|
22
|
-
"clean": "rimraf start.cjs pre.cjs build.cjs src/index.ts dist/ __tests/ __examples/ sub_storage/"
|
|
23
|
-
},
|
|
24
|
-
"exports": {
|
|
25
|
-
".": {
|
|
26
|
-
"types": "./dist/index.d.ts",
|
|
27
|
-
"import": "./dist/index.js",
|
|
28
|
-
"require": "./dist/index.cjs.js"
|
|
29
|
-
},
|
|
30
|
-
"./storage": {
|
|
31
|
-
"types": "./sub_storage/offline.d.ts",
|
|
32
|
-
"import": "./sub_storage/offline.js",
|
|
33
|
-
"require": "./sub_storage/offline.cjs.js"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
"author": "vope",
|
|
37
|
-
"license": "ISC",
|
|
38
|
-
"files": [
|
|
39
|
-
"dist",
|
|
40
|
-
"sub_storage"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"@babel/
|
|
45
|
-
"@babel/
|
|
46
|
-
"@
|
|
47
|
-
"@rollup/plugin-
|
|
48
|
-
"@rollup/plugin-
|
|
49
|
-
"@rollup/plugin-
|
|
50
|
-
"@rollup/plugin-
|
|
51
|
-
"@
|
|
52
|
-
"@types/
|
|
53
|
-
"@types/
|
|
54
|
-
"@types/
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
"@
|
|
69
|
-
"@
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
"
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@vope/utils",
|
|
3
|
+
"version": "1.9.1",
|
|
4
|
+
"description": "",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public",
|
|
7
|
+
"registry": "https://registry.npmjs.org/"
|
|
8
|
+
},
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"typings": "./dist/index.d.ts",
|
|
11
|
+
"module": "./dist/index.js",
|
|
12
|
+
"main": "./dist/index.js",
|
|
13
|
+
"scripts": {
|
|
14
|
+
"start": "esbuild ./start.ts --outfile=start.cjs --format=cjs & node ./start.cjs",
|
|
15
|
+
"poststart": "esbuild ./pre.ts --outfile=pre.cjs --format=cjs & node ./pre.cjs",
|
|
16
|
+
"build": "npm run start & node ./build.cjs",
|
|
17
|
+
"premocha": "node ./build.cjs --type=test",
|
|
18
|
+
"mocha": "mocha __tests/**/*.js",
|
|
19
|
+
"test": "npm run mocha",
|
|
20
|
+
"prepublishOnly": "npm run build & npm run test",
|
|
21
|
+
"debug": "npm run start & npm run premocha",
|
|
22
|
+
"clean": "rimraf start.cjs pre.cjs build.cjs src/index.ts dist/ __tests/ __examples/ sub_storage/"
|
|
23
|
+
},
|
|
24
|
+
"exports": {
|
|
25
|
+
".": {
|
|
26
|
+
"types": "./dist/index.d.ts",
|
|
27
|
+
"import": "./dist/index.js",
|
|
28
|
+
"require": "./dist/index.cjs.js"
|
|
29
|
+
},
|
|
30
|
+
"./storage": {
|
|
31
|
+
"types": "./sub_storage/offline.d.ts",
|
|
32
|
+
"import": "./sub_storage/offline.js",
|
|
33
|
+
"require": "./sub_storage/offline.cjs.js"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"author": "vope",
|
|
37
|
+
"license": "ISC",
|
|
38
|
+
"files": [
|
|
39
|
+
"dist",
|
|
40
|
+
"sub_storage",
|
|
41
|
+
"CHANGELOG.md"
|
|
42
|
+
],
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@babel/parser": "^7.29.3",
|
|
45
|
+
"@babel/traverse": "^7.29.0",
|
|
46
|
+
"@babel/types": "^7.29.0",
|
|
47
|
+
"@rollup/plugin-alias": "^5.1.1",
|
|
48
|
+
"@rollup/plugin-commonjs": "^29.0.2",
|
|
49
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
50
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
51
|
+
"@rollup/plugin-typescript": "^12.3.0",
|
|
52
|
+
"@types/babel__traverse": "^7.28.0",
|
|
53
|
+
"@types/mocha": "^10.0.10",
|
|
54
|
+
"@types/node": "^24.12.3",
|
|
55
|
+
"@types/sm-crypto": "^0.3.4",
|
|
56
|
+
"esbuild": "^0.28.0",
|
|
57
|
+
"glob": "^13.0.6",
|
|
58
|
+
"iconv-lite": "^0.7.2",
|
|
59
|
+
"mocha": "^11.7.5",
|
|
60
|
+
"puppeteer": "^24.43.0",
|
|
61
|
+
"rimraf": "^6.1.3",
|
|
62
|
+
"rollup": "^4.60.3",
|
|
63
|
+
"tslib": "^2.8.1",
|
|
64
|
+
"typescript": "^6.0.3",
|
|
65
|
+
"uuid": "^14.0.0"
|
|
66
|
+
},
|
|
67
|
+
"dependencies": {
|
|
68
|
+
"@type-challenges/utils": "^0.1.1",
|
|
69
|
+
"@types/lodash-es": "^4.17.12",
|
|
70
|
+
"@vope/types": "^1.3.0",
|
|
71
|
+
"csstype": "^3.2.3",
|
|
72
|
+
"localforage": "^1.10.0",
|
|
73
|
+
"lodash-es": "^4.18.1",
|
|
74
|
+
"sm-crypto": "^0.4.0"
|
|
75
|
+
},
|
|
76
|
+
"pnpm": {
|
|
77
|
+
"onlyBuiltDependencies": [
|
|
78
|
+
"esbuild",
|
|
79
|
+
"puppeteer"
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
}
|
package/sub_storage/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|