@salesforce/lds-runtime-aura 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.
@@ -2706,7 +2706,7 @@ function buildServiceDescriptor$d(luvio) {
2706
2706
  },
2707
2707
  };
2708
2708
  }
2709
- // version: 1.424.0-3bccebbf90
2709
+ // version: 1.425.0-7665d4cffc
2710
2710
 
2711
2711
  /*!
2712
2712
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -3059,7 +3059,7 @@ function buildServiceDescriptor$9(notifyRecordUpdateAvailable, getNormalizedLuvi
3059
3059
  },
3060
3060
  };
3061
3061
  }
3062
- // version: 1.424.0-3bccebbf90
3062
+ // version: 1.425.0-7665d4cffc
3063
3063
 
3064
3064
  /*!
3065
3065
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -5695,7 +5695,7 @@ function getEnvironmentSetting(name) {
5695
5695
  }
5696
5696
  return undefined;
5697
5697
  }
5698
- // version: 1.424.0-3bccebbf90
5698
+ // version: 1.425.0-7665d4cffc
5699
5699
 
5700
5700
  const environmentHasAura = typeof window !== 'undefined' && typeof window.$A !== 'undefined';
5701
5701
  const defaultConfig = {
@@ -9243,6 +9243,11 @@ function setDifference(setA, setB) {
9243
9243
  }
9244
9244
  return differenceSet;
9245
9245
  }
9246
+ function addAllToSet(targetSet, sourceSet) {
9247
+ for (const element of sourceSet) {
9248
+ targetSet.add(element);
9249
+ }
9250
+ }
9246
9251
  function resolvedPromiseLike(result) {
9247
9252
  if (isPromiseLike(result)) {
9248
9253
  return result.then((nextResult) => nextResult);
@@ -9543,15 +9548,18 @@ class DurableCacheInclusionPolicy extends CacheInclusionPolicyService {
9543
9548
  if (readResult.isOk()) {
9544
9549
  return readResult;
9545
9550
  }
9546
- const keysToRevive = recordableCache.keysRead;
9547
- if (alreadyRevivedKeys && setDifference(keysToRevive, alreadyRevivedKeys).size === 0) {
9551
+ const missingKeys = recordableCache.missingKeysRead;
9552
+ if (alreadyRevivedKeys && setDifference(missingKeys, alreadyRevivedKeys).size === 0) {
9548
9553
  return readResult;
9549
9554
  }
9550
- return this.revive(keysToRevive, l1).then((revivedKeys) => {
9551
- if (setDifference(keysToRevive, revivedKeys).size > 0) {
9555
+ return this.revive(missingKeys, l1).then((revivedKeys) => {
9556
+ const newlyRevived = alreadyRevivedKeys ? setDifference(revivedKeys, alreadyRevivedKeys) : revivedKeys;
9557
+ if (newlyRevived.size === 0) {
9552
9558
  return readResult;
9553
9559
  }
9554
- return this.read({ l1, readFromL1, alreadyRevivedKeys: revivedKeys });
9560
+ const allRevived = new Set(alreadyRevivedKeys ?? []);
9561
+ addAllToSet(allRevived, revivedKeys);
9562
+ return this.read({ l1, readFromL1, alreadyRevivedKeys: allRevived });
9555
9563
  });
9556
9564
  });
9557
9565
  }
@@ -10477,4 +10485,4 @@ function ldsEngineCreator() {
10477
10485
  }
10478
10486
 
10479
10487
  export { LexRequestStrategy, PdlPrefetcherEventType, PdlRequestPriority, buildPredictorForContext, configService, ldsEngineCreator as default, initializeLDS, initializeOneStore, notifyUpdateAvailableFactory, registerRequestStrategy, saveRequestAsPrediction, subscribeToPrefetcherEvents, unregisterRequestStrategy, whenPredictionsReady };
10480
- // version: 1.424.0-51efddf2a4
10488
+ // version: 1.425.0-c433405ee2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-runtime-aura",
3
- "version": "1.424.0",
3
+ "version": "1.425.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "LDS engine for Aura runtime",
6
6
  "main": "dist/ldsEngineCreator.js",
@@ -34,51 +34,51 @@
34
34
  "release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-runtime-aura"
35
35
  },
36
36
  "devDependencies": {
37
- "@conduit-client/service-provisioner": "3.16.0",
38
- "@conduit-client/tools-core": "3.16.0",
39
- "@salesforce/lds-adapters-apex": "^1.424.0",
40
- "@salesforce/lds-adapters-uiapi": "^1.424.0",
41
- "@salesforce/lds-ads-bridge": "^1.424.0",
42
- "@salesforce/lds-aura-storage": "^1.424.0",
43
- "@salesforce/lds-bindings": "^1.424.0",
44
- "@salesforce/lds-instrumentation": "^1.424.0",
45
- "@salesforce/lds-network-aura": "^1.424.0",
46
- "@salesforce/lds-network-fetch": "^1.424.0",
37
+ "@conduit-client/service-provisioner": "3.17.3",
38
+ "@conduit-client/tools-core": "3.17.3",
39
+ "@salesforce/lds-adapters-apex": "^1.425.0",
40
+ "@salesforce/lds-adapters-uiapi": "^1.425.0",
41
+ "@salesforce/lds-ads-bridge": "^1.425.0",
42
+ "@salesforce/lds-aura-storage": "^1.425.0",
43
+ "@salesforce/lds-bindings": "^1.425.0",
44
+ "@salesforce/lds-instrumentation": "^1.425.0",
45
+ "@salesforce/lds-network-aura": "^1.425.0",
46
+ "@salesforce/lds-network-fetch": "^1.425.0",
47
47
  "jwt-encode": "1.0.1"
48
48
  },
49
49
  "dependencies": {
50
- "@conduit-client/command-aura-graphql-normalized-cache-control": "3.16.0",
51
- "@conduit-client/command-aura-network": "3.16.0",
52
- "@conduit-client/command-aura-normalized-cache-control": "3.16.0",
53
- "@conduit-client/command-aura-resource-cache-control": "3.16.0",
54
- "@conduit-client/command-fetch-network": "3.16.0",
55
- "@conduit-client/command-http-graphql-normalized-cache-control": "3.16.0",
56
- "@conduit-client/command-http-normalized-cache-control": "3.16.0",
57
- "@conduit-client/command-ndjson": "3.16.0",
58
- "@conduit-client/command-network": "3.16.0",
59
- "@conduit-client/command-sse": "3.16.0",
60
- "@conduit-client/command-streaming": "3.16.0",
61
- "@conduit-client/service-aura-network": "3.16.0",
62
- "@conduit-client/service-bindings-imperative": "3.16.0",
63
- "@conduit-client/service-bindings-lwc": "3.16.0",
64
- "@conduit-client/service-cache": "3.16.0",
65
- "@conduit-client/service-cache-control": "3.16.0",
66
- "@conduit-client/service-cache-inclusion-policy": "3.16.0",
67
- "@conduit-client/service-config": "3.16.0",
68
- "@conduit-client/service-feature-flags": "3.16.0",
69
- "@conduit-client/service-fetch-network": "3.16.0",
70
- "@conduit-client/service-instrument-command": "3.16.0",
71
- "@conduit-client/service-pubsub": "3.16.0",
72
- "@conduit-client/service-store": "3.16.0",
73
- "@conduit-client/utils": "3.16.0",
50
+ "@conduit-client/command-aura-graphql-normalized-cache-control": "3.17.3",
51
+ "@conduit-client/command-aura-network": "3.17.3",
52
+ "@conduit-client/command-aura-normalized-cache-control": "3.17.3",
53
+ "@conduit-client/command-aura-resource-cache-control": "3.17.3",
54
+ "@conduit-client/command-fetch-network": "3.17.3",
55
+ "@conduit-client/command-http-graphql-normalized-cache-control": "3.17.3",
56
+ "@conduit-client/command-http-normalized-cache-control": "3.17.3",
57
+ "@conduit-client/command-ndjson": "3.17.3",
58
+ "@conduit-client/command-network": "3.17.3",
59
+ "@conduit-client/command-sse": "3.17.3",
60
+ "@conduit-client/command-streaming": "3.17.3",
61
+ "@conduit-client/service-aura-network": "3.17.3",
62
+ "@conduit-client/service-bindings-imperative": "3.17.3",
63
+ "@conduit-client/service-bindings-lwc": "3.17.3",
64
+ "@conduit-client/service-cache": "3.17.3",
65
+ "@conduit-client/service-cache-control": "3.17.3",
66
+ "@conduit-client/service-cache-inclusion-policy": "3.17.3",
67
+ "@conduit-client/service-config": "3.17.3",
68
+ "@conduit-client/service-feature-flags": "3.17.3",
69
+ "@conduit-client/service-fetch-network": "3.17.3",
70
+ "@conduit-client/service-instrument-command": "3.17.3",
71
+ "@conduit-client/service-pubsub": "3.17.3",
72
+ "@conduit-client/service-store": "3.17.3",
73
+ "@conduit-client/utils": "3.17.3",
74
74
  "@luvio/network-adapter-composable": "0.160.3",
75
75
  "@luvio/network-adapter-fetch": "0.160.3",
76
76
  "@lwc/state": "^0.29.0",
77
- "@salesforce/lds-adapters-onestore-graphql": "^1.424.0",
77
+ "@salesforce/lds-adapters-onestore-graphql": "^1.425.0",
78
78
  "@salesforce/lds-adapters-uiapi-lex": "^1.415.0",
79
- "@salesforce/lds-durable-storage": "^1.424.0",
80
- "@salesforce/lds-luvio-service": "^1.424.0",
81
- "@salesforce/lds-luvio-uiapi-records-service": "^1.424.0"
79
+ "@salesforce/lds-durable-storage": "^1.425.0",
80
+ "@salesforce/lds-luvio-service": "^1.425.0",
81
+ "@salesforce/lds-luvio-uiapi-records-service": "^1.425.0"
82
82
  },
83
83
  "luvioBundlesize": [
84
84
  {