Releases: jder-std/hono
Releases · jder-std/hono
@jderjs/[email protected]
What's Changed
- Update
@jderjs/core
@jderjs/[email protected]
What's Changed
- Update
@jderjs/hono
@jderjs/[email protected]
What's New
- Export
BODY_LIMIT_MAX_DEFAULT
- Export
TIME_LIMIT_MAX_DEFAULT
What's Changed
max
param inbodyLimit
defaults toBODY_LIMIT_MAX_DEFAULT
max
param intimeLimit
defaults toTIME_LIMIT_MAX_DEFAULT
- Updates in types of
createResponse
andcreateJsonResponse
@jderjs/[email protected]
What's Changed
- Update
@jderjs/hono
@jderjs/[email protected]
What's Changed
- Move
@jderjs/hono
to peer dependency - Update
@hono/zod-validator
- Fix the types
@jderjs/[email protected]
What's New
- Add support for Zod 4
What's Changed
- Require
zod@^3.25.6
@jderjs/[email protected]
Breaking Changes
- Changes in input of
createResponse
andcreateJsonResponse
What's New
- Add compatibility with
hono/ip-restriction
:
import { Hono } from "hono";
import { ipLimit } from "@jderjs/hono/ip-limit";
import { getConnInfo } from "@hono/node-server/conninfo";
const app: Hono = new Hono();
app.use(
ipLimit({
getConnInfo,
allowList: ["127.0.0.1"],
})
);
// Alternatively, the parameters can be passed in this format:
app.use(
ipLimit(getConnInfo, {
allowList: ["127.0.0.1"],
})
);
Migrating from 0.1.x to 0.2.x
import type { Context } from "hono";
import { createJsonResponse } from "@jderjs/hono";
const route = (c: Context): Response => {
- return createJsonResponse({ c, /* ... */ });
+ return createJsonResponse(c, { /* ... */ });
};
@jderjs/[email protected]
First release
0.1.1
What's Changed
- Update documentation
0.1.0
First release