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 changeset
pull/700/head
Shotaro Nakamura 2024-08-21 20:20:37 +09:00 committed by GitHub
parent 9443cb018a
commit 1bd5cdcd09
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 2 deletions

View File

@ -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"

View File

@ -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'
} }
} }
} }

View File

@ -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"