@veloxts/validation 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.
package/CHANGELOG.md CHANGED
@@ -1,10 +1,18 @@
1
1
  # @veloxts/validation
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
+
3
11
  ## 0.7.2
4
12
 
5
13
  ### Patch Changes
6
14
 
7
- - chore(auth,core,create,cli,client,orm,mcp,router,validation,web): simplify code for clarity and maintainability
15
+ - simplify code for clarity and maintainability
8
16
  - Updated dependencies
9
17
  - @veloxts/core@0.7.2
10
18
 
package/GUIDE.md CHANGED
@@ -200,13 +200,13 @@ const UserSchema = resourceSchema()
200
200
  .build();
201
201
 
202
202
  // Returns different fields based on access level
203
- const publicUser = resource(user, UserSchema).forAnonymous();
203
+ const publicUser = resource(user, UserSchema.public);
204
204
  // Type: { id: string; name: string }
205
205
 
206
- const authUser = resource(user, UserSchema).forAuthenticated();
206
+ const authUser = resource(user, UserSchema.authenticated);
207
207
  // Type: { id: string; name: string; email: string }
208
208
 
209
- const adminUser = resource(user, UserSchema).forAdmin();
209
+ const adminUser = resource(user, UserSchema.admin);
210
210
  // Type: { id: string; name: string; email: string; internalNotes: string | null }
211
211
  ```
212
212
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veloxts/validation",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "description": "Zod integration and validation middleware for VeloxTS framework",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "zod": "4.3.6",
26
- "@veloxts/core": "0.7.2"
26
+ "@veloxts/core": "0.7.3"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@vitest/coverage-v8": "4.0.18",