@salesforce/lds-runtime-mobile 1.134.3 → 1.134.5
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 +9 -9
- package/package.json +1 -1
- package/sfdc/main.js +9 -9
package/dist/main.js
CHANGED
|
@@ -39,7 +39,7 @@ const { join: join$2, push: push$2, unshift } = Array.prototype;
|
|
|
39
39
|
const { isArray: isArray$6 } = Array;
|
|
40
40
|
const { entries: entries$3, keys: keys$6 } = Object;
|
|
41
41
|
|
|
42
|
-
const UI_API_BASE_URI = '/services/data/
|
|
42
|
+
const UI_API_BASE_URI = '/services/data/v59.0/ui-api';
|
|
43
43
|
|
|
44
44
|
let instrumentation = {
|
|
45
45
|
aggregateUiChunkCount: (_cb) => { },
|
|
@@ -626,10 +626,8 @@ function publishDurableStoreEntries(durableRecords, put, publishMetadata) {
|
|
|
626
626
|
* will refresh the snapshot from network, and then run the results from network
|
|
627
627
|
* through L2 ingestion, returning the subsequent revived snapshot.
|
|
628
628
|
*/
|
|
629
|
-
function reviveSnapshot(baseEnvironment, durableStore,
|
|
630
|
-
|
|
631
|
-
unavailableSnapshot, durableStoreErrorHandler, buildL1Snapshot, reviveMetrics = { l2Trips: [] }) {
|
|
632
|
-
const { recordId, select, seenRecords, state } = unavailableSnapshot;
|
|
629
|
+
function reviveSnapshot(baseEnvironment, durableStore, unavailableSnapshot, durableStoreErrorHandler, buildL1Snapshot, reviveMetrics = { l2Trips: [] }) {
|
|
630
|
+
const { recordId, select, missingLinks, seenRecords, state } = unavailableSnapshot;
|
|
633
631
|
// L2 can only revive Unfulfilled snapshots that have a selector since they have the
|
|
634
632
|
// info needed to revive (like missingLinks) and rebuild. Otherwise return L1 snapshot.
|
|
635
633
|
if (state !== 'Unfulfilled' || select === undefined) {
|
|
@@ -642,6 +640,7 @@ unavailableSnapshot, durableStoreErrorHandler, buildL1Snapshot, reviveMetrics =
|
|
|
642
640
|
// we attempt to read all keys from L2 - so combine recordId with any seenRecords
|
|
643
641
|
const keysToReviveSet = new StoreKeySet().add(recordId);
|
|
644
642
|
keysToReviveSet.merge(seenRecords);
|
|
643
|
+
keysToReviveSet.merge(missingLinks);
|
|
645
644
|
const keysToRevive = keysToReviveSet.keysAsArray();
|
|
646
645
|
const canonicalKeys = keysToRevive.map((x) => serializeStructuredKey(baseEnvironment.storeGetCanonicalKey(x)));
|
|
647
646
|
const start = Date.now();
|
|
@@ -675,10 +674,11 @@ unavailableSnapshot, durableStoreErrorHandler, buildL1Snapshot, reviveMetrics =
|
|
|
675
674
|
if (snapshot.state === 'Unfulfilled') {
|
|
676
675
|
// have to check if the new snapshot has any additional seenRecords
|
|
677
676
|
// and revive again if so
|
|
678
|
-
const { seenRecords: newSnapshotSeenRecords, recordId: newSnapshotRecordId } = snapshot;
|
|
677
|
+
const { seenRecords: newSnapshotSeenRecords, missingLinks: newSnapshotMissingLinks, recordId: newSnapshotRecordId, } = snapshot;
|
|
679
678
|
const newKeysToReviveSet = new StoreKeySet();
|
|
680
679
|
newKeysToReviveSet.add(newSnapshotRecordId);
|
|
681
680
|
newKeysToReviveSet.merge(newSnapshotSeenRecords);
|
|
681
|
+
newKeysToReviveSet.merge(newSnapshotMissingLinks);
|
|
682
682
|
const newKeys = newKeysToReviveSet.keysAsArray();
|
|
683
683
|
// in case DS returned additional entries we combine the requested
|
|
684
684
|
// and returned keys
|
|
@@ -13864,7 +13864,7 @@ function mergePageUrls(first, second) {
|
|
|
13864
13864
|
/**
|
|
13865
13865
|
* merge to paging url with different set of fields or optional fields as combined one
|
|
13866
13866
|
* the paging url is like
|
|
13867
|
-
* /services/data/
|
|
13867
|
+
* /services/data/v59.0/ui-api/related-list-records/001R0000006l1xKIAQ/Contacts
|
|
13868
13868
|
* ?fields=Id%2CName&optionalFields=Contact.Id%2CContact.Name&pageSize=50&pageToken=0
|
|
13869
13869
|
* @param path1 url path and query parmeter without domain
|
|
13870
13870
|
* @param path2 url path and query parmeter without domain
|
|
@@ -15483,7 +15483,7 @@ function instrumentPrimingSession(session) {
|
|
|
15483
15483
|
// so eslint doesn't complain about nimbus
|
|
15484
15484
|
/* global __nimbus */
|
|
15485
15485
|
// note this is automatically incremented by scripts/release/bump-api-version.js at each release
|
|
15486
|
-
const apiVersion = `
|
|
15486
|
+
const apiVersion = `v59.0`;
|
|
15487
15487
|
class NimbusPrimingNetworkAdapter {
|
|
15488
15488
|
postGraphQL(query, variables, abortController) {
|
|
15489
15489
|
return new Promise((resolve, reject) => {
|
|
@@ -15745,4 +15745,4 @@ register({
|
|
|
15745
15745
|
});
|
|
15746
15746
|
|
|
15747
15747
|
export { getRuntime, registerReportObserver, reportGraphqlQueryParseError };
|
|
15748
|
-
// version: 1.134.
|
|
15748
|
+
// version: 1.134.5-4b28c4f16
|
package/package.json
CHANGED
package/sfdc/main.js
CHANGED
|
@@ -39,7 +39,7 @@ const { join: join$2, push: push$2, unshift } = Array.prototype;
|
|
|
39
39
|
const { isArray: isArray$6 } = Array;
|
|
40
40
|
const { entries: entries$3, keys: keys$6 } = Object;
|
|
41
41
|
|
|
42
|
-
const UI_API_BASE_URI = '/services/data/
|
|
42
|
+
const UI_API_BASE_URI = '/services/data/v59.0/ui-api';
|
|
43
43
|
|
|
44
44
|
let instrumentation = {
|
|
45
45
|
aggregateUiChunkCount: (_cb) => { },
|
|
@@ -626,10 +626,8 @@ function publishDurableStoreEntries(durableRecords, put, publishMetadata) {
|
|
|
626
626
|
* will refresh the snapshot from network, and then run the results from network
|
|
627
627
|
* through L2 ingestion, returning the subsequent revived snapshot.
|
|
628
628
|
*/
|
|
629
|
-
function reviveSnapshot(baseEnvironment, durableStore,
|
|
630
|
-
|
|
631
|
-
unavailableSnapshot, durableStoreErrorHandler, buildL1Snapshot, reviveMetrics = { l2Trips: [] }) {
|
|
632
|
-
const { recordId, select, seenRecords, state } = unavailableSnapshot;
|
|
629
|
+
function reviveSnapshot(baseEnvironment, durableStore, unavailableSnapshot, durableStoreErrorHandler, buildL1Snapshot, reviveMetrics = { l2Trips: [] }) {
|
|
630
|
+
const { recordId, select, missingLinks, seenRecords, state } = unavailableSnapshot;
|
|
633
631
|
// L2 can only revive Unfulfilled snapshots that have a selector since they have the
|
|
634
632
|
// info needed to revive (like missingLinks) and rebuild. Otherwise return L1 snapshot.
|
|
635
633
|
if (state !== 'Unfulfilled' || select === undefined) {
|
|
@@ -642,6 +640,7 @@ unavailableSnapshot, durableStoreErrorHandler, buildL1Snapshot, reviveMetrics =
|
|
|
642
640
|
// we attempt to read all keys from L2 - so combine recordId with any seenRecords
|
|
643
641
|
const keysToReviveSet = new StoreKeySet().add(recordId);
|
|
644
642
|
keysToReviveSet.merge(seenRecords);
|
|
643
|
+
keysToReviveSet.merge(missingLinks);
|
|
645
644
|
const keysToRevive = keysToReviveSet.keysAsArray();
|
|
646
645
|
const canonicalKeys = keysToRevive.map((x) => serializeStructuredKey(baseEnvironment.storeGetCanonicalKey(x)));
|
|
647
646
|
const start = Date.now();
|
|
@@ -675,10 +674,11 @@ unavailableSnapshot, durableStoreErrorHandler, buildL1Snapshot, reviveMetrics =
|
|
|
675
674
|
if (snapshot.state === 'Unfulfilled') {
|
|
676
675
|
// have to check if the new snapshot has any additional seenRecords
|
|
677
676
|
// and revive again if so
|
|
678
|
-
const { seenRecords: newSnapshotSeenRecords, recordId: newSnapshotRecordId } = snapshot;
|
|
677
|
+
const { seenRecords: newSnapshotSeenRecords, missingLinks: newSnapshotMissingLinks, recordId: newSnapshotRecordId, } = snapshot;
|
|
679
678
|
const newKeysToReviveSet = new StoreKeySet();
|
|
680
679
|
newKeysToReviveSet.add(newSnapshotRecordId);
|
|
681
680
|
newKeysToReviveSet.merge(newSnapshotSeenRecords);
|
|
681
|
+
newKeysToReviveSet.merge(newSnapshotMissingLinks);
|
|
682
682
|
const newKeys = newKeysToReviveSet.keysAsArray();
|
|
683
683
|
// in case DS returned additional entries we combine the requested
|
|
684
684
|
// and returned keys
|
|
@@ -13864,7 +13864,7 @@ function mergePageUrls(first, second) {
|
|
|
13864
13864
|
/**
|
|
13865
13865
|
* merge to paging url with different set of fields or optional fields as combined one
|
|
13866
13866
|
* the paging url is like
|
|
13867
|
-
* /services/data/
|
|
13867
|
+
* /services/data/v59.0/ui-api/related-list-records/001R0000006l1xKIAQ/Contacts
|
|
13868
13868
|
* ?fields=Id%2CName&optionalFields=Contact.Id%2CContact.Name&pageSize=50&pageToken=0
|
|
13869
13869
|
* @param path1 url path and query parmeter without domain
|
|
13870
13870
|
* @param path2 url path and query parmeter without domain
|
|
@@ -15483,7 +15483,7 @@ function instrumentPrimingSession(session) {
|
|
|
15483
15483
|
// so eslint doesn't complain about nimbus
|
|
15484
15484
|
/* global __nimbus */
|
|
15485
15485
|
// note this is automatically incremented by scripts/release/bump-api-version.js at each release
|
|
15486
|
-
const apiVersion = `
|
|
15486
|
+
const apiVersion = `v59.0`;
|
|
15487
15487
|
class NimbusPrimingNetworkAdapter {
|
|
15488
15488
|
postGraphQL(query, variables, abortController) {
|
|
15489
15489
|
return new Promise((resolve, reject) => {
|
|
@@ -15745,4 +15745,4 @@ register({
|
|
|
15745
15745
|
});
|
|
15746
15746
|
|
|
15747
15747
|
export { getRuntime, registerReportObserver, reportGraphqlQueryParseError };
|
|
15748
|
-
// version: 1.134.
|
|
15748
|
+
// version: 1.134.5-4b28c4f16
|