@salesforce/lds-worker-api 1.128.1 → 1.129.1

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.
@@ -761,4 +761,4 @@ if (process.env.NODE_ENV !== 'production') {
761
761
  }
762
762
 
763
763
  export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
764
- // version: 1.128.1-55cd38df6
764
+ // version: 1.129.1-eb59a8867
@@ -3776,7 +3776,7 @@ function withDefaultLuvio(callback) {
3776
3776
  }
3777
3777
  callbacks.push(callback);
3778
3778
  }
3779
- // version: 1.128.1-55cd38df6
3779
+ // version: 1.129.1-eb59a8867
3780
3780
 
3781
3781
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
3782
3782
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -15200,7 +15200,7 @@ function parseAndVisit(source) {
15200
15200
  updateReferenceMapWithKnownKey(ast, luvioDocumentNode);
15201
15201
  return luvioDocumentNode;
15202
15202
  }
15203
- // version: 1.128.1-55cd38df6
15203
+ // version: 1.129.1-eb59a8867
15204
15204
 
15205
15205
  function unwrap(data) {
15206
15206
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16113,7 +16113,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
16113
16113
  const { apiFamily, name } = metadata;
16114
16114
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16115
16115
  }
16116
- // version: 1.128.1-55cd38df6
16116
+ // version: 1.129.1-eb59a8867
16117
16117
 
16118
16118
  /**
16119
16119
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -44412,7 +44412,7 @@ withDefaultLuvio((luvio) => {
44412
44412
  dropFunction: instrumentation$2.notifyRecordUpdateAvailableDropped,
44413
44413
  });
44414
44414
  });
44415
- // version: 1.128.1-f5dd0de1e
44415
+ // version: 1.129.1-e413ee547
44416
44416
 
44417
44417
  var caseSensitiveUserId = '005B0000000GR4OIAW';
44418
44418
 
@@ -51298,9 +51298,18 @@ function filterToPredicates(where, recordType, alias, objectInfoMap, joins, draf
51298
51298
  const makePredicate = fieldInfo.dataType === 'MultiPicklist'
51299
51299
  ? createMultiPicklistPredicate
51300
51300
  : createSinglePredicate;
51301
- predicates.push(makePredicate(idProcessingNeeded
51302
- ? sanitizePredicateIDValue(value, draftFunctions)
51303
- : value, operator, fieldInfo, alias));
51301
+ const predicate = makePredicate(idProcessingNeeded ? sanitizePredicateIDValue(value, draftFunctions) : value, operator, fieldInfo, alias);
51302
+ // for the case where we have a not equals predicate that's value is not null
51303
+ // we need to compound into an or statement to also inlcude the null values for that field
51304
+ if (operator === '!=' && typeof value === 'string') {
51305
+ // create a is null predicate
51306
+ const isNullPredicate = createSinglePredicate(null, '=', fieldInfo, alias);
51307
+ // compound the predicates into an or predicate
51308
+ predicates.push(transformCompoundPredicate('or', [predicate, isNullPredicate]));
51309
+ }
51310
+ else {
51311
+ predicates.push(predicate);
51312
+ }
51304
51313
  }
51305
51314
  }
51306
51315
  }
@@ -56757,8 +56766,9 @@ function draftAwareGraphQLAdapterFactory(userId, objectInfoService, store, luvio
56757
56766
  if (!rebuildResult.errors) {
56758
56767
  rebuildResult = removeSyntheticFields(rebuildResult, config.query);
56759
56768
  }
56769
+ // '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.
56760
56770
  return {
56761
- ...nonEvaluatedSnapshot,
56771
+ ...originalSnapshot,
56762
56772
  data: rebuildResult,
56763
56773
  recordId,
56764
56774
  seenRecords: createSeenRecords(seenRecordIds, nonEvaluatedSnapshot),
@@ -59167,6 +59177,7 @@ function formatDisplayValue(value, datatype) {
59167
59177
  }
59168
59178
  }
59169
59179
 
59180
+ //TODO: [W-12734162] - rebuild non-evaluated snapshot when graph rebuild is triggered. The dependency work on luvio needs to be done.
59170
59181
  function makeEnvironmentGraphqlAware(environment) {
59171
59182
  const rebuildSnapshot = function (snapshot, onRebuild) {
59172
59183
  if (isStoreEvalSnapshot(snapshot)) {
@@ -59923,7 +59934,7 @@ register({
59923
59934
  id: '@salesforce/lds-network-adapter',
59924
59935
  instrument: instrument$1,
59925
59936
  });
59926
- // version: 1.128.1-55cd38df6
59937
+ // version: 1.129.1-eb59a8867
59927
59938
 
59928
59939
  const { create: create$2, keys: keys$2 } = Object;
59929
59940
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -74192,7 +74203,7 @@ register({
74192
74203
  configuration: { ...configurationForGraphQLAdapters },
74193
74204
  instrument,
74194
74205
  });
74195
- // version: 1.128.1-f5dd0de1e
74206
+ // version: 1.129.1-e413ee547
74196
74207
 
74197
74208
  // On core the unstable adapters are re-exported with different names,
74198
74209
 
@@ -76321,7 +76332,7 @@ withDefaultLuvio((luvio) => {
76321
76332
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
76322
76333
  graphQLImperative = ldsAdapter;
76323
76334
  });
76324
- // version: 1.128.1-f5dd0de1e
76335
+ // version: 1.129.1-e413ee547
76325
76336
 
76326
76337
  var gqlApi = /*#__PURE__*/Object.freeze({
76327
76338
  __proto__: null,
@@ -77013,4 +77024,4 @@ const { luvio } = getRuntime();
77013
77024
  setDefaultLuvio({ luvio });
77014
77025
 
77015
77026
  export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
77016
- // version: 1.128.1-55cd38df6
77027
+ // version: 1.129.1-eb59a8867
@@ -3782,7 +3782,7 @@
3782
3782
  }
3783
3783
  callbacks.push(callback);
3784
3784
  }
3785
- // version: 1.128.1-55cd38df6
3785
+ // version: 1.129.1-eb59a8867
3786
3786
 
3787
3787
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
3788
3788
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -15206,7 +15206,7 @@
15206
15206
  updateReferenceMapWithKnownKey(ast, luvioDocumentNode);
15207
15207
  return luvioDocumentNode;
15208
15208
  }
15209
- // version: 1.128.1-55cd38df6
15209
+ // version: 1.129.1-eb59a8867
15210
15210
 
15211
15211
  function unwrap(data) {
15212
15212
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16119,7 +16119,7 @@
16119
16119
  const { apiFamily, name } = metadata;
16120
16120
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16121
16121
  }
16122
- // version: 1.128.1-55cd38df6
16122
+ // version: 1.129.1-eb59a8867
16123
16123
 
16124
16124
  /**
16125
16125
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -44418,7 +44418,7 @@
44418
44418
  dropFunction: instrumentation$2.notifyRecordUpdateAvailableDropped,
44419
44419
  });
44420
44420
  });
44421
- // version: 1.128.1-f5dd0de1e
44421
+ // version: 1.129.1-e413ee547
44422
44422
 
44423
44423
  var caseSensitiveUserId = '005B0000000GR4OIAW';
44424
44424
 
@@ -51304,9 +51304,18 @@
51304
51304
  const makePredicate = fieldInfo.dataType === 'MultiPicklist'
51305
51305
  ? createMultiPicklistPredicate
51306
51306
  : createSinglePredicate;
51307
- predicates.push(makePredicate(idProcessingNeeded
51308
- ? sanitizePredicateIDValue(value, draftFunctions)
51309
- : value, operator, fieldInfo, alias));
51307
+ const predicate = makePredicate(idProcessingNeeded ? sanitizePredicateIDValue(value, draftFunctions) : value, operator, fieldInfo, alias);
51308
+ // for the case where we have a not equals predicate that's value is not null
51309
+ // we need to compound into an or statement to also inlcude the null values for that field
51310
+ if (operator === '!=' && typeof value === 'string') {
51311
+ // create a is null predicate
51312
+ const isNullPredicate = createSinglePredicate(null, '=', fieldInfo, alias);
51313
+ // compound the predicates into an or predicate
51314
+ predicates.push(transformCompoundPredicate('or', [predicate, isNullPredicate]));
51315
+ }
51316
+ else {
51317
+ predicates.push(predicate);
51318
+ }
51310
51319
  }
51311
51320
  }
51312
51321
  }
@@ -56763,8 +56772,9 @@
56763
56772
  if (!rebuildResult.errors) {
56764
56773
  rebuildResult = removeSyntheticFields(rebuildResult, config.query);
56765
56774
  }
56775
+ // '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.
56766
56776
  return {
56767
- ...nonEvaluatedSnapshot,
56777
+ ...originalSnapshot,
56768
56778
  data: rebuildResult,
56769
56779
  recordId,
56770
56780
  seenRecords: createSeenRecords(seenRecordIds, nonEvaluatedSnapshot),
@@ -59173,6 +59183,7 @@
59173
59183
  }
59174
59184
  }
59175
59185
 
59186
+ //TODO: [W-12734162] - rebuild non-evaluated snapshot when graph rebuild is triggered. The dependency work on luvio needs to be done.
59176
59187
  function makeEnvironmentGraphqlAware(environment) {
59177
59188
  const rebuildSnapshot = function (snapshot, onRebuild) {
59178
59189
  if (isStoreEvalSnapshot(snapshot)) {
@@ -59929,7 +59940,7 @@
59929
59940
  id: '@salesforce/lds-network-adapter',
59930
59941
  instrument: instrument$1,
59931
59942
  });
59932
- // version: 1.128.1-55cd38df6
59943
+ // version: 1.129.1-eb59a8867
59933
59944
 
59934
59945
  const { create: create$2, keys: keys$2 } = Object;
59935
59946
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -74198,7 +74209,7 @@
74198
74209
  configuration: { ...configurationForGraphQLAdapters },
74199
74210
  instrument,
74200
74211
  });
74201
- // version: 1.128.1-f5dd0de1e
74212
+ // version: 1.129.1-e413ee547
74202
74213
 
74203
74214
  // On core the unstable adapters are re-exported with different names,
74204
74215
 
@@ -76327,7 +76338,7 @@
76327
76338
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
76328
76339
  graphQLImperative = ldsAdapter;
76329
76340
  });
76330
- // version: 1.128.1-f5dd0de1e
76341
+ // version: 1.129.1-e413ee547
76331
76342
 
76332
76343
  var gqlApi = /*#__PURE__*/Object.freeze({
76333
76344
  __proto__: null,
@@ -77036,4 +77047,4 @@
77036
77047
  Object.defineProperty(exports, '__esModule', { value: true });
77037
77048
 
77038
77049
  }));
77039
- // version: 1.128.1-55cd38df6
77050
+ // version: 1.129.1-eb59a8867
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-worker-api",
3
- "version": "1.128.1",
3
+ "version": "1.129.1",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "",
6
6
  "main": "dist/standalone/es/lds-worker-api.js",