@exabugs/dynamodb-client 0.3.2 → 0.3.3
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 +32 -1
- package/dist/server/handler.cjs +2 -2
- package/dist/shadows/schema.d.ts +5 -2
- package/dist/shadows/schema.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,7 +7,38 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
-
## [0.3.
|
|
10
|
+
## [0.3.3] - 2024-12-02
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **Types**: Made `shadows` property optional in `ResourceSchema` interface
|
|
15
|
+
- Allows schemas without `shadows.sortableFields` definition
|
|
16
|
+
- Maintains backward compatibility with v0.2.x schemas
|
|
17
|
+
- All fields are automatically shadowed in v0.3.x
|
|
18
|
+
|
|
19
|
+
## [0.3.2] - 2024-12-02
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
|
|
23
|
+
- **Shadow Configuration**: Simplified shadow configuration (auto-shadow simplification)
|
|
24
|
+
- Removed `shadow.config.json` file requirement
|
|
25
|
+
- Removed `generate-shadow-config` CLI tool
|
|
26
|
+
- All fields are now automatically shadowed without configuration
|
|
27
|
+
- Simplified package structure and build process
|
|
28
|
+
|
|
29
|
+
## [0.3.1] - 2024-12-02
|
|
30
|
+
|
|
31
|
+
### Fixed
|
|
32
|
+
|
|
33
|
+
- **Build**: Fixed TypeScript compilation errors
|
|
34
|
+
- Fixed syntax errors in timestamps.ts and validation.ts
|
|
35
|
+
- Updated ShadowConfig type imports
|
|
36
|
+
- Removed unused getResourceSchema calls
|
|
37
|
+
- **ESLint**: Fixed ESLint parsing errors for test files
|
|
38
|
+
- Added separate ESLint configuration for test files
|
|
39
|
+
- Configured `project: false` for test files excluded from tsconfig.json
|
|
40
|
+
|
|
41
|
+
## [0.3.0] - 2024-12-01
|
|
11
42
|
|
|
12
43
|
### Added
|
|
13
44
|
|
package/dist/server/handler.cjs
CHANGED
package/dist/shadows/schema.d.ts
CHANGED
|
@@ -18,14 +18,17 @@ export interface ShadowFieldDefinition {
|
|
|
18
18
|
* リソーススキーマの定義
|
|
19
19
|
*
|
|
20
20
|
* @template T - リソースの型(例: Article, Task など)
|
|
21
|
+
*
|
|
22
|
+
* @exabugs/dynamodb-client v0.3.x では、シャドウ設定は環境変数ベースになりました。
|
|
23
|
+
* shadows プロパティは後方互換性のために残されていますが、省略可能です。
|
|
21
24
|
*/
|
|
22
25
|
export interface ResourceSchema<T = any> {
|
|
23
26
|
/** リソース名(複数形、例: "articles", "tasks") */
|
|
24
27
|
resource: string;
|
|
25
28
|
/** リソースの型定義(型チェック用) */
|
|
26
29
|
type: T;
|
|
27
|
-
/**
|
|
28
|
-
shadows
|
|
30
|
+
/** シャドー設定(省略可、v0.3.x では不要) */
|
|
31
|
+
shadows?: {
|
|
29
32
|
/** ソート可能なフィールドの定義 */
|
|
30
33
|
sortableFields: Record<string, ShadowFieldDefinition>;
|
|
31
34
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/shadows/schema.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAC;AAE3E;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,eAAe,CAAC;CACvB;AAED
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/shadows/schema.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAC;AAE3E;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,eAAe,CAAC;CACvB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,cAAc,CAAC,CAAC,GAAG,GAAG;IACrC,wCAAwC;IACxC,QAAQ,EAAE,MAAM,CAAC;IAEjB,uBAAuB;IACvB,IAAI,EAAE,CAAC,CAAC;IAER,8BAA8B;IAC9B,OAAO,CAAC,EAAE;QACR,qBAAqB;QACrB,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;KACvD,CAAC;IAEF,2BAA2B;IAC3B,YAAY,CAAC,EAAE;QACb,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,KAAK,GAAG,MAAM,CAAC;KACvB,CAAC;IAEF,kBAAkB;IAClB,GAAG,CAAC,EAAE;QACJ,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH;AAED;;;;;GAKG;AACH,MAAM,WAAW,oBAAoB;IACnC,eAAe;IACf,QAAQ,EAAE;QACR,oBAAoB;QACpB,UAAU,EAAE;YACV,SAAS,EAAE,MAAM,CAAC;YAClB,SAAS,EAAE,MAAM,CAAC;SACnB,CAAC;KACH,CAAC;IAEF,kBAAkB;IAClB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;CAC3C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exabugs/dynamodb-client",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "DynamoDB Single-Table Client SDK with MongoDB-like API, Shadow Records, and Lambda implementation for serverless applications",
|
|
5
5
|
"author": "exabugs",
|
|
6
6
|
"license": "MIT",
|