@exabugs/dynamodb-client 0.3.3 → 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 +12 -0
- package/dist/server/handler.cjs +5 -9
- package/dist/server/handler.cjs.map +2 -2
- package/dist/server/operations/insertOne.d.ts.map +1 -1
- package/dist/server/operations/insertOne.js +6 -10
- package/dist/server/operations/insertOne.js.map +1 -1
- package/package.json +1 -1
- package/terraform/outputs.tf +0 -5
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
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
|
+
|
|
10
22
|
## [0.3.3] - 2024-12-02
|
|
11
23
|
|
|
12
24
|
### Fixed
|
package/dist/server/handler.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// @exabugs/dynamodb-client v0.3.
|
|
2
|
-
// Built: 2025-12-02T04:
|
|
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:
|
|
29392
|
+
shadowCount: shadowRecords.length
|
|
29397
29393
|
});
|
|
29398
|
-
return
|
|
29394
|
+
return recordData;
|
|
29399
29395
|
}
|
|
29400
29396
|
__name(handleInsertOne, "handleInsertOne");
|
|
29401
29397
|
|