@lwrjs/types 0.12.0-alpha.12 → 0.12.0-alpha.14

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/config.d.ts CHANGED
@@ -243,6 +243,9 @@ export interface InterchangeableModuleRecord {
243
243
  [target: string]: string;
244
244
  };
245
245
  }
246
+ export interface Instrumentation {
247
+ flush(): void;
248
+ }
246
249
  export interface HooksPlugin {
247
250
  /**
248
251
  * Programmatically modify application and runtime configurations.
@@ -269,7 +272,7 @@ export interface HooksPlugin {
269
272
  * - When running LWR server, these hooks are invoked after `initConfigs` hooks and before `onStart` hooks
270
273
  * - When running LWR handler, these hooks are invoked before config normalization and `onStart` hooks
271
274
  */
272
- initInstrumentation?: () => void;
275
+ initInstrumentation?: () => Instrumentation;
273
276
  /**
274
277
  * Set a subset of LWR Configuration at runtime. Works in mrt
275
278
  *
@@ -8,6 +8,14 @@ interface LwrShim {
8
8
  getResourceProviders(context: Partial<ProviderContext>): ResourceProvider[];
9
9
  getViewProviders(context: Partial<ProviderContext>): ViewProvider[];
10
10
  getViewTransformers(context: Partial<ProviderContext>): ViewTransformPlugin[];
11
+ env: GlobalThisEnvironment;
12
+ }
13
+ export interface GlobalThisEnvironment {
14
+ SSR: string | undefined;
15
+ basePath: string | undefined;
16
+ locale: string | undefined;
17
+ assetBasePath: string | undefined;
18
+ uiBasePath: string | undefined;
11
19
  }
12
20
  declare global {
13
21
  const LWR: LwrShim | undefined;
package/build/server.d.ts CHANGED
@@ -34,7 +34,6 @@ export interface InternalAppServer<T extends ServerTypes> {
34
34
  initRoutes(): void;
35
35
  getRegexWildcard(): string;
36
36
  }
37
- export type PublicAppServer<T extends ServerTypes> = Pick<InternalAppServer<T>, 'use' | 'all' | 'get' | 'post' | 'getRegexWildcard'>;
38
37
  export type InternalAppServerOptions = {
39
38
  app?: ServerTypeImpl<ServerTypes>;
40
39
  basePath?: 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.12",
11
+ "version": "0.12.0-alpha.14",
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": "bc8a88bce246e9ec00641955152de526ea030ebb"
32
+ "gitHead": "ef27c4a463498992b66b7b668e7be6e318f9c8a1"
33
33
  }