@salesforce/lds-worker-api 1.139.0 → 1.139.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.
@@ -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.0-d2258db6a
761
+ // version: 1.139.1-1cdb5ebf1
@@ -3797,7 +3797,7 @@ function withDefaultLuvio(callback) {
3797
3797
  }
3798
3798
  callbacks.push(callback);
3799
3799
  }
3800
- // version: 1.139.0-d2258db6a
3800
+ // version: 1.139.1-1cdb5ebf1
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.0-d2258db6a
15224
+ // version: 1.139.1-1cdb5ebf1
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.0-d2258db6a
16137
+ // version: 1.139.1-1cdb5ebf1
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.0-781f9ae4f
43913
+ // version: 1.139.1-a85a736cf
43914
43914
 
43915
43915
  var caseSensitiveUserId = '005B0000000GR4OIAW';
43916
43916
 
@@ -55839,14 +55839,24 @@ function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecord
55839
55839
  const filteredEntryIds = [];
55840
55840
  // map of records to avoid requesting duplicate record keys when requesting both records and fields
55841
55841
  const recordEntries = {};
55842
+ const recordViewEntries = {};
55842
55843
  for (let i = 0, len = entriesLength; i < len; i++) {
55843
55844
  const id = entries[i];
55844
55845
  const recordId = extractRecordIdFromStoreKey(id);
55845
55846
  if (recordId !== undefined) {
55846
- if (recordEntries[recordId] === undefined) {
55847
- const key = getDenormalizedKey(id, recordId, luvio);
55848
- recordEntries[recordId] = true;
55849
- filteredEntryIds.push(key);
55847
+ if (id.startsWith(RECORD_VIEW_ENTITY_ID_PREFIX)) {
55848
+ if (recordViewEntries[recordId] === undefined) {
55849
+ const key = getDenormalizedKey(id, recordId, luvio);
55850
+ recordViewEntries[recordId] = true;
55851
+ filteredEntryIds.push(key);
55852
+ }
55853
+ }
55854
+ else {
55855
+ if (recordEntries[recordId] === undefined) {
55856
+ const key = getDenormalizedKey(id, recordId, luvio);
55857
+ recordEntries[recordId] = true;
55858
+ filteredEntryIds.push(key);
55859
+ }
55850
55860
  }
55851
55861
  }
55852
55862
  else {
@@ -55880,6 +55890,7 @@ function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecord
55880
55890
  const putEntries = create$2$1(null);
55881
55891
  const keys$1 = keys$2$1(entries);
55882
55892
  const putRecords = {};
55893
+ const putRecordViews = {};
55883
55894
  const storeRecords = getStoreRecords !== undefined ? getStoreRecords() : {};
55884
55895
  const storeMetadata = getStoreMetadata !== undefined ? getStoreMetadata() : {};
55885
55896
  for (let i = 0, len = keys$1.length; i < len; i++) {
@@ -55888,10 +55899,18 @@ function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecord
55888
55899
  const recordId = extractRecordIdFromStoreKey(key);
55889
55900
  // do not put normalized field values
55890
55901
  if (recordId !== undefined) {
55891
- const recordKey = getDenormalizedKey(key, recordId, luvio);
55892
- if (putRecords[recordId] === true) {
55893
- continue;
55902
+ const isRecordView = key.startsWith(RECORD_VIEW_ENTITY_ID_PREFIX);
55903
+ if (isRecordView) {
55904
+ if (putRecordViews[recordId] === true) {
55905
+ continue;
55906
+ }
55894
55907
  }
55908
+ else {
55909
+ if (putRecords[recordId] === true) {
55910
+ continue;
55911
+ }
55912
+ }
55913
+ const recordKey = getDenormalizedKey(key, recordId, luvio);
55895
55914
  const recordEntries = entries;
55896
55915
  const entry = recordEntries[recordKey];
55897
55916
  let record = entry && entry.data;
@@ -55903,7 +55922,12 @@ function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecord
55903
55922
  continue;
55904
55923
  }
55905
55924
  }
55906
- putRecords[recordId] = true;
55925
+ if (isRecordView) {
55926
+ putRecordViews[recordId] = true;
55927
+ }
55928
+ else {
55929
+ putRecords[recordId] = true;
55930
+ }
55907
55931
  if (isStoreRecordError(record)) {
55908
55932
  putEntries[recordKey] = value;
55909
55933
  continue;
@@ -59663,7 +59687,7 @@ register({
59663
59687
  id: '@salesforce/lds-network-adapter',
59664
59688
  instrument: instrument$1,
59665
59689
  });
59666
- // version: 1.139.0-d2258db6a
59690
+ // version: 1.139.1-1cdb5ebf1
59667
59691
 
59668
59692
  const { create: create$2, keys: keys$2 } = Object;
59669
59693
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -80494,7 +80518,7 @@ register({
80494
80518
  configuration: { ...configurationForGraphQLAdapters },
80495
80519
  instrument,
80496
80520
  });
80497
- // version: 1.139.0-781f9ae4f
80521
+ // version: 1.139.1-a85a736cf
80498
80522
 
80499
80523
  // On core the unstable adapters are re-exported with different names,
80500
80524
 
@@ -82726,7 +82750,7 @@ withDefaultLuvio((luvio) => {
82726
82750
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
82727
82751
  graphQLImperative = ldsAdapter;
82728
82752
  });
82729
- // version: 1.139.0-781f9ae4f
82753
+ // version: 1.139.1-a85a736cf
82730
82754
 
82731
82755
  var gqlApi = /*#__PURE__*/Object.freeze({
82732
82756
  __proto__: null,
@@ -83415,4 +83439,4 @@ const { luvio } = getRuntime();
83415
83439
  setDefaultLuvio({ luvio });
83416
83440
 
83417
83441
  export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
83418
- // version: 1.139.0-d2258db6a
83442
+ // version: 1.139.1-1cdb5ebf1
@@ -3803,7 +3803,7 @@
3803
3803
  }
3804
3804
  callbacks.push(callback);
3805
3805
  }
3806
- // version: 1.139.0-d2258db6a
3806
+ // version: 1.139.1-1cdb5ebf1
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.0-d2258db6a
15230
+ // version: 1.139.1-1cdb5ebf1
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.0-d2258db6a
16143
+ // version: 1.139.1-1cdb5ebf1
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.0-781f9ae4f
43919
+ // version: 1.139.1-a85a736cf
43920
43920
 
43921
43921
  var caseSensitiveUserId = '005B0000000GR4OIAW';
43922
43922
 
@@ -55845,14 +55845,24 @@
55845
55845
  const filteredEntryIds = [];
55846
55846
  // map of records to avoid requesting duplicate record keys when requesting both records and fields
55847
55847
  const recordEntries = {};
55848
+ const recordViewEntries = {};
55848
55849
  for (let i = 0, len = entriesLength; i < len; i++) {
55849
55850
  const id = entries[i];
55850
55851
  const recordId = extractRecordIdFromStoreKey(id);
55851
55852
  if (recordId !== undefined) {
55852
- if (recordEntries[recordId] === undefined) {
55853
- const key = getDenormalizedKey(id, recordId, luvio);
55854
- recordEntries[recordId] = true;
55855
- filteredEntryIds.push(key);
55853
+ if (id.startsWith(RECORD_VIEW_ENTITY_ID_PREFIX)) {
55854
+ if (recordViewEntries[recordId] === undefined) {
55855
+ const key = getDenormalizedKey(id, recordId, luvio);
55856
+ recordViewEntries[recordId] = true;
55857
+ filteredEntryIds.push(key);
55858
+ }
55859
+ }
55860
+ else {
55861
+ if (recordEntries[recordId] === undefined) {
55862
+ const key = getDenormalizedKey(id, recordId, luvio);
55863
+ recordEntries[recordId] = true;
55864
+ filteredEntryIds.push(key);
55865
+ }
55856
55866
  }
55857
55867
  }
55858
55868
  else {
@@ -55886,6 +55896,7 @@
55886
55896
  const putEntries = create$2$1(null);
55887
55897
  const keys$1 = keys$2$1(entries);
55888
55898
  const putRecords = {};
55899
+ const putRecordViews = {};
55889
55900
  const storeRecords = getStoreRecords !== undefined ? getStoreRecords() : {};
55890
55901
  const storeMetadata = getStoreMetadata !== undefined ? getStoreMetadata() : {};
55891
55902
  for (let i = 0, len = keys$1.length; i < len; i++) {
@@ -55894,10 +55905,18 @@
55894
55905
  const recordId = extractRecordIdFromStoreKey(key);
55895
55906
  // do not put normalized field values
55896
55907
  if (recordId !== undefined) {
55897
- const recordKey = getDenormalizedKey(key, recordId, luvio);
55898
- if (putRecords[recordId] === true) {
55899
- continue;
55908
+ const isRecordView = key.startsWith(RECORD_VIEW_ENTITY_ID_PREFIX);
55909
+ if (isRecordView) {
55910
+ if (putRecordViews[recordId] === true) {
55911
+ continue;
55912
+ }
55900
55913
  }
55914
+ else {
55915
+ if (putRecords[recordId] === true) {
55916
+ continue;
55917
+ }
55918
+ }
55919
+ const recordKey = getDenormalizedKey(key, recordId, luvio);
55901
55920
  const recordEntries = entries;
55902
55921
  const entry = recordEntries[recordKey];
55903
55922
  let record = entry && entry.data;
@@ -55909,7 +55928,12 @@
55909
55928
  continue;
55910
55929
  }
55911
55930
  }
55912
- putRecords[recordId] = true;
55931
+ if (isRecordView) {
55932
+ putRecordViews[recordId] = true;
55933
+ }
55934
+ else {
55935
+ putRecords[recordId] = true;
55936
+ }
55913
55937
  if (isStoreRecordError(record)) {
55914
55938
  putEntries[recordKey] = value;
55915
55939
  continue;
@@ -59669,7 +59693,7 @@
59669
59693
  id: '@salesforce/lds-network-adapter',
59670
59694
  instrument: instrument$1,
59671
59695
  });
59672
- // version: 1.139.0-d2258db6a
59696
+ // version: 1.139.1-1cdb5ebf1
59673
59697
 
59674
59698
  const { create: create$2, keys: keys$2 } = Object;
59675
59699
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -80500,7 +80524,7 @@
80500
80524
  configuration: { ...configurationForGraphQLAdapters },
80501
80525
  instrument,
80502
80526
  });
80503
- // version: 1.139.0-781f9ae4f
80527
+ // version: 1.139.1-a85a736cf
80504
80528
 
80505
80529
  // On core the unstable adapters are re-exported with different names,
80506
80530
 
@@ -82732,7 +82756,7 @@
82732
82756
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
82733
82757
  graphQLImperative = ldsAdapter;
82734
82758
  });
82735
- // version: 1.139.0-781f9ae4f
82759
+ // version: 1.139.1-a85a736cf
82736
82760
 
82737
82761
  var gqlApi = /*#__PURE__*/Object.freeze({
82738
82762
  __proto__: null,
@@ -83438,4 +83462,4 @@
83438
83462
  Object.defineProperty(exports, '__esModule', { value: true });
83439
83463
 
83440
83464
  }));
83441
- // version: 1.139.0-d2258db6a
83465
+ // version: 1.139.1-1cdb5ebf1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-worker-api",
3
- "version": "1.139.0",
3
+ "version": "1.139.1",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "",
6
6
  "main": "dist/standalone/es/lds-worker-api.js",