@veloxts/cache 0.6.58 → 0.6.60
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 +16 -0
- package/README.md +1 -1
- package/dist/index.d.ts +14 -0
- package/dist/index.js +14 -1
- package/package.json +7 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @veloxts/cache
|
|
2
2
|
|
|
3
|
+
## 0.6.60
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- feat(create): add tRPC-specific CLAUDE.md and improve AI-native features
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @veloxts/core@0.6.60
|
|
10
|
+
|
|
11
|
+
## 0.6.59
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- refactor(ecosystem): Laravel-style API refinements & added missing unit tests
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
- @veloxts/core@0.6.59
|
|
18
|
+
|
|
3
19
|
## 0.6.58
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @veloxts/cache
|
|
2
2
|
|
|
3
|
-
> **Early Preview (v0.6.x)** - APIs are stabilizing but may still change.
|
|
3
|
+
> **Early Preview (v0.6.x)** - APIs are stabilizing but may still change. Do not use in production yet.
|
|
4
4
|
|
|
5
5
|
Multi-driver caching for VeloxTS Framework - provides memory and Redis drivers with tags, locks, and the remember pattern. Learn more at [@veloxts/velox](https://www.npmjs.com/package/@veloxts/velox).
|
|
6
6
|
|
package/dist/index.d.ts
CHANGED
|
@@ -43,6 +43,20 @@ export { createRedisCache, DRIVER_NAME as REDIS_DRIVER } from './drivers/redis.j
|
|
|
43
43
|
export { type CacheManager, cache, createCacheManager, type TaggedCache, } from './manager.js';
|
|
44
44
|
export { cachePlugin, closeCache, getCache, getCacheFromInstance, initCache, } from './plugin.js';
|
|
45
45
|
export type { CacheConfig, CacheDriver, CacheEntry, CacheOptions, CachePluginOptions, CacheStore, DurationString, LockOptions, LockResult, MemoryCacheConfig, RedisCacheConfig, TaggableCacheStore, TTL, } from './types.js';
|
|
46
|
+
/**
|
|
47
|
+
* Utility functions for TTL parsing and formatting.
|
|
48
|
+
*
|
|
49
|
+
* @deprecated Import from '@veloxts/cache/utils' instead. Will be removed in v2.0.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```typescript
|
|
53
|
+
* // Old (deprecated):
|
|
54
|
+
* import { parseTtl, formatTtl } from '@veloxts/cache';
|
|
55
|
+
*
|
|
56
|
+
* // New:
|
|
57
|
+
* import { parseTtl, formatTtl } from '@veloxts/cache/utils';
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
46
60
|
export { formatTtl, isDurationString, parseTtl, parseTtlMs, } from './utils.js';
|
|
47
61
|
/**
|
|
48
62
|
* DI tokens and providers for @veloxts/cache
|
package/dist/index.js
CHANGED
|
@@ -45,7 +45,20 @@ export { createRedisCache, DRIVER_NAME as REDIS_DRIVER } from './drivers/redis.j
|
|
|
45
45
|
export { cache, createCacheManager, } from './manager.js';
|
|
46
46
|
// Plugin
|
|
47
47
|
export { cachePlugin, closeCache, getCache, getCacheFromInstance, initCache, } from './plugin.js';
|
|
48
|
-
|
|
48
|
+
/**
|
|
49
|
+
* Utility functions for TTL parsing and formatting.
|
|
50
|
+
*
|
|
51
|
+
* @deprecated Import from '@veloxts/cache/utils' instead. Will be removed in v2.0.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```typescript
|
|
55
|
+
* // Old (deprecated):
|
|
56
|
+
* import { parseTtl, formatTtl } from '@veloxts/cache';
|
|
57
|
+
*
|
|
58
|
+
* // New:
|
|
59
|
+
* import { parseTtl, formatTtl } from '@veloxts/cache/utils';
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
49
62
|
export { formatTtl, isDurationString, parseTtl, parseTtlMs, } from './utils.js';
|
|
50
63
|
// ============================================================================
|
|
51
64
|
// Dependency Injection
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veloxts/cache",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.60",
|
|
4
4
|
"description": "Multi-driver caching layer for VeloxTS framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
11
11
|
"import": "./dist/index.js"
|
|
12
12
|
},
|
|
13
|
+
"./utils": {
|
|
14
|
+
"types": "./dist/utils.d.ts",
|
|
15
|
+
"import": "./dist/utils.js"
|
|
16
|
+
},
|
|
13
17
|
"./drivers/memory": {
|
|
14
18
|
"types": "./dist/drivers/memory.d.ts",
|
|
15
19
|
"import": "./dist/drivers/memory.js"
|
|
@@ -31,7 +35,7 @@
|
|
|
31
35
|
"fastify-plugin": "5.1.0",
|
|
32
36
|
"lru-cache": "11.1.0",
|
|
33
37
|
"superjson": "2.2.2",
|
|
34
|
-
"@veloxts/core": "0.6.
|
|
38
|
+
"@veloxts/core": "0.6.60"
|
|
35
39
|
},
|
|
36
40
|
"peerDependencies": {
|
|
37
41
|
"ioredis": ">=5.0.0"
|
|
@@ -47,7 +51,7 @@
|
|
|
47
51
|
"ioredis": "5.6.1",
|
|
48
52
|
"typescript": "5.9.3",
|
|
49
53
|
"vitest": "4.0.16",
|
|
50
|
-
"@veloxts/testing": "0.6.
|
|
54
|
+
"@veloxts/testing": "0.6.60"
|
|
51
55
|
},
|
|
52
56
|
"keywords": [
|
|
53
57
|
"velox",
|