Releases: honojs/middleware
Releases · honojs/middleware
@hono/cloudflare-access@0.2.0
Minor Changes
- #898
b71d817f7108393e07969ab814c26ec8eef759c0
Thanks @G4brym! - Handle Access organization does not exist and Access not available cases
@hono/typia-validator@0.1.0
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/zod-validator@0.4.2
Patch Changes
- #860
803f011e41ecb3da503ddb2b3286c6d7606d9c4b
Thanks @askorupskyy! - Case-insensitive Zod schemas for headers
@hono/cloudflare-access@0.1.0
Minor Changes
- #880
2720ac7172281317fa7fb4a59b2388cfeb9f6388
Thanks @G4brym! - Initial release
@hono/node-ws@1.0.5
Patch Changes
- #876
a092ffaadb3a265a207acc558e6cd021fc3bb6d9
Thanks @HusamElbashir! - Fixed case-sensitivity of the WebSocket "Upgrade" header value
@hono/typebox-validator@0.3.0
Minor Changes
- #866
c815055bb6669aff8fccf5f478983906c65aca9d
Thanks @Micnubinub! - Added ability to remove properties that are not in the schema to emulate other validators like zod
@hono/trpc-server@0.3.4
Patch Changes
- #864
d67e279d8289d8a0e5c0a71b80f8703b4a97a0c4
Thanks @Gaubee! - fix(trpc-server) wrap Request with Proxy getter receiver should Request-instance
@hono/trpc-server@0.3.3
Patch Changes
- #850
ee83665c5e01acbcfaaddcd552f2f6d2d3e8006c
Thanks @Gaubee! - Use honoReq's bodyCache to provide a body function for trpc's req
@hono/effect-validator@1.2.0
Minor Changes
- #859
739d4a01fc4e2f3d3c252d617ae27058c40c9b37
Thanks @baseballyama! - feat: supporteffect@3.10.0
@hono/zod-openapi@0.18.3
Patch Changes
- #855
3f63c46fa66bfb7f1d80174bfb160cccfa69f0bc
Thanks @jstri! - fix: support default response