Releases: honojs/hono
Releases Β· honojs/hono
v4.6.19
v4.6.18
What's Changed
- perf(types): improve Utilities in
types.ts
by @yusukebe in #3836 - perf(types): define
ParamKey
simply by @yusukebe in #3837 - fix(types): Calculate Context type for each handler by @sushichan044 in #3675
- fix(factory): correct the type of
factory.createMiddleware()
by @yusukebe in #3849
Full Changelog: v4.6.17...v4.6.18
v4.6.17
What's Changed
- fix(helper/factory): Reduce the code size of createMiddleware by @miyaji255 in #3824
- fix(compress): don't compress server-sent events by @dmitri-gb in #3833
- perf(build): Use WebWorker when removing private fields by @miyaji255 in #3821
- chore: deleted mistake comments by @EdamAme-x in #3835
New Contributors
- @miyaji255 made their first contribution in #3824
- @dmitri-gb made their first contribution in #3833
Full Changelog: v4.6.16...v4.6.17
v4.6.16
What's Changed
- fix(jsx/dom): should not return memoized result when context is changed by @usualoma in #3792
- fix(context): single body overrides other returns by @askorupskyy in #3800
- fix(types): correct
app.on(method,path[],middleware,handler)
type by @yusukebe in #3802
Full Changelog: v4.6.15...v4.6.16
v4.6.15
c.json()
etc. throwing type error when the status is contentless code, e.g., 204
From this release, when c.json()
, c.text()
, or c.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()
or c.text()
. So, in that case, please use c.body()
.
app.get('/', (c) => {
return c.body(null, 204)
})
What's Changed
- fix(jsr): exclude unused markdown files by @ryuapp in #3767
- feat(hono/context): contentful status code typing by @askorupskyy in #3763
- refactor(context): remove lint errors by @yusukebe in #3769
- feat(context):
ResponseInit
accepts genericsStatusCode
forstatus
by @yusukebe in #3770 - feat(utils/cookie): Ability to set a priority to cookies in setCookie options by @Beyondo in #3762
- fix(hono-base): don't use Symbol for
COMPOSED_HANDLER
by @yusukebe in #3773
New Contributors
- @askorupskyy made their first contribution in #3763
- @Beyondo made their first contribution in #3762
Full Changelog: v4.6.14...v4.6.15
v4.6.14
What's Changed
- perf(pattern-router): improve performance when create null object by @EdamAme-x in #3730
- perf(trie-router): avoid calling spread operator for
Object.create(null)
by @usualoma in #3735 - fix: Remove
charset
parameter from MIME type ofapplication/json
by @SaekiTominaga in #3743 - fix(streaming) Prevent console.error(undefined) when pipe is aborted by @aantthony in #3747
New Contributors
- @SaekiTominaga made their first contribution in #3743
- @aantthony made their first contribution in #3747
Full Changelog: v4.6.13...v4.6.14
v4.6.13
What's Changed
- refactor: use
Array.prototype.at()
to look at the end by @ryuapp in #3703 - fix(aws-lambda): Fix query string handling for v1 by @Holi0317 in #3717
- chore: Add Cloudflare Static Assets reference to serveStatic deprecation notice by @ambergristle in #3705
- fix(middleware/cors): explicitly return No Content for the statusText when handling an OPTIONS request by @shawncarr in #3719
- fix(utils/ipaddr): support IPv6-mapped IPv4 address by @usualoma in #3727
New Contributors
- @Holi0317 made their first contribution in #3717
- @ambergristle made their first contribution in #3705
- @shawncarr made their first contribution in #3719
Full Changelog: v4.6.12...v4.6.13
v4.6.12
What's Changed
- ci(perf-measures): support
KB
by @EdamAme-x in #3696 - perf(router): sort handlers by score only when necessary by @EdamAme-x in #3697
- feat(css): add CSP nonce to hono/css related style and script tags by @meck93 in #3685
- fix(adapter/aws-lambda): add alb event requestContext undefined check for testing convenience by @ospatil in #3691
New Contributors
Full Changelog: v4.6.11...v4.6.12
v4.6.11
What's Changed
- docs: changed as even smaller by @EdamAme-x in #3664
- chore(build): fix progress of log by @EdamAme-x in #3665
- chore(benchmark): add
qs
for query-param by @yusukebe in #3674 - feat(helper/factory): Calculate Context Type in createHandlers by @sushichan044 in #3670
- ci: compare bundle size by @EdamAme-x in #3661
- chore: enable formatting
perf-measures
by @yusukebe in #3683 - chore: lint
build
andperf-measures
by @yusukebe in #3686 - ci: Display performance measurement results as custom metrics by @k2tzumi in #3491
- fix(base): define
errorHandler
withprivate
not use#
by @yusukebe in #3692
New Contributors
- @sushichan044 made their first contribution in #3670
- @k2tzumi made their first contribution in #3491
Full Changelog: v4.6.10...v4.6.11
v4.6.10
What's Changed
- chore: format
no-response.yml
by @yusukebe in #3622 - ci(deno): merge deno runtime coverage by @usualoma in #3632
- chore: bump
devDependencies
by @EdamAme-x in #3633 - fix(jsr): fix missing exports by @EdamAme-x in #3636
- refactor(hono-base): use object abbreviation notation by @EdamAme-x in #3640
- chore(build): validate if exporting is correct in
package.json
andjsr.json
by @EdamAme-x in #3638 - fix(serveStatic): add guard to prevent reading empty folders by @oussamasf in #3639
- docs(service-worker): fix module docs for service worker adapter by @rwv in #3645
- refactor(hono-base): remove unneeded processes and variables by @EdamAme-x in #3649
- perf(trie-router): optimize and remove unnecessary processes by @EdamAme-x in #3647
- refactor(router): use
#
for private props to reduce the minified bundle size by @EdamAme-x in #3660 - fix(middleware/combine): prevent
c.req.routeIndex
from being changed by @usualoma in #3663
New Contributors
- @oussamasf made their first contribution in #3639
- @rwv made their first contribution in #3645
Full Changelog: v4.6.9...v4.6.10