@veloxts/auth 0.7.2 → 0.7.3

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 +10 -2
  2. package/GUIDE.md +2 -2
  3. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,13 +1,21 @@
1
1
  # @veloxts/auth
2
2
 
3
+ ## 0.7.3
4
+
5
+ ### Patch Changes
6
+
7
+ - feat(cli): auto-populate Zod schemas from Prisma model fields
8
+ - Updated dependencies
9
+ - @veloxts/core@0.7.3
10
+ - @veloxts/router@0.7.3
11
+
3
12
  ## 0.7.2
4
13
 
5
14
  ### Patch Changes
6
15
 
7
- - chore(auth,core,create,cli,client,orm,mcp,router,validation,web): simplify code for clarity and maintainability
16
+ - simplify code for clarity and maintainability
8
17
  - Updated dependencies
9
18
  - @veloxts/core@0.7.2
10
- - @veloxts/router@0.7.2
11
19
 
12
20
  ## 0.7.1
13
21
 
package/GUIDE.md CHANGED
@@ -105,7 +105,7 @@ const UserSchema = resourceSchema()
105
105
  const getPublicUser = procedure()
106
106
  .query(async ({ input, ctx }) => {
107
107
  const user = await ctx.db.user.findUnique({ where: { id: input.id } });
108
- return resource(user, UserSchema).forAnonymous();
108
+ return resource(user, UserSchema.public);
109
109
  });
110
110
 
111
111
  // Authenticated - returns { id, name, email }
@@ -121,7 +121,7 @@ const getFullUser = procedure()
121
121
  .guardNarrow(adminNarrow)
122
122
  .query(async ({ input, ctx }) => {
123
123
  const user = await ctx.db.user.findUnique({ where: { id: input.id } });
124
- return resource(user, UserSchema).forAdmin();
124
+ return resource(user, UserSchema.admin);
125
125
  });
126
126
  ```
127
127
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veloxts/auth",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "description": "Authentication and authorization system for VeloxTS framework",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -61,8 +61,8 @@
61
61
  "dependencies": {
62
62
  "@fastify/cookie": "11.0.2",
63
63
  "fastify": "5.7.4",
64
- "@veloxts/core": "0.7.2",
65
- "@veloxts/router": "0.7.2"
64
+ "@veloxts/core": "0.7.3",
65
+ "@veloxts/router": "0.7.3"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "argon2": ">=0.30.0",
@@ -85,8 +85,8 @@
85
85
  "@vitest/coverage-v8": "4.0.18",
86
86
  "typescript": "5.9.3",
87
87
  "vitest": "4.0.18",
88
- "@veloxts/testing": "0.7.2",
89
- "@veloxts/validation": "0.7.2"
88
+ "@veloxts/testing": "0.7.3",
89
+ "@veloxts/validation": "0.7.3"
90
90
  },
91
91
  "keywords": [
92
92
  "velox",