electrodb 3.4.7 → 3.5.1
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 +9 -0
- package/package.json +1 -1
- package/src/entity.js +4 -3
package/index.d.ts
CHANGED
|
@@ -2595,7 +2595,11 @@ export type ParamOptions = {
|
|
|
2595
2595
|
|
|
2596
2596
|
export interface BulkOptions extends QueryOptions {
|
|
2597
2597
|
unprocessed?: "raw" | "item";
|
|
2598
|
+
/**
|
|
2599
|
+
* @deprecated use "concurrent" instead
|
|
2600
|
+
*/
|
|
2598
2601
|
concurrency?: number;
|
|
2602
|
+
concurrent?: number;
|
|
2599
2603
|
preserveBatchOrder?: boolean;
|
|
2600
2604
|
}
|
|
2601
2605
|
|
|
@@ -2614,7 +2618,11 @@ interface GoBatchGetTerminalOptions<Attributes> {
|
|
|
2614
2618
|
pages?: number;
|
|
2615
2619
|
attributes?: ReadonlyArray<Attributes>;
|
|
2616
2620
|
unprocessed?: "raw" | "item";
|
|
2621
|
+
/**
|
|
2622
|
+
* @deprecated use "concurrent" instead
|
|
2623
|
+
*/
|
|
2617
2624
|
concurrency?: number;
|
|
2625
|
+
concurrent?: number;
|
|
2618
2626
|
preserveBatchOrder?: boolean;
|
|
2619
2627
|
listeners?: Array<ElectroEventListener>;
|
|
2620
2628
|
logger?: ElectroEventListener;
|
|
@@ -5007,6 +5015,7 @@ export type EntityConfiguration = {
|
|
|
5007
5015
|
entity?: string;
|
|
5008
5016
|
version?: string;
|
|
5009
5017
|
};
|
|
5018
|
+
ignoreOwnership?: boolean;
|
|
5010
5019
|
};
|
|
5011
5020
|
|
|
5012
5021
|
export class Entity<
|
package/package.json
CHANGED
package/src/entity.js
CHANGED
|
@@ -1404,7 +1404,7 @@ class Entity {
|
|
|
1404
1404
|
if (isNaN(value) || value < 1) {
|
|
1405
1405
|
throw new e.ElectroError(
|
|
1406
1406
|
e.ErrorCodes.InvalidConcurrencyOption,
|
|
1407
|
-
"Query option '
|
|
1407
|
+
"Query option 'concurrent' must be of type 'number' and greater than zero.",
|
|
1408
1408
|
);
|
|
1409
1409
|
}
|
|
1410
1410
|
return value;
|
|
@@ -1631,7 +1631,7 @@ class Entity {
|
|
|
1631
1631
|
consistent: undefined,
|
|
1632
1632
|
compare: ComparisonTypes.keys,
|
|
1633
1633
|
complete: false,
|
|
1634
|
-
ignoreOwnership:
|
|
1634
|
+
ignoreOwnership: !!this.config.ignoreOwnership,
|
|
1635
1635
|
_providedIgnoreOwnership: false,
|
|
1636
1636
|
_isPagination: false,
|
|
1637
1637
|
_isCollectionQuery: false,
|
|
@@ -3785,8 +3785,9 @@ class Entity {
|
|
|
3785
3785
|
this.model.facets.labels[index] &&
|
|
3786
3786
|
Array.isArray(this.model.facets.labels[index].sk);
|
|
3787
3787
|
let labels = hasLabels ? this.model.facets.labels[index].sk : [];
|
|
3788
|
+
const hasFacets = Object.keys(skFacet).length > 0;
|
|
3788
3789
|
let sortKey = this._makeKey(prefixes.sk, facets.sk, skFacet, labels, {
|
|
3789
|
-
excludeLabelTail:
|
|
3790
|
+
excludeLabelTail: hasFacets,
|
|
3790
3791
|
excludePostfix,
|
|
3791
3792
|
transform,
|
|
3792
3793
|
});
|