@lwrjs/static 0.19.0-alpha.5 → 0.19.0-alpha.6
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.
|
@@ -125,7 +125,7 @@ var DecisionTreeImpl = class {
|
|
|
125
125
|
const versions = versionChoice === CHOICE_EMPTY ? [...new Set([CHOICE_EMPTY, CHOICE_WILDCARD])] : [...new Set([versionChoice, CHOICE_EMPTY])];
|
|
126
126
|
const envChoice = debug ? [CHOICE_DEBUG] : [CHOICE_PROD];
|
|
127
127
|
const ssrChoice = match.variants[import_shared_utils.SSR_SIGIL] || CHOICE_EMPTY;
|
|
128
|
-
const ssr = (0, import_shared_utils.getFeatureFlags)().SSR_COMPILER_ENABLED ? [ssrChoice] :
|
|
128
|
+
const ssr = (0, import_shared_utils.getFeatureFlags)().SSR_COMPILER_ENABLED ? [ssrChoice] : match.variants[import_shared_utils.SSR_SIGIL] ? [CHOICE_TRUE, CHOICE_EMPTY] : [CHOICE_EMPTY, CHOICE_TRUE];
|
|
129
129
|
const localeChoice = match.variants[import_shared_utils.LOCALE_SIGIL];
|
|
130
130
|
const localeId = localeFallbacks?.[localeChoice] ?? [CHOICE_WILDCARD];
|
|
131
131
|
return this.getOrderedChoices([specifier], envChoice, ssr, versions, localeId);
|
|
@@ -16,7 +16,7 @@ export default class DecisionTreeImpl<Artifact extends SiteArtifact> implements
|
|
|
16
16
|
private deepInsert;
|
|
17
17
|
find(siteArtifactId: string, debug?: boolean, ssr?: boolean, localeId?: string): Artifact | undefined;
|
|
18
18
|
/**
|
|
19
|
-
* Create a decision tree
|
|
19
|
+
* Create a decision tree path to look up the most appropriate bundle
|
|
20
20
|
*
|
|
21
21
|
* @param specifier Bundle specifier
|
|
22
22
|
* @param version known version or will add the choice ''
|
|
@@ -119,7 +119,7 @@ export default class DecisionTreeImpl {
|
|
|
119
119
|
return currentNode.artifact;
|
|
120
120
|
}
|
|
121
121
|
/**
|
|
122
|
-
* Create a decision tree
|
|
122
|
+
* Create a decision tree path to look up the most appropriate bundle
|
|
123
123
|
*
|
|
124
124
|
* @param specifier Bundle specifier
|
|
125
125
|
* @param version known version or will add the choice ''
|
|
@@ -162,9 +162,10 @@ export default class DecisionTreeImpl {
|
|
|
162
162
|
const ssrChoice = match.variants[SSR_SIGIL] || CHOICE_EMPTY;
|
|
163
163
|
const ssr = getFeatureFlags().SSR_COMPILER_ENABLED
|
|
164
164
|
? [ssrChoice]
|
|
165
|
-
:
|
|
166
|
-
|
|
167
|
-
|
|
165
|
+
: // For SSR V1 |ssr will prefer true non ssr will prefer empty
|
|
166
|
+
match.variants[SSR_SIGIL]
|
|
167
|
+
? [CHOICE_TRUE, CHOICE_EMPTY]
|
|
168
|
+
: [CHOICE_EMPTY, CHOICE_TRUE];
|
|
168
169
|
const localeChoice = match.variants[LOCALE_SIGIL];
|
|
169
170
|
// If there are no fallbacks, or localeChoice is not in fallbacks use the ['*'] wildcard choice
|
|
170
171
|
const localeId = localeFallbacks?.[localeChoice] ?? [CHOICE_WILDCARD];
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.19.0-alpha.
|
|
7
|
+
"version": "0.19.0-alpha.6",
|
|
8
8
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -56,13 +56,13 @@
|
|
|
56
56
|
"build/**/*.d.ts"
|
|
57
57
|
],
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@lwrjs/diagnostics": "0.19.0-alpha.
|
|
60
|
-
"@lwrjs/instrumentation": "0.19.0-alpha.
|
|
61
|
-
"@lwrjs/shared-utils": "0.19.0-alpha.
|
|
59
|
+
"@lwrjs/diagnostics": "0.19.0-alpha.6",
|
|
60
|
+
"@lwrjs/instrumentation": "0.19.0-alpha.6",
|
|
61
|
+
"@lwrjs/shared-utils": "0.19.0-alpha.6",
|
|
62
62
|
"lru-cache": "^10.4.3"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@lwrjs/types": "0.19.0-alpha.
|
|
65
|
+
"@lwrjs/types": "0.19.0-alpha.6",
|
|
66
66
|
"@types/express": "^4.17.21",
|
|
67
67
|
"jest": "29.7.0",
|
|
68
68
|
"jest-express": "^1.12.0",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"volta": {
|
|
77
77
|
"extends": "../../../package.json"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "25933a335c7f2f6ebc39381feda5f47e07e43faa"
|
|
80
80
|
}
|