@salesforce/lds-runtime-bridge 1.257.0 → 1.259.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/ldsRuntimeBridge.js +16 -10
- package/package.json +8 -8
package/dist/ldsRuntimeBridge.js
CHANGED
|
@@ -304,21 +304,27 @@ function flushInMemoryStoreValuesToDurableStore(store, durableStore, durableStor
|
|
|
304
304
|
const durableRecords = create$3(null);
|
|
305
305
|
const refreshedDurableRecords = create$3(null);
|
|
306
306
|
const evictedRecords = create$3(null);
|
|
307
|
-
const {
|
|
307
|
+
const { visitedIds, refreshedIds } = store.fallbackStringKeyInMemoryStore;
|
|
308
308
|
// TODO: W-8909393 Once metadata is stored in its own segment we need to
|
|
309
309
|
// call setEntries for the visitedIds on default segment and call setEntries
|
|
310
310
|
// on the metadata segment for the refreshedIds
|
|
311
311
|
const keys$1 = keys$3({ ...visitedIds, ...refreshedIds });
|
|
312
312
|
for (let i = 0, len = keys$1.length; i < len; i += 1) {
|
|
313
313
|
const key = keys$1[i];
|
|
314
|
-
const
|
|
314
|
+
const canonicalKey = store.getCanonicalRecordId(key);
|
|
315
|
+
// this record has been redirected, evict the original
|
|
316
|
+
if (canonicalKey !== key) {
|
|
317
|
+
evictedRecords[key] = true;
|
|
318
|
+
continue;
|
|
319
|
+
}
|
|
320
|
+
const record = store.readEntry(key);
|
|
315
321
|
const wasVisited = visitedIds[key] !== undefined;
|
|
316
322
|
// this record has been evicted, evict from DS
|
|
317
323
|
if (wasVisited && record === undefined) {
|
|
318
324
|
evictedRecords[key] = true;
|
|
319
325
|
continue;
|
|
320
326
|
}
|
|
321
|
-
const metadata =
|
|
327
|
+
const metadata = store.readMetadata(key);
|
|
322
328
|
const entries = wasVisited === true || enableDurableMetadataRefresh === false
|
|
323
329
|
? durableRecords
|
|
324
330
|
: refreshedDurableRecords;
|
|
@@ -749,17 +755,17 @@ function makeDurable(environment, { durableStore, instrumentation, useRevivingSt
|
|
|
749
755
|
};
|
|
750
756
|
const getNode = function (key) {
|
|
751
757
|
validateNotDisposed();
|
|
752
|
-
if (stagingStore
|
|
753
|
-
|
|
758
|
+
if (stagingStore !== null) {
|
|
759
|
+
return environment.getNode(key, stagingStore);
|
|
754
760
|
}
|
|
755
|
-
return environment.getNode(key
|
|
761
|
+
return environment.getNode(key);
|
|
756
762
|
};
|
|
757
763
|
const wrapNormalizedGraphNode = function (normalized, key) {
|
|
758
764
|
validateNotDisposed();
|
|
759
|
-
if (stagingStore
|
|
760
|
-
|
|
765
|
+
if (stagingStore !== null) {
|
|
766
|
+
return environment.wrapNormalizedGraphNode(normalized, key, stagingStore);
|
|
761
767
|
}
|
|
762
|
-
return environment.wrapNormalizedGraphNode(normalized, key
|
|
768
|
+
return environment.wrapNormalizedGraphNode(normalized, key);
|
|
763
769
|
};
|
|
764
770
|
const rebuildSnapshot = function (snapshot, onRebuild) {
|
|
765
771
|
validateNotDisposed();
|
|
@@ -3756,4 +3762,4 @@ function ldsRuntimeBridge() {
|
|
|
3756
3762
|
}
|
|
3757
3763
|
|
|
3758
3764
|
export { ldsRuntimeBridge as default };
|
|
3759
|
-
// version: 1.
|
|
3765
|
+
// version: 1.259.0-921ca6033
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-runtime-bridge",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.259.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "LDS runtime for bridge.app.",
|
|
6
6
|
"main": "dist/ldsRuntimeBridge.js",
|
|
@@ -34,17 +34,17 @@
|
|
|
34
34
|
"release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-runtime-bridge"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@salesforce/lds-adapters-uiapi": "^1.
|
|
38
|
-
"@salesforce/lds-instrumentation": "^1.
|
|
37
|
+
"@salesforce/lds-adapters-uiapi": "^1.259.0",
|
|
38
|
+
"@salesforce/lds-instrumentation": "^1.259.0",
|
|
39
39
|
"@salesforce/user": "0.0.21",
|
|
40
40
|
"o11y": "244.0.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@salesforce/lds-drafts-adapters-uiapi": "^1.
|
|
44
|
-
"@salesforce/lds-network-aura": "^1.
|
|
45
|
-
"@salesforce/lds-runtime-aura": "^1.
|
|
46
|
-
"@salesforce/lds-store-nimbus": "^1.
|
|
47
|
-
"@salesforce/nimbus-plugin-lds": "^1.
|
|
43
|
+
"@salesforce/lds-drafts-adapters-uiapi": "^1.259.0",
|
|
44
|
+
"@salesforce/lds-network-aura": "^1.259.0",
|
|
45
|
+
"@salesforce/lds-runtime-aura": "^1.259.0",
|
|
46
|
+
"@salesforce/lds-store-nimbus": "^1.259.0",
|
|
47
|
+
"@salesforce/nimbus-plugin-lds": "^1.259.0",
|
|
48
48
|
"babel-plugin-dynamic-import-node": "^2.3.3"
|
|
49
49
|
},
|
|
50
50
|
"luvioBundlesize": [
|