koatty_store 1.9.1 → 2.0.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/.rollup.config.js CHANGED
@@ -46,9 +46,12 @@ export default [
46
46
  compilerOptions: {
47
47
  declaration: false,
48
48
  declarationMap: false,
49
- module: "ESNext"
49
+ module: "ESNext",
50
+ skipLibCheck: true
50
51
  }
51
- }
52
+ },
53
+ useTsconfigDeclarationDir: false,
54
+ check: false
52
55
  })
53
56
  ],
54
57
  external: [
@@ -1,20 +1,30 @@
1
1
 
2
2
  
3
- > koatty_store@1.9.1 build /Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-store
3
+ > koatty_store@2.0.0 build /Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-store
4
4
  > npm run build:js && npm run build:dts && npm run build:doc && npm run build:cp
5
5
 
6
6
 
7
- > koatty_store@1.9.1 build:js
7
+ > koatty_store@2.0.0 build:js
8
8
  > npx rollup --bundleConfigAsCjs -c .rollup.config.js
9
9
 
10
10
  
11
11
  ./src/index.ts → ./dist/index.js, ./dist/index.mjs...
12
- created ./dist/index.js, ./dist/index.mjs in 1.1s
12
+ created ./dist/index.js, ./dist/index.mjs in 1.3s
13
13
  ⠙⠙
14
- > koatty_store@1.9.1 build:dts
15
- > npx tsc && npx api-extractor run --local --verbose
14
+ > koatty_store@2.0.0 build:dts
15
+ > bash ../../scripts/build-dts.sh
16
16
 
17
- ⠙
17
+ 🔨 Building type declarations for koatty-store...
18
+ ⏳ Waiting for dependencies to be ready...
19
+
20
+ 🔍 Checking dependencies: koatty_lib, koatty_logger
21
+ ✓ koatty_lib type declarations ready
22
+ ✓ koatty_logger type declarations ready
23
+
24
+ ✅ All dependencies ready (waited 1ms)
25
+ 📝 Running TypeScript compiler...
26
+ ⠙📦 Running API Extractor...
27
+ 
18
28
  api-extractor 7.55.2  - https://api-extractor.com/
19
29
  
20
30
  Using configuration from ./api-extractor.json
@@ -508,11 +518,12 @@ Analysis will use the bundled TypeScript version 5.8.2
508
518
  Warning: src/store/redis.ts:295:6 - (tsdoc-undefined-tag) The TSDoc tag "@memberof" is not defined in this configuration
509
519
 
510
520
  API Extractor completed successfully
511
- ⠙⠙
512
- > koatty_store@1.9.1 build:doc
521
+ ⠙✅ Type declarations built successfully
522
+ ⠙
523
+ > koatty_store@2.0.0 build:doc
513
524
  > npx api-documenter markdown --input temp --output docs/api
514
525
 
515
- 
526
+ ⠙
516
527
  api-documenter 7.28.2  - https://api-extractor.com/
517
528
  
518
529
  Reading koatty_store.api.json
@@ -534,7 +545,7 @@ Unsupported block tag: @static
534
545
  Unsupported block tag: @export
535
546
  Unsupported block tag: @class
536
547
  ⠙⠙
537
- > koatty_store@1.9.1 build:cp
548
+ > koatty_store@2.0.0 build:cp
538
549
  > node scripts/postBuild && npx copyfiles package.json LICENSE README.md dist/
539
550
 
540
551
  ⠙⠙
@@ -0,0 +1,61 @@
1
+
2
+ > koatty_store@1.9.1 test /Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-store
3
+ > npm run eslint && jest --passWithNoTests
4
+
5
+
6
+ > koatty_store@1.9.1 eslint
7
+ > eslint --ext .ts,.js ./
8
+
9
+ PASS test/concurrent_operations.test.ts
10
+ PASS test/interface_consistency.test.ts
11
+ PASS test/memory_store_simplified.test.ts
12
+ PASS test/memory_cache_cleanup.test.ts
13
+ PASS test/lrange_fix.test.ts
14
+ PASS test/redis.test.ts
15
+ ● Console
16
+
17
+ console.log
18
+ 111
19
+
20
+ at Object.<anonymous> (test/redis.test.ts:31:17)
21
+
22
+ console.log
23
+ 222
24
+
25
+ at Object.<anonymous> (test/redis.test.ts:38:17)
26
+
27
+ console.log
28
+ 1
29
+
30
+ at Object.<anonymous> (test/redis.test.ts:46:17)
31
+
32
+ PASS test/error_handling.test.ts
33
+ PASS test/hash_ttl_memory.test.ts
34
+ PASS test/hash_ttl_cachestore.test.ts
35
+ PASS test/edge_cases.test.ts (5.889 s)
36
+ A worker process has failed to exit gracefully and has been force exited. This is likely caused by tests leaking due to improper teardown. Try running with --detectOpenHandles to find leaks. Active timers can also cause this, ensure that .unref() was called on them.
37
+ 📦 report is created on: /Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-store/jest_html_reporters.html
38
+ ------------------|---------|----------|---------|---------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
39
+ File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
40
+ ------------------|---------|----------|---------|---------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
41
+ All files | 56.96 | 49.06 | 62.56 | 57.2 |
42
+ src | 86.81 | 57.14 | 86.36 | 86.51 |
43
+ index.ts | 86.81 | 57.14 | 86.36 | 86.51 | 107-115,175,356-365,384,461
44
+ src/store | 53.47 | 46.73 | 54.81 | 53.79 |
45
+ memory.ts | 47.61 | 37.5 | 57.14 | 47.61 | 91-121
46
+ memory_cache.ts | 59.45 | 52.81 | 61.46 | 59.87 | 137,141-160,193,233-303,316,359-363,366,370,374-383,388,392,402,405,530,552,575,734,790-800,875-887,901-905,922-926,1026-1035,1068-1069,1072-1084,1112-1113,1135-1141,1157-1159,1162,1186-1189,1208-1209,1267,1302,1354,1369,1443-1444,1455-1458,1477,1489-1851
47
+ redis.ts | 15.84 | 21.15 | 15.78 | 16 | 64-91,105-230,242-244,248-317
48
+ ------------------|---------|----------|---------|---------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
49
+
50
+ =============================== Coverage summary ===============================
51
+ Statements : 56.96% ( 495/869 )
52
+ Branches : 49.06% ( 184/375 )
53
+ Functions : 62.56% ( 112/179 )
54
+ Lines : 57.2% ( 488/853 )
55
+
56
+ ================================================================================
57
+ Test Suites: 10 passed, 10 total
58
+ Tests: 61 passed, 61 total
59
+ Snapshots: 0 total
60
+ Time: 11.328 s, estimated 19 s
61
+ Ran all test suites.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,39 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - koatty_logger@2.4.0
9
+
10
+ ## 1.9.4
11
+
12
+ ### Patch Changes
13
+
14
+ - build
15
+ - Updated dependencies
16
+ - koatty_lib@1.4.5
17
+ - koatty_logger@2.3.4
18
+
19
+ ## 1.9.3
20
+
21
+ ### Patch Changes
22
+
23
+ - build
24
+ - Updated dependencies
25
+ - koatty_lib@1.4.4
26
+ - koatty_logger@2.3.3
27
+
28
+ ## 1.9.2
29
+
30
+ ### Patch Changes
31
+
32
+ - build
33
+ - Updated dependencies
34
+ - koatty_lib@1.4.3
35
+ - koatty_logger@2.3.2
36
+
3
37
  ## 1.9.1
4
38
 
5
39
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @Author: richen
3
- * @Date: 2026-01-28 11:06:52
3
+ * @Date: 2026-01-31 09:51:18
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: 2026-01-28 11:06:43
3
+ * @Date: 2026-01-31 09:51:10
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: 2026-01-28 11:06:43
3
+ * @Date: 2026-01-31 09:51:10
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,13 +1,13 @@
1
1
  {
2
2
  "name": "koatty_store",
3
- "version": "1.9.1",
3
+ "version": "2.0.0",
4
4
  "description": "Cache store 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
7
  "build:cp": "node scripts/postBuild && npx 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
- "build:dts": "npx tsc && npx api-extractor run --local --verbose",
10
+ "build:dts": "bash ../../scripts/build-dts.sh",
11
11
  "eslint": "eslint --ext .ts,.js ./",
12
12
  "prepublishOnly": "npm test && npm run build",
13
13
  "prerelease": "npm test && npm run build",
@@ -90,14 +90,14 @@
90
90
  "dependencies": {
91
91
  "async-lock": "^1.4.1",
92
92
  "generic-pool": "^3.9.0",
93
- "ioredis": "^5.8.2",
93
+ "ioredis": "^5.9.2",
94
94
  "koatty_lib": "workspace:*",
95
95
  "koatty_logger": "workspace:*",
96
- "lodash": "^4.17.21",
97
- "lru-cache": "^11.2.2"
96
+ "lodash": "^4.17.23",
97
+ "lru-cache": "^11.2.5"
98
98
  },
99
99
  "peerDependencies": {
100
- "koatty_lib": "workspace:*",
101
- "koatty_logger": "workspace:*"
100
+ "koatty_lib": "^1.4.5",
101
+ "koatty_logger": "^2.4.0"
102
102
  }
103
- }
103
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koatty_store",
3
- "version": "1.9.1",
3
+ "version": "2.0.0",
4
4
  "description": "Cache store for koatty.",
5
5
  "main": "./dist/index.js",
6
6
  "exports": {
@@ -78,22 +78,22 @@
78
78
  "dependencies": {
79
79
  "async-lock": "^1.4.1",
80
80
  "generic-pool": "^3.9.0",
81
- "ioredis": "^5.8.2",
82
- "lodash": "^4.17.21",
83
- "lru-cache": "^11.2.2",
84
- "koatty_lib": "1.4.3",
85
- "koatty_logger": "2.8.1"
81
+ "ioredis": "^5.9.2",
82
+ "lodash": "^4.17.23",
83
+ "lru-cache": "^11.2.5",
84
+ "koatty_lib": "1.4.5",
85
+ "koatty_logger": "2.4.0"
86
86
  },
87
87
  "peerDependencies": {
88
- "koatty_lib": "1.4.3",
89
- "koatty_logger": "2.8.1"
88
+ "koatty_lib": "^1.4.5",
89
+ "koatty_logger": "^2.4.0"
90
90
  },
91
91
  "scripts": {
92
92
  "build": "npm run build:js && npm run build:dts && npm run build:doc && npm run build:cp",
93
93
  "build:cp": "node scripts/postBuild && npx copyfiles package.json LICENSE README.md dist/",
94
94
  "build:js": "npx rollup --bundleConfigAsCjs -c .rollup.config.js",
95
95
  "build:doc": "npx api-documenter markdown --input temp --output docs/api",
96
- "build:dts": "npx tsc && npx api-extractor run --local --verbose",
96
+ "build:dts": "bash ../../scripts/build-dts.sh",
97
97
  "eslint": "eslint --ext .ts,.js ./",
98
98
  "prerelease": "npm test && npm run build",
99
99
  "pub": "git push --follow-tags origin && npm publish",