electrodb 3.4.6 → 3.5.0

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/index.d.ts CHANGED
@@ -5007,6 +5007,7 @@ export type EntityConfiguration = {
5007
5007
  entity?: string;
5008
5008
  version?: string;
5009
5009
  };
5010
+ ignoreOwnership?: boolean;
5010
5011
  };
5011
5012
 
5012
5013
  export class Entity<
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electrodb",
3
- "version": "3.4.6",
3
+ "version": "3.5.0",
4
4
  "description": "A library to more easily create and interact with multiple entities and heretical relationships in dynamodb",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/clauses.js CHANGED
@@ -15,7 +15,6 @@ const {
15
15
  AttributeOperationProxy,
16
16
  UpdateOperations,
17
17
  FilterOperationNames,
18
- UpdateOperationNames,
19
18
  } = require("./operations");
20
19
  const { UpdateExpression } = require("./update");
21
20
  const { FilterExpression } = require("./where");
@@ -472,6 +471,8 @@ let clauses = {
472
471
  const value = updatedKeys[key];
473
472
  if (indexKey[key] === undefined) {
474
473
  setFields[key] = value;
474
+ } else {
475
+ delete setFields[key];
475
476
  }
476
477
  }
477
478
 
package/src/entity.js CHANGED
@@ -1631,7 +1631,7 @@ class Entity {
1631
1631
  consistent: undefined,
1632
1632
  compare: ComparisonTypes.keys,
1633
1633
  complete: false,
1634
- ignoreOwnership: false,
1634
+ ignoreOwnership: !!this.config.ignoreOwnership,
1635
1635
  _providedIgnoreOwnership: false,
1636
1636
  _isPagination: false,
1637
1637
  _isCollectionQuery: false,