Skip to content

Releases

v0.3.2

Choose a tag to compare

@github-actions github-actions released this 15 Nov 09:49
e500091

0.3.2 (2026-11-15)

Performance Improvements

  • speed up Node with middleware and Deno plain text; raise the size target to 8 KB (#134) (f210265)

v0.3.1

Choose a tag to compare

@github-actions github-actions released this 12 Nov 05:23
d1292bf

0.3.1 (2026-11-12)

Bug Fixes

  • type the websocket exports for JSR and make create-senri templates depend on @senrijs/senri ^0.3.0 (#122) (c04d4e4)

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 12 Nov 05:08
8da9f4f

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

Choose a tag to compare

@github-actions github-actions released this 12 Nov 05:30
36e0ae3

0.1.1 (2026-11-12)

Bug Fixes

  • type the websocket exports for JSR and make create-senri templates depend on @senrijs/senri ^0.3.0 (#122) (c04d4e4)

v0.2.23

Choose a tag to compare

@github-actions github-actions released this 11 Nov 09:04
979e2f7

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

Choose a tag to compare

@github-actions github-actions released this 11 Nov 08:50
b843ea0

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

  • static: check the opened file is inside the root, not the path before opening (#98) (fbb9056)

Documentation

  • check off the performance item in the roadmap (#96) (baba467)

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.21

Choose a tag to compare

@github-actions github-actions released this 10 Nov 04:50
aeeaced

0.2.21 (2026-11-10)

Performance Improvements

  • skip the Host header on Bun and answer the default 404 on Node.js without a Response (#91) (ff7ec28)

v0.2.20

Choose a tag to compare

@github-actions github-actions released this 10 Nov 04:25
e1e693c

0.2.20 (2026-11-10)

Bug Fixes

  • make safeFileName() run in linear time on long runs of dots and spaces (ReDoS) (#92) (042d989)
  • serve: let serve() set the request body limit on every runtime (maxRequestBodySize) (#89) (cfa42fd)

v0.2.19

Choose a tag to compare

@github-actions github-actions released this 09 Nov 08:44
419fd63

0.2.19 (2026-11-09)

Bug Fixes

  • dev: keep the error page working when localStorage is blocked (#69) (1beaea4)

v0.2.18

Choose a tag to compare

@github-actions github-actions released this 08 Nov 08:57
b287895

0.2.18 (2026-11-08)

Features

  • add multipart() to read multipart/form-data part by part (#66) (74e1c59)