Releases: maou-shonen/hono-pino
Releases · maou-shonen/hono-pino
v0.7.0
v0.6.0
v0.5.1
v0.5.0
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')}`));
v0.4.0
What's Changed
- Changed the middleware name to pinoLogger by @maou-shonen in #18
- Change internal
logger
to_logger
by @maou-shonen in #20 - Enhanced-bindings-methods by @maou-shonen in #21
- Bump the npm_and_yarn group with 3 updates by @dependabot in #22
- change setBindings to clearBindings by @maou-shonen in #23
- update README.md by @maou-shonen in #24
- update jsdoc by @maou-shonen in #25
- Version Packages by @github-actions in #19
New Contributors
- @maou-shonen made their first contribution in #18
Full Changelog: v0.3.0...v0.4.0