@veloxts/velox 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 +19 -11
- package/GUIDE.md +3 -3
- package/package.json +18 -18
package/CHANGELOG.md
CHANGED
|
@@ -1,22 +1,30 @@
|
|
|
1
1
|
# @veloxts/velox
|
|
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/auth@0.7.3
|
|
10
|
+
- @veloxts/cache@0.7.3
|
|
11
|
+
- @veloxts/core@0.7.3
|
|
12
|
+
- @veloxts/events@0.7.3
|
|
13
|
+
- @veloxts/mail@0.7.3
|
|
14
|
+
- @veloxts/orm@0.7.3
|
|
15
|
+
- @veloxts/queue@0.7.3
|
|
16
|
+
- @veloxts/router@0.7.3
|
|
17
|
+
- @veloxts/scheduler@0.7.3
|
|
18
|
+
- @veloxts/storage@0.7.3
|
|
19
|
+
- @veloxts/validation@0.7.3
|
|
20
|
+
|
|
3
21
|
## 0.7.2
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
6
24
|
|
|
7
|
-
-
|
|
25
|
+
- simplify code for clarity and maintainability
|
|
8
26
|
- Updated dependencies
|
|
9
|
-
- @veloxts/auth@0.7.2
|
|
10
|
-
- @veloxts/cache@0.7.2
|
|
11
27
|
- @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
28
|
|
|
21
29
|
## 0.7.1
|
|
22
30
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
3
|
+
"version": "0.7.3",
|
|
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.
|
|
43
|
-
"@veloxts/validation": "0.7.
|
|
44
|
-
"@veloxts/
|
|
45
|
-
"@veloxts/
|
|
46
|
-
"@veloxts/
|
|
42
|
+
"@veloxts/core": "0.7.3",
|
|
43
|
+
"@veloxts/validation": "0.7.3",
|
|
44
|
+
"@veloxts/auth": "0.7.3",
|
|
45
|
+
"@veloxts/router": "0.7.3",
|
|
46
|
+
"@veloxts/orm": "0.7.3"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"typescript": "5.9.3",
|
|
50
50
|
"vitest": "4.0.18",
|
|
51
|
-
"@veloxts/
|
|
52
|
-
"@veloxts/queue": "0.7.
|
|
53
|
-
"@veloxts/
|
|
54
|
-
"@veloxts/
|
|
55
|
-
"@veloxts/
|
|
56
|
-
"@veloxts/
|
|
51
|
+
"@veloxts/mail": "0.7.3",
|
|
52
|
+
"@veloxts/queue": "0.7.3",
|
|
53
|
+
"@veloxts/events": "0.7.3",
|
|
54
|
+
"@veloxts/cache": "0.7.3",
|
|
55
|
+
"@veloxts/storage": "0.7.3",
|
|
56
|
+
"@veloxts/scheduler": "0.7.3"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
59
|
"zod": "^4.3.0",
|
|
60
|
-
"@veloxts/
|
|
61
|
-
"@veloxts/
|
|
62
|
-
"@veloxts/
|
|
63
|
-
"@veloxts/
|
|
64
|
-
"@veloxts/events": "0.7.
|
|
65
|
-
"@veloxts/
|
|
60
|
+
"@veloxts/queue": "0.7.3",
|
|
61
|
+
"@veloxts/cache": "0.7.3",
|
|
62
|
+
"@veloxts/mail": "0.7.3",
|
|
63
|
+
"@veloxts/scheduler": "0.7.3",
|
|
64
|
+
"@veloxts/events": "0.7.3",
|
|
65
|
+
"@veloxts/storage": "0.7.3"
|
|
66
66
|
},
|
|
67
67
|
"peerDependenciesMeta": {
|
|
68
68
|
"@veloxts/cache": {
|