@getvision/server 0.4.0-6e5c887-develop → 0.4.0
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 +27 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @getvision/server
|
|
2
2
|
|
|
3
|
+
## 0.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 6e5c887: Migrate all adapters to use UniversalValidator supporting Zod, Valibot, and Standard Schema v1. The new validation system provides:
|
|
8
|
+
- Unified `validator()` function that works with any validation library
|
|
9
|
+
- Automatic error response formatting with proper issue paths
|
|
10
|
+
- Schema introspection for template generation
|
|
11
|
+
- Backward compatibility with existing zValidator (deprecated)
|
|
12
|
+
|
|
13
|
+
**Breaking changes:**
|
|
14
|
+
- `zValidator` is now deprecated in favor of universal `validator()`
|
|
15
|
+
- Error response format has been standardized across all adapters
|
|
16
|
+
- Some internal types have changed to support multiple validation libraries
|
|
17
|
+
|
|
18
|
+
Migration guide:
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
// Before
|
|
22
|
+
import { zValidator } from "@getvision/adapter-hono";
|
|
23
|
+
app.post("/users", zValidator("json", userSchema));
|
|
24
|
+
|
|
25
|
+
// After (works with Zod, Valibot, or Standard Schema)
|
|
26
|
+
import { validator } from "@getvision/adapter-hono";
|
|
27
|
+
app.post("/users", validator("json", userSchema));
|
|
28
|
+
```
|
|
29
|
+
|
|
3
30
|
## 0.3.6
|
|
4
31
|
|
|
5
32
|
### Patch Changes
|