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.
@@ -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
+ 
11
+ ./src/index.ts → ./dist/index.js, ./dist/index.mjs...
12
+ created ./dist/index.js, ./dist/index.mjs in 781ms
13
+ ⠙⠙
14
+ > koatty_cacheable@2.0.2 build:dts
15
+ > npx tsc && npx api-extractor run --local --verbose
16
+
17
+ ⠙
18
+ api-extractor 7.55.2  - https://api-extractor.com/
19
+ 
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
+ Writing: /Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-cacheable/temp/koatty_cacheable.api.json
24
+ Writing package typings: /Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-cacheable/dist/index.d.ts
25
+ Warning: 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 "@"
26
+ Warning: 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
27
+ Warning: src/cache.ts:17:12 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
28
+ Warning: src/cache.ts:17:4 - (tsdoc-undefined-tag) The TSDoc tag "@return" is not defined in this configuration
29
+ Warning: 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 "@"
30
+ Warning: 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
31
+ Warning: src/cache.ts:28:12 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
32
+ Warning: src/cache.ts:28:4 - (tsdoc-undefined-tag) The TSDoc tag "@return" is not defined in this configuration
33
+ Warning: src/cache.ts:46:4 - (tsdoc-undefined-tag) The TSDoc tag "@export" is not defined in this configuration
34
+ Warning: src/cache.ts:47:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
35
+ Warning: 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.
36
+ Warning: src/cache.ts:48:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
37
+ Warning: src/cache.ts:50:4 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
38
+ Warning: 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
39
+ Warning: 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
40
+ Warning: src/cache.ts:55:13 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
41
+ Warning: src/cache.ts:133:4 - (tsdoc-undefined-tag) The TSDoc tag "@export" is not defined in this configuration
42
+ Warning: src/cache.ts:134:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
43
+ Warning: 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.
44
+ Warning: src/cache.ts:135:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
45
+ Warning: src/cache.ts:137:4 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
46
+ Warning: 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
47
+ Warning: src/store.ts:34:4 - (tsdoc-undefined-tag) The TSDoc tag "@export" is not defined in this configuration
48
+ Warning: src/store.ts:35:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
49
+ Warning: 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
50
+ Warning: 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
51
+ Warning: src/store.ts:36:13 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
52
+ Warning: src/store.ts:36:18 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
53
+
54
+ API Extractor completed successfully
55
+ ⠙⠙
56
+ > koatty_cacheable@2.0.2 build:doc
57
+ > npx api-documenter markdown --input temp --output docs/api
58
+
59
+ 
60
+ api-documenter 7.28.2  - https://api-extractor.com/
61
+ 
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
+ ⠙⠙
77
+ > koatty_cacheable@2.0.2 build:cp
78
+ > node scripts/postBuild && copyfiles package.json LICENSE README.md dist/
79
+
80
+ ⠙
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
- * delayedDoubleDeletion ([532f735](https://github.com/thinkkoa/koatty_cacheable/commit/532f735818fc66fa144023cd24282efe350833ba))
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
- * 缓存key拼装 ([5d0b924](https://github.com/thinkkoa/koatty_cacheable/commit/5d0b9248064d353046bd7287d3a3ee5229e88c23))
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
- * default value ([38f2e57](https://github.com/thinkkoa/koatty_cacheable/commit/38f2e57d52d13482907ca9eac6006d1e841bdadd))
35
- * 初始化缓存改为appReady执行 ([7e9b1ab](https://github.com/thinkkoa/koatty_cacheable/commit/7e9b1abe6acdbdf1b6ad34efa053cbaca1e7b6d7))
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
- * cache subkey ([408e3c7](https://github.com/thinkkoa/koatty_cacheable/commit/408e3c709a4dfff6e7d224a22d26e58854a805ac))
43
- * 启动时链接 ([e7ec709](https://github.com/thinkkoa/koatty_cacheable/commit/e7ec7094be106e4e48783c9b214b8369e8a18297))
44
- * 支持引入变量做缓存key ([4ce81aa](https://github.com/thinkkoa/koatty_cacheable/commit/4ce81aaaf9610f4a62ddf43e3c4389dd003c2db8))
45
- * 获取单例 ([0759972](https://github.com/thinkkoa/koatty_cacheable/commit/0759972adf7e86312f60f0bf77604bddf06ce0de))
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
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @Author: richen
3
- * @Date: 2025-11-02 09:20:03
3
+ * @Date: 2026-01-28 11:25:48
4
4
  * @License: BSD (3-Clause)
5
5
  * @Copyright (c) - <richenlin(at)gmail.com>
6
6
  * @HomePage: https://koatty.org/
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @Author: richen
3
- * @Date: 2025-11-02 09:19:59
3
+ * @Date: 2026-01-28 11:25:40
4
4
  * @License: BSD (3-Clause)
5
5
  * @Copyright (c) - <richenlin(at)gmail.com>
6
6
  * @HomePage: https://koatty.org/
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @Author: richen
3
- * @Date: 2025-11-02 09:19:59
3
+ * @Date: 2026-01-28 11:25:40
4
4
  * @License: BSD (3-Clause)
5
5
  * @Copyright (c) - <richenlin(at)gmail.com>
6
6
  * @HomePage: https://koatty.org/
package/dist/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "koatty_cacheable",
3
- "version": "2.0.1",
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 && npx copyfiles package.json LICENSE README.md dist/",
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": "^1.x.x",
90
- "koatty_core": "2.x.x",
91
- "koatty_lib": "^1.x.x",
92
- "koatty_logger": "^2.x.x",
93
- "koatty_store": "^1.x.x"
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": "^1.x.x",
97
- "koatty_core": "2.x.x",
98
- "koatty_lib": "^1.x.x",
99
- "koatty_logger": "^2.x.x",
100
- "koatty_store": "^1.x.x"
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.1",
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": "^1.x.x",
90
- "koatty_core": "2.x.x",
91
- "koatty_lib": "^1.x.x",
92
- "koatty_logger": "^2.x.x",
93
- "koatty_store": "^1.x.x"
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": "^1.x.x",
97
- "koatty_core": "2.x.x",
98
- "koatty_lib": "^1.x.x",
99
- "koatty_logger": "^2.x.x",
100
- "koatty_store": "^1.x.x"
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
+ }