Skip to content

Commit

Permalink
chore(validator): show warnings about the breaking changes (#760)
Browse files Browse the repository at this point in the history
  • Loading branch information
yusukebe committed Dec 30, 2022
1 parent 16896f9 commit a1b0ed1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/middleware/validator/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ export const validatorMiddleware = <
validationFunction: ValidationFunction<P, E, S>,
options?: { done?: Done<P, E> }
) => {
console.warn(`Current Validator Middleware will be changed with "breaking changes" at the ext major release "v3".
See the migration guide: https://github.com/honojs/hono/blob/main/docs/MIGRATION.md`)

const v = new Validator()
const handler: MiddlewareHandler<string, E, S> = async (c, next) => {
const resultSet: ResultSet = {
Expand Down

0 comments on commit a1b0ed1

Please sign in to comment.