Skip to content

Releases: honojs/hono

v4.6.19

26 Jan 09:32
Compare
Choose a tag to compare

What's Changed

  • fix(types): missing response type on OnHandlerInterface by @sor4chi in #3852
  • fix(helper/adapter): env should set c type correctly by @yusukebe in #3856

Full Changelog: v4.6.18...v4.6.19

v4.6.18

23 Jan 10:07
Compare
Choose a tag to compare

What's Changed

Full Changelog: v4.6.17...v4.6.18

v4.6.17

18 Jan 08:16
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v4.6.16...v4.6.17

v4.6.16

05 Jan 09:18
Compare
Choose a tag to compare

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

28 Dec 07:57
Compare
Choose a tag to compare

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.

CleanShot 2024-12-28 at 16 47 39@2x

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 generics StatusCode for status 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

Full Changelog: v4.6.14...v4.6.15

v4.6.14

14 Dec 13:29
Compare
Choose a tag to compare

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 of application/json by @SaekiTominaga in #3743
  • fix(streaming) Prevent console.error(undefined) when pipe is aborted by @aantthony in #3747

New Contributors

Full Changelog: v4.6.13...v4.6.14

v4.6.13

06 Dec 07:17
Compare
Choose a tag to compare

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

Full Changelog: v4.6.12...v4.6.13

v4.6.12

25 Nov 03:44
Compare
Choose a tag to compare

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

19 Nov 23:50
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v4.6.10...v4.6.11

v4.6.10

13 Nov 08:34
Compare
Choose a tag to compare

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 and jsr.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

Full Changelog: v4.6.9...v4.6.10