@lwrjs/core 0.9.0-alpha.4 → 0.9.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.
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.9.0-alpha.4",
7
+ "version": "0.9.0-alpha.6",
8
8
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
@@ -23,6 +23,10 @@
23
23
  "import": "./build/es/index.js",
24
24
  "require": "./build/cjs/index.cjs"
25
25
  },
26
+ "./middleware": {
27
+ "import": "./build/es/middleware.js",
28
+ "require": "./build/cjs/middleware.cjs"
29
+ },
26
30
  "./package": "./package.cjs"
27
31
  },
28
32
  "files": [
@@ -32,32 +36,33 @@
32
36
  "package.cjs"
33
37
  ],
34
38
  "dependencies": {
35
- "@lwrjs/app-service": "0.9.0-alpha.4",
36
- "@lwrjs/asset-registry": "0.9.0-alpha.4",
37
- "@lwrjs/asset-transformer": "0.9.0-alpha.4",
38
- "@lwrjs/base-template-engine": "0.9.0-alpha.4",
39
- "@lwrjs/base-view-provider": "0.9.0-alpha.4",
40
- "@lwrjs/base-view-transformer": "0.9.0-alpha.4",
41
- "@lwrjs/client-modules": "0.9.0-alpha.4",
42
- "@lwrjs/compiler": "0.9.0-alpha.4",
43
- "@lwrjs/config": "0.9.0-alpha.4",
44
- "@lwrjs/diagnostics": "0.9.0-alpha.4",
45
- "@lwrjs/fs-asset-provider": "0.9.0-alpha.4",
46
- "@lwrjs/html-view-provider": "0.9.0-alpha.4",
47
- "@lwrjs/loader": "0.9.0-alpha.4",
48
- "@lwrjs/lwc-module-provider": "0.9.0-alpha.4",
49
- "@lwrjs/lwc-ssr": "0.9.0-alpha.4",
50
- "@lwrjs/markdown-view-provider": "0.9.0-alpha.4",
51
- "@lwrjs/module-bundler": "0.9.0-alpha.4",
52
- "@lwrjs/module-registry": "0.9.0-alpha.4",
53
- "@lwrjs/npm-module-provider": "0.9.0-alpha.4",
54
- "@lwrjs/nunjucks-view-provider": "0.9.0-alpha.4",
55
- "@lwrjs/o11y": "0.9.0-alpha.4",
56
- "@lwrjs/resource-registry": "0.9.0-alpha.4",
57
- "@lwrjs/router": "0.9.0-alpha.4",
58
- "@lwrjs/server": "0.9.0-alpha.4",
59
- "@lwrjs/shared-utils": "0.9.0-alpha.4",
60
- "@lwrjs/view-registry": "0.9.0-alpha.4",
39
+ "@lwrjs/app-service": "0.9.0-alpha.6",
40
+ "@lwrjs/asset-registry": "0.9.0-alpha.6",
41
+ "@lwrjs/asset-transformer": "0.9.0-alpha.6",
42
+ "@lwrjs/base-template-engine": "0.9.0-alpha.6",
43
+ "@lwrjs/base-view-provider": "0.9.0-alpha.6",
44
+ "@lwrjs/base-view-transformer": "0.9.0-alpha.6",
45
+ "@lwrjs/client-modules": "0.9.0-alpha.6",
46
+ "@lwrjs/compiler": "0.9.0-alpha.6",
47
+ "@lwrjs/config": "0.9.0-alpha.6",
48
+ "@lwrjs/diagnostics": "0.9.0-alpha.6",
49
+ "@lwrjs/fs-asset-provider": "0.9.0-alpha.6",
50
+ "@lwrjs/html-view-provider": "0.9.0-alpha.6",
51
+ "@lwrjs/loader": "0.9.0-alpha.6",
52
+ "@lwrjs/lwc-module-provider": "0.9.0-alpha.6",
53
+ "@lwrjs/lwc-ssr": "0.9.0-alpha.6",
54
+ "@lwrjs/markdown-view-provider": "0.9.0-alpha.6",
55
+ "@lwrjs/module-bundler": "0.9.0-alpha.6",
56
+ "@lwrjs/module-registry": "0.9.0-alpha.6",
57
+ "@lwrjs/npm-module-provider": "0.9.0-alpha.6",
58
+ "@lwrjs/nunjucks-view-provider": "0.9.0-alpha.6",
59
+ "@lwrjs/o11y": "0.9.0-alpha.6",
60
+ "@lwrjs/resource-registry": "0.9.0-alpha.6",
61
+ "@lwrjs/router": "0.9.0-alpha.6",
62
+ "@lwrjs/server": "0.9.0-alpha.6",
63
+ "@lwrjs/shared-utils": "0.9.0-alpha.6",
64
+ "@lwrjs/view-registry": "0.9.0-alpha.6",
65
+ "esbuild": "^0.9.7",
61
66
  "fs-extra": "^10.1.0",
62
67
  "ms": "^2.1.3",
63
68
  "path-to-regexp": "^6.2.0",
@@ -65,7 +70,7 @@
65
70
  "ws": "^8.8.1"
66
71
  },
67
72
  "devDependencies": {
68
- "@lwrjs/types": "0.9.0-alpha.4",
73
+ "@lwrjs/types": "0.9.0-alpha.6",
69
74
  "@types/ws": "^8.5.3"
70
75
  },
71
76
  "peerDependencies": {
@@ -74,5 +79,5 @@
74
79
  "engines": {
75
80
  "node": ">=14.15.4 <19"
76
81
  },
77
- "gitHead": "cb4f98fad4279ac953edec73f3e28996e2523c67"
82
+ "gitHead": "c58b9a1249e8fd3e19656be7d75020f005d3a3e6"
78
83
  }
@@ -1,9 +0,0 @@
1
- import { NormalizedLwrGlobalConfig, RuntimeEnvironment, GlobalData, HooksPlugin } from '@lwrjs/types';
2
- interface Configurations {
3
- lwrConfig: NormalizedLwrGlobalConfig;
4
- dataConfig: GlobalData;
5
- runtimeConfig: RuntimeEnvironment;
6
- }
7
- export declare function runConfigurationsHook(hookPlugins: HooksPlugin[], lwrConfig: NormalizedLwrGlobalConfig, dataConfig: GlobalData, runtimeConfig: RuntimeEnvironment): Promise<Configurations>;
8
- export {};
9
- //# sourceMappingURL=hooks.d.ts.map
@@ -1,36 +0,0 @@
1
- import { DEFAULT_LWR_BOOTSTRAP_CONFIG, logger } from '@lwrjs/shared-utils';
2
- import { validateLwrAppConfig } from '@lwrjs/config';
3
- // Add missing bootstrap objects to routes
4
- function normalizeRoutesBootstrap({ routes, errorRoutes }) {
5
- [...routes, ...errorRoutes].forEach((route) => {
6
- if (!route.bootstrap) {
7
- route.bootstrap = { ...DEFAULT_LWR_BOOTSTRAP_CONFIG };
8
- }
9
- });
10
- }
11
- export async function runConfigurationsHook(hookPlugins, lwrConfig, dataConfig, runtimeConfig) {
12
- for (const hookPlugin of hookPlugins) {
13
- // eslint-disable-next-line no-await-in-loop
14
- await hookPlugin.initConfigs(lwrConfig, dataConfig, runtimeConfig);
15
- }
16
- try {
17
- validateLwrAppConfig(JSON.stringify(lwrConfig), 'post');
18
- }
19
- catch (e) {
20
- // TODO: temporary workaround for https://github.com/salesforce/lwr/issues/825
21
- if (process.env.UNSAFE_IGNORE_CONFIG_VALIDATION === 'true') {
22
- logger.warn('ignoring config validation errors due to UNSAFE_IGNORE_CONFIG_VALIDATION flag...proceed with caution');
23
- console.dir(e, { depth: null });
24
- }
25
- else {
26
- throw e;
27
- }
28
- }
29
- normalizeRoutesBootstrap(lwrConfig);
30
- return {
31
- lwrConfig,
32
- dataConfig,
33
- runtimeConfig,
34
- };
35
- }
36
- //# sourceMappingURL=hooks.js.map