Skip to content

v0.5.0

Compare
Choose a tag to compare
@github-actions github-actions released this 02 Nov 18:39
b383c96

0.5.0 (2024-11-02)

Features

  • Do not use slow types (#35) (9e4edbe)
  • Response message can be overridden (#27) (62d89d9)
  • Use referRequestIdKey instead of the reqId option. (#33) (efc9f07)

The reqId option has been deprecated and replaced with referRequestIdKey,
By default, it references the requestId in the context,
This is an example of working with the official requestId middleware.

import { Hono } from "hono";
import { pinoLogger } from "hono-pino";
import { requestId } from "hono/request-id";

const app = new Hono()
  .use(requestId())
  .use(pinoLogger())
  .get('/', (c) => c.text(`requestId: ${c.get('requestId')}`));