@salesforce/lds-worker-api 1.230.0 → 1.231.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.
@@ -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.230.0-3f2f215ea
798
+ // version: 1.231.0-c7012112a
@@ -3968,7 +3968,7 @@ function withDefaultLuvio(callback) {
3968
3968
  }
3969
3969
  callbacks.push(callback);
3970
3970
  }
3971
- // version: 1.230.0-3f2f215ea
3971
+ // version: 1.231.0-c7012112a
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.230.0-3f2f215ea
15432
+ // version: 1.231.0-c7012112a
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.230.0-3f2f215ea
16355
+ // version: 1.231.0-c7012112a
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.230.0-ccccbe260
41161
+ // version: 1.231.0-2b4244fb5
41156
41162
 
41157
41163
  var caseSensitiveUserId = '005B0000000GR4OIAW';
41158
41164
 
@@ -57810,7 +57816,7 @@ register({
57810
57816
  id: '@salesforce/lds-network-adapter',
57811
57817
  instrument: instrument$1,
57812
57818
  });
57813
- // version: 1.230.0-3f2f215ea
57819
+ // version: 1.231.0-c7012112a
57814
57820
 
57815
57821
  const { create: create$2, keys: keys$2 } = Object;
57816
57822
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -76257,7 +76263,7 @@ register({
76257
76263
  configuration: { ...configurationForGraphQLAdapters },
76258
76264
  instrument,
76259
76265
  });
76260
- // version: 1.230.0-ccccbe260
76266
+ // version: 1.231.0-2b4244fb5
76261
76267
 
76262
76268
  // On core the unstable adapters are re-exported with different names,
76263
76269
 
@@ -78504,7 +78510,7 @@ withDefaultLuvio((luvio) => {
78504
78510
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
78505
78511
  graphQLImperative = ldsAdapter;
78506
78512
  });
78507
- // version: 1.230.0-ccccbe260
78513
+ // version: 1.231.0-2b4244fb5
78508
78514
 
78509
78515
  var gqlApi = /*#__PURE__*/Object.freeze({
78510
78516
  __proto__: null,
@@ -79218,4 +79224,4 @@ const { luvio } = getRuntime();
79218
79224
  setDefaultLuvio({ luvio });
79219
79225
 
79220
79226
  export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
79221
- // version: 1.230.0-3f2f215ea
79227
+ // version: 1.231.0-c7012112a
@@ -3974,7 +3974,7 @@
3974
3974
  }
3975
3975
  callbacks.push(callback);
3976
3976
  }
3977
- // version: 1.230.0-3f2f215ea
3977
+ // version: 1.231.0-c7012112a
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.230.0-3f2f215ea
15438
+ // version: 1.231.0-c7012112a
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.230.0-3f2f215ea
16361
+ // version: 1.231.0-c7012112a
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.230.0-ccccbe260
41167
+ // version: 1.231.0-2b4244fb5
41162
41168
 
41163
41169
  var caseSensitiveUserId = '005B0000000GR4OIAW';
41164
41170
 
@@ -57816,7 +57822,7 @@
57816
57822
  id: '@salesforce/lds-network-adapter',
57817
57823
  instrument: instrument$1,
57818
57824
  });
57819
- // version: 1.230.0-3f2f215ea
57825
+ // version: 1.231.0-c7012112a
57820
57826
 
57821
57827
  const { create: create$2, keys: keys$2 } = Object;
57822
57828
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -76263,7 +76269,7 @@
76263
76269
  configuration: { ...configurationForGraphQLAdapters },
76264
76270
  instrument,
76265
76271
  });
76266
- // version: 1.230.0-ccccbe260
76272
+ // version: 1.231.0-2b4244fb5
76267
76273
 
76268
76274
  // On core the unstable adapters are re-exported with different names,
76269
76275
 
@@ -78510,7 +78516,7 @@
78510
78516
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
78511
78517
  graphQLImperative = ldsAdapter;
78512
78518
  });
78513
- // version: 1.230.0-ccccbe260
78519
+ // version: 1.231.0-2b4244fb5
78514
78520
 
78515
78521
  var gqlApi = /*#__PURE__*/Object.freeze({
78516
78522
  __proto__: null,
@@ -79241,4 +79247,4 @@
79241
79247
  Object.defineProperty(exports, '__esModule', { value: true });
79242
79248
 
79243
79249
  }));
79244
- // version: 1.230.0-3f2f215ea
79250
+ // version: 1.231.0-c7012112a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-worker-api",
3
- "version": "1.230.0",
3
+ "version": "1.231.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "",
6
6
  "main": "dist/standalone/es/lds-worker-api.js",