Skip to content

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