@salesforce/lds-worker-api 1.326.0 → 1.327.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.
@@ -1098,4 +1098,4 @@ if (process.env.NODE_ENV !== 'production') {
1098
1098
  }
1099
1099
 
1100
1100
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
1101
- // version: 1.326.0-562167ef21
1101
+ // version: 1.327.0-8614d511e1
@@ -4265,7 +4265,7 @@ function withDefaultLuvio(callback) {
4265
4265
  }
4266
4266
  callbacks.push(callback);
4267
4267
  }
4268
- // version: 1.326.0-562167ef21
4268
+ // version: 1.327.0-8614d511e1
4269
4269
 
4270
4270
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4271
4271
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -5213,7 +5213,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
5213
5213
  const { apiFamily, name } = metadata;
5214
5214
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
5215
5215
  }
5216
- // version: 1.326.0-562167ef21
5216
+ // version: 1.327.0-8614d511e1
5217
5217
 
5218
5218
  /**
5219
5219
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -33851,25 +33851,7 @@ withDefaultLuvio((luvio) => {
33851
33851
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
33852
33852
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
33853
33853
  });
33854
- // version: 1.326.0-c4e3f37efd
33855
-
33856
- var ldsIdempotencyWriteDisabled = {
33857
- isOpen: function (e) {
33858
- return e.fallback;
33859
- },
33860
- hasError: function () {
33861
- return !0;
33862
- },
33863
- };
33864
-
33865
- var ldsBackdatingEnabled = {
33866
- isOpen: function (e_) {
33867
- return true;
33868
- },
33869
- hasError: function () {
33870
- return !0;
33871
- },
33872
- };
33854
+ // version: 1.327.0-a29a47f236
33873
33855
 
33874
33856
  /**
33875
33857
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -45374,15 +45356,6 @@ const getInstrumentation = () => {
45374
45356
  return mockInstrumentation;
45375
45357
  };
45376
45358
 
45377
- var ldsUseShortUrlGate = {
45378
- isOpen: function (e) {
45379
- return e.fallback;
45380
- },
45381
- hasError: function () {
45382
- return !0;
45383
- },
45384
- };
45385
-
45386
45359
  var ldsAdapterO11yLoggingGate = {
45387
45360
  isOpen: function (e) {
45388
45361
  return e.fallback;
@@ -45441,15 +45414,6 @@ function formattingOptions(pattern) {
45441
45414
  return pattern;
45442
45415
  }
45443
45416
 
45444
- var eagerEvalStaleWhileRevalidate = {
45445
- isOpen: function (e) {
45446
- return e.fallback;
45447
- },
45448
- hasError: function () {
45449
- return !0;
45450
- },
45451
- };
45452
-
45453
45417
  var ldsPrimingGraphqlBatch = {
45454
45418
  isOpen: function (e) {
45455
45419
  return e.fallback;
@@ -45468,15 +45432,6 @@ var lmrPrimingUseSoql = {
45468
45432
  },
45469
45433
  };
45470
45434
 
45471
- var ldsMetadataRefreshEnabled = {
45472
- isOpen: function (_e) {
45473
- return true;
45474
- },
45475
- hasError: function () {
45476
- return !0;
45477
- },
45478
- };
45479
-
45480
45435
  var graphqlL2AdapterGate = {
45481
45436
  isOpen: function (e) {
45482
45437
  return e.fallback;
@@ -45525,7 +45480,7 @@ function instrument$2(newInstrumentation) {
45525
45480
  const LDS_RECORDS_AGGREGATE_UI = 'LDS_Records_AggregateUi';
45526
45481
  // Boundary which represents the limit that we start chunking at,
45527
45482
  // determined by comma separated string length of fields
45528
- const MAX_STRING_LENGTH_PER_CHUNK$1 = 10000;
45483
+ const MAX_STRING_LENGTH_PER_CHUNK = 10000;
45529
45484
  // UIAPI limit
45530
45485
  const MAX_AGGREGATE_UI_CHUNK_LIMIT = 50;
45531
45486
  function createOkResponse$1(body) {
@@ -45629,7 +45584,7 @@ function dispatchSplitRecordAggregateUiAction(recordId, networkAdapter, resource
45629
45584
  });
45630
45585
  }
45631
45586
  function shouldUseAggregateUiForGetRecord(fieldsArray, optionalFieldsArray) {
45632
- return fieldsArray.length + optionalFieldsArray.length >= MAX_STRING_LENGTH_PER_CHUNK$1;
45587
+ return fieldsArray.length + optionalFieldsArray.length >= MAX_STRING_LENGTH_PER_CHUNK;
45633
45588
  }
45634
45589
  function buildAggregateUiUrl$1(params, resourceRequest) {
45635
45590
  const { fields, optionalFields } = params;
@@ -45648,7 +45603,7 @@ function buildGetRecordByFieldsCompositeRequest(resourceRequest, recordsComposit
45648
45603
  const { fieldsArray, optionalFieldsArray, fieldsLength, optionalFieldsLength } = recordsCompositeRequest;
45649
45604
  // Formula: # of fields per chunk = floor(avg field length / max length per chunk)
45650
45605
  const averageFieldStringLength = Math.floor((fieldsLength + optionalFieldsLength) / (fieldsArray.length + optionalFieldsArray.length));
45651
- const fieldsPerChunk = Math.floor(MAX_STRING_LENGTH_PER_CHUNK$1 / averageFieldStringLength);
45606
+ const fieldsPerChunk = Math.floor(MAX_STRING_LENGTH_PER_CHUNK / averageFieldStringLength);
45652
45607
  const optionalFieldsChunks = [];
45653
45608
  // Do the same for optional tracked fields
45654
45609
  for (let i = 0, j = optionalFieldsArray.length; i < j; i += fieldsPerChunk) {
@@ -79261,11 +79216,6 @@ class AbstractResourceRequestActionHandler {
79261
79216
  this.recordService = recordService;
79262
79217
  // determined by Server setup.
79263
79218
  this.isIdempotencySupported = true;
79264
- // idempotency write flag set by lds
79265
- this.isLdsIdempotencyWriteDisabled = ldsIdempotencyWriteDisabled.isOpen({
79266
- fallback: false,
79267
- });
79268
- this.isBackdatingEnabled = ldsBackdatingEnabled.isOpen({ fallback: false });
79269
79219
  }
79270
79220
  enqueue(data) {
79271
79221
  return this.draftQueue.enqueue(this.handlerId, data);
@@ -79364,8 +79314,7 @@ class AbstractResourceRequestActionHandler {
79364
79314
  updatedAction.data.headers[HTTP_HEADER_IDEMPOTENCY_KEY] = uuidv4();
79365
79315
  actionDataChanged = true;
79366
79316
  }
79367
- if (this.isBackdatingEnabled &&
79368
- response.status === HttpStatusCode$1.BadRequest &&
79317
+ if (response.status === HttpStatusCode$1.BadRequest &&
79369
79318
  this.isBackdatingError(response.body, action)) {
79370
79319
  updatedAction.timestamp = Date.now();
79371
79320
  updatedAction.data.body.fields = {
@@ -79640,7 +79589,7 @@ class AbstractResourceRequestActionHandler {
79640
79589
  return [action.targetId];
79641
79590
  }
79642
79591
  hasIdempotencySupport() {
79643
- return this.isIdempotencySupported && !this.isLdsIdempotencyWriteDisabled;
79592
+ return this.isIdempotencySupported;
79644
79593
  }
79645
79594
  async ingestResponses(responses, action) {
79646
79595
  const luvio = this.getLuvio();
@@ -79768,8 +79717,7 @@ class UiApiActionHandler extends AbstractResourceRequestActionHandler {
79768
79717
  }
79769
79718
  // handles backdating
79770
79719
  const objectInfo = await this.objectInfoService.getObjectInfo(targetApiName);
79771
- if (this.isBackdatingEnabled &&
79772
- pendingAction.data &&
79720
+ if (pendingAction.data &&
79773
79721
  pendingAction.data.method !== 'delete' && //'delete' action does not have fields
79774
79722
  objectInfo) {
79775
79723
  const appendedFields = this.getBackdatingFields(objectInfo, resolvedRequest.method, pendingAction);
@@ -80480,7 +80428,7 @@ class ContentDocumentCompositeRepresentationActionHandler extends AbstractResour
80480
80428
  if (objectInfo === undefined) {
80481
80429
  throw Error(`Could not generate draft. Object info is missing`);
80482
80430
  }
80483
- if (this.isBackdatingEnabled && pendingAction.data) {
80431
+ if (pendingAction.data) {
80484
80432
  pendingAction.data.body.namedEntries = [
80485
80433
  ...pendingAction.data.body.namedEntries,
80486
80434
  ...this.getBackdatingNameEntries(objectInfo, pendingAction.timestamp),
@@ -87804,7 +87752,7 @@ class ScopedFieldsCollection {
87804
87752
  * which there max fields list length will not exceeded the specified maxLength
87805
87753
  * @param maxLength
87806
87754
  */
87807
- split(maxLength = MAX_STRING_LENGTH_PER_CHUNK) {
87755
+ split(maxLength = MAX_URL_LENGTH) {
87808
87756
  const size = this.size();
87809
87757
  if (size > maxLength) {
87810
87758
  const fieldsArray = [];
@@ -87891,7 +87839,6 @@ class ScopedFieldsCollection {
87891
87839
  }
87892
87840
  }
87893
87841
 
87894
- const MAX_STRING_LENGTH_PER_CHUNK = 10000;
87895
87842
  //Salesforce/Akamai cdn uri max size is 8898 bytes, short than normal. Per
87896
87843
  //https://help.salesforce.com/s/articleView?id=sf.community_builder_cdn_considerations.htm&type=5
87897
87844
  //Due to we don't know the domain ResourceRequest, here we give 8000
@@ -88126,22 +88073,18 @@ function arrayOrEmpty(array) {
88126
88073
  return array !== undefined && isArray$4(array) ? array : [];
88127
88074
  }
88128
88075
  /**
88129
- * Calculate the max lengh per chunk.
88130
- * If useShortUrlGate is open, allow max chunk size is MAX_URL_LENGTH - the url without fields and optional fields in url.
88131
- * Otherwise MAX_STRING_LENGTH_PER_CHUNK
88076
+ * Calculate the max length per chunk.
88077
+ * Max chunk size is MAX_URL_LENGTH - the url without fields and optional fields.
88078
+ *
88132
88079
  * @param resourceRequest
88133
88080
  * @returns
88134
88081
  */
88135
88082
  function getMaxLengthPerChunkAllowed(request) {
88136
- if (!ldsUseShortUrlGate.isOpen({ fallback: false })) {
88137
- return MAX_STRING_LENGTH_PER_CHUNK;
88138
- }
88139
88083
  // Too much work to get exact length of the final url, so use stringified json to get the rough length.
88140
88084
  const roughUrlLengthWithoutFieldsAndOptionFields = request.basePath.length +
88141
88085
  request.baseUri.length +
88142
88086
  (request.urlParams ? stringify$1(request.urlParams).length : 0) +
88143
88087
  stringify$1({ ...request.queryParams, fields: {}, optionalFields: {} }).length;
88144
- // MAX_URL_LENGTH - full lenght without fields, optionalFields
88145
88088
  return MAX_URL_LENGTH - roughUrlLengthWithoutFieldsAndOptionFields;
88146
88089
  }
88147
88090
  // we don't have access to the host so we cannot calculate the exact length of the url
@@ -89715,13 +89658,7 @@ function makeEnvironmentGraphqlAware(environment) {
89715
89658
  cachePolicy.basePolicy.type === 'stale-while-revalidate') {
89716
89659
  localBuildCachedSnapshot = hoistUnfulfilledToStale;
89717
89660
  }
89718
- if (eagerEvalStaleWhileRevalidate.isOpen({ fallback: false }) &&
89719
- cachePolicy &&
89720
- cachePolicy.type === 'stale-while-revalidate' &&
89721
- cachePolicy.staleDurationSeconds >= Number.MAX_SAFE_INTEGER) {
89722
- localBuildCachedSnapshot = hoistUnfulfilledToStale;
89723
- }
89724
- if ((cachePolicy === undefined || cachePolicy === null)) {
89661
+ if (cachePolicy === undefined || cachePolicy === null) {
89725
89662
  localBuildCachedSnapshot = hoistUnfulfilledToStale;
89726
89663
  }
89727
89664
  return environment.applyCachePolicy(luvio, adapterRequestContext, buildSnapshotContext, localBuildCachedSnapshot, buildNetworkSnapshot);
@@ -92594,7 +92531,7 @@ function getRuntime() {
92594
92531
  const gqlEnv = makeEnvironmentGraphqlAware(baseEnv);
92595
92532
  const durableEnv = makeDurable(gqlEnv, {
92596
92533
  durableStore: lazyDurableStore,
92597
- enableDurableMetadataRefresh: ldsMetadataRefreshEnabled.isOpen({ fallback: false }),
92534
+ enableDurableMetadataRefresh: true,
92598
92535
  // disable luvio deep freeze in headless environments
92599
92536
  disableDeepFreeze: typeof window === 'undefined',
92600
92537
  shouldFlush,
@@ -92712,7 +92649,7 @@ register$1({
92712
92649
  id: '@salesforce/lds-network-adapter',
92713
92650
  instrument: instrument$2,
92714
92651
  });
92715
- // version: 1.326.0-562167ef21
92652
+ // version: 1.327.0-8614d511e1
92716
92653
 
92717
92654
  const { create: create$2, keys: keys$2 } = Object;
92718
92655
  const { stringify, parse } = JSON;
@@ -115279,7 +115216,7 @@ register$1({
115279
115216
  configuration: { ...configurationForGraphQLAdapters$1 },
115280
115217
  instrument: instrument$1,
115281
115218
  });
115282
- // version: 1.326.0-c4e3f37efd
115219
+ // version: 1.327.0-a29a47f236
115283
115220
 
115284
115221
  // On core the unstable adapters are re-exported with different names,
115285
115222
  // we want to match them here.
@@ -115431,7 +115368,7 @@ withDefaultLuvio((luvio) => {
115431
115368
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
115432
115369
  graphQLImperative = ldsAdapter;
115433
115370
  });
115434
- // version: 1.326.0-c4e3f37efd
115371
+ // version: 1.327.0-a29a47f236
115435
115372
 
115436
115373
  var gqlApi = /*#__PURE__*/Object.freeze({
115437
115374
  __proto__: null,
@@ -116193,7 +116130,7 @@ const callbacks$1 = [];
116193
116130
  function register(r) {
116194
116131
  callbacks$1.forEach((callback) => callback(r));
116195
116132
  }
116196
- // version: 1.326.0-562167ef21
116133
+ // version: 1.327.0-8614d511e1
116197
116134
 
116198
116135
  /**
116199
116136
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -117256,4 +117193,4 @@ const { luvio } = getRuntime();
117256
117193
  setDefaultLuvio({ luvio });
117257
117194
 
117258
117195
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
117259
- // version: 1.326.0-562167ef21
117196
+ // version: 1.327.0-8614d511e1
@@ -4271,7 +4271,7 @@
4271
4271
  }
4272
4272
  callbacks.push(callback);
4273
4273
  }
4274
- // version: 1.326.0-562167ef21
4274
+ // version: 1.327.0-8614d511e1
4275
4275
 
4276
4276
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4277
4277
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -5219,7 +5219,7 @@
5219
5219
  const { apiFamily, name } = metadata;
5220
5220
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
5221
5221
  }
5222
- // version: 1.326.0-562167ef21
5222
+ // version: 1.327.0-8614d511e1
5223
5223
 
5224
5224
  /**
5225
5225
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -33857,25 +33857,7 @@
33857
33857
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
33858
33858
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
33859
33859
  });
33860
- // version: 1.326.0-c4e3f37efd
33861
-
33862
- var ldsIdempotencyWriteDisabled = {
33863
- isOpen: function (e) {
33864
- return e.fallback;
33865
- },
33866
- hasError: function () {
33867
- return !0;
33868
- },
33869
- };
33870
-
33871
- var ldsBackdatingEnabled = {
33872
- isOpen: function (e_) {
33873
- return true;
33874
- },
33875
- hasError: function () {
33876
- return !0;
33877
- },
33878
- };
33860
+ // version: 1.327.0-a29a47f236
33879
33861
 
33880
33862
  /**
33881
33863
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -45380,15 +45362,6 @@
45380
45362
  return mockInstrumentation;
45381
45363
  };
45382
45364
 
45383
- var ldsUseShortUrlGate = {
45384
- isOpen: function (e) {
45385
- return e.fallback;
45386
- },
45387
- hasError: function () {
45388
- return !0;
45389
- },
45390
- };
45391
-
45392
45365
  var ldsAdapterO11yLoggingGate = {
45393
45366
  isOpen: function (e) {
45394
45367
  return e.fallback;
@@ -45447,15 +45420,6 @@
45447
45420
  return pattern;
45448
45421
  }
45449
45422
 
45450
- var eagerEvalStaleWhileRevalidate = {
45451
- isOpen: function (e) {
45452
- return e.fallback;
45453
- },
45454
- hasError: function () {
45455
- return !0;
45456
- },
45457
- };
45458
-
45459
45423
  var ldsPrimingGraphqlBatch = {
45460
45424
  isOpen: function (e) {
45461
45425
  return e.fallback;
@@ -45474,15 +45438,6 @@
45474
45438
  },
45475
45439
  };
45476
45440
 
45477
- var ldsMetadataRefreshEnabled = {
45478
- isOpen: function (_e) {
45479
- return true;
45480
- },
45481
- hasError: function () {
45482
- return !0;
45483
- },
45484
- };
45485
-
45486
45441
  var graphqlL2AdapterGate = {
45487
45442
  isOpen: function (e) {
45488
45443
  return e.fallback;
@@ -45531,7 +45486,7 @@
45531
45486
  const LDS_RECORDS_AGGREGATE_UI = 'LDS_Records_AggregateUi';
45532
45487
  // Boundary which represents the limit that we start chunking at,
45533
45488
  // determined by comma separated string length of fields
45534
- const MAX_STRING_LENGTH_PER_CHUNK$1 = 10000;
45489
+ const MAX_STRING_LENGTH_PER_CHUNK = 10000;
45535
45490
  // UIAPI limit
45536
45491
  const MAX_AGGREGATE_UI_CHUNK_LIMIT = 50;
45537
45492
  function createOkResponse$1(body) {
@@ -45635,7 +45590,7 @@
45635
45590
  });
45636
45591
  }
45637
45592
  function shouldUseAggregateUiForGetRecord(fieldsArray, optionalFieldsArray) {
45638
- return fieldsArray.length + optionalFieldsArray.length >= MAX_STRING_LENGTH_PER_CHUNK$1;
45593
+ return fieldsArray.length + optionalFieldsArray.length >= MAX_STRING_LENGTH_PER_CHUNK;
45639
45594
  }
45640
45595
  function buildAggregateUiUrl$1(params, resourceRequest) {
45641
45596
  const { fields, optionalFields } = params;
@@ -45654,7 +45609,7 @@
45654
45609
  const { fieldsArray, optionalFieldsArray, fieldsLength, optionalFieldsLength } = recordsCompositeRequest;
45655
45610
  // Formula: # of fields per chunk = floor(avg field length / max length per chunk)
45656
45611
  const averageFieldStringLength = Math.floor((fieldsLength + optionalFieldsLength) / (fieldsArray.length + optionalFieldsArray.length));
45657
- const fieldsPerChunk = Math.floor(MAX_STRING_LENGTH_PER_CHUNK$1 / averageFieldStringLength);
45612
+ const fieldsPerChunk = Math.floor(MAX_STRING_LENGTH_PER_CHUNK / averageFieldStringLength);
45658
45613
  const optionalFieldsChunks = [];
45659
45614
  // Do the same for optional tracked fields
45660
45615
  for (let i = 0, j = optionalFieldsArray.length; i < j; i += fieldsPerChunk) {
@@ -79267,11 +79222,6 @@
79267
79222
  this.recordService = recordService;
79268
79223
  // determined by Server setup.
79269
79224
  this.isIdempotencySupported = true;
79270
- // idempotency write flag set by lds
79271
- this.isLdsIdempotencyWriteDisabled = ldsIdempotencyWriteDisabled.isOpen({
79272
- fallback: false,
79273
- });
79274
- this.isBackdatingEnabled = ldsBackdatingEnabled.isOpen({ fallback: false });
79275
79225
  }
79276
79226
  enqueue(data) {
79277
79227
  return this.draftQueue.enqueue(this.handlerId, data);
@@ -79370,8 +79320,7 @@
79370
79320
  updatedAction.data.headers[HTTP_HEADER_IDEMPOTENCY_KEY] = uuidv4();
79371
79321
  actionDataChanged = true;
79372
79322
  }
79373
- if (this.isBackdatingEnabled &&
79374
- response.status === HttpStatusCode$1.BadRequest &&
79323
+ if (response.status === HttpStatusCode$1.BadRequest &&
79375
79324
  this.isBackdatingError(response.body, action)) {
79376
79325
  updatedAction.timestamp = Date.now();
79377
79326
  updatedAction.data.body.fields = {
@@ -79646,7 +79595,7 @@
79646
79595
  return [action.targetId];
79647
79596
  }
79648
79597
  hasIdempotencySupport() {
79649
- return this.isIdempotencySupported && !this.isLdsIdempotencyWriteDisabled;
79598
+ return this.isIdempotencySupported;
79650
79599
  }
79651
79600
  async ingestResponses(responses, action) {
79652
79601
  const luvio = this.getLuvio();
@@ -79774,8 +79723,7 @@
79774
79723
  }
79775
79724
  // handles backdating
79776
79725
  const objectInfo = await this.objectInfoService.getObjectInfo(targetApiName);
79777
- if (this.isBackdatingEnabled &&
79778
- pendingAction.data &&
79726
+ if (pendingAction.data &&
79779
79727
  pendingAction.data.method !== 'delete' && //'delete' action does not have fields
79780
79728
  objectInfo) {
79781
79729
  const appendedFields = this.getBackdatingFields(objectInfo, resolvedRequest.method, pendingAction);
@@ -80486,7 +80434,7 @@
80486
80434
  if (objectInfo === undefined) {
80487
80435
  throw Error(`Could not generate draft. Object info is missing`);
80488
80436
  }
80489
- if (this.isBackdatingEnabled && pendingAction.data) {
80437
+ if (pendingAction.data) {
80490
80438
  pendingAction.data.body.namedEntries = [
80491
80439
  ...pendingAction.data.body.namedEntries,
80492
80440
  ...this.getBackdatingNameEntries(objectInfo, pendingAction.timestamp),
@@ -87810,7 +87758,7 @@
87810
87758
  * which there max fields list length will not exceeded the specified maxLength
87811
87759
  * @param maxLength
87812
87760
  */
87813
- split(maxLength = MAX_STRING_LENGTH_PER_CHUNK) {
87761
+ split(maxLength = MAX_URL_LENGTH) {
87814
87762
  const size = this.size();
87815
87763
  if (size > maxLength) {
87816
87764
  const fieldsArray = [];
@@ -87897,7 +87845,6 @@
87897
87845
  }
87898
87846
  }
87899
87847
 
87900
- const MAX_STRING_LENGTH_PER_CHUNK = 10000;
87901
87848
  //Salesforce/Akamai cdn uri max size is 8898 bytes, short than normal. Per
87902
87849
  //https://help.salesforce.com/s/articleView?id=sf.community_builder_cdn_considerations.htm&type=5
87903
87850
  //Due to we don't know the domain ResourceRequest, here we give 8000
@@ -88132,22 +88079,18 @@
88132
88079
  return array !== undefined && isArray$4(array) ? array : [];
88133
88080
  }
88134
88081
  /**
88135
- * Calculate the max lengh per chunk.
88136
- * If useShortUrlGate is open, allow max chunk size is MAX_URL_LENGTH - the url without fields and optional fields in url.
88137
- * Otherwise MAX_STRING_LENGTH_PER_CHUNK
88082
+ * Calculate the max length per chunk.
88083
+ * Max chunk size is MAX_URL_LENGTH - the url without fields and optional fields.
88084
+ *
88138
88085
  * @param resourceRequest
88139
88086
  * @returns
88140
88087
  */
88141
88088
  function getMaxLengthPerChunkAllowed(request) {
88142
- if (!ldsUseShortUrlGate.isOpen({ fallback: false })) {
88143
- return MAX_STRING_LENGTH_PER_CHUNK;
88144
- }
88145
88089
  // Too much work to get exact length of the final url, so use stringified json to get the rough length.
88146
88090
  const roughUrlLengthWithoutFieldsAndOptionFields = request.basePath.length +
88147
88091
  request.baseUri.length +
88148
88092
  (request.urlParams ? stringify$1(request.urlParams).length : 0) +
88149
88093
  stringify$1({ ...request.queryParams, fields: {}, optionalFields: {} }).length;
88150
- // MAX_URL_LENGTH - full lenght without fields, optionalFields
88151
88094
  return MAX_URL_LENGTH - roughUrlLengthWithoutFieldsAndOptionFields;
88152
88095
  }
88153
88096
  // we don't have access to the host so we cannot calculate the exact length of the url
@@ -89721,13 +89664,7 @@
89721
89664
  cachePolicy.basePolicy.type === 'stale-while-revalidate') {
89722
89665
  localBuildCachedSnapshot = hoistUnfulfilledToStale;
89723
89666
  }
89724
- if (eagerEvalStaleWhileRevalidate.isOpen({ fallback: false }) &&
89725
- cachePolicy &&
89726
- cachePolicy.type === 'stale-while-revalidate' &&
89727
- cachePolicy.staleDurationSeconds >= Number.MAX_SAFE_INTEGER) {
89728
- localBuildCachedSnapshot = hoistUnfulfilledToStale;
89729
- }
89730
- if ((cachePolicy === undefined || cachePolicy === null)) {
89667
+ if (cachePolicy === undefined || cachePolicy === null) {
89731
89668
  localBuildCachedSnapshot = hoistUnfulfilledToStale;
89732
89669
  }
89733
89670
  return environment.applyCachePolicy(luvio, adapterRequestContext, buildSnapshotContext, localBuildCachedSnapshot, buildNetworkSnapshot);
@@ -92600,7 +92537,7 @@
92600
92537
  const gqlEnv = makeEnvironmentGraphqlAware(baseEnv);
92601
92538
  const durableEnv = makeDurable(gqlEnv, {
92602
92539
  durableStore: lazyDurableStore,
92603
- enableDurableMetadataRefresh: ldsMetadataRefreshEnabled.isOpen({ fallback: false }),
92540
+ enableDurableMetadataRefresh: true,
92604
92541
  // disable luvio deep freeze in headless environments
92605
92542
  disableDeepFreeze: typeof window === 'undefined',
92606
92543
  shouldFlush,
@@ -92718,7 +92655,7 @@
92718
92655
  id: '@salesforce/lds-network-adapter',
92719
92656
  instrument: instrument$2,
92720
92657
  });
92721
- // version: 1.326.0-562167ef21
92658
+ // version: 1.327.0-8614d511e1
92722
92659
 
92723
92660
  const { create: create$2, keys: keys$2 } = Object;
92724
92661
  const { stringify, parse } = JSON;
@@ -115285,7 +115222,7 @@
115285
115222
  configuration: { ...configurationForGraphQLAdapters$1 },
115286
115223
  instrument: instrument$1,
115287
115224
  });
115288
- // version: 1.326.0-c4e3f37efd
115225
+ // version: 1.327.0-a29a47f236
115289
115226
 
115290
115227
  // On core the unstable adapters are re-exported with different names,
115291
115228
  // we want to match them here.
@@ -115437,7 +115374,7 @@
115437
115374
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
115438
115375
  graphQLImperative = ldsAdapter;
115439
115376
  });
115440
- // version: 1.326.0-c4e3f37efd
115377
+ // version: 1.327.0-a29a47f236
115441
115378
 
115442
115379
  var gqlApi = /*#__PURE__*/Object.freeze({
115443
115380
  __proto__: null,
@@ -116199,7 +116136,7 @@
116199
116136
  function register(r) {
116200
116137
  callbacks$1.forEach((callback) => callback(r));
116201
116138
  }
116202
- // version: 1.326.0-562167ef21
116139
+ // version: 1.327.0-8614d511e1
116203
116140
 
116204
116141
  /**
116205
116142
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -117281,4 +117218,4 @@
117281
117218
  exports.subscribeToAdapter = subscribeToAdapter;
117282
117219
 
117283
117220
  }));
117284
- // version: 1.326.0-562167ef21
117221
+ // version: 1.327.0-8614d511e1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-worker-api",
3
- "version": "1.326.0",
3
+ "version": "1.327.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "",
6
6
  "main": "dist/standalone/es/lds-worker-api.js",
@@ -35,14 +35,14 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "@oat-sa/rollup-plugin-wildcard-external": "^1.0.0",
38
- "@salesforce/lds-adapters-graphql": "^1.326.0",
39
- "@salesforce/lds-adapters-uiapi": "^1.326.0",
40
- "@salesforce/lds-default-luvio": "^1.326.0",
41
- "@salesforce/lds-drafts": "^1.326.0",
42
- "@salesforce/lds-graphql-parser": "^1.326.0",
43
- "@salesforce/lds-luvio-engine": "^1.326.0",
44
- "@salesforce/lds-runtime-mobile": "^1.326.0",
45
- "@salesforce/nimbus-plugin-lds": "^1.326.0",
38
+ "@salesforce/lds-adapters-graphql": "^1.327.0",
39
+ "@salesforce/lds-adapters-uiapi": "^1.327.0",
40
+ "@salesforce/lds-default-luvio": "^1.327.0",
41
+ "@salesforce/lds-drafts": "^1.327.0",
42
+ "@salesforce/lds-graphql-parser": "^1.327.0",
43
+ "@salesforce/lds-luvio-engine": "^1.327.0",
44
+ "@salesforce/lds-runtime-mobile": "^1.327.0",
45
+ "@salesforce/nimbus-plugin-lds": "^1.327.0",
46
46
  "ajv": "^8.11.0",
47
47
  "glob": "^7.1.5",
48
48
  "nimbus-types": "^2.0.0-alpha1",