@lwrjs/types 0.15.0-alpha.44 → 0.15.0-alpha.46
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/index.d.ts +4 -2
- package/build/views.d.ts +8 -8
- package/package.json +2 -2
package/build/index.d.ts
CHANGED
|
@@ -169,17 +169,19 @@ export interface ServerModeConfig {
|
|
|
169
169
|
};
|
|
170
170
|
featureFlags: FeatureFlags;
|
|
171
171
|
}
|
|
172
|
-
export interface FeatureFlags extends Record<string, boolean | string | undefined> {
|
|
172
|
+
export interface FeatureFlags extends Record<string, boolean | string | Record<string, string> | undefined> {
|
|
173
173
|
ASSETS_ON_LAMBDA?: boolean;
|
|
174
|
+
BUNDLE_CACHE_SIZE?: string;
|
|
174
175
|
LEGACY_LOADER?: boolean;
|
|
175
|
-
SSR_STATIC_BUNDLES?: boolean;
|
|
176
176
|
SSR_WITH_CSR_FALLBACK?: boolean;
|
|
177
177
|
EXPERIMENTAL_UNVERSIONED_ALIASES?: boolean;
|
|
178
178
|
ENABLE_NONCE?: boolean;
|
|
179
179
|
MAX_VIEW_CACHE_TTL?: string;
|
|
180
180
|
REEVALUATE_MODULES?: boolean;
|
|
181
181
|
SSR_LOADER_PER_REQUEST?: boolean;
|
|
182
|
+
EXPERIMENTAL_ASSET_HEADERS?: string;
|
|
182
183
|
SSR_COMPILER_ENABLED?: boolean;
|
|
184
|
+
VIEW_CACHE_SIZE?: string;
|
|
183
185
|
}
|
|
184
186
|
export interface RuntimeEnvironment extends ServerModeConfig {
|
|
185
187
|
apiVersion: string;
|
package/build/views.d.ts
CHANGED
|
@@ -19,14 +19,14 @@ export interface CompiledView extends ViewSource {
|
|
|
19
19
|
render: (context: any, runtimeEnvironment: RuntimeEnvironment) => Promise<RenderingResult>;
|
|
20
20
|
}
|
|
21
21
|
export type NormalizedRenderingResult = Required<Pick<RenderingResult, 'renderedView' | 'metadata' | 'options' | 'cache'>> & {
|
|
22
|
-
|
|
22
|
+
status?: SsrStatus;
|
|
23
23
|
};
|
|
24
24
|
export interface RenderingResult {
|
|
25
25
|
renderedView: string;
|
|
26
26
|
metadata?: RenderedViewMetadata;
|
|
27
27
|
options?: RenderOptions;
|
|
28
28
|
cache?: CacheResponse;
|
|
29
|
-
|
|
29
|
+
status?: SsrStatus;
|
|
30
30
|
}
|
|
31
31
|
export interface RenderedView extends NormalizedRenderingResult {
|
|
32
32
|
compiledView: CompiledView;
|
|
@@ -87,7 +87,7 @@ export interface LinkedViewDefinition {
|
|
|
87
87
|
viewRecord: RenderedViewRecord;
|
|
88
88
|
immutable: boolean;
|
|
89
89
|
cache?: CacheResponse;
|
|
90
|
-
|
|
90
|
+
status?: SsrStatus;
|
|
91
91
|
nonce?: string;
|
|
92
92
|
}
|
|
93
93
|
export interface ViewRequestQs {
|
|
@@ -152,7 +152,7 @@ type ViewPluginLinkHook = (builder: LwrStringBuilder, viewContext: ViewTransform
|
|
|
152
152
|
type ViewPluginLinkHookReturn = void | null | undefined | false | LwrStringBuilder | {
|
|
153
153
|
builder?: LwrStringBuilder;
|
|
154
154
|
cache?: CacheResponse;
|
|
155
|
-
|
|
155
|
+
status?: SsrStatus;
|
|
156
156
|
serverBundles?: Set<BundleDefinition>;
|
|
157
157
|
};
|
|
158
158
|
type ViewPluginOptimizeHook = (code: string, assetSource: AssetSource) => Promise<ViewPluginOptimizeHookReturn>;
|
|
@@ -258,11 +258,11 @@ export interface SsrDataResponse {
|
|
|
258
258
|
}[];
|
|
259
259
|
};
|
|
260
260
|
cache?: CacheResponse;
|
|
261
|
-
|
|
261
|
+
status?: SsrStatus;
|
|
262
262
|
}
|
|
263
|
-
export interface
|
|
264
|
-
|
|
265
|
-
location
|
|
263
|
+
export interface SsrStatus {
|
|
264
|
+
code: 301 | 302 | 429 | 503;
|
|
265
|
+
location?: string;
|
|
266
266
|
}
|
|
267
267
|
export interface DirectToCoreProxy {
|
|
268
268
|
origin: string;
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"build": "tsc -b"
|
|
9
9
|
},
|
|
10
10
|
"type": "module",
|
|
11
|
-
"version": "0.15.0-alpha.
|
|
11
|
+
"version": "0.15.0-alpha.46",
|
|
12
12
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"engines": {
|
|
30
30
|
"node": ">=18.0.0"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "366b77f76c34626c9449da0042766fc107cc6b8f"
|
|
33
33
|
}
|