@exabugs/dynamodb-client 1.11.1 → 1.11.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.11.3] - 2026-10-13
11
+
12
+ ### Fixed
13
+
14
+ - `createErrorResponse`が全エラーを無条件に`error`レベルでログ出力し、`details`(`resource`/`id`等の文脈)をログに含めていなかった。存在しないIDの参照(404)のような日常的に起きうる失敗まで`error`として記録され、運用通知(ADR-0008)がノイズになっていた。4xx(クライアント起因)は`warn`、5xx(サーバー起因)のみ`error`にし、`event`に`code`(例: `ITEM_NOT_FOUND`)、ログに`details`を含めるようにした
15
+ - `event`が無いと、通知の重複抑制の指紋(`app#env#level#event#target`)がメッセージ先頭60文字になり、IDを含むメッセージ(`Record not found: <id>`)は毎回別の指紋になって抑制が効かなかった。`event: code`により同種のエラーが正しく集約されるようになる
16
+
17
+ ## [1.11.2] - 2026-10-12
18
+
19
+ ### Fixed
20
+
21
+ - `terraform/media`: 署名鍵のローテーション(SSM パラメータの値変更)で `aws_cloudfront_public_key` を差し替えると、`aws_cloudfront_key_group` に紐づいたまま旧キーを削除しようとして `PublicKeyInUse` エラーで失敗していた。`create_before_destroy` を付け、固定 `name` を `name_prefix` に変更(新旧キーの一時共存に必要)し、先に新キーを作ってから旧キーを削除する順序にした
22
+
10
23
  ## [1.11.1] - 2026-10-12
11
24
 
12
25
  ### Fixed
@@ -1,5 +1,5 @@
1
- // @exabugs/dynamodb-client v1.11.1
2
- // Built: 2026-10-12T06:56:36.671Z
1
+ // @exabugs/dynamodb-client v1.11.3
2
+ // Built: 2026-10-13T08:14:08.936Z
3
3
  "use strict";
4
4
  var __create = Object.create;
5
5
  var __defProp = Object.defineProperty;
@@ -38844,11 +38844,13 @@ function createErrorResponse(code, message, statusCode, requestId, details) {
38844
38844
  details
38845
38845
  }
38846
38846
  };
38847
- logger25.error("Request failed", {
38847
+ const level = statusCode >= 500 ? "error" : "warn";
38848
+ logger25[level]("Request failed", {
38848
38849
  requestId,
38849
- code,
38850
+ event: code,
38850
38851
  message,
38851
- statusCode
38852
+ statusCode,
38853
+ ...details !== void 0 && details !== null ? { details } : {}
38852
38854
  });
38853
38855
  return {
38854
38856
  statusCode,
@@ -38987,7 +38989,7 @@ async function handler(event) {
38987
38989
  return createCorsResponse(HTTP_STATUS.OK);
38988
38990
  }
38989
38991
  if (event.requestContext.http.method === "GET" && event.requestContext.http.path === "/version") {
38990
- const version = "1.11.1";
38992
+ const version = "1.11.3";
38991
38993
  return createSuccessResponse({ version, timestamp: (/* @__PURE__ */ new Date()).toISOString() }, requestId);
38992
38994
  }
38993
38995
  if (event.requestContext.http.method !== "POST") {