Repository navigation
Releases
Releases · Senrijs/Senri
v0.3.2
v0.3.1
v0.3.0
0.3.0 (2026-11-12)
⚠ BREAKING CHANGES
- See the migration guide for what to change when upgrading from 0.2.x (the default 1 MiB body limit, the removed exports and the type changes): https://senri.skyia.jp/en/docs/migrate-0-3-0 (Japanese: https://senri.skyia.jp/docs/migrate-0-3-0)
- Code that reads the whole request body (c.body(), a route's body schema, c.req.json() / text() / formData() / arrayBuffer(), and reading c.req.body as a stream) is limited to 1 MiB by default and gets 413 over it. Change it with createApp({ maxBodySize }) (Infinity removes it), or raise it on a route with bodyLimit({ maxSize }), which replaces the default. multipart() limits the whole body to 100 MiB by default (or maxFileSize when larger); set maxTotalSize to accept more. serve() on Bun no longer limits bodies to 128 MiB; set maxRequestBodySize for a server-wide limit.
- RouteTable now takes the table type instead of its keys (RouteTable<T, V>, the same shape as tables from defineRoutes()); app.routes() has one signature. c.json() and c.text() return TypedResponse (still a Response) with the body type and status. The typed client's result is now typed by status (ClientResultOf): ok results have a 2xx status, statuses declared with c.json(body, status) or endpoint({ responses }) have a typed error, and endpoint({ response }) types data.
- parseCookies, serializeCookie and deletionCookie are no longer exported from @senrijs/senri/cookie (use getCookie, setCookie and deleteCookie). resolvePort, DEFAULT_PORT and PortSource are no longer exported from @senrijs/senri/serve (serve() decides the port; read server.port). isLocalUrl is no longer exported from @senrijs/senri/dev.
Features
- limit request bodies to 1 MiB by default, cap multipart() at 100 MiB and drop Bun's 128 MiB serve() limit (#120) (00d3cdd)
- type responses by status in the client and unify the app.routes() table type (#119) (770280b)
Documentation
Code Refactoring
- hide unintentionally public exports and stop public types from referencing private ones (#117) (39cb8c0)
Warning
This version was not published to npm or JSR because the publish job failed. Please use 0.3.1 or later.
この版は公開のジョブが失敗したため、npm と JSR には出ていません。0.3.1 以降を使ってください。
create-senri: v0.1.1
v0.2.23
0.2.23 (2026-11-11)
Features
- metrics: add Prometheus metrics for HTTP requests (metrics / metricsHandler) (aabe5b1)
- otel: trace requests with OpenTelemetry, with optional spans for each middleware (aabe5b1)
Warning
This version was not published to npm or JSR because the publish job failed. Please use 0.3.1 or later.
この版は公開のジョブが失敗したため、npm と JSR には出ていません。0.3.1 以降を使ってください。
v0.2.22
0.2.22 (2026-11-11)
Features
- add csrf() middleware that rejects cross-origin requests by Sec-Fetch-Site and Origin (#102) (6b5be28)
- add defineRoutes(), endpoint() and mergeRoutes() for typed route tables (#104) (44506a9)
- add per-route and per-table middleware to defineRoutes() and endpoint() (#105) (70de705)
- client: add a typed client for defineRoutes() tables (@senrijs/senri/client) (#108) (64fa702)
- context-storage: get the current request's context anywhere with getContext() (#107) (4c07002)
- cookie: add signed cookies (setSignedCookie / getSignedCookie) (#100) (2b30c57)
- jwt: add JWT signing and verification (signJwt / verifyJwt / jwt()) (#103) (0d5a6b6)
- openapi: generate OpenAPI documents from defineRoutes() tables (@senrijs/senri/openapi) (729700e)
- problem: add opt-in Problem Details (RFC 9457) error responses (#101) (0a993f2)
- testing: add testClient() and request() to call an app without a server (@senrijs/senri/testing) (729700e)
- websocket: add upgradeWebSocket() for Bun, Deno, Node.js (with ws) and Cloudflare Workers (729700e)
Bug Fixes
Documentation
Warning
This version was not published to npm or JSR because the publish job failed. Please use 0.3.1 or later.
この版は公開のジョブが失敗したため、npm と JSR には出ていません。0.3.1 以降を使ってください。