@salesforce/lds-worker-api 1.424.0 → 1.425.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.
|
@@ -1371,4 +1371,4 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1371
1371
|
}
|
|
1372
1372
|
|
|
1373
1373
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, importLuvioAdapterModule, importOneStoreAdapterModule, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
1374
|
-
// version: 1.
|
|
1374
|
+
// version: 1.425.0-c433405ee2
|
|
@@ -4274,7 +4274,7 @@ function withDefaultLuvio(callback) {
|
|
|
4274
4274
|
}
|
|
4275
4275
|
callbacks.push(callback);
|
|
4276
4276
|
}
|
|
4277
|
-
// version: 1.
|
|
4277
|
+
// version: 1.425.0-c433405ee2
|
|
4278
4278
|
|
|
4279
4279
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4280
4280
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -5318,7 +5318,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
|
|
|
5318
5318
|
const { apiFamily, name } = metadata;
|
|
5319
5319
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
5320
5320
|
}
|
|
5321
|
-
// version: 1.
|
|
5321
|
+
// version: 1.425.0-c433405ee2
|
|
5322
5322
|
|
|
5323
5323
|
/**
|
|
5324
5324
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -35491,7 +35491,7 @@ withDefaultLuvio((luvio) => {
|
|
|
35491
35491
|
throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
|
|
35492
35492
|
throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
35493
35493
|
});
|
|
35494
|
-
// version: 1.
|
|
35494
|
+
// version: 1.425.0-7665d4cffc
|
|
35495
35495
|
|
|
35496
35496
|
var allowUpdatesForNonCachedRecords = {
|
|
35497
35497
|
isOpen: function (e) {
|
|
@@ -99069,7 +99069,7 @@ function buildServiceDescriptor$b(luvio) {
|
|
|
99069
99069
|
},
|
|
99070
99070
|
};
|
|
99071
99071
|
}
|
|
99072
|
-
// version: 1.
|
|
99072
|
+
// version: 1.425.0-7665d4cffc
|
|
99073
99073
|
|
|
99074
99074
|
/**
|
|
99075
99075
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -99095,7 +99095,7 @@ function buildServiceDescriptor$a(notifyRecordUpdateAvailable, getNormalizedLuvi
|
|
|
99095
99095
|
},
|
|
99096
99096
|
};
|
|
99097
99097
|
}
|
|
99098
|
-
// version: 1.
|
|
99098
|
+
// version: 1.425.0-7665d4cffc
|
|
99099
99099
|
|
|
99100
99100
|
/*!
|
|
99101
99101
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -100918,6 +100918,11 @@ function setDifference(setA, setB) {
|
|
|
100918
100918
|
}
|
|
100919
100919
|
return differenceSet;
|
|
100920
100920
|
}
|
|
100921
|
+
function addAllToSet(targetSet, sourceSet) {
|
|
100922
|
+
for (const element of sourceSet) {
|
|
100923
|
+
targetSet.add(element);
|
|
100924
|
+
}
|
|
100925
|
+
}
|
|
100921
100926
|
function resolvedPromiseLike$3(result) {
|
|
100922
100927
|
if (isPromiseLike$3(result)) {
|
|
100923
100928
|
return result.then((nextResult) => nextResult);
|
|
@@ -101218,15 +101223,18 @@ class DurableCacheInclusionPolicy extends CacheInclusionPolicyService {
|
|
|
101218
101223
|
if (readResult.isOk()) {
|
|
101219
101224
|
return readResult;
|
|
101220
101225
|
}
|
|
101221
|
-
const
|
|
101222
|
-
if (alreadyRevivedKeys && setDifference(
|
|
101226
|
+
const missingKeys = recordableCache.missingKeysRead;
|
|
101227
|
+
if (alreadyRevivedKeys && setDifference(missingKeys, alreadyRevivedKeys).size === 0) {
|
|
101223
101228
|
return readResult;
|
|
101224
101229
|
}
|
|
101225
|
-
return this.revive(
|
|
101226
|
-
|
|
101230
|
+
return this.revive(missingKeys, l1).then((revivedKeys) => {
|
|
101231
|
+
const newlyRevived = alreadyRevivedKeys ? setDifference(revivedKeys, alreadyRevivedKeys) : revivedKeys;
|
|
101232
|
+
if (newlyRevived.size === 0) {
|
|
101227
101233
|
return readResult;
|
|
101228
101234
|
}
|
|
101229
|
-
|
|
101235
|
+
const allRevived = new Set(alreadyRevivedKeys ?? []);
|
|
101236
|
+
addAllToSet(allRevived, revivedKeys);
|
|
101237
|
+
return this.read({ l1, readFromL1, alreadyRevivedKeys: allRevived });
|
|
101230
101238
|
});
|
|
101231
101239
|
});
|
|
101232
101240
|
}
|
|
@@ -101744,7 +101752,7 @@ register$1({
|
|
|
101744
101752
|
id: '@salesforce/lds-network-adapter',
|
|
101745
101753
|
instrument: instrument$2,
|
|
101746
101754
|
});
|
|
101747
|
-
// version: 1.
|
|
101755
|
+
// version: 1.425.0-c433405ee2
|
|
101748
101756
|
|
|
101749
101757
|
const { create: create$2, keys: keys$2 } = Object;
|
|
101750
101758
|
const { stringify, parse } = JSON;
|
|
@@ -109727,7 +109735,7 @@ function registerCallback(cb) {
|
|
|
109727
109735
|
cb(graphql_v1_import, graphql_imperative$1, graphql_imperative_legacy_v1_import, graphql_state_manager, useOneStoreGraphQL);
|
|
109728
109736
|
}
|
|
109729
109737
|
}
|
|
109730
|
-
// version: 1.
|
|
109738
|
+
// version: 1.425.0-7665d4cffc
|
|
109731
109739
|
|
|
109732
109740
|
function createFragmentMap(documentNode) {
|
|
109733
109741
|
const fragments = {};
|
|
@@ -138964,7 +138972,7 @@ register$1({
|
|
|
138964
138972
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
138965
138973
|
instrument: instrument$1,
|
|
138966
138974
|
});
|
|
138967
|
-
// version: 1.
|
|
138975
|
+
// version: 1.425.0-7665d4cffc
|
|
138968
138976
|
|
|
138969
138977
|
// On core the unstable adapters are re-exported with different names,
|
|
138970
138978
|
// we want to match them here.
|
|
@@ -139116,7 +139124,7 @@ withDefaultLuvio((luvio) => {
|
|
|
139116
139124
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
139117
139125
|
graphQLImperative = ldsAdapter;
|
|
139118
139126
|
});
|
|
139119
|
-
// version: 1.
|
|
139127
|
+
// version: 1.425.0-7665d4cffc
|
|
139120
139128
|
|
|
139121
139129
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
139122
139130
|
__proto__: null,
|
|
@@ -139915,7 +139923,7 @@ const callbacks$1 = [];
|
|
|
139915
139923
|
function register(r) {
|
|
139916
139924
|
callbacks$1.forEach((callback) => callback(r));
|
|
139917
139925
|
}
|
|
139918
|
-
// version: 1.
|
|
139926
|
+
// version: 1.425.0-c433405ee2
|
|
139919
139927
|
|
|
139920
139928
|
/**
|
|
139921
139929
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -141231,4 +141239,4 @@ const { luvio } = getRuntime();
|
|
|
141231
141239
|
setDefaultLuvio({ luvio });
|
|
141232
141240
|
|
|
141233
141241
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, importLuvioAdapterModule, importOneStoreAdapterModule, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
141234
|
-
// version: 1.
|
|
141242
|
+
// version: 1.425.0-c433405ee2
|
|
@@ -4280,7 +4280,7 @@
|
|
|
4280
4280
|
}
|
|
4281
4281
|
callbacks.push(callback);
|
|
4282
4282
|
}
|
|
4283
|
-
// version: 1.
|
|
4283
|
+
// version: 1.425.0-c433405ee2
|
|
4284
4284
|
|
|
4285
4285
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4286
4286
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -5324,7 +5324,7 @@
|
|
|
5324
5324
|
const { apiFamily, name } = metadata;
|
|
5325
5325
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
5326
5326
|
}
|
|
5327
|
-
// version: 1.
|
|
5327
|
+
// version: 1.425.0-c433405ee2
|
|
5328
5328
|
|
|
5329
5329
|
/**
|
|
5330
5330
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -35497,7 +35497,7 @@
|
|
|
35497
35497
|
throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
|
|
35498
35498
|
throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
35499
35499
|
});
|
|
35500
|
-
// version: 1.
|
|
35500
|
+
// version: 1.425.0-7665d4cffc
|
|
35501
35501
|
|
|
35502
35502
|
var allowUpdatesForNonCachedRecords = {
|
|
35503
35503
|
isOpen: function (e) {
|
|
@@ -99075,7 +99075,7 @@
|
|
|
99075
99075
|
},
|
|
99076
99076
|
};
|
|
99077
99077
|
}
|
|
99078
|
-
// version: 1.
|
|
99078
|
+
// version: 1.425.0-7665d4cffc
|
|
99079
99079
|
|
|
99080
99080
|
/**
|
|
99081
99081
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -99101,7 +99101,7 @@
|
|
|
99101
99101
|
},
|
|
99102
99102
|
};
|
|
99103
99103
|
}
|
|
99104
|
-
// version: 1.
|
|
99104
|
+
// version: 1.425.0-7665d4cffc
|
|
99105
99105
|
|
|
99106
99106
|
/*!
|
|
99107
99107
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -100924,6 +100924,11 @@
|
|
|
100924
100924
|
}
|
|
100925
100925
|
return differenceSet;
|
|
100926
100926
|
}
|
|
100927
|
+
function addAllToSet(targetSet, sourceSet) {
|
|
100928
|
+
for (const element of sourceSet) {
|
|
100929
|
+
targetSet.add(element);
|
|
100930
|
+
}
|
|
100931
|
+
}
|
|
100927
100932
|
function resolvedPromiseLike$3(result) {
|
|
100928
100933
|
if (isPromiseLike$3(result)) {
|
|
100929
100934
|
return result.then((nextResult) => nextResult);
|
|
@@ -101224,15 +101229,18 @@
|
|
|
101224
101229
|
if (readResult.isOk()) {
|
|
101225
101230
|
return readResult;
|
|
101226
101231
|
}
|
|
101227
|
-
const
|
|
101228
|
-
if (alreadyRevivedKeys && setDifference(
|
|
101232
|
+
const missingKeys = recordableCache.missingKeysRead;
|
|
101233
|
+
if (alreadyRevivedKeys && setDifference(missingKeys, alreadyRevivedKeys).size === 0) {
|
|
101229
101234
|
return readResult;
|
|
101230
101235
|
}
|
|
101231
|
-
return this.revive(
|
|
101232
|
-
|
|
101236
|
+
return this.revive(missingKeys, l1).then((revivedKeys) => {
|
|
101237
|
+
const newlyRevived = alreadyRevivedKeys ? setDifference(revivedKeys, alreadyRevivedKeys) : revivedKeys;
|
|
101238
|
+
if (newlyRevived.size === 0) {
|
|
101233
101239
|
return readResult;
|
|
101234
101240
|
}
|
|
101235
|
-
|
|
101241
|
+
const allRevived = new Set(alreadyRevivedKeys ?? []);
|
|
101242
|
+
addAllToSet(allRevived, revivedKeys);
|
|
101243
|
+
return this.read({ l1, readFromL1, alreadyRevivedKeys: allRevived });
|
|
101236
101244
|
});
|
|
101237
101245
|
});
|
|
101238
101246
|
}
|
|
@@ -101750,7 +101758,7 @@
|
|
|
101750
101758
|
id: '@salesforce/lds-network-adapter',
|
|
101751
101759
|
instrument: instrument$2,
|
|
101752
101760
|
});
|
|
101753
|
-
// version: 1.
|
|
101761
|
+
// version: 1.425.0-c433405ee2
|
|
101754
101762
|
|
|
101755
101763
|
const { create: create$2, keys: keys$2 } = Object;
|
|
101756
101764
|
const { stringify, parse } = JSON;
|
|
@@ -109733,7 +109741,7 @@
|
|
|
109733
109741
|
cb(graphql_v1_import, graphql_imperative$1, graphql_imperative_legacy_v1_import, graphql_state_manager, useOneStoreGraphQL);
|
|
109734
109742
|
}
|
|
109735
109743
|
}
|
|
109736
|
-
// version: 1.
|
|
109744
|
+
// version: 1.425.0-7665d4cffc
|
|
109737
109745
|
|
|
109738
109746
|
function createFragmentMap(documentNode) {
|
|
109739
109747
|
const fragments = {};
|
|
@@ -138970,7 +138978,7 @@
|
|
|
138970
138978
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
138971
138979
|
instrument: instrument$1,
|
|
138972
138980
|
});
|
|
138973
|
-
// version: 1.
|
|
138981
|
+
// version: 1.425.0-7665d4cffc
|
|
138974
138982
|
|
|
138975
138983
|
// On core the unstable adapters are re-exported with different names,
|
|
138976
138984
|
// we want to match them here.
|
|
@@ -139122,7 +139130,7 @@
|
|
|
139122
139130
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
139123
139131
|
graphQLImperative = ldsAdapter;
|
|
139124
139132
|
});
|
|
139125
|
-
// version: 1.
|
|
139133
|
+
// version: 1.425.0-7665d4cffc
|
|
139126
139134
|
|
|
139127
139135
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
139128
139136
|
__proto__: null,
|
|
@@ -139921,7 +139929,7 @@
|
|
|
139921
139929
|
function register(r) {
|
|
139922
139930
|
callbacks$1.forEach((callback) => callback(r));
|
|
139923
139931
|
}
|
|
139924
|
-
// version: 1.
|
|
139932
|
+
// version: 1.425.0-c433405ee2
|
|
139925
139933
|
|
|
139926
139934
|
/**
|
|
139927
139935
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -141258,4 +141266,4 @@
|
|
|
141258
141266
|
exports.subscribeToAdapter = subscribeToAdapter;
|
|
141259
141267
|
|
|
141260
141268
|
}));
|
|
141261
|
-
// version: 1.
|
|
141269
|
+
// version: 1.425.0-c433405ee2
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-worker-api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.425.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "dist/standalone/es/lds-worker-api.js",
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@oat-sa/rollup-plugin-wildcard-external": "^1.0.0",
|
|
38
|
-
"@salesforce/lds-adapters-graphql": "^1.
|
|
39
|
-
"@salesforce/lds-adapters-uiapi": "^1.
|
|
40
|
-
"@salesforce/lds-default-luvio": "^1.
|
|
41
|
-
"@salesforce/lds-drafts": "^1.
|
|
42
|
-
"@salesforce/lds-graphql-parser": "^1.
|
|
43
|
-
"@salesforce/lds-luvio-engine": "^1.
|
|
44
|
-
"@salesforce/lds-runtime-mobile": "^1.
|
|
45
|
-
"@salesforce/nimbus-plugin-lds": "^1.
|
|
38
|
+
"@salesforce/lds-adapters-graphql": "^1.425.0",
|
|
39
|
+
"@salesforce/lds-adapters-uiapi": "^1.425.0",
|
|
40
|
+
"@salesforce/lds-default-luvio": "^1.425.0",
|
|
41
|
+
"@salesforce/lds-drafts": "^1.425.0",
|
|
42
|
+
"@salesforce/lds-graphql-parser": "^1.425.0",
|
|
43
|
+
"@salesforce/lds-luvio-engine": "^1.425.0",
|
|
44
|
+
"@salesforce/lds-runtime-mobile": "^1.425.0",
|
|
45
|
+
"@salesforce/nimbus-plugin-lds": "^1.425.0",
|
|
46
46
|
"ajv": "^8.11.0",
|
|
47
47
|
"glob": "^7.1.5",
|
|
48
48
|
"nimbus-types": "^2.0.0-alpha1",
|