fix(valibot-validator): update Hono version and fix test code (#663)
* fix(valibot-validator): update Hono and fix test code * chore: update lockfile * chore: add changeset * chore: remove changesetpull/700/head
parent
9443cb018a
commit
1bd5cdcd09
|
@ -31,7 +31,7 @@
|
||||||
"valibot": ">=0.31.0 <1"
|
"valibot": ">=0.31.0 <1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"hono": "^4.0.10",
|
"hono": "^4.5.1",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
"rimraf": "^5.0.5",
|
"rimraf": "^5.0.5",
|
||||||
"valibot": "^0.31.0"
|
"valibot": "^0.31.0"
|
||||||
|
|
|
@ -2,6 +2,7 @@ import { Hono } from 'hono'
|
||||||
import type { Equal, Expect } from 'hono/utils/types'
|
import type { Equal, Expect } from 'hono/utils/types'
|
||||||
import { number, object, objectAsync, optional, optionalAsync, string } from 'valibot'
|
import { number, object, objectAsync, optional, optionalAsync, string } from 'valibot'
|
||||||
import { vValidator } from '../src'
|
import { vValidator } from '../src'
|
||||||
|
import { StatusCode } from 'hono/utils/http-status'
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
type ExtractSchema<T> = T extends Hono<infer _, infer S> ? S : never
|
type ExtractSchema<T> = T extends Hono<infer _, infer S> ? S : never
|
||||||
|
@ -57,6 +58,8 @@ describe('Basic', () => {
|
||||||
success: boolean
|
success: boolean
|
||||||
message: string
|
message: string
|
||||||
}
|
}
|
||||||
|
status: StatusCode
|
||||||
|
outputFormat: 'json'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -214,6 +217,8 @@ describe('Async', () => {
|
||||||
success: boolean
|
success: boolean
|
||||||
message: string
|
message: string
|
||||||
}
|
}
|
||||||
|
status: StatusCode
|
||||||
|
outputFormat: 'json'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2590,7 +2590,7 @@ __metadata:
|
||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "@hono/valibot-validator@workspace:packages/valibot-validator"
|
resolution: "@hono/valibot-validator@workspace:packages/valibot-validator"
|
||||||
dependencies:
|
dependencies:
|
||||||
hono: "npm:^4.0.10"
|
hono: "npm:^4.5.1"
|
||||||
jest: "npm:^29.7.0"
|
jest: "npm:^29.7.0"
|
||||||
rimraf: "npm:^5.0.5"
|
rimraf: "npm:^5.0.5"
|
||||||
valibot: "npm:^0.31.0"
|
valibot: "npm:^0.31.0"
|
||||||
|
|
Loading…
Reference in New Issue