@veloxts/router 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 +18 -0
  2. package/GUIDE.md +2 -2
  3. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @veloxts/router
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
+ - @veloxts/validation@0.6.83
11
+
12
+ ## 0.6.82
13
+
14
+ ### Patch Changes
15
+
16
+ - fix(create): add @veloxts/core to SPA template dependencies
17
+ - Updated dependencies
18
+ - @veloxts/core@0.6.82
19
+ - @veloxts/validation@0.6.82
20
+
3
21
  ## 0.6.81
4
22
 
5
23
  ### Patch Changes
package/GUIDE.md CHANGED
@@ -13,7 +13,7 @@ export const userProcedures = procedures('users', {
13
13
  .input(z.object({ id: z.string().uuid() }))
14
14
  .output(UserSchema)
15
15
  .query(async ({ input, ctx }) => {
16
- return ctx.db.user.findUnique({ where: { id: input.id } });
16
+ return ctx.db.user.findUniqueOrThrow({ where: { id: input.id } });
17
17
  }),
18
18
 
19
19
  createUser: procedure()
@@ -67,7 +67,7 @@ const userProcedures = procedures('users', {
67
67
  .input(z.object({ email: z.string().email() }))
68
68
  .rest({ method: 'GET', path: '/users/by-email/:email' })
69
69
  .query(async ({ input, ctx }) => {
70
- return ctx.db.user.findUnique({ where: { email: input.email } });
70
+ return ctx.db.user.findUniqueOrThrow({ where: { email: input.email } });
71
71
  }),
72
72
 
73
73
  // Custom action endpoint
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veloxts/router",
3
- "version": "0.6.81",
3
+ "version": "0.6.83",
4
4
  "description": "Procedure definitions with tRPC and REST routing for VeloxTS framework",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -40,8 +40,8 @@
40
40
  "@trpc/server": "11.8.0",
41
41
  "fastify": "5.6.2",
42
42
  "zod-to-json-schema": "3.24.5",
43
- "@veloxts/core": "0.6.81",
44
- "@veloxts/validation": "0.6.81"
43
+ "@veloxts/core": "0.6.83",
44
+ "@veloxts/validation": "0.6.83"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@vitest/coverage-v8": "4.0.16",