@exabugs/dynamodb-client 1.3.17 → 1.3.19

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,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.3.19] - 2026-01-03
11
+
12
+ ### Changed
13
+
14
+ - デバッグログを削除(v1.3.17で追加した調査用ログを削除)
15
+
16
+ ## [1.3.18] - 2026-01-03
17
+
18
+ ### Fixed
19
+
20
+ - **重要**: extractCleanRecord関数でdata属性が存在しない場合の処理を修正
21
+ - シャドーレコードにはdata属性がないため、item自体をフォールバックとして使用
22
+ - これにより$nearクエリでメインレコードが正しく抽出されるようになった
23
+
10
24
  ## [1.3.17] - 2026-01-03
11
25
 
12
26
  ### Fixed
@@ -1,5 +1,5 @@
1
- // @exabugs/dynamodb-client v1.3.17
2
- // Built: 2026-01-02T16:21:41.798Z
1
+ // @exabugs/dynamodb-client v1.3.19
2
+ // Built: 2026-01-02T17:11:27.216Z
3
3
  "use strict";
4
4
  var __create = Object.create;
5
5
  var __defProp = Object.defineProperty;
@@ -29773,7 +29773,7 @@ function removeShadowKeys(record) {
29773
29773
  }
29774
29774
  __name(removeShadowKeys, "removeShadowKeys");
29775
29775
  function extractCleanRecord(item) {
29776
- const data2 = item.data;
29776
+ const data2 = item.data || item;
29777
29777
  return removeShadowKeys(data2);
29778
29778
  }
29779
29779
  __name(extractCleanRecord, "extractCleanRecord");
@@ -30583,22 +30583,7 @@ async function executeNearQuery(resource, fieldName, nearQuery, limit, requestId
30583
30583
  geohashPrefix,
30584
30584
  count: validRecords.length
30585
30585
  });
30586
- const cleanRecords = validRecords.map((record) => {
30587
- logger9.debug("Before extractCleanRecord", {
30588
- requestId,
30589
- resource,
30590
- recordKeys: Object.keys(record),
30591
- hasData: "data" in record
30592
- });
30593
- const clean = extractCleanRecord(record);
30594
- logger9.debug("After extractCleanRecord", {
30595
- requestId,
30596
- resource,
30597
- cleanKeys: Object.keys(clean),
30598
- hasLocation: "location" in clean
30599
- });
30600
- return clean;
30601
- });
30586
+ const cleanRecords = validRecords.map((record) => extractCleanRecord(record));
30602
30587
  logger9.debug("Clean records extracted", {
30603
30588
  requestId,
30604
30589
  resource,
@@ -33473,7 +33458,7 @@ async function handler(event) {
33473
33458
  return createCorsResponse(HTTP_STATUS.OK);
33474
33459
  }
33475
33460
  if (event.requestContext.http.method === "GET" && event.requestContext.http.path === "/version") {
33476
- const version = "1.3.17";
33461
+ const version = "1.3.19";
33477
33462
  return createSuccessResponse({ version, timestamp: (/* @__PURE__ */ new Date()).toISOString() }, requestId);
33478
33463
  }
33479
33464
  if (event.requestContext.http.method !== "POST") {