@exabugs/dynamodb-client 1.3.14 → 1.3.16

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,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.3.16] - 2026-01-03
11
+
12
+ ### Fixed
13
+
14
+ - **重要**: $nearクエリで本体レコードのdata属性からフィールドを正しく抽出するように修正
15
+ - `nearQuery.ts`で`extractCleanRecord()`を使用(`removeShadowKeys()`ではなく)
16
+ - 本体レコードは`{ PK, SK, data: { ...actual fields } }`という構造なので、`data`属性から実際のフィールドを取り出す必要がある
17
+ - これにより、$near検索で正しくレコードデータ(id, name, location等)を取得できるようになった
18
+
19
+ ## [1.3.15] - 2026-01-03
20
+
21
+ ### Fixed
22
+
23
+ - **重要**: $nearクエリでextractCleanRecordの誤用を修正
24
+ - nearQuery.tsのsearchFunctionでremoveShadowKeysを使用(extractCleanRecordではなく)
25
+ - searchFunctionが返すレコードは既にクリーンな形式(data属性なし)のため、extractCleanRecordを使用すると`undefined`になる問題を解決
26
+ - これにより、$near検索で正しくレコードが返されるようになった
27
+
10
28
  ## [1.3.14] - 2026-01-03
11
29
 
12
30
  ### Improved
@@ -1,5 +1,5 @@
1
- // @exabugs/dynamodb-client v1.3.14
2
- // Built: 2026-01-02T15:21:57.892Z
1
+ // @exabugs/dynamodb-client v1.3.16
2
+ // Built: 2026-01-02T16:08:08.383Z
3
3
  "use strict";
4
4
  var __create = Object.create;
5
5
  var __defProp = Object.defineProperty;
@@ -30583,7 +30583,7 @@ async function executeNearQuery(resource, fieldName, nearQuery, limit, requestId
30583
30583
  geohashPrefix,
30584
30584
  count: validRecords.length
30585
30585
  });
30586
- return validRecords;
30586
+ return validRecords.map((record) => extractCleanRecord(record));
30587
30587
  }, "searchFunction");
30588
30588
  const result = await executeNearSearch(
30589
30589
  nearQuery,
@@ -30592,13 +30592,10 @@ async function executeNearQuery(resource, fieldName, nearQuery, limit, requestId
30592
30592
  searchFunction,
30593
30593
  DEFAULT_GEOHASH_CONFIG
30594
30594
  );
30595
- const items = result.documents.map((doc) => {
30596
- const cleanRecord = extractCleanRecord(doc);
30597
- return {
30598
- ...cleanRecord,
30599
- __distance: doc.__distance
30600
- };
30601
- });
30595
+ const items = result.documents.map((doc) => ({
30596
+ ...doc,
30597
+ __distance: doc.__distance
30598
+ }));
30602
30599
  logger9.info("$near query succeeded", {
30603
30600
  requestId,
30604
30601
  resource,
@@ -33456,7 +33453,7 @@ async function handler(event) {
33456
33453
  return createCorsResponse(HTTP_STATUS.OK);
33457
33454
  }
33458
33455
  if (event.requestContext.http.method === "GET" && event.requestContext.http.path === "/version") {
33459
- const version = "1.3.14";
33456
+ const version = "1.3.16";
33460
33457
  return createSuccessResponse({ version, timestamp: (/* @__PURE__ */ new Date()).toISOString() }, requestId);
33461
33458
  }
33462
33459
  if (event.requestContext.http.method !== "POST") {