hono 2.7.0 → 2.7.1
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.
|
@@ -25,6 +25,8 @@ var import_http_status = require("../../utils/http-status");
|
|
|
25
25
|
var import_object = require("../../utils/object");
|
|
26
26
|
var import_validator = require("../../validator/validator");
|
|
27
27
|
const validatorMiddleware = (validationFunction, options) => {
|
|
28
|
+
console.warn(`Current Validator Middleware will be changed with "breaking changes" at the ext major release "v3".
|
|
29
|
+
See the migration guide: https://github.com/honojs/hono/blob/main/docs/MIGRATION.md`);
|
|
28
30
|
const v = new import_validator.Validator();
|
|
29
31
|
const handler = async (c, next) => {
|
|
30
32
|
var _a;
|
|
@@ -3,6 +3,8 @@ import { getStatusText } from "../../utils/http-status.js";
|
|
|
3
3
|
import { mergeObjects } from "../../utils/object.js";
|
|
4
4
|
import { Validator, VBase, VObjectBase } from "../../validator/validator.js";
|
|
5
5
|
var validatorMiddleware = (validationFunction, options) => {
|
|
6
|
+
console.warn(`Current Validator Middleware will be changed with "breaking changes" at the ext major release "v3".
|
|
7
|
+
See the migration guide: https://github.com/honojs/hono/blob/main/docs/MIGRATION.md`);
|
|
6
8
|
const v = new Validator();
|
|
7
9
|
const handler = async (c, next) => {
|
|
8
10
|
var _a;
|