@lwrjs/view-registry 0.22.1 → 0.22.2
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/es/index.js +11 -25
- package/build/es/view-handler.js +0 -4
- package/package.json +8 -8
package/build/es/index.js
CHANGED
|
@@ -9,31 +9,18 @@ import { createHash } from 'crypto';
|
|
|
9
9
|
import { LwrError, LwrServerError, descriptions, logger } from '@lwrjs/diagnostics';
|
|
10
10
|
export { LwrViewHandler } from './view-handler.js';
|
|
11
11
|
export class LwrViewRegistry {
|
|
12
|
-
name;
|
|
13
|
-
viewProviders = [];
|
|
14
|
-
// Cache of compiled views retrieved from the viewProviders
|
|
15
|
-
// Cache key: ViewIdentity
|
|
16
|
-
compiledViews = new Map();
|
|
17
|
-
// Cache of linked view definitions, keyed by the View
|
|
18
|
-
// Cache key: View
|
|
19
|
-
viewDefinitions;
|
|
20
|
-
resourceRegistry;
|
|
21
|
-
moduleRegistry;
|
|
22
|
-
moduleBundler;
|
|
23
|
-
assetRegistry;
|
|
24
|
-
globalConfig;
|
|
25
|
-
appEmitter;
|
|
26
|
-
globalData;
|
|
27
|
-
runtimeEnvironment;
|
|
28
|
-
immutableAssets = new Map();
|
|
29
|
-
viewTransformers;
|
|
30
|
-
// Cache of unresolved view definitions
|
|
31
|
-
// Cache key: View + View Params
|
|
32
|
-
//
|
|
33
|
-
// Pending view definitions are tracked to prevent concurrent resolution of the same view.
|
|
34
|
-
// Subsequent requests for the same view will await the original promise.
|
|
35
|
-
pendingViewDefinitions = new InflightTasks();
|
|
36
12
|
constructor(context, globalConfig) {
|
|
13
|
+
this.viewProviders = [];
|
|
14
|
+
// Cache of compiled views retrieved from the viewProviders
|
|
15
|
+
// Cache key: ViewIdentity
|
|
16
|
+
this.compiledViews = new Map();
|
|
17
|
+
this.immutableAssets = new Map();
|
|
18
|
+
// Cache of unresolved view definitions
|
|
19
|
+
// Cache key: View + View Params
|
|
20
|
+
//
|
|
21
|
+
// Pending view definitions are tracked to prevent concurrent resolution of the same view.
|
|
22
|
+
// Subsequent requests for the same view will await the original promise.
|
|
23
|
+
this.pendingViewDefinitions = new InflightTasks();
|
|
37
24
|
this.name = 'lwr-view-registry';
|
|
38
25
|
this.resourceRegistry = context.resourceRegistry;
|
|
39
26
|
this.runtimeEnvironment = context.runtimeEnvironment;
|
|
@@ -369,7 +356,6 @@ export class LwrViewRegistry {
|
|
|
369
356
|
...normalizedResult,
|
|
370
357
|
};
|
|
371
358
|
}
|
|
372
|
-
metadataCache;
|
|
373
359
|
async link(renderedView, viewContext) {
|
|
374
360
|
const { view, viewParams, runtimeEnvironment: runtimeEnv, runtimeParams, renderOptions, contentIds, importer, viewCacheKey, } = viewContext;
|
|
375
361
|
const { skipMetadataCollection, freezeAssets } = renderOptions;
|
package/build/es/view-handler.js
CHANGED
|
@@ -4,10 +4,6 @@ import { getTracer, ViewSpan } from '@lwrjs/instrumentation';
|
|
|
4
4
|
import { generateHtmlTag, generateLinkHeaders, generatePageContext, isViewResponse, isViewDefinitionResponse, toJsonFormat, } from './utils.js';
|
|
5
5
|
import { LwrApplicationError, LwrError, descriptions } from '@lwrjs/diagnostics';
|
|
6
6
|
export class LwrViewHandler {
|
|
7
|
-
globalConfig;
|
|
8
|
-
routeHandlers;
|
|
9
|
-
viewRegistry;
|
|
10
|
-
moduleRegistry;
|
|
11
7
|
constructor(context, globalConfig) {
|
|
12
8
|
this.globalConfig = globalConfig;
|
|
13
9
|
this.routeHandlers = context.routeHandlers;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.22.
|
|
7
|
+
"version": "0.22.2",
|
|
8
8
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
"build": "tsc -b"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@lwrjs/app-service": "0.22.
|
|
37
|
-
"@lwrjs/config": "0.22.
|
|
38
|
-
"@lwrjs/diagnostics": "0.22.
|
|
39
|
-
"@lwrjs/instrumentation": "0.22.
|
|
40
|
-
"@lwrjs/shared-utils": "0.22.
|
|
36
|
+
"@lwrjs/app-service": "0.22.2",
|
|
37
|
+
"@lwrjs/config": "0.22.2",
|
|
38
|
+
"@lwrjs/diagnostics": "0.22.2",
|
|
39
|
+
"@lwrjs/instrumentation": "0.22.2",
|
|
40
|
+
"@lwrjs/shared-utils": "0.22.2",
|
|
41
41
|
"lru-cache": "^10.4.3"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@lwrjs/types": "0.22.
|
|
44
|
+
"@lwrjs/types": "0.22.2"
|
|
45
45
|
},
|
|
46
46
|
"engines": {
|
|
47
47
|
"node": ">=22.0.0"
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"volta": {
|
|
50
50
|
"extends": "../../../package.json"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "30870e466e15e6691d238e75836e9266a45203e3"
|
|
53
53
|
}
|