@veloxts/velox 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 +37 -11
  2. package/GUIDE.md +3 -3
  3. package/package.json +18 -18
package/CHANGELOG.md CHANGED
@@ -1,22 +1,48 @@
1
1
  # @veloxts/velox
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/auth@0.7.4
10
+ - @veloxts/cache@0.7.4
11
+ - @veloxts/core@0.7.4
12
+ - @veloxts/events@0.7.4
13
+ - @veloxts/mail@0.7.4
14
+ - @veloxts/orm@0.7.4
15
+ - @veloxts/queue@0.7.4
16
+ - @veloxts/router@0.7.4
17
+ - @veloxts/scheduler@0.7.4
18
+ - @veloxts/storage@0.7.4
19
+ - @veloxts/validation@0.7.4
20
+
21
+ ## 0.7.3
22
+
23
+ ### Patch Changes
24
+
25
+ - feat(cli): auto-populate Zod schemas from Prisma model fields
26
+ - Updated dependencies
27
+ - @veloxts/auth@0.7.3
28
+ - @veloxts/cache@0.7.3
29
+ - @veloxts/core@0.7.3
30
+ - @veloxts/events@0.7.3
31
+ - @veloxts/mail@0.7.3
32
+ - @veloxts/orm@0.7.3
33
+ - @veloxts/queue@0.7.3
34
+ - @veloxts/router@0.7.3
35
+ - @veloxts/scheduler@0.7.3
36
+ - @veloxts/storage@0.7.3
37
+ - @veloxts/validation@0.7.3
38
+
3
39
  ## 0.7.2
4
40
 
5
41
  ### Patch Changes
6
42
 
7
- - chore(auth,core,create,cli,client,orm,mcp,router,validation,web): simplify code for clarity and maintainability
43
+ - simplify code for clarity and maintainability
8
44
  - Updated dependencies
9
- - @veloxts/auth@0.7.2
10
- - @veloxts/cache@0.7.2
11
45
  - @veloxts/core@0.7.2
12
- - @veloxts/events@0.7.2
13
- - @veloxts/mail@0.7.2
14
- - @veloxts/orm@0.7.2
15
- - @veloxts/queue@0.7.2
16
- - @veloxts/router@0.7.2
17
- - @veloxts/scheduler@0.7.2
18
- - @veloxts/storage@0.7.2
19
- - @veloxts/validation@0.7.2
20
46
 
21
47
  ## 0.7.1
22
48
 
package/GUIDE.md CHANGED
@@ -100,7 +100,7 @@ const userProcedures = procedures('users', {
100
100
  getPublicProfile: procedure()
101
101
  .query(async ({ input, ctx }) => {
102
102
  const user = await ctx.db.user.findUnique({ where: { id: input.id } });
103
- return resource(user, UserSchema).forAnonymous();
103
+ return resource(user, UserSchema.public);
104
104
  }),
105
105
 
106
106
  // Authenticated: returns { id, name, email }
@@ -108,7 +108,7 @@ const userProcedures = procedures('users', {
108
108
  .guard(authenticated)
109
109
  .query(async ({ input, ctx }) => {
110
110
  const user = await ctx.db.user.findUnique({ where: { id: input.id } });
111
- return resource(user, UserSchema).forAuthenticated();
111
+ return resource(user, UserSchema.authenticated);
112
112
  }),
113
113
 
114
114
  // Admin: returns all fields
@@ -116,7 +116,7 @@ const userProcedures = procedures('users', {
116
116
  .guard(hasRole('admin'))
117
117
  .query(async ({ input, ctx }) => {
118
118
  const user = await ctx.db.user.findUnique({ where: { id: input.id } });
119
- return resource(user, UserSchema).forAdmin();
119
+ return resource(user, UserSchema.admin);
120
120
  }),
121
121
  });
122
122
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veloxts/velox",
3
- "version": "0.7.2",
3
+ "version": "0.7.4",
4
4
  "description": "Complete VeloxTS framework - batteries included",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -39,30 +39,30 @@
39
39
  "CHANGELOG.md"
40
40
  ],
41
41
  "dependencies": {
42
- "@veloxts/core": "0.7.2",
43
- "@veloxts/validation": "0.7.2",
44
- "@veloxts/router": "0.7.2",
45
- "@veloxts/orm": "0.7.2",
46
- "@veloxts/auth": "0.7.2"
42
+ "@veloxts/core": "0.7.4",
43
+ "@veloxts/auth": "0.7.4",
44
+ "@veloxts/orm": "0.7.4",
45
+ "@veloxts/router": "0.7.4",
46
+ "@veloxts/validation": "0.7.4"
47
47
  },
48
48
  "devDependencies": {
49
49
  "typescript": "5.9.3",
50
50
  "vitest": "4.0.18",
51
- "@veloxts/events": "0.7.2",
52
- "@veloxts/queue": "0.7.2",
53
- "@veloxts/scheduler": "0.7.2",
54
- "@veloxts/storage": "0.7.2",
55
- "@veloxts/cache": "0.7.2",
56
- "@veloxts/mail": "0.7.2"
51
+ "@veloxts/cache": "0.7.4",
52
+ "@veloxts/events": "0.7.4",
53
+ "@veloxts/mail": "0.7.4",
54
+ "@veloxts/queue": "0.7.4",
55
+ "@veloxts/scheduler": "0.7.4",
56
+ "@veloxts/storage": "0.7.4"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "zod": "^4.3.0",
60
- "@veloxts/cache": "0.7.2",
61
- "@veloxts/queue": "0.7.2",
62
- "@veloxts/storage": "0.7.2",
63
- "@veloxts/mail": "0.7.2",
64
- "@veloxts/events": "0.7.2",
65
- "@veloxts/scheduler": "0.7.2"
60
+ "@veloxts/cache": "0.7.4",
61
+ "@veloxts/queue": "0.7.4",
62
+ "@veloxts/mail": "0.7.4",
63
+ "@veloxts/events": "0.7.4",
64
+ "@veloxts/storage": "0.7.4",
65
+ "@veloxts/scheduler": "0.7.4"
66
66
  },
67
67
  "peerDependenciesMeta": {
68
68
  "@veloxts/cache": {