@lwrjs/types 0.12.0-alpha.10 → 0.12.0-alpha.11

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.
Files changed (2) hide show
  1. package/build/config.d.ts +10 -1
  2. package/package.json +2 -2
package/build/config.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { AssetProvider, AssetTransformPlugin, BundleProvider, CacheResponse, LwrService, ModuleProvider, RenderOptions, ResourceProvider, RouteHandlerViewResponse, RuntimeEnvironment, ServerTypes, ServiceCtor, Specifier, UriTransformPlugin, ViewParams, ViewProvider, ViewRequest, ViewResponse, ViewTransformPlugin } from './index';
1
+ import type { AssetProvider, AssetTransformPlugin, BundleProvider, CacheResponse, LwrService, ModuleProvider, RenderOptions, ResourceProvider, RouteHandlerViewResponse, RuntimeEnvironment, ServerContext, ServerTypes, ServiceCtor, Specifier, UriTransformPlugin, ViewParams, ViewProvider, ViewRequest, ViewResponse, ViewTransformPlugin } from './index';
2
2
  export interface View {
3
3
  id: string;
4
4
  rootComponent?: string;
@@ -281,6 +281,15 @@ export interface HooksPlugin {
281
281
  * For the `createHandler` runtime, these hooks are invoked during server context initialization.
282
282
  */
283
283
  onStart?: (config: OnStartConfig) => void;
284
+ /**
285
+ *
286
+ * Attach instantiated route handlers, providers, and transformers directly to the server context.
287
+ *
288
+ * @remarks
289
+ * This is a temporary hook to enable a tactical solution for LWR@MRT local development
290
+ *
291
+ */
292
+ setupServerContext?: (context: ServerContext, startHooks: HooksPlugin[]) => Promise<void> | void;
284
293
  }
285
294
  export interface Locale {
286
295
  id: string;
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "build": "tsc -b"
9
9
  },
10
10
  "type": "module",
11
- "version": "0.12.0-alpha.10",
11
+ "version": "0.12.0-alpha.11",
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": "36759959f624aa40d371dc9ee698dd472813f19c"
32
+ "gitHead": "781951a5ef92ce735cbffce7c7a2a32c60bd3c16"
33
33
  }