@veloxts/cache 0.6.81 → 0.6.83

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/GUIDE.md +3 -3
  3. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @veloxts/cache
2
2
 
3
+ ## 0.6.83
4
+
5
+ ### Patch Changes
6
+
7
+ - docs(templates): add /veloxts skill to CLAUDE.md files and links to online documentation
8
+ - Updated dependencies
9
+ - @veloxts/core@0.6.83
10
+
11
+ ## 0.6.82
12
+
13
+ ### Patch Changes
14
+
15
+ - fix(create): add @veloxts/core to SPA template dependencies
16
+ - Updated dependencies
17
+ - @veloxts/core@0.6.82
18
+
3
19
  ## 0.6.81
4
20
 
5
21
  ### Patch Changes
package/GUIDE.md CHANGED
@@ -14,10 +14,10 @@ pnpm add ioredis
14
14
  ## Plugin Registration
15
15
 
16
16
  ```typescript
17
- import { createApp } from '@veloxts/core';
17
+ import { veloxApp } from '@veloxts/core';
18
18
  import { cachePlugin } from '@veloxts/cache';
19
19
 
20
- const app = createApp();
20
+ const app = await veloxApp();
21
21
 
22
22
  // Memory cache (development)
23
23
  app.use(cachePlugin({
@@ -54,7 +54,7 @@ Cache-aside pattern that fetches from cache or computes and stores:
54
54
 
55
55
  ```typescript
56
56
  const user = await ctx.cache.remember('user:123', '1h', async () => {
57
- return await ctx.db.user.findUnique({ where: { id: '123' } });
57
+ return await ctx.db.user.findUniqueOrThrow({ where: { id: '123' } });
58
58
  });
59
59
  ```
60
60
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veloxts/cache",
3
- "version": "0.6.81",
3
+ "version": "0.6.83",
4
4
  "description": "Multi-driver caching layer for VeloxTS framework",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -35,7 +35,7 @@
35
35
  "fastify-plugin": "5.1.0",
36
36
  "lru-cache": "11.1.0",
37
37
  "superjson": "2.2.2",
38
- "@veloxts/core": "0.6.81"
38
+ "@veloxts/core": "0.6.83"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "ioredis": ">=5.0.0"
@@ -51,7 +51,7 @@
51
51
  "ioredis": "5.6.1",
52
52
  "typescript": "5.9.3",
53
53
  "vitest": "4.0.16",
54
- "@veloxts/testing": "0.6.81"
54
+ "@veloxts/testing": "0.6.83"
55
55
  },
56
56
  "keywords": [
57
57
  "velox",