@salesforce/lds-worker-api 1.162.1 → 1.163.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.
@@ -770,4 +770,4 @@ if (process.env.NODE_ENV !== 'production') {
770
770
  }
771
771
 
772
772
  export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
773
- // version: 1.162.1-f025549da
773
+ // version: 1.163.0-02054d65d
@@ -3799,7 +3799,7 @@ function withDefaultLuvio(callback) {
3799
3799
  }
3800
3800
  callbacks.push(callback);
3801
3801
  }
3802
- // version: 1.162.1-f025549da
3802
+ // version: 1.163.0-02054d65d
3803
3803
 
3804
3804
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
3805
3805
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -15232,7 +15232,7 @@ function parseAndVisit(source) {
15232
15232
  updateReferenceMapWithKnownKey(ast, luvioDocumentNode);
15233
15233
  return luvioDocumentNode;
15234
15234
  }
15235
- // version: 1.162.1-f025549da
15235
+ // version: 1.163.0-02054d65d
15236
15236
 
15237
15237
  function unwrap(data) {
15238
15238
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16145,7 +16145,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
16145
16145
  const { apiFamily, name } = metadata;
16146
16146
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16147
16147
  }
16148
- // version: 1.162.1-f025549da
16148
+ // version: 1.163.0-02054d65d
16149
16149
 
16150
16150
  /**
16151
16151
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -44016,7 +44016,7 @@ withDefaultLuvio((luvio) => {
44016
44016
  dropFunction: instrumentation$2.notifyRecordUpdateAvailableDropped,
44017
44017
  });
44018
44018
  });
44019
- // version: 1.162.1-82da25cd1
44019
+ // version: 1.163.0-4a2a4d724
44020
44020
 
44021
44021
  var caseSensitiveUserId = '005B0000000GR4OIAW';
44022
44022
 
@@ -59178,10 +59178,11 @@ function makeEnvironmentGraphqlAware(environment) {
59178
59178
  if (eagerEvalStaleWhileRevalidate.isOpen({ fallback: false }) &&
59179
59179
  cachePolicy &&
59180
59180
  cachePolicy.type === 'stale-while-revalidate' &&
59181
- cachePolicy.staleDurationSeconds === Number.MAX_SAFE_INTEGER) {
59181
+ cachePolicy.staleDurationSeconds >= Number.MAX_SAFE_INTEGER) {
59182
59182
  localBuildCachedSnapshot = hoistUnfulfilledToStale;
59183
59183
  }
59184
- if (eagerEvalDefaultCachePolicy.isOpen({ fallback: false }) && cachePolicy === undefined) {
59184
+ if (eagerEvalDefaultCachePolicy.isOpen({ fallback: false }) &&
59185
+ (cachePolicy === undefined || cachePolicy === null)) {
59185
59186
  localBuildCachedSnapshot = hoistUnfulfilledToStale;
59186
59187
  }
59187
59188
  return environment.applyCachePolicy(luvio, adapterRequestContext, buildSnapshotContext, localBuildCachedSnapshot, buildNetworkSnapshot);
@@ -60072,7 +60073,7 @@ register({
60072
60073
  id: '@salesforce/lds-network-adapter',
60073
60074
  instrument: instrument$1,
60074
60075
  });
60075
- // version: 1.162.1-f025549da
60076
+ // version: 1.163.0-02054d65d
60076
60077
 
60077
60078
  const { create: create$2, keys: keys$2 } = Object;
60078
60079
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -77554,7 +77555,7 @@ register({
77554
77555
  configuration: { ...configurationForGraphQLAdapters },
77555
77556
  instrument,
77556
77557
  });
77557
- // version: 1.162.1-82da25cd1
77558
+ // version: 1.163.0-4a2a4d724
77558
77559
 
77559
77560
  // On core the unstable adapters are re-exported with different names,
77560
77561
 
@@ -79801,7 +79802,7 @@ withDefaultLuvio((luvio) => {
79801
79802
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
79802
79803
  graphQLImperative = ldsAdapter;
79803
79804
  });
79804
- // version: 1.162.1-82da25cd1
79805
+ // version: 1.163.0-4a2a4d724
79805
79806
 
79806
79807
  var gqlApi = /*#__PURE__*/Object.freeze({
79807
79808
  __proto__: null,
@@ -80490,4 +80491,4 @@ const { luvio } = getRuntime();
80490
80491
  setDefaultLuvio({ luvio });
80491
80492
 
80492
80493
  export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
80493
- // version: 1.162.1-f025549da
80494
+ // version: 1.163.0-02054d65d
@@ -3805,7 +3805,7 @@
3805
3805
  }
3806
3806
  callbacks.push(callback);
3807
3807
  }
3808
- // version: 1.162.1-f025549da
3808
+ // version: 1.163.0-02054d65d
3809
3809
 
3810
3810
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
3811
3811
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -15238,7 +15238,7 @@
15238
15238
  updateReferenceMapWithKnownKey(ast, luvioDocumentNode);
15239
15239
  return luvioDocumentNode;
15240
15240
  }
15241
- // version: 1.162.1-f025549da
15241
+ // version: 1.163.0-02054d65d
15242
15242
 
15243
15243
  function unwrap(data) {
15244
15244
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16151,7 +16151,7 @@
16151
16151
  const { apiFamily, name } = metadata;
16152
16152
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16153
16153
  }
16154
- // version: 1.162.1-f025549da
16154
+ // version: 1.163.0-02054d65d
16155
16155
 
16156
16156
  /**
16157
16157
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -44022,7 +44022,7 @@
44022
44022
  dropFunction: instrumentation$2.notifyRecordUpdateAvailableDropped,
44023
44023
  });
44024
44024
  });
44025
- // version: 1.162.1-82da25cd1
44025
+ // version: 1.163.0-4a2a4d724
44026
44026
 
44027
44027
  var caseSensitiveUserId = '005B0000000GR4OIAW';
44028
44028
 
@@ -59184,10 +59184,11 @@
59184
59184
  if (eagerEvalStaleWhileRevalidate.isOpen({ fallback: false }) &&
59185
59185
  cachePolicy &&
59186
59186
  cachePolicy.type === 'stale-while-revalidate' &&
59187
- cachePolicy.staleDurationSeconds === Number.MAX_SAFE_INTEGER) {
59187
+ cachePolicy.staleDurationSeconds >= Number.MAX_SAFE_INTEGER) {
59188
59188
  localBuildCachedSnapshot = hoistUnfulfilledToStale;
59189
59189
  }
59190
- if (eagerEvalDefaultCachePolicy.isOpen({ fallback: false }) && cachePolicy === undefined) {
59190
+ if (eagerEvalDefaultCachePolicy.isOpen({ fallback: false }) &&
59191
+ (cachePolicy === undefined || cachePolicy === null)) {
59191
59192
  localBuildCachedSnapshot = hoistUnfulfilledToStale;
59192
59193
  }
59193
59194
  return environment.applyCachePolicy(luvio, adapterRequestContext, buildSnapshotContext, localBuildCachedSnapshot, buildNetworkSnapshot);
@@ -60078,7 +60079,7 @@
60078
60079
  id: '@salesforce/lds-network-adapter',
60079
60080
  instrument: instrument$1,
60080
60081
  });
60081
- // version: 1.162.1-f025549da
60082
+ // version: 1.163.0-02054d65d
60082
60083
 
60083
60084
  const { create: create$2, keys: keys$2 } = Object;
60084
60085
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -77560,7 +77561,7 @@
77560
77561
  configuration: { ...configurationForGraphQLAdapters },
77561
77562
  instrument,
77562
77563
  });
77563
- // version: 1.162.1-82da25cd1
77564
+ // version: 1.163.0-4a2a4d724
77564
77565
 
77565
77566
  // On core the unstable adapters are re-exported with different names,
77566
77567
 
@@ -79807,7 +79808,7 @@
79807
79808
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
79808
79809
  graphQLImperative = ldsAdapter;
79809
79810
  });
79810
- // version: 1.162.1-82da25cd1
79811
+ // version: 1.163.0-4a2a4d724
79811
79812
 
79812
79813
  var gqlApi = /*#__PURE__*/Object.freeze({
79813
79814
  __proto__: null,
@@ -80513,4 +80514,4 @@
80513
80514
  Object.defineProperty(exports, '__esModule', { value: true });
80514
80515
 
80515
80516
  }));
80516
- // version: 1.162.1-f025549da
80517
+ // version: 1.163.0-02054d65d
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-worker-api",
3
- "version": "1.162.1",
3
+ "version": "1.163.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "",
6
6
  "main": "dist/standalone/es/lds-worker-api.js",