feat(zod-validator): update peerDependency to Zod `^3.25.0` and fix the types (#1180)
* feat(zod-validator): update peerDependency to Zod ^3.25.0 and fix type compatibility * add changesetpull/1182/head
parent
c97fcf08b2
commit
5c3f61f889
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@hono/zod-validator': minor
|
||||
---
|
||||
|
||||
feat: update peerDependency to Zod `^3.25.0` and fix the types
|
|
@ -85,4 +85,4 @@
|
|||
"engines": {
|
||||
"node": ">=18.4.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
"homepage": "https://github.com/honojs/middleware",
|
||||
"peerDependencies": {
|
||||
"hono": ">=3.9.0",
|
||||
"zod": "^3.19.1"
|
||||
"zod": "^3.25.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@arethetypeswrong/cli": "^0.17.4",
|
||||
|
|
|
@ -5,7 +5,7 @@ import type * as v3 from 'zod'
|
|||
import type { ZodSafeParseResult as v4ZodSafeParseResult } from 'zod/v4'
|
||||
import type * as v4 from 'zod/v4/core'
|
||||
|
||||
type ZodSchema = any extends v4.$ZodType ? v3.ZodType : v3.ZodType | v4.$ZodType
|
||||
type ZodSchema = v3.ZodType | v4.$ZodType
|
||||
type ZodError<T extends ZodSchema> = T extends v4.$ZodType ? v4.$ZodError : v3.ZodError
|
||||
type ZodSafeParseResult<T, T2, T3 extends ZodSchema> = T3 extends v4.$ZodType
|
||||
? v4ZodSafeParseResult<T>
|
||||
|
|
|
@ -2405,7 +2405,7 @@ __metadata:
|
|||
zod: "npm:~3.25.6"
|
||||
peerDependencies:
|
||||
hono: ">=3.9.0"
|
||||
zod: ^3.19.1
|
||||
zod: ^3.25.0
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
|
@ -15175,9 +15175,9 @@ __metadata:
|
|||
linkType: hard
|
||||
|
||||
"zod@npm:~3.25.6":
|
||||
version: 3.25.6
|
||||
resolution: "zod@npm:3.25.6"
|
||||
checksum: b7be69c76baa317e55496d9b4aab0090534bc2fd5ec65f8099ffb9fb460b4885dff60b1bed62cdd23e8a710e2cc82798c99f69283031b2bd8cb3cdbb9ce08399
|
||||
version: 3.25.36
|
||||
resolution: "zod@npm:3.25.36"
|
||||
checksum: 9ad8ca759d1a5d19c86d6e49a1bda817b3c0566ea0a8726d45994b9fcaac8d569db45a65218a7b4067ca18b07c5fc636a587a94cd05f76793174ace8b81742e3
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
|
|
Loading…
Reference in New Issue