@exabugs/dynamodb-client 1.3.15 → 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 +9 -0
- package/dist/server/handler.cjs +4 -4
- package/dist/server/handler.cjs.map +2 -2
- package/dist/server/operations/find/nearQuery.d.ts.map +1 -1
- package/dist/server/operations/find/nearQuery.js +5 -6
- package/dist/server/operations/find/nearQuery.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,15 @@ 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
|
+
|
|
10
19
|
## [1.3.15] - 2026-01-03
|
|
11
20
|
|
|
12
21
|
### Fixed
|
package/dist/server/handler.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// @exabugs/dynamodb-client v1.3.
|
|
2
|
-
// Built: 2026-01-
|
|
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.map((record) =>
|
|
30586
|
+
return validRecords.map((record) => extractCleanRecord(record));
|
|
30587
30587
|
}, "searchFunction");
|
|
30588
30588
|
const result = await executeNearSearch(
|
|
30589
30589
|
nearQuery,
|
|
@@ -33453,7 +33453,7 @@ async function handler(event) {
|
|
|
33453
33453
|
return createCorsResponse(HTTP_STATUS.OK);
|
|
33454
33454
|
}
|
|
33455
33455
|
if (event.requestContext.http.method === "GET" && event.requestContext.http.path === "/version") {
|
|
33456
|
-
const version = "1.3.
|
|
33456
|
+
const version = "1.3.16";
|
|
33457
33457
|
return createSuccessResponse({ version, timestamp: (/* @__PURE__ */ new Date()).toISOString() }, requestId);
|
|
33458
33458
|
}
|
|
33459
33459
|
if (event.requestContext.http.method !== "POST") {
|