@exabugs/dynamodb-client 0.3.2 → 0.3.4

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,7 +7,50 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
- ## [0.3.0] - 2025-01-20
10
+ ## [0.3.4] - 2024-12-02
11
+
12
+ ### Removed
13
+
14
+ - **Metadata**: Removed internal metadata fields from records
15
+ - Removed `__shadowKeys` field (no longer needed with auto-shadow)
16
+ - Removed `__configVersion` field (no config file to track)
17
+ - Removed `__configHash` field (no config file to track)
18
+ - Records are now cleaner and contain only user data
19
+ - **Terraform**: Removed `shadow_config` output from Terraform module
20
+ - No longer needed with environment variable-based configuration
21
+
22
+ ## [0.3.3] - 2024-12-02
23
+
24
+ ### Fixed
25
+
26
+ - **Types**: Made `shadows` property optional in `ResourceSchema` interface
27
+ - Allows schemas without `shadows.sortableFields` definition
28
+ - Maintains backward compatibility with v0.2.x schemas
29
+ - All fields are automatically shadowed in v0.3.x
30
+
31
+ ## [0.3.2] - 2024-12-02
32
+
33
+ ### Changed
34
+
35
+ - **Shadow Configuration**: Simplified shadow configuration (auto-shadow simplification)
36
+ - Removed `shadow.config.json` file requirement
37
+ - Removed `generate-shadow-config` CLI tool
38
+ - All fields are now automatically shadowed without configuration
39
+ - Simplified package structure and build process
40
+
41
+ ## [0.3.1] - 2024-12-02
42
+
43
+ ### Fixed
44
+
45
+ - **Build**: Fixed TypeScript compilation errors
46
+ - Fixed syntax errors in timestamps.ts and validation.ts
47
+ - Updated ShadowConfig type imports
48
+ - Removed unused getResourceSchema calls
49
+ - **ESLint**: Fixed ESLint parsing errors for test files
50
+ - Added separate ESLint configuration for test files
51
+ - Configured `project: false` for test files excluded from tsconfig.json
52
+
53
+ ## [0.3.0] - 2024-12-01
11
54
 
12
55
  ### Added
13
56
 
@@ -1,5 +1,5 @@
1
- // @exabugs/dynamodb-client v0.3.2
2
- // Built: 2025-12-02T04:04:42.041Z
1
+ // @exabugs/dynamodb-client v0.3.4
2
+ // Built: 2025-12-02T04:56:59.326Z
3
3
  "use strict";
4
4
  var __create = Object.create;
5
5
  var __defProp = Object.defineProperty;
@@ -29360,7 +29360,6 @@ async function handleInsertOne(resource, params, requestId) {
29360
29360
  recordData = addTTL(resource, recordData);
29361
29361
  const shadowConfig = getShadowConfig();
29362
29362
  const shadowRecords = generateShadowRecords(recordData, resource, shadowConfig);
29363
- const shadowKeys = shadowRecords.map((shadow) => shadow.SK);
29364
29363
  const mainSK = generateMainRecordSK(id);
29365
29364
  await executeDynamoDBOperation(
29366
29365
  () => dbClient2.send(
@@ -29369,10 +29368,7 @@ async function handleInsertOne(resource, params, requestId) {
29369
29368
  Item: {
29370
29369
  PK: resource,
29371
29370
  SK: mainSK,
29372
- data: {
29373
- ...recordData,
29374
- __shadowKeys: shadowKeys
29375
- }
29371
+ data: recordData
29376
29372
  }
29377
29373
  })
29378
29374
  ),
@@ -29393,9 +29389,9 @@ async function handleInsertOne(resource, params, requestId) {
29393
29389
  requestId,
29394
29390
  resource,
29395
29391
  id,
29396
- shadowCount: shadowKeys.length
29392
+ shadowCount: shadowRecords.length
29397
29393
  });
29398
- return removeShadowKeys(recordData);
29394
+ return recordData;
29399
29395
  }
29400
29396
  __name(handleInsertOne, "handleInsertOne");
29401
29397