@exabugs/dynamodb-client 1.3.12 → 1.3.14
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 +15 -0
- package/dist/server/handler.cjs +8 -5
- 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 +10 -7
- package/dist/server/operations/find/nearQuery.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.3.14] - 2026-01-03
|
|
11
|
+
|
|
12
|
+
### Improved
|
|
13
|
+
|
|
14
|
+
- **コード品質**: $nearクエリの型定義を改善(`any` → `Record<string, unknown>`)
|
|
15
|
+
- **ドキュメント**: nearQuery.tsのコメントを明確化(SKの構造を正確に説明)
|
|
16
|
+
- **型安全性**: 型アサーションを改善して型安全性を向上
|
|
17
|
+
|
|
18
|
+
## [1.3.13] - 2026-01-03
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
|
|
22
|
+
- **重要**: $nearクエリでdata.\_\_shadowKeysが除外されない問題を修正
|
|
23
|
+
- nearQuery.tsでextractCleanRecordを使用(mainレコードのdata属性から\_\_shadowKeysを除外)
|
|
24
|
+
|
|
10
25
|
## [1.3.12] - 2026-01-02
|
|
11
26
|
|
|
12
27
|
### 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.14
|
|
2
|
+
// Built: 2026-01-02T15:21:57.892Z
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
@@ -30563,6 +30563,7 @@ async function executeNearQuery(resource, fieldName, nearQuery, limit, requestId
|
|
|
30563
30563
|
KeyConditionExpression: "PK = :pk AND SK = :sk",
|
|
30564
30564
|
ExpressionAttributeValues: {
|
|
30565
30565
|
":pk": resource,
|
|
30566
|
+
// venues
|
|
30566
30567
|
":sk": `id#${id}`
|
|
30567
30568
|
},
|
|
30568
30569
|
ConsistentRead: true
|
|
@@ -30573,7 +30574,9 @@ async function executeNearQuery(resource, fieldName, nearQuery, limit, requestId
|
|
|
30573
30574
|
return result2.Items?.[0];
|
|
30574
30575
|
})
|
|
30575
30576
|
);
|
|
30576
|
-
const validRecords = mainRecords.filter(
|
|
30577
|
+
const validRecords = mainRecords.filter(
|
|
30578
|
+
(item) => item !== void 0
|
|
30579
|
+
);
|
|
30577
30580
|
logger9.debug("Main records retrieved", {
|
|
30578
30581
|
requestId,
|
|
30579
30582
|
resource,
|
|
@@ -30590,7 +30593,7 @@ async function executeNearQuery(resource, fieldName, nearQuery, limit, requestId
|
|
|
30590
30593
|
DEFAULT_GEOHASH_CONFIG
|
|
30591
30594
|
);
|
|
30592
30595
|
const items = result.documents.map((doc) => {
|
|
30593
|
-
const cleanRecord =
|
|
30596
|
+
const cleanRecord = extractCleanRecord(doc);
|
|
30594
30597
|
return {
|
|
30595
30598
|
...cleanRecord,
|
|
30596
30599
|
__distance: doc.__distance
|
|
@@ -33453,7 +33456,7 @@ async function handler(event) {
|
|
|
33453
33456
|
return createCorsResponse(HTTP_STATUS.OK);
|
|
33454
33457
|
}
|
|
33455
33458
|
if (event.requestContext.http.method === "GET" && event.requestContext.http.path === "/version") {
|
|
33456
|
-
const version = "1.3.
|
|
33459
|
+
const version = "1.3.14";
|
|
33457
33460
|
return createSuccessResponse({ version, timestamp: (/* @__PURE__ */ new Date()).toISOString() }, requestId);
|
|
33458
33461
|
}
|
|
33459
33462
|
if (event.requestContext.http.method !== "POST") {
|