@veloxts/validation 0.6.27 → 0.6.29
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 +16 -0
- package/GUIDE.md +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @veloxts/validation
|
|
2
2
|
|
|
3
|
+
## 0.6.29
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- add multi-tenancy and PostgreSQL support - test and lint fix
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @veloxts/core@0.6.29
|
|
10
|
+
|
|
11
|
+
## 0.6.28
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- add multi-tenancy support and postgresql database
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
- @veloxts/core@0.6.28
|
|
18
|
+
|
|
3
19
|
## 0.6.27
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/GUIDE.md
CHANGED
|
@@ -163,7 +163,7 @@ type UserOutput = InferOutput<typeof UserSchema>;
|
|
|
163
163
|
Validation integrates seamlessly with VeloxTS procedures:
|
|
164
164
|
|
|
165
165
|
```typescript
|
|
166
|
-
import { procedure,
|
|
166
|
+
import { procedure, procedures } from '@veloxts/router';
|
|
167
167
|
import { z, emailSchema, nonEmptyStringSchema } from '@veloxts/validation';
|
|
168
168
|
|
|
169
169
|
const CreateUserInput = z.object({
|
|
@@ -172,7 +172,7 @@ const CreateUserInput = z.object({
|
|
|
172
172
|
age: z.number().int().min(18).optional(),
|
|
173
173
|
});
|
|
174
174
|
|
|
175
|
-
export const userProcedures =
|
|
175
|
+
export const userProcedures = procedures('users', {
|
|
176
176
|
createUser: procedure()
|
|
177
177
|
.input(CreateUserInput)
|
|
178
178
|
.output(UserSchema)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veloxts/validation",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.29",
|
|
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": "3.25.76",
|
|
26
|
-
"@veloxts/core": "0.6.
|
|
26
|
+
"@veloxts/core": "0.6.29"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@vitest/coverage-v8": "4.0.16",
|