@twin.org/entity-storage-connector-dynamodb 0.0.2-next.7 → 0.0.2-next.8
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/dist/cjs/index.cjs +1 -1
- package/dist/esm/index.mjs +1 -1
- package/docs/changelog.md +16 -0
- package/package.json +5 -5
package/dist/cjs/index.cjs
CHANGED
|
@@ -417,7 +417,7 @@ class DynamoDbEntityStorageConnector {
|
|
|
417
417
|
const schemaProp = this._entitySchema.properties?.find(p => p.property === condition.property);
|
|
418
418
|
// It's a single value so just create the property comparison for the condition
|
|
419
419
|
const comparison = this.mapComparisonOperator(objectPath, condition, schemaProp?.type, attributeNames, attributeValues);
|
|
420
|
-
const isKey = schemaProp?.isPrimary
|
|
420
|
+
const isKey = schemaProp?.isPrimary ?? (schemaProp?.isSecondary && schemaProp?.property === secondaryIndex);
|
|
421
421
|
return {
|
|
422
422
|
keyCondition: isKey ? comparison : "",
|
|
423
423
|
filterCondition: !isKey ? comparison : ""
|
package/dist/esm/index.mjs
CHANGED
|
@@ -415,7 +415,7 @@ class DynamoDbEntityStorageConnector {
|
|
|
415
415
|
const schemaProp = this._entitySchema.properties?.find(p => p.property === condition.property);
|
|
416
416
|
// It's a single value so just create the property comparison for the condition
|
|
417
417
|
const comparison = this.mapComparisonOperator(objectPath, condition, schemaProp?.type, attributeNames, attributeValues);
|
|
418
|
-
const isKey = schemaProp?.isPrimary
|
|
418
|
+
const isKey = schemaProp?.isPrimary ?? (schemaProp?.isSecondary && schemaProp?.property === secondaryIndex);
|
|
419
419
|
return {
|
|
420
420
|
keyCondition: isKey ? comparison : "",
|
|
421
421
|
filterCondition: !isKey ? comparison : ""
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @twin.org/entity-storage-connector-dynamodb - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.2-next.8](https://github.com/twinfoundation/entity-storage/compare/entity-storage-connector-dynamodb-v0.0.2-next.7...entity-storage-connector-dynamodb-v0.0.2-next.8) (2025-08-29)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* eslint migration to flat config ([f033b64](https://github.com/twinfoundation/entity-storage/commit/f033b64984c0e6a8129d929c9dd816dcc1b8dab0))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/entity-storage-models bumped from 0.0.2-next.7 to 0.0.2-next.8
|
|
16
|
+
* devDependencies
|
|
17
|
+
* @twin.org/entity-storage-connector-memory bumped from 0.0.2-next.7 to 0.0.2-next.8
|
|
18
|
+
|
|
3
19
|
## [0.0.2-next.7](https://github.com/twinfoundation/entity-storage/compare/entity-storage-connector-dynamodb-v0.0.2-next.6...entity-storage-connector-dynamodb-v0.0.2-next.7) (2025-08-20)
|
|
4
20
|
|
|
5
21
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/entity-storage-connector-dynamodb",
|
|
3
|
-
"version": "0.0.2-next.
|
|
3
|
+
"version": "0.0.2-next.8",
|
|
4
4
|
"description": "Entity Storage connector implementation using DynamoDb storage",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
"node": ">=20.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@aws-sdk/client-dynamodb": "3.
|
|
18
|
-
"@aws-sdk/lib-dynamodb": "3.
|
|
19
|
-
"@aws-sdk/util-dynamodb": "3.
|
|
17
|
+
"@aws-sdk/client-dynamodb": "3.878",
|
|
18
|
+
"@aws-sdk/lib-dynamodb": "3.878",
|
|
19
|
+
"@aws-sdk/util-dynamodb": "3.878",
|
|
20
20
|
"@twin.org/core": "next",
|
|
21
21
|
"@twin.org/entity": "next",
|
|
22
|
-
"@twin.org/entity-storage-models": "0.0.2-next.
|
|
22
|
+
"@twin.org/entity-storage-models": "0.0.2-next.8",
|
|
23
23
|
"@twin.org/logging-models": "next",
|
|
24
24
|
"@twin.org/nameof": "next"
|
|
25
25
|
},
|