Skip to content

v0.5.1

Choose a tag to compare

@youtyan youtyan released this 29 Jun 07:03
94f36fd

Highlights

サーバログ可視性の改善と空 catch エラー握り潰し防止の lint 追加を中心としたパッチリリース。

Changes

refactor(logging) #102

  • Datastore Viewer のアクセスログに 4xx/5xx の response body 理由を出すよう改修
    • 例: [code-viewer] GET /_db/history?... 400 1ms :: invalid schema parameter
  • Biome に noEmptyBlockStatements: "error" を追加し、空 catch でのエラー握り潰しを禁止
  • 既存 112 件の空ブロックを () => undefined / { /* noop */ } / // Intentional: 理由 コメントで対応
  • logResponseWithReason の API を (prefix, req, url, res, startMs, opts?) に整理
  • 内部 FIFO キューでアクセスログの時系列順を保証
  • res.clone() は同期で確保する契約に固定(Bun.serve のボディストリーミングと競合しない)
  • handle-shared-logging.test.ts 新規追加(13 件 / 26 expect)

chore(release) #103

  • package.json を v0.5.1 へ