fix(deps): update dependency hono to ^4.7.0 - autoclosed#187
Closed
renovate[bot] wants to merge 1 commit intotrunkfrom
Closed
fix(deps): update dependency hono to ^4.7.0 - autoclosed#187renovate[bot] wants to merge 1 commit intotrunkfrom
renovate[bot] wants to merge 1 commit intotrunkfrom
Conversation
f43527a to
841a6b9
Compare
841a6b9 to
ab05ef8
Compare
47adf9a to
f0e6ffe
Compare
f0e6ffe to
297d9c9
Compare
8e8ae41 to
ce5f13a
Compare
7fd4176 to
6cefa24
Compare
057863d to
895885b
Compare
0427fae to
8606cd9
Compare
8606cd9 to
22963ff
Compare
|
Updated and removed dependencies detected. Learn more about Socket for GitHub ↗︎
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
^4.6.20->^4.7.0Release Notes
honojs/hono (hono)
v4.7.0Compare Source
Release Notes
Hono v4.7.0 is now available!
This release introduces one helper and two middleware.
Plus, Standard Schema Validator has been born.
Let's look at each of these.
Proxy Helper
We sometimes use the Hono application as a reverse proxy. In that case, it accesses the backend using
fetch. However, it sends an unintended headers.For example,
fetchmay sendAccept-Encoding, causing the origin server to return a compressed response. Some runtimes automatically decode it, leading to aContent-Lengthmismatch and potential client-side errors.Also, you should probably remove some of the headers sent from the origin server, such as
Transfer-Encoding.Proxy Helper will send requests to the origin and handle responses properly. The above headers problem is solved simply by writing as follows.
You can also use it in more complex ways.
Thanks @usualoma!
Language Middleware
Language Middleware provides 18n functions to Hono applications. By using the
languageDetectorfunction, you can get the language that your application should support.You can get the target language in various ways, not just by using
Accept-Language.Accept-LanguageheaderThanks @lord007tn!
JWK Auth Middleware
Finally, middleware that supports JWK (JSON Web Key) has landed. Using JWK Auth Middleware, you can authenticate by verifying JWK tokens. It can access keys fetched from the specified URL.
Thanks @Beyondo!
Standard Schema Validator
Standard Schema provides a common interface for TypeScript validator libraries. Standard Schema Validator is a validator that uses it. This means that Standard Schema Validator can handle several validators, such as Zod, Valibot, and ArkType, with the same interface.
The code below really works!
Thanks @muningis!
New features
All changes
yarnby @EdamAme-x in https://github.com/honojs/hono/pull/3878toLowerCase()is unnecessary forreq.header()by @yusukebe in https://github.com/honojs/hono/pull/3880envtype by @yusukebe in https://github.com/honojs/hono/pull/3885c.json({})by @yusukebe in https://github.com/honojs/hono/pull/3873deno.lockby @yusukebe in https://github.com/honojs/hono/pull/3897New Contributors
Full Changelog: honojs/hono@v4.6.20...v4.7.0
Configuration
📅 Schedule: Branch creation - "* 0-3 * * 1" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.