Skip to content

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 以降を使ってください。