Releases: honojs/middleware
Releases · honojs/middleware
@hono/[email protected]
Minor Changes
- #898
b71d817f7108393e07969ab814c26ec8eef759c0
Thanks @G4brym! - Handle Access organization does not exist and Access not available cases
@hono/[email protected]
Minor Changes
-
#888
c63470e4915a0680c624bf97d52487572185a2d5
Thanks @miyaji255! - Enables handling ofnumber
,boolean
, andbigint
types in query parameters and headers.- import { typiaValidator } from '@hono/typia-validator'; + import { typiaValidator } from '@hono/typia-validator/http'; import { Hono } from 'hono'; import typia, { type tags } from 'typia'; interface Schema { - pages: `${number}`[]; + pages: (number & tags.Type<'uint32'>)[]; } const app = new Hono() .get( '/books', typiaValidator( - typia.createValidate<Schema>(), + typia.http.createValidateQuery<Schema>(), async (result, c) => { if (!result.success) return c.text('Invalid query parameters', 400); - return { pages: result.data.pages.map(Number) }; } ), async c => { const { pages } = c.req.valid('query'); // { pages: number[] } //... } )
@hono/[email protected]
Patch Changes
- #860
803f011e41ecb3da503ddb2b3286c6d7606d9c4b
Thanks @askorupskyy! - Case-insensitive Zod schemas for headers
@hono/[email protected]
Minor Changes
- #880
2720ac7172281317fa7fb4a59b2388cfeb9f6388
Thanks @G4brym! - Initial release
@hono/[email protected]
Patch Changes
- #876
a092ffaadb3a265a207acc558e6cd021fc3bb6d9
Thanks @HusamElbashir! - Fixed case-sensitivity of the WebSocket "Upgrade" header value
@hono/[email protected]
Minor Changes
- #866
c815055bb6669aff8fccf5f478983906c65aca9d
Thanks @Micnubinub! - Added ability to remove properties that are not in the schema to emulate other validators like zod
@hono/[email protected]
Patch Changes
- #864
d67e279d8289d8a0e5c0a71b80f8703b4a97a0c4
Thanks @Gaubee! - fix(trpc-server) wrap Request with Proxy getter receiver should Request-instance
@hono/[email protected]
Patch Changes
- #850
ee83665c5e01acbcfaaddcd552f2f6d2d3e8006c
Thanks @Gaubee! - Use honoReq's bodyCache to provide a body function for trpc's req
@hono/[email protected]
Minor Changes
- #859
739d4a01fc4e2f3d3c252d617ae27058c40c9b37
Thanks @baseballyama! - feat: support[email protected]
@hono/[email protected]
Patch Changes
- #855
3f63c46fa66bfb7f1d80174bfb160cccfa69f0bc
Thanks @jstri! - fix: support default response