@salesforce/lds-worker-api 1.134.1 → 1.134.2

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.134.1-a9e5e5ebc
764
+ // version: 1.134.2-b6a56164c
@@ -3791,7 +3791,7 @@ function withDefaultLuvio(callback) {
3791
3791
  }
3792
3792
  callbacks.push(callback);
3793
3793
  }
3794
- // version: 1.134.1-a9e5e5ebc
3794
+ // version: 1.134.2-b6a56164c
3795
3795
 
3796
3796
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
3797
3797
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -15215,7 +15215,7 @@ function parseAndVisit(source) {
15215
15215
  updateReferenceMapWithKnownKey(ast, luvioDocumentNode);
15216
15216
  return luvioDocumentNode;
15217
15217
  }
15218
- // version: 1.134.1-a9e5e5ebc
15218
+ // version: 1.134.2-b6a56164c
15219
15219
 
15220
15220
  function unwrap(data) {
15221
15221
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16128,7 +16128,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
16128
16128
  const { apiFamily, name } = metadata;
16129
16129
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16130
16130
  }
16131
- // version: 1.134.1-a9e5e5ebc
16131
+ // version: 1.134.2-b6a56164c
16132
16132
 
16133
16133
  /**
16134
16134
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -44428,7 +44428,7 @@ withDefaultLuvio((luvio) => {
44428
44428
  dropFunction: instrumentation$2.notifyRecordUpdateAvailableDropped,
44429
44429
  });
44430
44430
  });
44431
- // version: 1.134.1-2de0a1242
44431
+ // version: 1.134.2-29b530b89
44432
44432
 
44433
44433
  var caseSensitiveUserId = '005B0000000GR4OIAW';
44434
44434
 
@@ -51668,15 +51668,10 @@ function singlePredicateToSql(predicate, defaultAlias, isChildNotPredicate = fal
51668
51668
  // If an explicit collating sequence is required on an IN operator it should be applied to the left operand,
51669
51669
  // like this: "x COLLATE NOCASE IN (y,z, ...)".
51670
51670
  const nullCheck = `json_extract("${alias}".data, '${leftPath}') ${operator === 'IN' ? 'IS' : 'IS NOT'} ?`;
51671
- //if we only have a null in/nin then dont add the IN (y, z, ...)
51672
- if (valueBinding.length > 0) {
51673
- sql = `json_extract("${alias}".data, '${leftPath}')${isCaseSensitive === true ? '' : ` COLLATE NOCASE`} ${operator} ${questionSql} ${includesNull ? `OR ${nullCheck}` : ''}`;
51674
- }
51675
- else {
51676
- sql = `${includesNull ? nullCheck : ''}`;
51677
- }
51671
+ sql = `json_extract("${alias}".data, '${leftPath}')${isCaseSensitive === true ? '' : ` COLLATE NOCASE`} ${operator} ${questionSql}`;
51678
51672
  binding.push(...valueBinding);
51679
51673
  if (includesNull) {
51674
+ sql = `(${sql} OR ${nullCheck})`;
51680
51675
  binding.push(null);
51681
51676
  }
51682
51677
  }
@@ -60064,7 +60059,7 @@ register({
60064
60059
  id: '@salesforce/lds-network-adapter',
60065
60060
  instrument: instrument$1,
60066
60061
  });
60067
- // version: 1.134.1-a9e5e5ebc
60062
+ // version: 1.134.2-b6a56164c
60068
60063
 
60069
60064
  const { create: create$2, keys: keys$2 } = Object;
60070
60065
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -74372,7 +74367,7 @@ register({
74372
74367
  configuration: { ...configurationForGraphQLAdapters },
74373
74368
  instrument,
74374
74369
  });
74375
- // version: 1.134.1-2de0a1242
74370
+ // version: 1.134.2-29b530b89
74376
74371
 
74377
74372
  // On core the unstable adapters are re-exported with different names,
74378
74373
 
@@ -76501,7 +76496,7 @@ withDefaultLuvio((luvio) => {
76501
76496
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
76502
76497
  graphQLImperative = ldsAdapter;
76503
76498
  });
76504
- // version: 1.134.1-2de0a1242
76499
+ // version: 1.134.2-29b530b89
76505
76500
 
76506
76501
  var gqlApi = /*#__PURE__*/Object.freeze({
76507
76502
  __proto__: null,
@@ -77193,4 +77188,4 @@ const { luvio } = getRuntime();
77193
77188
  setDefaultLuvio({ luvio });
77194
77189
 
77195
77190
  export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
77196
- // version: 1.134.1-a9e5e5ebc
77191
+ // version: 1.134.2-b6a56164c
@@ -3797,7 +3797,7 @@
3797
3797
  }
3798
3798
  callbacks.push(callback);
3799
3799
  }
3800
- // version: 1.134.1-a9e5e5ebc
3800
+ // version: 1.134.2-b6a56164c
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 @@
15221
15221
  updateReferenceMapWithKnownKey(ast, luvioDocumentNode);
15222
15222
  return luvioDocumentNode;
15223
15223
  }
15224
- // version: 1.134.1-a9e5e5ebc
15224
+ // version: 1.134.2-b6a56164c
15225
15225
 
15226
15226
  function unwrap(data) {
15227
15227
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16134,7 +16134,7 @@
16134
16134
  const { apiFamily, name } = metadata;
16135
16135
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16136
16136
  }
16137
- // version: 1.134.1-a9e5e5ebc
16137
+ // version: 1.134.2-b6a56164c
16138
16138
 
16139
16139
  /**
16140
16140
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -44434,7 +44434,7 @@
44434
44434
  dropFunction: instrumentation$2.notifyRecordUpdateAvailableDropped,
44435
44435
  });
44436
44436
  });
44437
- // version: 1.134.1-2de0a1242
44437
+ // version: 1.134.2-29b530b89
44438
44438
 
44439
44439
  var caseSensitiveUserId = '005B0000000GR4OIAW';
44440
44440
 
@@ -51674,15 +51674,10 @@
51674
51674
  // If an explicit collating sequence is required on an IN operator it should be applied to the left operand,
51675
51675
  // like this: "x COLLATE NOCASE IN (y,z, ...)".
51676
51676
  const nullCheck = `json_extract("${alias}".data, '${leftPath}') ${operator === 'IN' ? 'IS' : 'IS NOT'} ?`;
51677
- //if we only have a null in/nin then dont add the IN (y, z, ...)
51678
- if (valueBinding.length > 0) {
51679
- sql = `json_extract("${alias}".data, '${leftPath}')${isCaseSensitive === true ? '' : ` COLLATE NOCASE`} ${operator} ${questionSql} ${includesNull ? `OR ${nullCheck}` : ''}`;
51680
- }
51681
- else {
51682
- sql = `${includesNull ? nullCheck : ''}`;
51683
- }
51677
+ sql = `json_extract("${alias}".data, '${leftPath}')${isCaseSensitive === true ? '' : ` COLLATE NOCASE`} ${operator} ${questionSql}`;
51684
51678
  binding.push(...valueBinding);
51685
51679
  if (includesNull) {
51680
+ sql = `(${sql} OR ${nullCheck})`;
51686
51681
  binding.push(null);
51687
51682
  }
51688
51683
  }
@@ -60070,7 +60065,7 @@
60070
60065
  id: '@salesforce/lds-network-adapter',
60071
60066
  instrument: instrument$1,
60072
60067
  });
60073
- // version: 1.134.1-a9e5e5ebc
60068
+ // version: 1.134.2-b6a56164c
60074
60069
 
60075
60070
  const { create: create$2, keys: keys$2 } = Object;
60076
60071
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -74378,7 +74373,7 @@
74378
74373
  configuration: { ...configurationForGraphQLAdapters },
74379
74374
  instrument,
74380
74375
  });
74381
- // version: 1.134.1-2de0a1242
74376
+ // version: 1.134.2-29b530b89
74382
74377
 
74383
74378
  // On core the unstable adapters are re-exported with different names,
74384
74379
 
@@ -76507,7 +76502,7 @@
76507
76502
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
76508
76503
  graphQLImperative = ldsAdapter;
76509
76504
  });
76510
- // version: 1.134.1-2de0a1242
76505
+ // version: 1.134.2-29b530b89
76511
76506
 
76512
76507
  var gqlApi = /*#__PURE__*/Object.freeze({
76513
76508
  __proto__: null,
@@ -77216,4 +77211,4 @@
77216
77211
  Object.defineProperty(exports, '__esModule', { value: true });
77217
77212
 
77218
77213
  }));
77219
- // version: 1.134.1-a9e5e5ebc
77214
+ // version: 1.134.2-b6a56164c
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-worker-api",
3
- "version": "1.134.1",
3
+ "version": "1.134.2",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "",
6
6
  "main": "dist/standalone/es/lds-worker-api.js",
@@ -1,21 +0,0 @@
1
- export declare const instrumentation: {
2
- instrumentAdapter(createFunction: Function, _metadata: any): Function;
3
- };
4
- export declare function instrumentAdapter(createFunction: Function, _metadata: any): Function;
5
- export declare function incrementGetRecordNotifyChangeAllowCount(): void;
6
- export declare function incrementGetRecordNotifyChangeDropCount(): void;
7
- export declare function incrementNotifyRecordUpdateAvailableAllowCount(): void;
8
- export declare function incrementNotifyRecordUpdateAvailableDropCount(): void;
9
- export declare function refreshApiEvent(): void;
10
- export declare function instrumentGraphqlAdapter(createFunction: Function, _metadata: any): Function;
11
- export declare function setLdsAdaptersUiapiInstrumentation(_uiapiRegistration: any): void;
12
- export declare function setLdsNetworkAdapterInstrumentation(_networkAdapterRegistration: any): void;
13
- export declare function setupInstrumentation(_luvio: any, _store: any): void;
14
- export declare function instrumentLuvio(_context: unknown): void;
15
- export declare const REFRESH_UIAPI_KEY = "refreshUiApi";
16
- export declare const METRIC_KEYS: {};
17
- export declare const O11Y_NAMESPACE_LDS_MOBILE = "lds-mobile";
18
- export declare const withInstrumentation: () => undefined;
19
- export declare class MetricsReporter {
20
- reportGraphqlQueryParseError(): void;
21
- }
@@ -1,21 +0,0 @@
1
- export declare const instrumentation: {
2
- instrumentAdapter(createFunction: Function, _metadata: any): Function;
3
- };
4
- export declare function instrumentAdapter(createFunction: Function, _metadata: any): Function;
5
- export declare function incrementGetRecordNotifyChangeAllowCount(): void;
6
- export declare function incrementGetRecordNotifyChangeDropCount(): void;
7
- export declare function incrementNotifyRecordUpdateAvailableAllowCount(): void;
8
- export declare function incrementNotifyRecordUpdateAvailableDropCount(): void;
9
- export declare function refreshApiEvent(): void;
10
- export declare function instrumentGraphqlAdapter(createFunction: Function, _metadata: any): Function;
11
- export declare function setLdsAdaptersUiapiInstrumentation(_uiapiRegistration: any): void;
12
- export declare function setLdsNetworkAdapterInstrumentation(_networkAdapterRegistration: any): void;
13
- export declare function setupInstrumentation(_luvio: any, _store: any): void;
14
- export declare function instrumentLuvio(_context: unknown): void;
15
- export declare const REFRESH_UIAPI_KEY = "refreshUiApi";
16
- export declare const METRIC_KEYS: {};
17
- export declare const O11Y_NAMESPACE_LDS_MOBILE = "lds-mobile";
18
- export declare const withInstrumentation: () => undefined;
19
- export declare class MetricsReporter {
20
- reportGraphqlQueryParseError(): void;
21
- }