hono 2.7.0 → 2.7.2
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.
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2021 Yusuke Wada
|
|
3
|
+
Copyright (c) 2021 - present, Yusuke Wada and Hono contributors
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hono",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.2",
|
|
4
4
|
"description": "Ultrafast web framework for Cloudflare Workers, Deno, and Bun.",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -130,7 +130,8 @@
|
|
|
130
130
|
"require": "./dist/cjs/router/smart-router/index.js"
|
|
131
131
|
},
|
|
132
132
|
"./router/static-router": {
|
|
133
|
-
"
|
|
133
|
+
"types": "./dist/types/router/static-router/index.d.ts",
|
|
134
|
+
"import": "./dist/router/static-router/index.js",
|
|
134
135
|
"require": "./dist/cjs/router/static-router/index.js"
|
|
135
136
|
},
|
|
136
137
|
"./router/trie-router": {
|