@salesforce/lds-worker-api 1.139.1 → 1.140.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.
@@ -758,4 +758,4 @@ if (process.env.NODE_ENV !== 'production') {
758
758
  }
759
759
 
760
760
  export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
761
- // version: 1.139.1-1cdb5ebf1
761
+ // version: 1.140.0-a9e378a04
@@ -3797,7 +3797,7 @@ function withDefaultLuvio(callback) {
3797
3797
  }
3798
3798
  callbacks.push(callback);
3799
3799
  }
3800
- // version: 1.139.1-1cdb5ebf1
3800
+ // version: 1.140.0-a9e378a04
3801
3801
 
3802
3802
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
3803
3803
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -15221,7 +15221,7 @@ function parseAndVisit(source) {
15221
15221
  updateReferenceMapWithKnownKey(ast, luvioDocumentNode);
15222
15222
  return luvioDocumentNode;
15223
15223
  }
15224
- // version: 1.139.1-1cdb5ebf1
15224
+ // version: 1.140.0-a9e378a04
15225
15225
 
15226
15226
  function unwrap(data) {
15227
15227
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16134,7 +16134,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
16134
16134
  const { apiFamily, name } = metadata;
16135
16135
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16136
16136
  }
16137
- // version: 1.139.1-1cdb5ebf1
16137
+ // version: 1.140.0-a9e378a04
16138
16138
 
16139
16139
  /**
16140
16140
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -43910,7 +43910,7 @@ withDefaultLuvio((luvio) => {
43910
43910
  dropFunction: instrumentation$2.notifyRecordUpdateAvailableDropped,
43911
43911
  });
43912
43912
  });
43913
- // version: 1.139.1-a85a736cf
43913
+ // version: 1.140.0-255a5f374
43914
43914
 
43915
43915
  var caseSensitiveUserId = '005B0000000GR4OIAW';
43916
43916
 
@@ -46990,7 +46990,11 @@ function operatorWithValue(operator, valueNode, objectInfoDataType) {
46990
46990
  }
46991
46991
  if (objectInfoDataType === 'Double') {
46992
46992
  if (isScalarOperatorType(operator)) {
46993
- return is(valueNode, 'FloatValue')
46993
+ // allow a float/double value to be passed
46994
+ // also allow an integer to be passed to a double, but not a double to an integer
46995
+ const isFloatOrInt = is(valueNode, 'FloatValue') ||
46996
+ is(valueNode, 'IntValue');
46997
+ return isFloatOrInt
46994
46998
  ? success({
46995
46999
  type: 'DoubleOperator',
46996
47000
  operator,
@@ -59687,7 +59691,7 @@ register({
59687
59691
  id: '@salesforce/lds-network-adapter',
59688
59692
  instrument: instrument$1,
59689
59693
  });
59690
- // version: 1.139.1-1cdb5ebf1
59694
+ // version: 1.140.0-a9e378a04
59691
59695
 
59692
59696
  const { create: create$2, keys: keys$2 } = Object;
59693
59697
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -80518,7 +80522,7 @@ register({
80518
80522
  configuration: { ...configurationForGraphQLAdapters },
80519
80523
  instrument,
80520
80524
  });
80521
- // version: 1.139.1-a85a736cf
80525
+ // version: 1.140.0-255a5f374
80522
80526
 
80523
80527
  // On core the unstable adapters are re-exported with different names,
80524
80528
 
@@ -82750,7 +82754,7 @@ withDefaultLuvio((luvio) => {
82750
82754
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
82751
82755
  graphQLImperative = ldsAdapter;
82752
82756
  });
82753
- // version: 1.139.1-a85a736cf
82757
+ // version: 1.140.0-255a5f374
82754
82758
 
82755
82759
  var gqlApi = /*#__PURE__*/Object.freeze({
82756
82760
  __proto__: null,
@@ -83439,4 +83443,4 @@ const { luvio } = getRuntime();
83439
83443
  setDefaultLuvio({ luvio });
83440
83444
 
83441
83445
  export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
83442
- // version: 1.139.1-1cdb5ebf1
83446
+ // version: 1.140.0-a9e378a04
@@ -3803,7 +3803,7 @@
3803
3803
  }
3804
3804
  callbacks.push(callback);
3805
3805
  }
3806
- // version: 1.139.1-1cdb5ebf1
3806
+ // version: 1.140.0-a9e378a04
3807
3807
 
3808
3808
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
3809
3809
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -15227,7 +15227,7 @@
15227
15227
  updateReferenceMapWithKnownKey(ast, luvioDocumentNode);
15228
15228
  return luvioDocumentNode;
15229
15229
  }
15230
- // version: 1.139.1-1cdb5ebf1
15230
+ // version: 1.140.0-a9e378a04
15231
15231
 
15232
15232
  function unwrap(data) {
15233
15233
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16140,7 +16140,7 @@
16140
16140
  const { apiFamily, name } = metadata;
16141
16141
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16142
16142
  }
16143
- // version: 1.139.1-1cdb5ebf1
16143
+ // version: 1.140.0-a9e378a04
16144
16144
 
16145
16145
  /**
16146
16146
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -43916,7 +43916,7 @@
43916
43916
  dropFunction: instrumentation$2.notifyRecordUpdateAvailableDropped,
43917
43917
  });
43918
43918
  });
43919
- // version: 1.139.1-a85a736cf
43919
+ // version: 1.140.0-255a5f374
43920
43920
 
43921
43921
  var caseSensitiveUserId = '005B0000000GR4OIAW';
43922
43922
 
@@ -46996,7 +46996,11 @@
46996
46996
  }
46997
46997
  if (objectInfoDataType === 'Double') {
46998
46998
  if (isScalarOperatorType(operator)) {
46999
- return is(valueNode, 'FloatValue')
46999
+ // allow a float/double value to be passed
47000
+ // also allow an integer to be passed to a double, but not a double to an integer
47001
+ const isFloatOrInt = is(valueNode, 'FloatValue') ||
47002
+ is(valueNode, 'IntValue');
47003
+ return isFloatOrInt
47000
47004
  ? success({
47001
47005
  type: 'DoubleOperator',
47002
47006
  operator,
@@ -59693,7 +59697,7 @@
59693
59697
  id: '@salesforce/lds-network-adapter',
59694
59698
  instrument: instrument$1,
59695
59699
  });
59696
- // version: 1.139.1-1cdb5ebf1
59700
+ // version: 1.140.0-a9e378a04
59697
59701
 
59698
59702
  const { create: create$2, keys: keys$2 } = Object;
59699
59703
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -80524,7 +80528,7 @@
80524
80528
  configuration: { ...configurationForGraphQLAdapters },
80525
80529
  instrument,
80526
80530
  });
80527
- // version: 1.139.1-a85a736cf
80531
+ // version: 1.140.0-255a5f374
80528
80532
 
80529
80533
  // On core the unstable adapters are re-exported with different names,
80530
80534
 
@@ -82756,7 +82760,7 @@
82756
82760
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
82757
82761
  graphQLImperative = ldsAdapter;
82758
82762
  });
82759
- // version: 1.139.1-a85a736cf
82763
+ // version: 1.140.0-255a5f374
82760
82764
 
82761
82765
  var gqlApi = /*#__PURE__*/Object.freeze({
82762
82766
  __proto__: null,
@@ -83462,4 +83466,4 @@
83462
83466
  Object.defineProperty(exports, '__esModule', { value: true });
83463
83467
 
83464
83468
  }));
83465
- // version: 1.139.1-1cdb5ebf1
83469
+ // version: 1.140.0-a9e378a04
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-worker-api",
3
- "version": "1.139.1",
3
+ "version": "1.140.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "",
6
6
  "main": "dist/standalone/es/lds-worker-api.js",