@salesforce/lds-adapters-uiapi 1.309.0 → 1.310.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-uiapi",
3
- "version": "1.309.0",
3
+ "version": "1.310.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "Wire adapters for record related UI API endpoints",
6
6
  "main": "dist/es/es2018/uiapi-records-service.js",
@@ -68,14 +68,14 @@
68
68
  }
69
69
  },
70
70
  "dependencies": {
71
- "@salesforce/lds-bindings": "^1.309.0",
72
- "@salesforce/lds-default-luvio": "^1.309.0"
71
+ "@salesforce/lds-bindings": "^1.310.0",
72
+ "@salesforce/lds-default-luvio": "^1.310.0"
73
73
  },
74
74
  "devDependencies": {
75
75
  "@databases/sqlite": "^3.0.0",
76
- "@salesforce/lds-compiler-plugins": "^1.309.0",
77
- "@salesforce/lds-jest": "^1.309.0",
78
- "@salesforce/lds-store-binary": "^1.309.0"
76
+ "@salesforce/lds-compiler-plugins": "^1.310.0",
77
+ "@salesforce/lds-jest": "^1.310.0",
78
+ "@salesforce/lds-store-binary": "^1.310.0"
79
79
  },
80
80
  "luvioBundlesize": [
81
81
  {
@@ -22244,4 +22244,4 @@ register({
22244
22244
  });
22245
22245
 
22246
22246
  export { configurationForGraphQLAdapters as configuration, graphql, factory$1 as graphqlAdapterFactory, graphqlBatch, graphqlBatch_imperative, graphql_imperative };
22247
- // version: 1.309.0-3ac0e022f5
22247
+ // version: 1.310.0-51b4ab090c
package/sfdc/index.js CHANGED
@@ -8034,17 +8034,6 @@ function addListSummaryCollectionKey(objectApiName, recentLists, key) {
8034
8034
  }
8035
8035
  keys.add(key);
8036
8036
  }
8037
- function removeListRecordCollectionKeys(objectApiName, listViewApiName) {
8038
- const cacheEntriesByObjectApiName = listRecordCollectionCache.get(objectApiName.toLowerCase()) || new Map();
8039
- cacheEntriesByObjectApiName.delete(listViewApiName.toLowerCase());
8040
- }
8041
- function removeListSummaryCollectionKeys(objectApiName, recentLists = undefined) {
8042
- const cacheEntriesByObjectApiName = listSummaryCollectionCache.get(objectApiName) || new Map();
8043
- cacheEntriesByObjectApiName.delete(recentLists ? 'true' : 'false');
8044
- if (recentLists === undefined) {
8045
- cacheEntriesByObjectApiName.delete('true');
8046
- }
8047
- }
8048
8037
  function splitListRecordCollectionKey(key) {
8049
8038
  const keyElements = key.split(':');
8050
8039
  return {
@@ -8321,14 +8310,22 @@ function listFields(luvio, { fields = [], optionalFields = [], sortBy, }, listIn
8321
8310
  function setupNotifyAllListRecordUpdateAvailable(luvio) {
8322
8311
  return (notifyInput) => {
8323
8312
  const keys = getListRecordCollectionKeys(notifyInput.objectApiName, notifyInput.listViewApiName);
8324
- removeListRecordCollectionKeys(notifyInput.objectApiName, notifyInput.listViewApiName);
8313
+ // W-16311716 - Bug is happening because we are removing keys from the cache when
8314
+ // the actual data has not changed. This causes a mismatch in this notifyAll cache
8315
+ // vs the actual LDS cache. Not removing these keys from the notifyAll cache has
8316
+ // no forseen drawbacks
8317
+ //removeListRecordCollectionKeys(notifyInput.objectApiName, notifyInput.listViewApiName);
8325
8318
  return luvio.notifyStoreUpdateAvailable(keys);
8326
8319
  };
8327
8320
  }
8328
8321
  function setupNotifyAllListInfoSummaryUpdateAvailable(luvio) {
8329
8322
  return (notifyInput) => {
8330
8323
  const keys = getListSummaryCollectionKeys(notifyInput.objectApiName, notifyInput.recentLists);
8331
- removeListSummaryCollectionKeys(notifyInput.objectApiName, notifyInput.recentLists);
8324
+ // W-16311716 - Bug is happening because we are removing keys from the cache when
8325
+ // the actual data has not changed. This causes a mismatch in this notifyAll cache
8326
+ // vs the actual LDS cache. Not removing these keys from the notifyAll cache has
8327
+ // no forseen drawbacks
8328
+ //removeListSummaryCollectionKeys(notifyInput.objectApiName, notifyInput.recentLists);
8332
8329
  return luvio.notifyStoreUpdateAvailable(keys);
8333
8330
  };
8334
8331
  }
@@ -38286,4 +38283,4 @@ withDefaultLuvio((luvio) => {
38286
38283
  });
38287
38284
 
38288
38285
  export { API_NAMESPACE, InMemoryRecordRepresentationQueryEvaluator, MRU, RepresentationType$J as ObjectInfoDirectoryEntryRepresentationType, RepresentationType$O as ObjectInfoRepresentationType, RECORD_FIELDS_KEY_JUNCTION, RECORD_ID_PREFIX, RECORD_REPRESENTATION_NAME, RECORD_VIEW_ENTITY_ID_PREFIX, RECORD_VIEW_ENTITY_REPRESENTATION_NAME, RepresentationType$V as RecordRepresentationRepresentationType, TTL$z as RecordRepresentationTTL, RepresentationType$V as RecordRepresentationType, VERSION$1e as RecordRepresentationVersion, keyPrefix as UiApiNamespace, buildRecordRepKeyFromId, getFieldApiNamesArray as coerceFieldIdArray, getObjectApiName$1 as coerceObjectId, getObjectApiNamesArray as coerceObjectIdArray, configurationForRestAdapters as configuration, createContentDocumentAndVersion, createContentVersion, createIngestRecordWithFields, createLDSAdapterWithPrediction, createListInfo, createRecord, createRelatedListAdapterWithPrediction, deleteListInfo, deleteRecord, executeBatchRecordOperations, extractRecordIdFromStoreKey, getActionOverrides, getActionOverrides_imperative, getAllApps, getAllApps_imperative, getAppDetails, getAppDetails_imperative, getDuplicateConfiguration, getDuplicateConfiguration_imperative, getDuplicates, getDuplicates_imperative, getFlexipageFormulaOverrides, getFlexipageFormulaOverrides_imperative, getGlobalActions, getGlobalActions_imperative, getKeywordSearchResults, getKeywordSearchResults_imperative, getLayout, getLayoutUserState, getLayoutUserState_imperative, getLayout_imperative, getListInfoByName, getListInfoByNameAdapterFactory, getListInfoByName_imperative, getListInfosByName, getListInfosByName_imperative, getListInfosByObjectName, getListInfosByObjectNameAdapterFactory, getListInfosByObjectName_imperative, getListObjectInfo, getListObjectInfoAdapterFactory, getListObjectInfo_imperative, getListPreferences, getListPreferences_imperative, getListRecordsByName, factory$a as getListRecordsByNameAdapterFactory, getListRecordsByName_imperative, getListUi, getListUi_imperative, getLookupActions, getLookupActions_imperative, getLookupMetadata, getLookupMetadata_imperative, getLookupRecords, getLookupRecords_imperative, getNavItems, getNavItems_imperative, getObjectCreateActions, getObjectCreateActions_imperative, getObjectInfo, getObjectInfoAdapterFactory, getObjectInfoDirectoryAdapterFactory, getObjectInfo_imperative, getObjectInfos, getObjectInfosAdapterFactory, getObjectInfos_imperative, getPathLayout, getPathLayout_imperative, getPicklistValues, getPicklistValuesByRecordType, getPicklistValuesByRecordType_imperative, getPicklistValues_imperative, getQuickActionDefaults, getQuickActionDefaults_imperative, getQuickActionInfo, getQuickActionInfo_imperative, getQuickActionLayout, getQuickActionLayout_imperative, getRecord, getRecordActions, getRecordActionsAdapterFactory, getRecordActions_imperative, factory$f as getRecordAdapterFactory, getRecordAvatars, getRecordAvatarsAdapterFactory, getRecordAvatars_imperative, getRecordCreateDefaults, getRecordCreateDefaults_imperative, getRecordEditActions, getRecordEditActions_imperative, getRecordId18, getRecordNotifyChange, getRecordTemplateClone, getRecordTemplateClone_imperative, getRecordTemplateCreate, getRecordTemplateCreate_imperative, getRecordUi, getRecordUi_imperative, getRecord_imperative, getRecords, getRecordsAdapterFactory, getRecords_imperative, getRelatedListActions, getRelatedListActions_imperative, getRelatedListCount, getRelatedListCount_imperative, getRelatedListInfo, getRelatedListInfoBatch, getRelatedListInfoBatchAdapterFactory, getRelatedListInfoBatch_imperative, getRelatedListInfo_imperative, getRelatedListPreferences, getRelatedListPreferencesBatch, getRelatedListPreferencesBatch_imperative, getRelatedListPreferences_imperative, getRelatedListRecordActions, getRelatedListRecordActions_imperative, getRelatedListRecords, getRelatedListRecordsAdapterFactory, getRelatedListRecordsBatch, getRelatedListRecordsBatchAdapterFactory, getRelatedListRecordsBatch_imperative, getRelatedListRecords_imperative, getRelatedListsActions, getRelatedListsActionsAdapterFactory, getRelatedListsActions_imperative, getRelatedListsCount, getRelatedListsCount_imperative, getRelatedListsInfo, getRelatedListsInfo_imperative, getResponseCacheKeys as getResponseCacheKeysContentDocumentCompositeRepresentation, getSearchFilterMetadata, getSearchFilterMetadata_imperative, getSearchFilterOptions, getSearchFilterOptions_imperative, getSearchResults, getSearchResults_imperative, getTypeCacheKeys$X as getTypeCacheKeysRecord, ingest as ingestContentDocumentCompositeRepresentation, ingest$H as ingestObjectInfo, ingest$B as ingestQuickActionExecutionRepresentation, ingest$O as ingestRecord, instrument, isStoreKeyRecordViewEntity, keyBuilder as keyBuilderContentDocumentCompositeRepresentation, keyBuilderFromType as keyBuilderFromTypeContentDocumentCompositeRepresentation, keyBuilderFromType$D as keyBuilderFromTypeRecordRepresentation, keyBuilder$1Y as keyBuilderObjectInfo, keyBuilder$1R as keyBuilderQuickActionExecutionRepresentation, keyBuilder$29 as keyBuilderRecord, notifyAllListInfoSummaryUpdateAvailable, notifyAllListRecordUpdateAvailable, notifyListInfoSummaryUpdateAvailable, notifyListInfoUpdateAvailable, notifyListRecordCollectionUpdateAvailable, notifyListViewSummaryUpdateAvailable, notifyQuickActionDefaultsUpdateAvailable, notifyRecordUpdateAvailable, performQuickAction, performUpdateRecordQuickAction, refresh, registerPrefetcher, updateLayoutUserState, updateListInfoByName, updateListPreferences, updateRecord, updateRecordAvatar, updateRelatedListInfo, updateRelatedListPreferences };
38289
- // version: 1.309.0-3ac0e022f5
38286
+ // version: 1.310.0-51b4ab090c
@@ -1673,4 +1673,4 @@ input Analytics__AnalyticsFilter {
1673
1673
 
1674
1674
  directive @generic on OBJECT | INTERFACE | UNION | ENUM | INPUT_OBJECT
1675
1675
  directive @fieldCategory on FIELD_DEFINITION | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION | ENUM_VALUE
1676
- directive @category on FIELD
1676
+ directive @category(name: String!) on FIELD