@exabugs/dynamodb-client 1.3.32 → 1.3.33

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,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.3.33] - 2026-01-08
11
+
12
+ ### Fixed
13
+
14
+ - **filterによるupdateOne修正**: `convertUpdateOneParams`が`filter.id`以外のフィールドを正しく処理するように修正
15
+ - ゲストユーザーのデバイス登録失敗問題を解決
16
+ - `updateOne({ filter: { token: 'xxx' } }, ...)`が正しく動作するように修正
17
+ - `filter.id`が存在する場合は従来通り`{ id, data, options }`を返す(後方互換性)
18
+ - `filter.id`が存在しない場合は`{ filter, data, options }`を返す(新しいfilter対応)
19
+
10
20
  ## [1.3.32] - 2026-01-08
11
21
 
12
22
  ### Added
@@ -1,5 +1,5 @@
1
- // @exabugs/dynamodb-client v1.3.32
2
- // Built: 2026-01-08T12:01:29.501Z
1
+ // @exabugs/dynamodb-client v1.3.33
2
+ // Built: 2026-01-08T12:17:07.872Z
3
3
  "use strict";
4
4
  var __create = Object.create;
5
5
  var __defProp = Object.defineProperty;
@@ -33242,17 +33242,20 @@ function convertInsertOneParams(mongoParams) {
33242
33242
  }
33243
33243
  __name(convertInsertOneParams, "convertInsertOneParams");
33244
33244
  function convertUpdateOneParams(mongoParams) {
33245
- console.log("[DEBUG] convertUpdateOneParams received:", JSON.stringify(mongoParams, null, 2));
33246
- console.log("[DEBUG] mongoParams.filter:", JSON.stringify(mongoParams.filter, null, 2));
33247
- console.log("[DEBUG] mongoParams.filter?.id:", mongoParams.filter?.id);
33248
- console.log("[DEBUG] typeof mongoParams.filter?.id:", typeof mongoParams.filter?.id);
33249
- const id = typeof mongoParams.filter?.id === "string" ? mongoParams.filter.id : void 0;
33250
- if (!id) {
33251
- throw new Error("updateOne requires filter.id");
33245
+ if (!mongoParams.filter) {
33246
+ throw new Error("updateOne requires filter");
33252
33247
  }
33253
33248
  const updateData = mongoParams.update && typeof mongoParams.update === "object" ? "$set" in mongoParams.update ? mongoParams.update.$set || {} : mongoParams.update : {};
33249
+ const id = typeof mongoParams.filter.id === "string" ? mongoParams.filter.id : void 0;
33250
+ if (id) {
33251
+ return {
33252
+ id,
33253
+ data: updateData,
33254
+ options: mongoParams.options
33255
+ };
33256
+ }
33254
33257
  return {
33255
- id,
33258
+ filter: mongoParams.filter,
33256
33259
  data: updateData,
33257
33260
  options: mongoParams.options
33258
33261
  };
@@ -34795,7 +34798,7 @@ async function handler(event) {
34795
34798
  return createCorsResponse(HTTP_STATUS.OK);
34796
34799
  }
34797
34800
  if (event.requestContext.http.method === "GET" && event.requestContext.http.path === "/version") {
34798
- const version = "1.3.32";
34801
+ const version = "1.3.33";
34799
34802
  return createSuccessResponse({ version, timestamp: (/* @__PURE__ */ new Date()).toISOString() }, requestId);
34800
34803
  }
34801
34804
  if (event.requestContext.http.method !== "POST") {