Skip to content

Releases: honojs/middleware

@hono/cloudflare-access@0.2.0

23 Dec 02:27
c9d96ee
Compare
Choose a tag to compare

Minor Changes

@hono/typia-validator@0.1.0

15 Dec 10:02
f30f7ee
Compare
Choose a tag to compare

Minor Changes

  • #888 c63470e4915a0680c624bf97d52487572185a2d5 Thanks @miyaji255! - Enables handling of number, boolean, and bigint 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

13 Dec 08:04
9150550
Compare
Choose a tag to compare

Patch Changes

@hono/cloudflare-access@0.1.0

13 Dec 08:25
f58f47e
Compare
Choose a tag to compare

@hono/node-ws@1.0.5

10 Dec 04:04
27ff98f
Compare
Choose a tag to compare

Patch Changes

@hono/typebox-validator@0.3.0

03 Dec 08:55
6524a92
Compare
Choose a tag to compare

Minor Changes

@hono/trpc-server@0.3.4

03 Dec 01:09
21403ec
Compare
Choose a tag to compare

Patch Changes

@hono/trpc-server@0.3.3

02 Dec 01:16
71c1e66
Compare
Choose a tag to compare

Patch Changes

@hono/effect-validator@1.2.0

02 Dec 02:06
1765934
Compare
Choose a tag to compare

Minor Changes

@hono/zod-openapi@0.18.3

29 Nov 12:15
3bd19ae
Compare
Choose a tag to compare

Patch Changes