@salesforce/lds-runtime-mobile 1.347.0 → 1.348.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/dist/main.js +17 -5
- package/package.json +14 -14
- package/sfdc/main.js +17 -5
package/dist/main.js
CHANGED
|
@@ -2539,7 +2539,7 @@ class DurableDraftQueue {
|
|
|
2539
2539
|
}
|
|
2540
2540
|
}
|
|
2541
2541
|
|
|
2542
|
-
function clone(obj) {
|
|
2542
|
+
function clone$1(obj) {
|
|
2543
2543
|
return parse$3(stringify$3(obj));
|
|
2544
2544
|
}
|
|
2545
2545
|
|
|
@@ -2586,7 +2586,7 @@ class DurableDraftStore {
|
|
|
2586
2586
|
for (let i = 0, len = keys$1.length; i < len; i++) {
|
|
2587
2587
|
const key = keys$1[i];
|
|
2588
2588
|
// clone draft so we don't expose the internal draft store
|
|
2589
|
-
actionArray.push(clone(draftStore[key]));
|
|
2589
|
+
actionArray.push(clone$1(draftStore[key]));
|
|
2590
2590
|
}
|
|
2591
2591
|
return actionArray;
|
|
2592
2592
|
});
|
|
@@ -41955,9 +41955,15 @@ class AbstractResourceRequestActionHandler {
|
|
|
41955
41955
|
await this.recordService.reapplyRecordSideEffects(impactedKeys);
|
|
41956
41956
|
}
|
|
41957
41957
|
async handleActionReplaced(target, source) {
|
|
41958
|
+
// remove both the siden effects from the actions being merged before we
|
|
41959
|
+
// recalculate the new side effect value needed
|
|
41958
41960
|
const impactedKeysFromRemove = await this.recordService.removeSideEffectsForAction(source);
|
|
41961
|
+
const removedSideEffectFromSet = await this.recordService.removeSideEffectsForAction(target);
|
|
41962
|
+
// revert the values in the DEFAULT store back to what it was before the removed side effects
|
|
41963
|
+
await this.recordService.reapplyRecordSideEffects(new Set([...impactedKeysFromRemove, ...removedSideEffectFromSet]));
|
|
41964
|
+
// set the new side effect values for the merged action
|
|
41959
41965
|
const impactedKeysFromSet = await this.recordService.setSideEffectsForActions([target]);
|
|
41960
|
-
await this.recordService.reapplyRecordSideEffects(new Set([...
|
|
41966
|
+
await this.recordService.reapplyRecordSideEffects(new Set([...impactedKeysFromSet]));
|
|
41961
41967
|
}
|
|
41962
41968
|
async handleActionCompleted(action, queueOperations) {
|
|
41963
41969
|
const { data: request, tag } = action;
|
|
@@ -54794,6 +54800,10 @@ class SideEffectService {
|
|
|
54794
54800
|
}
|
|
54795
54801
|
}
|
|
54796
54802
|
|
|
54803
|
+
function clone(obj) {
|
|
54804
|
+
return parse$2(stringify$2(obj));
|
|
54805
|
+
}
|
|
54806
|
+
|
|
54797
54807
|
/* global __nimbus */
|
|
54798
54808
|
class CreateRecordEffectHandler {
|
|
54799
54809
|
apply(entry, effect) {
|
|
@@ -54801,7 +54811,9 @@ class CreateRecordEffectHandler {
|
|
|
54801
54811
|
// log that we can't apply a draft-create to an existing record
|
|
54802
54812
|
throw Error('cannot apply a record-create side effect to an existing record');
|
|
54803
54813
|
}
|
|
54804
|
-
return
|
|
54814
|
+
// return a copy of the record to not modify
|
|
54815
|
+
// what is saved in the side effect store
|
|
54816
|
+
return { ...clone(effect.record) };
|
|
54805
54817
|
}
|
|
54806
54818
|
}
|
|
54807
54819
|
class UpdateRecordEffectHandler {
|
|
@@ -55290,4 +55302,4 @@ register({
|
|
|
55290
55302
|
});
|
|
55291
55303
|
|
|
55292
55304
|
export { O11Y_NAMESPACE_LDS_MOBILE, getRuntime, ingest$1o as ingestDenormalizedRecordRepresentation, registerReportObserver, reportGraphqlQueryParseError };
|
|
55293
|
-
// version: 1.
|
|
55305
|
+
// version: 1.348.0-09ae8e3e37
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-runtime-mobile",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.348.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "LDS runtime for mobile/hybrid environments.",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -32,23 +32,23 @@
|
|
|
32
32
|
"release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-runtime-mobile"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@salesforce/lds-adapters-uiapi": "^1.
|
|
36
|
-
"@salesforce/lds-bindings": "^1.
|
|
37
|
-
"@salesforce/lds-instrumentation": "^1.
|
|
35
|
+
"@salesforce/lds-adapters-uiapi": "^1.348.0",
|
|
36
|
+
"@salesforce/lds-bindings": "^1.348.0",
|
|
37
|
+
"@salesforce/lds-instrumentation": "^1.348.0",
|
|
38
38
|
"@salesforce/user": "0.0.21",
|
|
39
39
|
"o11y": "250.7.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@salesforce/lds-adapters-graphql": "^1.
|
|
43
|
-
"@salesforce/lds-drafts": "^1.
|
|
44
|
-
"@salesforce/lds-durable-records": "^1.
|
|
45
|
-
"@salesforce/lds-network-adapter": "^1.
|
|
46
|
-
"@salesforce/lds-network-nimbus": "^1.
|
|
47
|
-
"@salesforce/lds-store-binary": "^1.
|
|
48
|
-
"@salesforce/lds-store-nimbus": "^1.
|
|
49
|
-
"@salesforce/lds-store-sql": "^1.
|
|
50
|
-
"@salesforce/lds-utils-adapters": "^1.
|
|
51
|
-
"@salesforce/nimbus-plugin-lds": "^1.
|
|
42
|
+
"@salesforce/lds-adapters-graphql": "^1.348.0",
|
|
43
|
+
"@salesforce/lds-drafts": "^1.348.0",
|
|
44
|
+
"@salesforce/lds-durable-records": "^1.348.0",
|
|
45
|
+
"@salesforce/lds-network-adapter": "^1.348.0",
|
|
46
|
+
"@salesforce/lds-network-nimbus": "^1.348.0",
|
|
47
|
+
"@salesforce/lds-store-binary": "^1.348.0",
|
|
48
|
+
"@salesforce/lds-store-nimbus": "^1.348.0",
|
|
49
|
+
"@salesforce/lds-store-sql": "^1.348.0",
|
|
50
|
+
"@salesforce/lds-utils-adapters": "^1.348.0",
|
|
51
|
+
"@salesforce/nimbus-plugin-lds": "^1.348.0",
|
|
52
52
|
"babel-plugin-dynamic-import-node": "^2.3.3",
|
|
53
53
|
"wait-for-expect": "^3.0.2"
|
|
54
54
|
},
|
package/sfdc/main.js
CHANGED
|
@@ -2539,7 +2539,7 @@ class DurableDraftQueue {
|
|
|
2539
2539
|
}
|
|
2540
2540
|
}
|
|
2541
2541
|
|
|
2542
|
-
function clone(obj) {
|
|
2542
|
+
function clone$1(obj) {
|
|
2543
2543
|
return parse$3(stringify$3(obj));
|
|
2544
2544
|
}
|
|
2545
2545
|
|
|
@@ -2586,7 +2586,7 @@ class DurableDraftStore {
|
|
|
2586
2586
|
for (let i = 0, len = keys$1.length; i < len; i++) {
|
|
2587
2587
|
const key = keys$1[i];
|
|
2588
2588
|
// clone draft so we don't expose the internal draft store
|
|
2589
|
-
actionArray.push(clone(draftStore[key]));
|
|
2589
|
+
actionArray.push(clone$1(draftStore[key]));
|
|
2590
2590
|
}
|
|
2591
2591
|
return actionArray;
|
|
2592
2592
|
});
|
|
@@ -41955,9 +41955,15 @@ class AbstractResourceRequestActionHandler {
|
|
|
41955
41955
|
await this.recordService.reapplyRecordSideEffects(impactedKeys);
|
|
41956
41956
|
}
|
|
41957
41957
|
async handleActionReplaced(target, source) {
|
|
41958
|
+
// remove both the siden effects from the actions being merged before we
|
|
41959
|
+
// recalculate the new side effect value needed
|
|
41958
41960
|
const impactedKeysFromRemove = await this.recordService.removeSideEffectsForAction(source);
|
|
41961
|
+
const removedSideEffectFromSet = await this.recordService.removeSideEffectsForAction(target);
|
|
41962
|
+
// revert the values in the DEFAULT store back to what it was before the removed side effects
|
|
41963
|
+
await this.recordService.reapplyRecordSideEffects(new Set([...impactedKeysFromRemove, ...removedSideEffectFromSet]));
|
|
41964
|
+
// set the new side effect values for the merged action
|
|
41959
41965
|
const impactedKeysFromSet = await this.recordService.setSideEffectsForActions([target]);
|
|
41960
|
-
await this.recordService.reapplyRecordSideEffects(new Set([...
|
|
41966
|
+
await this.recordService.reapplyRecordSideEffects(new Set([...impactedKeysFromSet]));
|
|
41961
41967
|
}
|
|
41962
41968
|
async handleActionCompleted(action, queueOperations) {
|
|
41963
41969
|
const { data: request, tag } = action;
|
|
@@ -54794,6 +54800,10 @@ class SideEffectService {
|
|
|
54794
54800
|
}
|
|
54795
54801
|
}
|
|
54796
54802
|
|
|
54803
|
+
function clone(obj) {
|
|
54804
|
+
return parse$2(stringify$2(obj));
|
|
54805
|
+
}
|
|
54806
|
+
|
|
54797
54807
|
/* global __nimbus */
|
|
54798
54808
|
class CreateRecordEffectHandler {
|
|
54799
54809
|
apply(entry, effect) {
|
|
@@ -54801,7 +54811,9 @@ class CreateRecordEffectHandler {
|
|
|
54801
54811
|
// log that we can't apply a draft-create to an existing record
|
|
54802
54812
|
throw Error('cannot apply a record-create side effect to an existing record');
|
|
54803
54813
|
}
|
|
54804
|
-
return
|
|
54814
|
+
// return a copy of the record to not modify
|
|
54815
|
+
// what is saved in the side effect store
|
|
54816
|
+
return { ...clone(effect.record) };
|
|
54805
54817
|
}
|
|
54806
54818
|
}
|
|
54807
54819
|
class UpdateRecordEffectHandler {
|
|
@@ -55290,4 +55302,4 @@ register({
|
|
|
55290
55302
|
});
|
|
55291
55303
|
|
|
55292
55304
|
export { O11Y_NAMESPACE_LDS_MOBILE, getRuntime, ingest$1o as ingestDenormalizedRecordRepresentation, registerReportObserver, reportGraphqlQueryParseError };
|
|
55293
|
-
// version: 1.
|
|
55305
|
+
// version: 1.348.0-09ae8e3e37
|