@veloxts/validation 0.7.2 → 0.7.4

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 +17 -1
  2. package/GUIDE.md +3 -3
  3. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,10 +1,26 @@
1
1
  # @veloxts/validation
2
2
 
3
+ ## 0.7.4
4
+
5
+ ### Patch Changes
6
+
7
+ - feat(cli): add velox sync command for whole-schema Prisma-to-TypeScript generation
8
+ - Updated dependencies
9
+ - @veloxts/core@0.7.4
10
+
11
+ ## 0.7.3
12
+
13
+ ### Patch Changes
14
+
15
+ - feat(cli): auto-populate Zod schemas from Prisma model fields
16
+ - Updated dependencies
17
+ - @veloxts/core@0.7.3
18
+
3
19
  ## 0.7.2
4
20
 
5
21
  ### Patch Changes
6
22
 
7
- - chore(auth,core,create,cli,client,orm,mcp,router,validation,web): simplify code for clarity and maintainability
23
+ - simplify code for clarity and maintainability
8
24
  - Updated dependencies
9
25
  - @veloxts/core@0.7.2
10
26
 
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.4",
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.4"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@vitest/coverage-v8": "4.0.18",