[Snyk] Upgrade hono from 4.5.8 to 4.6.15 #43
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.
Snyk has created this PR to upgrade hono from 4.5.8 to 4.6.15.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 19 versions ahead of your current version.
The recommended version was released a month ago.
Issues fixed by the recommended upgrade:
SNYK-JS-HONO-8220272
Release notes
Package name: hono
c.json()
etc. throwing type error when the status is contentless code, e.g., 204From this release, when
c.json()
,c.text()
, orc.html()
returns content, specifying a contentless status code such as 204 will now throw a type error.At first glance, this seems like a breaking change but not. It is not possible to return a contentless response with
c.json()
orc.text()
. So, in that case, please usec.body()
.What's Changed
ResponseInit
accepts genericsStatusCode
forstatus
by @ yusukebe in #3770COMPOSED_HANDLER
by @ yusukebe in #3773New Contributors
Full Changelog: v4.6.14...v4.6.15
What's Changed
Object.create(null)
by @ usualoma in #3735charset
parameter from MIME type ofapplication/json
by @ SaekiTominaga in #3743New Contributors
Full Changelog: v4.6.13...v4.6.14
What's Changed
Array.prototype.at()
to look at the end by @ ryuapp in #3703New Contributors
Full Changelog: v4.6.12...v4.6.13
What's Changed
KB
by @ EdamAme-x in #3696New Contributors
Full Changelog: v4.6.11...v4.6.12
What's Changed
qs
for query-param by @ yusukebe in #3674perf-measures
by @ yusukebe in #3683build
andperf-measures
by @ yusukebe in #3686errorHandler
withprivate
not use#
by @ yusukebe in #3692New Contributors
Full Changelog: v4.6.10...v4.6.11
What's Changed
no-response.yml
by @ yusukebe in #3622devDependencies
by @ EdamAme-x in #3633package.json
andjsr.json
by @ EdamAme-x in #3638#
for private props to reduce the minified bundle size by @ EdamAme-x in #3660c.req.routeIndex
from being changed by @ usualoma in #3663New Contributors
Full Changelog: v4.6.9...v4.6.10
What's Changed
c.req.param
decodes invalid percent strings by @ yusukebe in #3573memo
for DOM renderer by @ usualoma in #3568.concat
instead of spread syntax by @ EdamAme-x in #3584any
and fix types of adapter/deno by @ EdamAme-x in #3291.matchRoute
and reduce bundle size by @ EdamAme-x in #3595c.redirect()
by @ cometkim in #3609| 0
instead ofMath.floor
by @ EdamAme-x in #3605#
for private methods to reduce the minified file size by @ yusukebe in #3596New Contributors
Full Changelog: v4.6.8...v4.6.9
What's Changed
--hot
by @ nakasyou in #3576