@exabugs/dynamodb-client 1.2.5 → 1.3.1

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,73 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.3.1] - 2026-01-02
11
+
12
+ ### Fixed
13
+
14
+ - **$nearオペレータ**: GeoHashシャドウレコード検索の修正
15
+ - フィールド名を直接使用するように変更(`_geohash`サフィックスを削除)
16
+ - シャドウレコードの実際の形式に合わせて修正(例: `location#xn74rnmx#id#...`)
17
+ - これにより$nearオペレータが正しく結果を返すようになりました
18
+
19
+ ## [1.3.0] - 2026-01-02
20
+
21
+ ### Added
22
+
23
+ - **$nearオペレータ**: MongoDB互換の地理空間検索機能
24
+ - 簡易形式とGeoJSON形式の両方をサポート
25
+ - 9ブロック検索アルゴリズム(中心 + 隣接8方向)
26
+ - 段階的精度緩和(precision 6→5→4)
27
+ - 距離フィルタリング(maxDistance、minDistance)
28
+ - 自動距離計算とソート(`__distance`フィールド)
29
+ - find操作との透過的な統合
30
+
31
+ - **包括的なテストカバレッジ**: 115の新規テスト追加(355→449テスト)
32
+ - nearQuery.ts: 100%カバレッジ(21テスト)
33
+ - filter.ts: 98.37%カバレッジ(54テスト)
34
+ - find/utils.ts: 100%カバレッジ(40テスト)
35
+
36
+ ### Changed
37
+
38
+ - **find操作**: $nearオペレータの自動検出と実行
39
+ - **filter.ts**: 複雑なフィルター構文のサポート改善
40
+
41
+ ### Technical
42
+
43
+ - **新規ファイル**:
44
+ - `src/server/operations/find/nearQuery.ts` - $near検索の実装
45
+ - `__tests__/near-query.test.ts` - nearQuery単体テスト
46
+ - `__tests__/near-search.test.ts` - 9ブロック検索テスト
47
+ - `__tests__/find-near.test.ts` - find統合テスト
48
+ - `__tests__/filter-comprehensive.test.ts` - filter包括テスト
49
+ - `__tests__/find-utils-comprehensive.test.ts` - find/utils包括テスト
50
+
51
+ ## [1.2.6] - 2026-01-02
52
+
53
+ ### Added
54
+
55
+ - **$nearオペレータの完全実装**: find操作での地理空間検索を完全サポート
56
+ - `detectNearQuery()`: $nearオペレータの自動検出(簡易形式・GeoJSON形式)
57
+ - `executeNearQuery()`: DynamoDB統合による$near検索の実行
58
+ - `handleFind()`: $near検出時の自動切り替えロジック
59
+ - 距離情報(`__distance`)の自動付与とソート
60
+ - `pagination.perPage`を$near検索のlimitとして使用
61
+ - 包括的なテストカバレッジ(19テスト追加)
62
+
63
+ ### Changed
64
+
65
+ - **find操作**: $nearオペレータが含まれる場合、自動的に地理空間検索に切り替え
66
+ - 通常のfind操作との透過的な統合
67
+ - エラーハンドリングとログ記録の統一
68
+
69
+ ### Technical
70
+
71
+ - **新規ファイル**: `src/server/operations/find/nearQuery.ts` - DynamoDB統合ロジック
72
+ - **新規ファイル**: `src/server/operations/find/utils.ts` - $near検出ユーティリティ
73
+ - **テスト**: `__tests__/near-search.test.ts` - executeNearSearchのユニットテスト(13テスト)
74
+ - **テスト**: `__tests__/find-near.test.ts` - find操作での$near統合テスト(6テスト)
75
+ - **全テスト**: 334テスト全てパス
76
+
10
77
  ## [1.2.5] - 2026-01-02
11
78
 
12
79
  ### Fixed