@salesforce/lds-worker-api 1.295.0 → 1.296.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.
@@ -1070,4 +1070,4 @@ if (process.env.NODE_ENV !== 'production') {
1070
1070
  }
1071
1071
 
1072
1072
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
1073
- // version: 1.295.0-1bf771a0b
1073
+ // version: 1.296.1-1aa7fc7e3
@@ -4204,7 +4204,7 @@ function withDefaultLuvio(callback) {
4204
4204
  }
4205
4205
  callbacks.push(callback);
4206
4206
  }
4207
- // version: 1.295.0-1bf771a0b
4207
+ // version: 1.296.1-1aa7fc7e3
4208
4208
 
4209
4209
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4210
4210
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -15712,7 +15712,7 @@ function gql(literals, ...subs) {
15712
15712
  }
15713
15713
  return superResult;
15714
15714
  }
15715
- // version: 1.295.0-1bf771a0b
15715
+ // version: 1.296.1-1aa7fc7e3
15716
15716
 
15717
15717
  function unwrap(data) {
15718
15718
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16641,7 +16641,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
16641
16641
  const { apiFamily, name } = metadata;
16642
16642
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16643
16643
  }
16644
- // version: 1.295.0-1bf771a0b
16644
+ // version: 1.296.1-1aa7fc7e3
16645
16645
 
16646
16646
  /**
16647
16647
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -44238,7 +44238,7 @@ withDefaultLuvio((luvio) => {
44238
44238
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
44239
44239
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
44240
44240
  });
44241
- // version: 1.295.0-e85f207c7
44241
+ // version: 1.296.1-cf86708a0
44242
44242
 
44243
44243
  var ldsIdempotencyWriteDisabled = {
44244
44244
  isOpen: function (e) {
@@ -54985,7 +54985,17 @@ function singleNotPredicateToIncludeNulls(predicate, defaultAlias) {
54985
54985
  return predicateToSQL(predicate, defaultAlias);
54986
54986
  }
54987
54987
  const { sql, binding } = predicateToSQL(predicate, defaultAlias);
54988
- const notNull = { ...predicate, operator: 'IS NOT', value: null };
54988
+ // if date time predicate do not copy the date value bindings to the not null predicate
54989
+ const copyBindings = predicate.dataType !== undefined &&
54990
+ (predicate.dataType === 'DateTime' || predicate.dataType === 'Date')
54991
+ ? []
54992
+ : predicate.bindings;
54993
+ const notNull = {
54994
+ ...predicate,
54995
+ bindings: copyBindings,
54996
+ operator: 'IS NOT',
54997
+ value: null,
54998
+ };
54989
54999
  const notNullSql = predicateToSQL(notNull, defaultAlias);
54990
55000
  return {
54991
55001
  sql: `${sql} AND ${notNullSql.sql}`,
@@ -62629,7 +62639,7 @@ register$1({
62629
62639
  id: '@salesforce/lds-network-adapter',
62630
62640
  instrument: instrument$2,
62631
62641
  });
62632
- // version: 1.295.0-1bf771a0b
62642
+ // version: 1.296.1-1aa7fc7e3
62633
62643
 
62634
62644
  const { create: create$3, keys: keys$3 } = Object;
62635
62645
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -82698,7 +82708,7 @@ register$1({
82698
82708
  configuration: { ...configurationForGraphQLAdapters$1 },
82699
82709
  instrument: instrument$1,
82700
82710
  });
82701
- // version: 1.295.0-e85f207c7
82711
+ // version: 1.296.1-cf86708a0
82702
82712
 
82703
82713
  // On core the unstable adapters are re-exported with different names,
82704
82714
  // we want to match them here.
@@ -84954,7 +84964,7 @@ withDefaultLuvio((luvio) => {
84954
84964
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
84955
84965
  graphQLImperative = ldsAdapter;
84956
84966
  });
84957
- // version: 1.295.0-e85f207c7
84967
+ // version: 1.296.1-cf86708a0
84958
84968
 
84959
84969
  var gqlApi = /*#__PURE__*/Object.freeze({
84960
84970
  __proto__: null,
@@ -85689,7 +85699,7 @@ const callbacks$1 = [];
85689
85699
  function register(r) {
85690
85700
  callbacks$1.forEach((callback) => callback(r));
85691
85701
  }
85692
- // version: 1.295.0-1bf771a0b
85702
+ // version: 1.296.1-1aa7fc7e3
85693
85703
 
85694
85704
  /**
85695
85705
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -90651,4 +90661,4 @@ const { luvio } = getRuntime();
90651
90661
  setDefaultLuvio({ luvio });
90652
90662
 
90653
90663
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
90654
- // version: 1.295.0-1bf771a0b
90664
+ // version: 1.296.1-1aa7fc7e3
@@ -4210,7 +4210,7 @@
4210
4210
  }
4211
4211
  callbacks.push(callback);
4212
4212
  }
4213
- // version: 1.295.0-1bf771a0b
4213
+ // version: 1.296.1-1aa7fc7e3
4214
4214
 
4215
4215
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4216
4216
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -15718,7 +15718,7 @@
15718
15718
  }
15719
15719
  return superResult;
15720
15720
  }
15721
- // version: 1.295.0-1bf771a0b
15721
+ // version: 1.296.1-1aa7fc7e3
15722
15722
 
15723
15723
  function unwrap(data) {
15724
15724
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16647,7 +16647,7 @@
16647
16647
  const { apiFamily, name } = metadata;
16648
16648
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16649
16649
  }
16650
- // version: 1.295.0-1bf771a0b
16650
+ // version: 1.296.1-1aa7fc7e3
16651
16651
 
16652
16652
  /**
16653
16653
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -44244,7 +44244,7 @@
44244
44244
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
44245
44245
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
44246
44246
  });
44247
- // version: 1.295.0-e85f207c7
44247
+ // version: 1.296.1-cf86708a0
44248
44248
 
44249
44249
  var ldsIdempotencyWriteDisabled = {
44250
44250
  isOpen: function (e) {
@@ -54991,7 +54991,17 @@
54991
54991
  return predicateToSQL(predicate, defaultAlias);
54992
54992
  }
54993
54993
  const { sql, binding } = predicateToSQL(predicate, defaultAlias);
54994
- const notNull = { ...predicate, operator: 'IS NOT', value: null };
54994
+ // if date time predicate do not copy the date value bindings to the not null predicate
54995
+ const copyBindings = predicate.dataType !== undefined &&
54996
+ (predicate.dataType === 'DateTime' || predicate.dataType === 'Date')
54997
+ ? []
54998
+ : predicate.bindings;
54999
+ const notNull = {
55000
+ ...predicate,
55001
+ bindings: copyBindings,
55002
+ operator: 'IS NOT',
55003
+ value: null,
55004
+ };
54995
55005
  const notNullSql = predicateToSQL(notNull, defaultAlias);
54996
55006
  return {
54997
55007
  sql: `${sql} AND ${notNullSql.sql}`,
@@ -62635,7 +62645,7 @@
62635
62645
  id: '@salesforce/lds-network-adapter',
62636
62646
  instrument: instrument$2,
62637
62647
  });
62638
- // version: 1.295.0-1bf771a0b
62648
+ // version: 1.296.1-1aa7fc7e3
62639
62649
 
62640
62650
  const { create: create$3, keys: keys$3 } = Object;
62641
62651
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -82704,7 +82714,7 @@
82704
82714
  configuration: { ...configurationForGraphQLAdapters$1 },
82705
82715
  instrument: instrument$1,
82706
82716
  });
82707
- // version: 1.295.0-e85f207c7
82717
+ // version: 1.296.1-cf86708a0
82708
82718
 
82709
82719
  // On core the unstable adapters are re-exported with different names,
82710
82720
  // we want to match them here.
@@ -84960,7 +84970,7 @@
84960
84970
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
84961
84971
  graphQLImperative = ldsAdapter;
84962
84972
  });
84963
- // version: 1.295.0-e85f207c7
84973
+ // version: 1.296.1-cf86708a0
84964
84974
 
84965
84975
  var gqlApi = /*#__PURE__*/Object.freeze({
84966
84976
  __proto__: null,
@@ -85695,7 +85705,7 @@
85695
85705
  function register(r) {
85696
85706
  callbacks$1.forEach((callback) => callback(r));
85697
85707
  }
85698
- // version: 1.295.0-1bf771a0b
85708
+ // version: 1.296.1-1aa7fc7e3
85699
85709
 
85700
85710
  /**
85701
85711
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -90676,4 +90686,4 @@
90676
90686
  exports.subscribeToAdapter = subscribeToAdapter;
90677
90687
 
90678
90688
  }));
90679
- // version: 1.295.0-1bf771a0b
90689
+ // version: 1.296.1-1aa7fc7e3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-worker-api",
3
- "version": "1.295.0",
3
+ "version": "1.296.1",
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": "^1.295.0",
39
- "@salesforce/lds-adapters-uiapi": "^1.295.0",
40
- "@salesforce/lds-default-luvio": "^1.295.0",
41
- "@salesforce/lds-drafts": "^1.295.0",
42
- "@salesforce/lds-graphql-parser": "^1.295.0",
43
- "@salesforce/lds-luvio-engine": "^1.295.0",
44
- "@salesforce/lds-priming": "^1.295.0",
45
- "@salesforce/lds-runtime-mobile": "^1.295.0",
46
- "@salesforce/nimbus-plugin-lds": "^1.295.0",
38
+ "@salesforce/lds-adapters-graphql": "^1.296.1",
39
+ "@salesforce/lds-adapters-uiapi": "^1.296.1",
40
+ "@salesforce/lds-default-luvio": "^1.296.1",
41
+ "@salesforce/lds-drafts": "^1.296.1",
42
+ "@salesforce/lds-graphql-parser": "^1.296.1",
43
+ "@salesforce/lds-luvio-engine": "^1.296.1",
44
+ "@salesforce/lds-priming": "^1.296.1",
45
+ "@salesforce/lds-runtime-mobile": "^1.296.1",
46
+ "@salesforce/nimbus-plugin-lds": "^1.296.1",
47
47
  "ajv": "^8.11.0",
48
48
  "glob": "^7.1.5",
49
49
  "nimbus-types": "^2.0.0-alpha1",