@salesforce/lds-worker-api 1.228.1 → 1.229.0-dev1

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.
@@ -795,4 +795,4 @@ if (process.env.NODE_ENV !== 'production') {
795
795
  }
796
796
 
797
797
  export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
798
- // version: 1.228.1-4e6356f71
798
+ // version: 1.229.0-dev1-f69d054a9
@@ -3968,7 +3968,7 @@ function withDefaultLuvio(callback) {
3968
3968
  }
3969
3969
  callbacks.push(callback);
3970
3970
  }
3971
- // version: 1.228.1-4e6356f71
3971
+ // version: 1.229.0-dev1-f69d054a9
3972
3972
 
3973
3973
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
3974
3974
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -15429,7 +15429,7 @@ function gql(literals, ...subs) {
15429
15429
  }
15430
15430
  return superResult;
15431
15431
  }
15432
- // version: 1.228.1-4e6356f71
15432
+ // version: 1.229.0-dev1-f69d054a9
15433
15433
 
15434
15434
  function unwrap(data) {
15435
15435
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16352,7 +16352,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
16352
16352
  const { apiFamily, name } = metadata;
16353
16353
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16354
16354
  }
16355
- // version: 1.228.1-4e6356f71
16355
+ // version: 1.229.0-dev1-f69d054a9
16356
16356
 
16357
16357
  /**
16358
16358
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -20455,7 +20455,7 @@ function fulfill(existing, incoming) {
20455
20455
  const batchRequestWithSingleRequest = isSingleBatchRecordRequest(existingUrlParams) &&
20456
20456
  isSingleRecordRequest(urlParams) &&
20457
20457
  incomingUrlRecords[0] === existingUrlRecords[0];
20458
- if (!batchRequestWithSingleRequest) {
20458
+ if (!batchRequestWithSingleRequest || isRestrictedPathCondition(existingPath, path)) {
20459
20459
  return false;
20460
20460
  }
20461
20461
  }
@@ -20498,6 +20498,12 @@ function isSingleBatchRecordRequest(urlParams) {
20498
20498
  function isSingleRecordRequest(urlParams) {
20499
20499
  return hasOwnProperty$1.call(urlParams, 'recordId');
20500
20500
  }
20501
+ function isRestrictedPathCondition(existingPath, path) {
20502
+ // should not dedupe getRecordUi and getRecord as both of their representation is different
20503
+ // records call cannot digest response of getRecordUi
20504
+ return ((existingPath.includes('/record-ui') && path.includes('/records')) ||
20505
+ (existingPath.includes('/records') && path.includes('/record-ui')));
20506
+ }
20501
20507
 
20502
20508
  const createResourceRequest$12 = function getUiApiRecordsByRecordIdCreateResourceRequest(config) {
20503
20509
  return {
@@ -41152,7 +41158,7 @@ withDefaultLuvio((luvio) => {
41152
41158
  throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoUpdateAvailable', notifyUpdateAvailableFactory$1));
41153
41159
  throttle(60, 60000, createLDSAdapter(luvio, 'notifyQuickActionDefaultsUpdateAvailable', notifyUpdateAvailableFactory));
41154
41160
  });
41155
- // version: 1.228.1-0cb6f94f1
41161
+ // version: 1.229.0-dev1-5b6d3db67
41156
41162
 
41157
41163
  var caseSensitiveUserId = '005B0000000GR4OIAW';
41158
41164
 
@@ -42686,6 +42692,72 @@ function makeDurable(environment, { durableStore, instrumentation }) {
42686
42692
  });
42687
42693
  }
42688
42694
 
42695
+ /**
42696
+ * Copyright (c) 2022, Salesforce, Inc.,
42697
+ * All rights reserved.
42698
+ * For full license text, see the LICENSE.txt file
42699
+ */
42700
+
42701
+ const API_NAMESPACE$1 = 'UiApi';
42702
+ const RECORD_REPRESENTATION_NAME$2 = 'RecordRepresentation';
42703
+ const RECORD_VIEW_ENTITY_REPRESENTATION_NAME$1 = 'RecordViewEntityRepresentation';
42704
+ const RECORD_ID_PREFIX$1 = `${API_NAMESPACE$1}::${RECORD_REPRESENTATION_NAME$2}:`;
42705
+ const RECORD_VIEW_ENTITY_ID_PREFIX$1 = `${API_NAMESPACE$1}::${RECORD_VIEW_ENTITY_REPRESENTATION_NAME$1}:Name:`;
42706
+ const RECORD_FIELDS_KEY_JUNCTION$1 = '__fields__';
42707
+ function isStoreKeyRecordId(key) {
42708
+ return key.indexOf(RECORD_ID_PREFIX$1) > -1 && key.indexOf(RECORD_FIELDS_KEY_JUNCTION$1) === -1;
42709
+ }
42710
+ function isStoreKeyRecordViewEntity$1(key) {
42711
+ return (key.indexOf(RECORD_VIEW_ENTITY_ID_PREFIX$1) > -1 &&
42712
+ key.indexOf(RECORD_FIELDS_KEY_JUNCTION$1) === -1);
42713
+ }
42714
+ function isStoreKeyRecordField(key) {
42715
+ return key.indexOf(RECORD_ID_PREFIX$1) > -1 && key.indexOf(RECORD_FIELDS_KEY_JUNCTION$1) > -1;
42716
+ }
42717
+ function extractRecordIdFromStoreKey$1(key) {
42718
+ if (key === undefined ||
42719
+ (key.indexOf(RECORD_ID_PREFIX$1) === -1 && key.indexOf(RECORD_VIEW_ENTITY_ID_PREFIX$1) === -1)) {
42720
+ return undefined;
42721
+ }
42722
+ const parts = key.split(':');
42723
+ return parts[parts.length - 1].split('_')[0];
42724
+ }
42725
+ function buildRecordFieldStoreKey(recordKey, fieldName) {
42726
+ return `${recordKey}${RECORD_FIELDS_KEY_JUNCTION$1}${fieldName}`;
42727
+ }
42728
+ function objectsDeepEqual(lhs, rhs) {
42729
+ if (lhs === rhs)
42730
+ return true;
42731
+ if (typeof lhs !== 'object' || typeof rhs !== 'object' || lhs === null || rhs === null)
42732
+ return false;
42733
+ const lhsKeys = Object.keys(lhs);
42734
+ const rhsKeys = Object.keys(rhs);
42735
+ if (lhsKeys.length !== rhsKeys.length)
42736
+ return false;
42737
+ for (let key of lhsKeys) {
42738
+ if (!rhsKeys.includes(key))
42739
+ return false;
42740
+ if (typeof lhs[key] === 'function' || typeof rhs[key] === 'function') {
42741
+ if (lhs[key].toString() !== rhs[key].toString())
42742
+ return false;
42743
+ }
42744
+ else {
42745
+ if (!objectsDeepEqual(lhs[key], rhs[key]))
42746
+ return false;
42747
+ }
42748
+ }
42749
+ return true;
42750
+ }
42751
+
42752
+ function isStoreRecordError(storeRecord) {
42753
+ return storeRecord.__type === 'error';
42754
+ }
42755
+ function isEntryDurableRecordRepresentation(entry, key) {
42756
+ // Either a DurableRecordRepresentation or StoreRecordError can live at a record key
42757
+ return ((isStoreKeyRecordId(key) || isStoreKeyRecordViewEntity$1(key)) &&
42758
+ entry.data.__type === undefined);
42759
+ }
42760
+
42689
42761
  /**
42690
42762
  * Copyright (c) 2022, Salesforce, Inc.,
42691
42763
  * All rights reserved.
@@ -45884,7 +45956,11 @@ function makeStoreEval(preconditioner, objectInfoService, userId, contextProvide
45884
45956
  try {
45885
45957
  const { data, seenRecords } = await queryEvaluator(rootQuery, context, eventEmitter);
45886
45958
  const rebuildWithStoreEval = ((originalSnapshot) => {
45887
- return storeEval(config, originalSnapshot, observers, connectionKeyBuilder);
45959
+ return storeEval(config, originalSnapshot, observers, connectionKeyBuilder).then((rebuiltSnapshot) => {
45960
+ return objectsDeepEqual(originalSnapshot.data, rebuiltSnapshot.data)
45961
+ ? originalSnapshot
45962
+ : rebuiltSnapshot;
45963
+ });
45888
45964
  });
45889
45965
  const recordId = generateUniqueRecordId$1();
45890
45966
  // if the non-eval'ed snapshot was an error then we return a synthetic
@@ -47830,49 +47906,6 @@ function makeEnvironmentDraftAware(luvio, env, durableStore, handlers, draftQueu
47830
47906
  });
47831
47907
  }
47832
47908
 
47833
- /**
47834
- * Copyright (c) 2022, Salesforce, Inc.,
47835
- * All rights reserved.
47836
- * For full license text, see the LICENSE.txt file
47837
- */
47838
-
47839
- const API_NAMESPACE$1 = 'UiApi';
47840
- const RECORD_REPRESENTATION_NAME$2 = 'RecordRepresentation';
47841
- const RECORD_VIEW_ENTITY_REPRESENTATION_NAME$1 = 'RecordViewEntityRepresentation';
47842
- const RECORD_ID_PREFIX$1 = `${API_NAMESPACE$1}::${RECORD_REPRESENTATION_NAME$2}:`;
47843
- const RECORD_VIEW_ENTITY_ID_PREFIX$1 = `${API_NAMESPACE$1}::${RECORD_VIEW_ENTITY_REPRESENTATION_NAME$1}:Name:`;
47844
- const RECORD_FIELDS_KEY_JUNCTION$1 = '__fields__';
47845
- function isStoreKeyRecordId(key) {
47846
- return key.indexOf(RECORD_ID_PREFIX$1) > -1 && key.indexOf(RECORD_FIELDS_KEY_JUNCTION$1) === -1;
47847
- }
47848
- function isStoreKeyRecordViewEntity$1(key) {
47849
- return (key.indexOf(RECORD_VIEW_ENTITY_ID_PREFIX$1) > -1 &&
47850
- key.indexOf(RECORD_FIELDS_KEY_JUNCTION$1) === -1);
47851
- }
47852
- function isStoreKeyRecordField(key) {
47853
- return key.indexOf(RECORD_ID_PREFIX$1) > -1 && key.indexOf(RECORD_FIELDS_KEY_JUNCTION$1) > -1;
47854
- }
47855
- function extractRecordIdFromStoreKey$1(key) {
47856
- if (key === undefined ||
47857
- (key.indexOf(RECORD_ID_PREFIX$1) === -1 && key.indexOf(RECORD_VIEW_ENTITY_ID_PREFIX$1) === -1)) {
47858
- return undefined;
47859
- }
47860
- const parts = key.split(':');
47861
- return parts[parts.length - 1].split('_')[0];
47862
- }
47863
- function buildRecordFieldStoreKey(recordKey, fieldName) {
47864
- return `${recordKey}${RECORD_FIELDS_KEY_JUNCTION$1}${fieldName}`;
47865
- }
47866
-
47867
- function isStoreRecordError(storeRecord) {
47868
- return storeRecord.__type === 'error';
47869
- }
47870
- function isEntryDurableRecordRepresentation(entry, key) {
47871
- // Either a DurableRecordRepresentation or StoreRecordError can live at a record key
47872
- return ((isStoreKeyRecordId(key) || isStoreKeyRecordViewEntity$1(key)) &&
47873
- entry.data.__type === undefined);
47874
- }
47875
-
47876
47909
  function serializeFieldArguments$1(argumentNodes, variables) {
47877
47910
  const mutableArgumentNodes = Object.assign([], argumentNodes);
47878
47911
  return `args__(${mutableArgumentNodes
@@ -54043,6 +54076,9 @@ function draftAwareGraphQLAdapterFactory(userId, objectInfoService, store, luvio
54043
54076
  if (!rebuildResult.errors) {
54044
54077
  rebuildResult = removeSyntheticFields(rebuildResult, config.query);
54045
54078
  }
54079
+ if (objectsDeepEqual(rebuildResult, originalSnapshot.data)) {
54080
+ return originalSnapshot;
54081
+ }
54046
54082
  // 'originalSnapshot' is the local eval snapshot subscribed. It is always in 'Fulfilled' state. This behavior would change once W-1273462(rebuild non-evaluated snapshot when the graphql local eval rebuild is triggered) is resolved.
54047
54083
  return {
54048
54084
  ...originalSnapshot,
@@ -57810,7 +57846,7 @@ register({
57810
57846
  id: '@salesforce/lds-network-adapter',
57811
57847
  instrument: instrument$1,
57812
57848
  });
57813
- // version: 1.228.1-4e6356f71
57849
+ // version: 1.229.0-dev1-f69d054a9
57814
57850
 
57815
57851
  const { create: create$2, keys: keys$2 } = Object;
57816
57852
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -76256,7 +76292,7 @@ register({
76256
76292
  configuration: { ...configurationForGraphQLAdapters },
76257
76293
  instrument,
76258
76294
  });
76259
- // version: 1.228.1-0cb6f94f1
76295
+ // version: 1.229.0-dev1-5b6d3db67
76260
76296
 
76261
76297
  // On core the unstable adapters are re-exported with different names,
76262
76298
 
@@ -78503,7 +78539,7 @@ withDefaultLuvio((luvio) => {
78503
78539
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
78504
78540
  graphQLImperative = ldsAdapter;
78505
78541
  });
78506
- // version: 1.228.1-0cb6f94f1
78542
+ // version: 1.229.0-dev1-5b6d3db67
78507
78543
 
78508
78544
  var gqlApi = /*#__PURE__*/Object.freeze({
78509
78545
  __proto__: null,
@@ -79217,4 +79253,4 @@ const { luvio } = getRuntime();
79217
79253
  setDefaultLuvio({ luvio });
79218
79254
 
79219
79255
  export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
79220
- // version: 1.228.1-4e6356f71
79256
+ // version: 1.229.0-dev1-f69d054a9
@@ -3974,7 +3974,7 @@
3974
3974
  }
3975
3975
  callbacks.push(callback);
3976
3976
  }
3977
- // version: 1.228.1-4e6356f71
3977
+ // version: 1.229.0-dev1-f69d054a9
3978
3978
 
3979
3979
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
3980
3980
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -15435,7 +15435,7 @@
15435
15435
  }
15436
15436
  return superResult;
15437
15437
  }
15438
- // version: 1.228.1-4e6356f71
15438
+ // version: 1.229.0-dev1-f69d054a9
15439
15439
 
15440
15440
  function unwrap(data) {
15441
15441
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16358,7 +16358,7 @@
16358
16358
  const { apiFamily, name } = metadata;
16359
16359
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16360
16360
  }
16361
- // version: 1.228.1-4e6356f71
16361
+ // version: 1.229.0-dev1-f69d054a9
16362
16362
 
16363
16363
  /**
16364
16364
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -20461,7 +20461,7 @@
20461
20461
  const batchRequestWithSingleRequest = isSingleBatchRecordRequest(existingUrlParams) &&
20462
20462
  isSingleRecordRequest(urlParams) &&
20463
20463
  incomingUrlRecords[0] === existingUrlRecords[0];
20464
- if (!batchRequestWithSingleRequest) {
20464
+ if (!batchRequestWithSingleRequest || isRestrictedPathCondition(existingPath, path)) {
20465
20465
  return false;
20466
20466
  }
20467
20467
  }
@@ -20504,6 +20504,12 @@
20504
20504
  function isSingleRecordRequest(urlParams) {
20505
20505
  return hasOwnProperty$1.call(urlParams, 'recordId');
20506
20506
  }
20507
+ function isRestrictedPathCondition(existingPath, path) {
20508
+ // should not dedupe getRecordUi and getRecord as both of their representation is different
20509
+ // records call cannot digest response of getRecordUi
20510
+ return ((existingPath.includes('/record-ui') && path.includes('/records')) ||
20511
+ (existingPath.includes('/records') && path.includes('/record-ui')));
20512
+ }
20507
20513
 
20508
20514
  const createResourceRequest$12 = function getUiApiRecordsByRecordIdCreateResourceRequest(config) {
20509
20515
  return {
@@ -41158,7 +41164,7 @@
41158
41164
  throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoUpdateAvailable', notifyUpdateAvailableFactory$1));
41159
41165
  throttle(60, 60000, createLDSAdapter(luvio, 'notifyQuickActionDefaultsUpdateAvailable', notifyUpdateAvailableFactory));
41160
41166
  });
41161
- // version: 1.228.1-0cb6f94f1
41167
+ // version: 1.229.0-dev1-5b6d3db67
41162
41168
 
41163
41169
  var caseSensitiveUserId = '005B0000000GR4OIAW';
41164
41170
 
@@ -42692,6 +42698,72 @@
42692
42698
  });
42693
42699
  }
42694
42700
 
42701
+ /**
42702
+ * Copyright (c) 2022, Salesforce, Inc.,
42703
+ * All rights reserved.
42704
+ * For full license text, see the LICENSE.txt file
42705
+ */
42706
+
42707
+ const API_NAMESPACE$1 = 'UiApi';
42708
+ const RECORD_REPRESENTATION_NAME$2 = 'RecordRepresentation';
42709
+ const RECORD_VIEW_ENTITY_REPRESENTATION_NAME$1 = 'RecordViewEntityRepresentation';
42710
+ const RECORD_ID_PREFIX$1 = `${API_NAMESPACE$1}::${RECORD_REPRESENTATION_NAME$2}:`;
42711
+ const RECORD_VIEW_ENTITY_ID_PREFIX$1 = `${API_NAMESPACE$1}::${RECORD_VIEW_ENTITY_REPRESENTATION_NAME$1}:Name:`;
42712
+ const RECORD_FIELDS_KEY_JUNCTION$1 = '__fields__';
42713
+ function isStoreKeyRecordId(key) {
42714
+ return key.indexOf(RECORD_ID_PREFIX$1) > -1 && key.indexOf(RECORD_FIELDS_KEY_JUNCTION$1) === -1;
42715
+ }
42716
+ function isStoreKeyRecordViewEntity$1(key) {
42717
+ return (key.indexOf(RECORD_VIEW_ENTITY_ID_PREFIX$1) > -1 &&
42718
+ key.indexOf(RECORD_FIELDS_KEY_JUNCTION$1) === -1);
42719
+ }
42720
+ function isStoreKeyRecordField(key) {
42721
+ return key.indexOf(RECORD_ID_PREFIX$1) > -1 && key.indexOf(RECORD_FIELDS_KEY_JUNCTION$1) > -1;
42722
+ }
42723
+ function extractRecordIdFromStoreKey$1(key) {
42724
+ if (key === undefined ||
42725
+ (key.indexOf(RECORD_ID_PREFIX$1) === -1 && key.indexOf(RECORD_VIEW_ENTITY_ID_PREFIX$1) === -1)) {
42726
+ return undefined;
42727
+ }
42728
+ const parts = key.split(':');
42729
+ return parts[parts.length - 1].split('_')[0];
42730
+ }
42731
+ function buildRecordFieldStoreKey(recordKey, fieldName) {
42732
+ return `${recordKey}${RECORD_FIELDS_KEY_JUNCTION$1}${fieldName}`;
42733
+ }
42734
+ function objectsDeepEqual(lhs, rhs) {
42735
+ if (lhs === rhs)
42736
+ return true;
42737
+ if (typeof lhs !== 'object' || typeof rhs !== 'object' || lhs === null || rhs === null)
42738
+ return false;
42739
+ const lhsKeys = Object.keys(lhs);
42740
+ const rhsKeys = Object.keys(rhs);
42741
+ if (lhsKeys.length !== rhsKeys.length)
42742
+ return false;
42743
+ for (let key of lhsKeys) {
42744
+ if (!rhsKeys.includes(key))
42745
+ return false;
42746
+ if (typeof lhs[key] === 'function' || typeof rhs[key] === 'function') {
42747
+ if (lhs[key].toString() !== rhs[key].toString())
42748
+ return false;
42749
+ }
42750
+ else {
42751
+ if (!objectsDeepEqual(lhs[key], rhs[key]))
42752
+ return false;
42753
+ }
42754
+ }
42755
+ return true;
42756
+ }
42757
+
42758
+ function isStoreRecordError(storeRecord) {
42759
+ return storeRecord.__type === 'error';
42760
+ }
42761
+ function isEntryDurableRecordRepresentation(entry, key) {
42762
+ // Either a DurableRecordRepresentation or StoreRecordError can live at a record key
42763
+ return ((isStoreKeyRecordId(key) || isStoreKeyRecordViewEntity$1(key)) &&
42764
+ entry.data.__type === undefined);
42765
+ }
42766
+
42695
42767
  /**
42696
42768
  * Copyright (c) 2022, Salesforce, Inc.,
42697
42769
  * All rights reserved.
@@ -45890,7 +45962,11 @@
45890
45962
  try {
45891
45963
  const { data, seenRecords } = await queryEvaluator(rootQuery, context, eventEmitter);
45892
45964
  const rebuildWithStoreEval = ((originalSnapshot) => {
45893
- return storeEval(config, originalSnapshot, observers, connectionKeyBuilder);
45965
+ return storeEval(config, originalSnapshot, observers, connectionKeyBuilder).then((rebuiltSnapshot) => {
45966
+ return objectsDeepEqual(originalSnapshot.data, rebuiltSnapshot.data)
45967
+ ? originalSnapshot
45968
+ : rebuiltSnapshot;
45969
+ });
45894
45970
  });
45895
45971
  const recordId = generateUniqueRecordId$1();
45896
45972
  // if the non-eval'ed snapshot was an error then we return a synthetic
@@ -47836,49 +47912,6 @@
47836
47912
  });
47837
47913
  }
47838
47914
 
47839
- /**
47840
- * Copyright (c) 2022, Salesforce, Inc.,
47841
- * All rights reserved.
47842
- * For full license text, see the LICENSE.txt file
47843
- */
47844
-
47845
- const API_NAMESPACE$1 = 'UiApi';
47846
- const RECORD_REPRESENTATION_NAME$2 = 'RecordRepresentation';
47847
- const RECORD_VIEW_ENTITY_REPRESENTATION_NAME$1 = 'RecordViewEntityRepresentation';
47848
- const RECORD_ID_PREFIX$1 = `${API_NAMESPACE$1}::${RECORD_REPRESENTATION_NAME$2}:`;
47849
- const RECORD_VIEW_ENTITY_ID_PREFIX$1 = `${API_NAMESPACE$1}::${RECORD_VIEW_ENTITY_REPRESENTATION_NAME$1}:Name:`;
47850
- const RECORD_FIELDS_KEY_JUNCTION$1 = '__fields__';
47851
- function isStoreKeyRecordId(key) {
47852
- return key.indexOf(RECORD_ID_PREFIX$1) > -1 && key.indexOf(RECORD_FIELDS_KEY_JUNCTION$1) === -1;
47853
- }
47854
- function isStoreKeyRecordViewEntity$1(key) {
47855
- return (key.indexOf(RECORD_VIEW_ENTITY_ID_PREFIX$1) > -1 &&
47856
- key.indexOf(RECORD_FIELDS_KEY_JUNCTION$1) === -1);
47857
- }
47858
- function isStoreKeyRecordField(key) {
47859
- return key.indexOf(RECORD_ID_PREFIX$1) > -1 && key.indexOf(RECORD_FIELDS_KEY_JUNCTION$1) > -1;
47860
- }
47861
- function extractRecordIdFromStoreKey$1(key) {
47862
- if (key === undefined ||
47863
- (key.indexOf(RECORD_ID_PREFIX$1) === -1 && key.indexOf(RECORD_VIEW_ENTITY_ID_PREFIX$1) === -1)) {
47864
- return undefined;
47865
- }
47866
- const parts = key.split(':');
47867
- return parts[parts.length - 1].split('_')[0];
47868
- }
47869
- function buildRecordFieldStoreKey(recordKey, fieldName) {
47870
- return `${recordKey}${RECORD_FIELDS_KEY_JUNCTION$1}${fieldName}`;
47871
- }
47872
-
47873
- function isStoreRecordError(storeRecord) {
47874
- return storeRecord.__type === 'error';
47875
- }
47876
- function isEntryDurableRecordRepresentation(entry, key) {
47877
- // Either a DurableRecordRepresentation or StoreRecordError can live at a record key
47878
- return ((isStoreKeyRecordId(key) || isStoreKeyRecordViewEntity$1(key)) &&
47879
- entry.data.__type === undefined);
47880
- }
47881
-
47882
47915
  function serializeFieldArguments$1(argumentNodes, variables) {
47883
47916
  const mutableArgumentNodes = Object.assign([], argumentNodes);
47884
47917
  return `args__(${mutableArgumentNodes
@@ -54049,6 +54082,9 @@
54049
54082
  if (!rebuildResult.errors) {
54050
54083
  rebuildResult = removeSyntheticFields(rebuildResult, config.query);
54051
54084
  }
54085
+ if (objectsDeepEqual(rebuildResult, originalSnapshot.data)) {
54086
+ return originalSnapshot;
54087
+ }
54052
54088
  // 'originalSnapshot' is the local eval snapshot subscribed. It is always in 'Fulfilled' state. This behavior would change once W-1273462(rebuild non-evaluated snapshot when the graphql local eval rebuild is triggered) is resolved.
54053
54089
  return {
54054
54090
  ...originalSnapshot,
@@ -57816,7 +57852,7 @@
57816
57852
  id: '@salesforce/lds-network-adapter',
57817
57853
  instrument: instrument$1,
57818
57854
  });
57819
- // version: 1.228.1-4e6356f71
57855
+ // version: 1.229.0-dev1-f69d054a9
57820
57856
 
57821
57857
  const { create: create$2, keys: keys$2 } = Object;
57822
57858
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -76262,7 +76298,7 @@
76262
76298
  configuration: { ...configurationForGraphQLAdapters },
76263
76299
  instrument,
76264
76300
  });
76265
- // version: 1.228.1-0cb6f94f1
76301
+ // version: 1.229.0-dev1-5b6d3db67
76266
76302
 
76267
76303
  // On core the unstable adapters are re-exported with different names,
76268
76304
 
@@ -78509,7 +78545,7 @@
78509
78545
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
78510
78546
  graphQLImperative = ldsAdapter;
78511
78547
  });
78512
- // version: 1.228.1-0cb6f94f1
78548
+ // version: 1.229.0-dev1-5b6d3db67
78513
78549
 
78514
78550
  var gqlApi = /*#__PURE__*/Object.freeze({
78515
78551
  __proto__: null,
@@ -79240,4 +79276,4 @@
79240
79276
  Object.defineProperty(exports, '__esModule', { value: true });
79241
79277
 
79242
79278
  }));
79243
- // version: 1.228.1-4e6356f71
79279
+ // version: 1.229.0-dev1-f69d054a9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-worker-api",
3
- "version": "1.228.1",
3
+ "version": "1.229.0-dev1",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "",
6
6
  "main": "dist/standalone/es/lds-worker-api.js",
@@ -35,15 +35,15 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "@oat-sa/rollup-plugin-wildcard-external": "^1.0.0",
38
- "@salesforce/lds-adapters-graphql": "*",
39
- "@salesforce/lds-adapters-uiapi": "*",
40
- "@salesforce/lds-default-luvio": "*",
41
- "@salesforce/lds-drafts": "*",
42
- "@salesforce/lds-graphql-parser": "*",
43
- "@salesforce/lds-luvio-engine": "*",
44
- "@salesforce/lds-priming": "*",
45
- "@salesforce/lds-runtime-mobile": "*",
46
- "@salesforce/nimbus-plugin-lds": "*",
38
+ "@salesforce/lds-adapters-graphql": "1.229.0-dev1",
39
+ "@salesforce/lds-adapters-uiapi": "1.229.0-dev1",
40
+ "@salesforce/lds-default-luvio": "1.229.0-dev1",
41
+ "@salesforce/lds-drafts": "1.229.0-dev1",
42
+ "@salesforce/lds-graphql-parser": "1.229.0-dev1",
43
+ "@salesforce/lds-luvio-engine": "1.229.0-dev1",
44
+ "@salesforce/lds-priming": "1.229.0-dev1",
45
+ "@salesforce/lds-runtime-mobile": "1.229.0-dev1",
46
+ "@salesforce/nimbus-plugin-lds": "1.229.0-dev1",
47
47
  "ajv": "^8.11.0",
48
48
  "glob": "^7.1.5",
49
49
  "nimbus-types": "^2.0.0-alpha1",