koatty_cacheable 2.0.1 → 2.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.
- package/.turbo/turbo-build.log +80 -0
- package/CHANGELOG.md +19 -12
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/package.json +15 -19
- package/package.json +25 -30
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
> koatty_cacheable@2.0.2 build /Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-cacheable
|
|
4
|
+
> npm run build:js && npm run build:dts && npm run build:doc && npm run build:cp
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
> koatty_cacheable@2.0.2 build:js
|
|
8
|
+
> npx rollup --bundleConfigAsCjs -c .rollup.config.js
|
|
9
|
+
|
|
10
|
+
[1G[0K[1G[0K[36m
|
|
11
|
+
[1m./src/index.ts[22m → [1m./dist/index.js, ./dist/index.mjs[22m...[39m
|
|
12
|
+
[32mcreated [1m./dist/index.js, ./dist/index.mjs[22m in [1m781ms[22m[39m
|
|
13
|
+
[1G[0K⠙[1G[0K[1G[0K⠙[1G[0K
|
|
14
|
+
> koatty_cacheable@2.0.2 build:dts
|
|
15
|
+
> npx tsc && npx api-extractor run --local --verbose
|
|
16
|
+
|
|
17
|
+
[1G[0K[1G[0K[1G[0K⠙[1G[0K[1G[0K
|
|
18
|
+
[1mapi-extractor 7.55.2 [36m - https://api-extractor.com/[39m
|
|
19
|
+
[22m
|
|
20
|
+
Using configuration from ./api-extractor.json
|
|
21
|
+
Analysis will use the bundled TypeScript version 5.8.2
|
|
22
|
+
*** The target project appears to use TypeScript 5.9.3 which is newer than the bundled compiler engine; consider upgrading API Extractor.
|
|
23
|
+
[36mWriting: /Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-cacheable/temp/koatty_cacheable.api.json[39m
|
|
24
|
+
[36mWriting package typings: /Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-cacheable/dist/index.d.ts[39m
|
|
25
|
+
[33mWarning: src/cache.ts:16:4 - (tsdoc-characters-after-block-tag) The token "@description" looks like a TSDoc tag but contains an invalid character ":"; if it is not a tag, use a backslash to escape the "@"[39m
|
|
26
|
+
[33mWarning: src/cache.ts:17:14 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag[39m
|
|
27
|
+
[33mWarning: src/cache.ts:17:12 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"[39m
|
|
28
|
+
[33mWarning: src/cache.ts:17:4 - (tsdoc-undefined-tag) The TSDoc tag "@return" is not defined in this configuration[39m
|
|
29
|
+
[33mWarning: src/cache.ts:27:4 - (tsdoc-characters-after-block-tag) The token "@description" looks like a TSDoc tag but contains an invalid character ":"; if it is not a tag, use a backslash to escape the "@"[39m
|
|
30
|
+
[33mWarning: src/cache.ts:28:14 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag[39m
|
|
31
|
+
[33mWarning: src/cache.ts:28:12 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"[39m
|
|
32
|
+
[33mWarning: src/cache.ts:28:4 - (tsdoc-undefined-tag) The TSDoc tag "@return" is not defined in this configuration[39m
|
|
33
|
+
[33mWarning: src/cache.ts:46:4 - (tsdoc-undefined-tag) The TSDoc tag "@export" is not defined in this configuration[39m
|
|
34
|
+
[33mWarning: src/cache.ts:47:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'[39m
|
|
35
|
+
[33mWarning: src/cache.ts:48:26 - (tsdoc-param-tag-with-invalid-optional-name) The @param should not include a JSDoc-style optional name; it must not be enclosed in '[ ]' brackets.[39m
|
|
36
|
+
[33mWarning: src/cache.ts:48:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'[39m
|
|
37
|
+
[33mWarning: src/cache.ts:50:4 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"[39m
|
|
38
|
+
[33mWarning: src/cache.ts:53:4 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag[39m
|
|
39
|
+
[33mWarning: src/cache.ts:55:29 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag[39m
|
|
40
|
+
[33mWarning: src/cache.ts:55:13 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"[39m
|
|
41
|
+
[33mWarning: src/cache.ts:133:4 - (tsdoc-undefined-tag) The TSDoc tag "@export" is not defined in this configuration[39m
|
|
42
|
+
[33mWarning: src/cache.ts:134:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'[39m
|
|
43
|
+
[33mWarning: src/cache.ts:135:27 - (tsdoc-param-tag-with-invalid-optional-name) The @param should not include a JSDoc-style optional name; it must not be enclosed in '[ ]' brackets.[39m
|
|
44
|
+
[33mWarning: src/cache.ts:135:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'[39m
|
|
45
|
+
[33mWarning: src/cache.ts:137:4 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"[39m
|
|
46
|
+
[33mWarning: src/cache.ts:140:4 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag[39m
|
|
47
|
+
[33mWarning: src/store.ts:34:4 - (tsdoc-undefined-tag) The TSDoc tag "@export" is not defined in this configuration[39m
|
|
48
|
+
[33mWarning: src/store.ts:35:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'[39m
|
|
49
|
+
[33mWarning: src/store.ts:36:15 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag[39m
|
|
50
|
+
[33mWarning: src/store.ts:36:29 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag[39m
|
|
51
|
+
[33mWarning: src/store.ts:36:13 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"[39m
|
|
52
|
+
[33mWarning: src/store.ts:36:18 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"[39m
|
|
53
|
+
|
|
54
|
+
API Extractor completed successfully
|
|
55
|
+
[1G[0K⠙[1G[0K[1G[0K⠙[1G[0K
|
|
56
|
+
> koatty_cacheable@2.0.2 build:doc
|
|
57
|
+
> npx api-documenter markdown --input temp --output docs/api
|
|
58
|
+
|
|
59
|
+
[1G[0K[1G[0K
|
|
60
|
+
[1mapi-documenter 7.28.2 [36m - https://api-extractor.com/[39m
|
|
61
|
+
[22m
|
|
62
|
+
Reading koatty_cacheable.api.json
|
|
63
|
+
|
|
64
|
+
Deleting old output from docs/api
|
|
65
|
+
Writing koatty_cacheable package
|
|
66
|
+
Unsupported block tag: @export
|
|
67
|
+
Unsupported block tag: @return
|
|
68
|
+
Unsupported block tag: @export
|
|
69
|
+
Unsupported block tag: @return
|
|
70
|
+
Unsupported block tag: @export
|
|
71
|
+
Unsupported block tag: @export
|
|
72
|
+
Unsupported block tag: @export
|
|
73
|
+
Unsupported block tag: @export
|
|
74
|
+
Unsupported block tag: @return
|
|
75
|
+
Unsupported block tag: @return
|
|
76
|
+
[1G[0K⠙[1G[0K[1G[0K⠙[1G[0K
|
|
77
|
+
> koatty_cacheable@2.0.2 build:cp
|
|
78
|
+
> node scripts/postBuild && copyfiles package.json LICENSE README.md dist/
|
|
79
|
+
|
|
80
|
+
[1G[0K[1G[0K⠙[1G[0K
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- koatty_lib@1.4.2
|
|
9
|
+
- koatty_container@1.17.1
|
|
10
|
+
- koatty_core@2.0.11
|
|
11
|
+
- koatty_logger@2.3.1
|
|
12
|
+
- koatty_store@1.9.1
|
|
13
|
+
|
|
3
14
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
15
|
|
|
5
16
|
### [2.0.1](https://github.com/thinkkoa/koatty_cacheable/compare/v1.6.1...v2.0.1) (2025-11-02)
|
|
@@ -12,37 +23,33 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
12
23
|
|
|
13
24
|
## [1.5.0](https://github.com/thinkkoa/koatty_cacheable/compare/v1.4.3...v1.5.0) (2024-04-01)
|
|
14
25
|
|
|
15
|
-
|
|
16
26
|
### Features
|
|
17
27
|
|
|
18
|
-
|
|
28
|
+
- delayedDoubleDeletion ([532f735](https://github.com/thinkkoa/koatty_cacheable/commit/532f735818fc66fa144023cd24282efe350833ba))
|
|
19
29
|
|
|
20
30
|
### [1.4.3](https://github.com/thinkkoa/koatty_cacheable/compare/v1.4.2...v1.4.3) (2024-01-17)
|
|
21
31
|
|
|
22
|
-
|
|
23
32
|
### Bug Fixes
|
|
24
33
|
|
|
25
|
-
|
|
34
|
+
- 缓存 key 拼装 ([5d0b924](https://github.com/thinkkoa/koatty_cacheable/commit/5d0b9248064d353046bd7287d3a3ee5229e88c23))
|
|
26
35
|
|
|
27
36
|
### [1.4.2](https://github.com/thinkkoa/koatty_cacheable/compare/v1.4.1...v1.4.2) (2023-12-20)
|
|
28
37
|
|
|
29
38
|
### [1.4.1](https://github.com/thinkkoa/koatty_cacheable/compare/v1.4.0...v1.4.1) (2023-08-04)
|
|
30
39
|
|
|
31
|
-
|
|
32
40
|
### Bug Fixes
|
|
33
41
|
|
|
34
|
-
|
|
35
|
-
|
|
42
|
+
- default value ([38f2e57](https://github.com/thinkkoa/koatty_cacheable/commit/38f2e57d52d13482907ca9eac6006d1e841bdadd))
|
|
43
|
+
- 初始化缓存改为 appReady 执行 ([7e9b1ab](https://github.com/thinkkoa/koatty_cacheable/commit/7e9b1abe6acdbdf1b6ad34efa053cbaca1e7b6d7))
|
|
36
44
|
|
|
37
45
|
## [1.4.0](https://github.com/thinkkoa/koatty_cacheable/compare/v1.3.8...v1.4.0) (2023-02-18)
|
|
38
46
|
|
|
39
|
-
|
|
40
47
|
### Bug Fixes
|
|
41
48
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
49
|
+
- cache subkey ([408e3c7](https://github.com/thinkkoa/koatty_cacheable/commit/408e3c709a4dfff6e7d224a22d26e58854a805ac))
|
|
50
|
+
- 启动时链接 ([e7ec709](https://github.com/thinkkoa/koatty_cacheable/commit/e7ec7094be106e4e48783c9b214b8369e8a18297))
|
|
51
|
+
- 支持引入变量做缓存 key ([4ce81aa](https://github.com/thinkkoa/koatty_cacheable/commit/4ce81aaaf9610f4a62ddf43e3c4389dd003c2db8))
|
|
52
|
+
- 获取单例 ([0759972](https://github.com/thinkkoa/koatty_cacheable/commit/0759972adf7e86312f60f0bf77604bddf06ce0de))
|
|
46
53
|
|
|
47
54
|
### [1.3.8](https://github.com/thinkkoa/koatty_cacheable/compare/v1.3.6...v1.3.8) (2023-01-13)
|
|
48
55
|
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED
package/dist/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "koatty_cacheable",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "Cacheable for koatty.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "npm run build:js && npm run build:dts && npm run build:doc && npm run build:cp",
|
|
7
|
-
"build:cp": "node scripts/postBuild &&
|
|
7
|
+
"build:cp": "node scripts/postBuild && copyfiles package.json LICENSE README.md dist/",
|
|
8
8
|
"build:js": "npx rollup --bundleConfigAsCjs -c .rollup.config.js",
|
|
9
9
|
"build:doc": "npx api-documenter markdown --input temp --output docs/api",
|
|
10
10
|
"build:dts": "npx tsc && npx api-extractor run --local --verbose",
|
|
@@ -12,13 +12,8 @@
|
|
|
12
12
|
"lock": "npm i --package-lock-only && npm audit fix && npx pnpm i",
|
|
13
13
|
"prepublishOnly": "npm test && npm run build && git push --follow-tags origin",
|
|
14
14
|
"prerelease": "npm test && npm run build",
|
|
15
|
-
"release": "standard-version",
|
|
16
|
-
"release:pre": "npm run release -- --prerelease",
|
|
17
|
-
"release:major": "npm run release -- --release-as major",
|
|
18
|
-
"release:minor": "npm run release -- --release-as minor",
|
|
19
15
|
"test": "npm run eslint && jest --passWithNoTests",
|
|
20
|
-
"test:cov": "jest --collectCoverage --detectOpenHandles"
|
|
21
|
-
"version": "conventional-changelog -p angular -i CHANGELOG.md -s"
|
|
16
|
+
"test:cov": "jest --collectCoverage --detectOpenHandles"
|
|
22
17
|
},
|
|
23
18
|
"main": "./dist/index.js",
|
|
24
19
|
"exports": {
|
|
@@ -70,6 +65,7 @@
|
|
|
70
65
|
"@typescript-eslint/eslint-plugin": "^8.x.x",
|
|
71
66
|
"@typescript-eslint/parser": "^8.x.x",
|
|
72
67
|
"conventional-changelog-cli": "^5.x.x",
|
|
68
|
+
"copyfiles": "^2.x.x",
|
|
73
69
|
"eslint": "^8.x.x",
|
|
74
70
|
"eslint-plugin-jest": "^28.x.x",
|
|
75
71
|
"husky": "^4.x.x",
|
|
@@ -86,17 +82,17 @@
|
|
|
86
82
|
"typescript": "^5.x.x"
|
|
87
83
|
},
|
|
88
84
|
"dependencies": {
|
|
89
|
-
"koatty_container": "
|
|
90
|
-
"koatty_core": "
|
|
91
|
-
"koatty_lib": "
|
|
92
|
-
"koatty_logger": "
|
|
93
|
-
"koatty_store": "
|
|
85
|
+
"koatty_container": "workspace:*",
|
|
86
|
+
"koatty_core": "workspace:*",
|
|
87
|
+
"koatty_lib": "workspace:*",
|
|
88
|
+
"koatty_logger": "workspace:*",
|
|
89
|
+
"koatty_store": "workspace:*"
|
|
94
90
|
},
|
|
95
91
|
"peerDependencies": {
|
|
96
|
-
"koatty_container": "
|
|
97
|
-
"koatty_core": "
|
|
98
|
-
"koatty_lib": "
|
|
99
|
-
"koatty_logger": "
|
|
100
|
-
"koatty_store": "
|
|
92
|
+
"koatty_container": "workspace:*",
|
|
93
|
+
"koatty_core": "workspace:*",
|
|
94
|
+
"koatty_lib": "workspace:*",
|
|
95
|
+
"koatty_logger": "workspace:*",
|
|
96
|
+
"koatty_store": "workspace:*"
|
|
101
97
|
}
|
|
102
|
-
}
|
|
98
|
+
}
|
package/package.json
CHANGED
|
@@ -1,25 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "koatty_cacheable",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "Cacheable for koatty.",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"build": "npm run build:js && npm run build:dts && npm run build:doc && npm run build:cp",
|
|
7
|
-
"build:cp": "node scripts/postBuild && npx copyfiles package.json LICENSE README.md dist/",
|
|
8
|
-
"build:js": "npx rollup --bundleConfigAsCjs -c .rollup.config.js",
|
|
9
|
-
"build:doc": "npx api-documenter markdown --input temp --output docs/api",
|
|
10
|
-
"build:dts": "npx tsc && npx api-extractor run --local --verbose",
|
|
11
|
-
"eslint": "eslint --ext .ts,.js ./",
|
|
12
|
-
"lock": "npm i --package-lock-only && npm audit fix && npx pnpm i",
|
|
13
|
-
"prepublishOnly": "npm test && npm run build && git push --follow-tags origin",
|
|
14
|
-
"prerelease": "npm test && npm run build",
|
|
15
|
-
"release": "standard-version",
|
|
16
|
-
"release:pre": "npm run release -- --prerelease",
|
|
17
|
-
"release:major": "npm run release -- --release-as major",
|
|
18
|
-
"release:minor": "npm run release -- --release-as minor",
|
|
19
|
-
"test": "npm run eslint && jest --passWithNoTests",
|
|
20
|
-
"test:cov": "jest --collectCoverage --detectOpenHandles",
|
|
21
|
-
"version": "conventional-changelog -p angular -i CHANGELOG.md -s"
|
|
22
|
-
},
|
|
23
5
|
"main": "./dist/index.js",
|
|
24
6
|
"exports": {
|
|
25
7
|
"require": "./dist/index.js",
|
|
@@ -70,6 +52,7 @@
|
|
|
70
52
|
"@typescript-eslint/eslint-plugin": "^8.x.x",
|
|
71
53
|
"@typescript-eslint/parser": "^8.x.x",
|
|
72
54
|
"conventional-changelog-cli": "^5.x.x",
|
|
55
|
+
"copyfiles": "^2.x.x",
|
|
73
56
|
"eslint": "^8.x.x",
|
|
74
57
|
"eslint-plugin-jest": "^28.x.x",
|
|
75
58
|
"husky": "^4.x.x",
|
|
@@ -86,17 +69,29 @@
|
|
|
86
69
|
"typescript": "^5.x.x"
|
|
87
70
|
},
|
|
88
71
|
"dependencies": {
|
|
89
|
-
"koatty_container": "
|
|
90
|
-
"koatty_core": "2.
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"koatty_store": "
|
|
72
|
+
"koatty_container": "1.18.0",
|
|
73
|
+
"koatty_core": "2.0.8",
|
|
74
|
+
"koatty_logger": "2.8.1",
|
|
75
|
+
"koatty_lib": "1.4.3",
|
|
76
|
+
"koatty_store": "1.9.0"
|
|
94
77
|
},
|
|
95
78
|
"peerDependencies": {
|
|
96
|
-
"koatty_container": "
|
|
97
|
-
"koatty_core": "2.
|
|
98
|
-
"koatty_lib": "
|
|
99
|
-
"koatty_logger": "
|
|
100
|
-
"koatty_store": "
|
|
79
|
+
"koatty_container": "1.18.0",
|
|
80
|
+
"koatty_core": "2.0.8",
|
|
81
|
+
"koatty_lib": "1.4.3",
|
|
82
|
+
"koatty_logger": "2.8.1",
|
|
83
|
+
"koatty_store": "1.9.0"
|
|
84
|
+
},
|
|
85
|
+
"scripts": {
|
|
86
|
+
"build": "npm run build:js && npm run build:dts && npm run build:doc && npm run build:cp",
|
|
87
|
+
"build:cp": "node scripts/postBuild && copyfiles package.json LICENSE README.md dist/",
|
|
88
|
+
"build:js": "npx rollup --bundleConfigAsCjs -c .rollup.config.js",
|
|
89
|
+
"build:doc": "npx api-documenter markdown --input temp --output docs/api",
|
|
90
|
+
"build:dts": "npx tsc && npx api-extractor run --local --verbose",
|
|
91
|
+
"eslint": "eslint --ext .ts,.js ./",
|
|
92
|
+
"lock": "npm i --package-lock-only && npm audit fix && npx pnpm i",
|
|
93
|
+
"prerelease": "npm test && npm run build",
|
|
94
|
+
"test": "npm run eslint && jest --passWithNoTests",
|
|
95
|
+
"test:cov": "jest --collectCoverage --detectOpenHandles"
|
|
101
96
|
}
|
|
102
|
-
}
|
|
97
|
+
}
|