@lwrjs/view-registry 0.13.0-alpha.21 → 0.13.0-alpha.23
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/build/cjs/index.cjs +2 -1
- package/build/es/index.js +2 -1
- package/package.json +7 -7
package/build/cjs/index.cjs
CHANGED
|
@@ -209,7 +209,8 @@ var LwrViewRegistry = class {
|
|
|
209
209
|
viewDefinition.nonce = (0, import_utils.getViewNonce)(updatableViewParams);
|
|
210
210
|
if (cacheDisabled === false) {
|
|
211
211
|
const route = this.globalConfig.routes.find((r) => r.id === view.id);
|
|
212
|
-
const
|
|
212
|
+
const maxViewCacheTtl = (0, import_shared_utils.getFeatureFlags)().MAX_VIEW_CACHE_TTL;
|
|
213
|
+
const maxTtl = maxViewCacheTtl && parseInt(maxViewCacheTtl, 10);
|
|
213
214
|
const ttl = (0, import_shared_utils.shortestTtl)(viewDefinition.cache?.ttl, route?.cache?.ttl, maxTtl);
|
|
214
215
|
if (ttl !== 0) {
|
|
215
216
|
this.viewDefinitions.set(viewDefCacheKey, {
|
package/build/es/index.js
CHANGED
|
@@ -216,8 +216,9 @@ export class LwrViewRegistry {
|
|
|
216
216
|
viewDefinition.nonce = getViewNonce(updatableViewParams);
|
|
217
217
|
if (cacheDisabled === false) {
|
|
218
218
|
const route = this.globalConfig.routes.find((r) => r.id === view.id);
|
|
219
|
+
const maxViewCacheTtl = getFeatureFlags().MAX_VIEW_CACHE_TTL;
|
|
219
220
|
// optionally set a max TTL on the view registry cache
|
|
220
|
-
const maxTtl =
|
|
221
|
+
const maxTtl = maxViewCacheTtl && parseInt(maxViewCacheTtl, 10);
|
|
221
222
|
const ttl = shortestTtl(viewDefinition.cache?.ttl, route?.cache?.ttl, maxTtl);
|
|
222
223
|
if (ttl !== 0) {
|
|
223
224
|
// cache view definition for the shortest ttl or until it is the least recently used when ttl is undefined
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.13.0-alpha.
|
|
7
|
+
"version": "0.13.0-alpha.23",
|
|
8
8
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -33,17 +33,17 @@
|
|
|
33
33
|
"build": "tsc -b"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@lwrjs/app-service": "0.13.0-alpha.
|
|
37
|
-
"@lwrjs/diagnostics": "0.13.0-alpha.
|
|
38
|
-
"@lwrjs/instrumentation": "0.13.0-alpha.
|
|
39
|
-
"@lwrjs/shared-utils": "0.13.0-alpha.
|
|
36
|
+
"@lwrjs/app-service": "0.13.0-alpha.23",
|
|
37
|
+
"@lwrjs/diagnostics": "0.13.0-alpha.23",
|
|
38
|
+
"@lwrjs/instrumentation": "0.13.0-alpha.23",
|
|
39
|
+
"@lwrjs/shared-utils": "0.13.0-alpha.23",
|
|
40
40
|
"lru-cache": "^10.2.2"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@lwrjs/types": "0.13.0-alpha.
|
|
43
|
+
"@lwrjs/types": "0.13.0-alpha.23"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|
|
46
46
|
"node": ">=18.0.0"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "7c01d905fc988ca06c013c53d4a4104648d92667"
|
|
49
49
|
}
|