fix(deps): update dependency hono to ^3.5.0 #351
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^3.4.3
->^3.5.0
Release Notes
honojs/hono (hono)
v3.5.0
Compare Source
Release Notes
Hono v3.5.0 is now available! Here's what's new.
Secure Headers Middleware
We've added the Secure Headers Middleware. It aids in enhancing your app's security by setting HTTP response headers. It's akin to Helmet for Express.
For an in-depth look, visit the documentation. Thanks @watany-dev for the remarkable contribution!
Introducing "Helpers"
We're unveiling a new concept named "Helpers". While similar to middleware, these are not handlers but handy functions. Prior to this release, the cookie-related functions were a part of the Cookie Middleware. These aren't true middleware. Now, they've been transformed into the "Cookie Helper":
However, no worries about breaking changes! The import path
hono/cookie
remains unchanged. So, usage remains consistent with previous versions.Zod OpenAPI Middleware
Zod OpenAPI has been rolled out. Zod OpenAPI Hono is an enhanced Hono class supporting OpenAPI. It enables value and type validation using Zod and also facilitates OpenAPI Swagger documentation generation.
Dive deeper with the documentation.
Deprecated Features
The following features are now marked as deprecated:
queries
in the Validator - Please switch toquery
.c.runtime()
- Transition to the Adapter Helper.app.handleEvent()
- Useapp.fetch()
instead.These will be removed in version 4.
Additional Features
env
togetPath()
. https://github.com/honojs/hono/pull/1345hono/context
has been exported. https://github.com/honojs/hono/pull/1332All Updates
format
script by @watany-dev in https://github.com/honojs/hono/pull/1334package.json
): exporthono/context
by @yusukebe in https://github.com/honojs/hono/pull/1332HonoRequest
as 1st arg by @yusukebe in https://github.com/honojs/hono/pull/1312req.valid()
by @yusukebe in https://github.com/honojs/hono/pull/1351queries
(usequery
instead) by @yusukebe in https://github.com/honojs/hono/pull/1350header
andcookie
by @yusukebe in https://github.com/honojs/hono/pull/1352env
togetPath()
by @yusukebe in https://github.com/honojs/hono/pull/1345header
andcookie
types by @yusukebe in https://github.com/honojs/hono/pull/1359Context
methods by @asaxeye in https://github.com/honojs/hono/pull/1357middleware.ts
): export secure-headers for Deno by @yusukebe in https://github.com/honojs/hono/pull/1361New Contributors
Full Changelog: honojs/hono@v3.4.3...v3.5.0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.