@lwrjs/core 0.9.0-alpha.21 → 0.9.0-alpha.23
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/cjs/index.cjs +2 -1
- package/build/cjs/middleware/hmr-middleware.cjs +2 -2
- package/build/cjs/tools/static-generation.cjs +1 -1
- package/build/es/index.js +2 -1
- package/build/es/middleware/hmr-middleware.js +2 -2
- package/build/es/tools/static-generation.js +1 -1
- package/package.json +26 -26
package/build/cjs/index.cjs
CHANGED
|
@@ -65,7 +65,8 @@ function createServices(entries, providerContext) {
|
|
|
65
65
|
async function initContext(appConfig, runtimeEnvironment, globalData) {
|
|
66
66
|
const hooks = await (0, import_modules.loadHooks)(appConfig);
|
|
67
67
|
if (hooks.length) {
|
|
68
|
-
|
|
68
|
+
const skipValidation = true;
|
|
69
|
+
await (0, import_config.executeConfigHooks)(hooks, appConfig, runtimeEnvironment, globalData, skipValidation);
|
|
69
70
|
(0, import_config.executeStartHooks)(hooks, appConfig);
|
|
70
71
|
}
|
|
71
72
|
const services = await (0, import_modules.loadServices)(appConfig);
|
|
@@ -86,8 +86,8 @@ var Hmr = class {
|
|
|
86
86
|
version
|
|
87
87
|
};
|
|
88
88
|
const modulesCacheId = (0, import_shared_utils.getCacheKeyFromJson)({format, compat, debug});
|
|
89
|
-
const newUri = moduleRegistry.
|
|
90
|
-
const oldUri = moduleRegistry.
|
|
89
|
+
const newUri = moduleRegistry.resolveModuleUriSync(moduleId, signature, runtimeEnvironment, runtimeParams);
|
|
90
|
+
const oldUri = moduleRegistry.resolveModuleUriSync(moduleId, "latest", runtimeEnvironment, runtimeParams);
|
|
91
91
|
if (this.connectedClients) {
|
|
92
92
|
for (const [ws, cacheId] of this.connectedClients) {
|
|
93
93
|
if (cacheId === modulesCacheId) {
|
|
@@ -178,7 +178,7 @@ var SiteGenerator = class {
|
|
|
178
178
|
addBundleToSiteMetadata(bundleDefinition, url, siteConfig) {
|
|
179
179
|
if (siteConfig.siteMetadata) {
|
|
180
180
|
const specifier = bundleDefinition.specifier;
|
|
181
|
-
const imports = bundleDefinition.bundleRecord.imports?.map((moduleRef) =>
|
|
181
|
+
const imports = bundleDefinition.bundleRecord.imports?.map((moduleRef) => (0, import_shared_utils.getSpecifier)(moduleRef)) || [];
|
|
182
182
|
const bundleMetadata = {
|
|
183
183
|
version: bundleDefinition.version,
|
|
184
184
|
path: decodeURIComponent(url),
|
package/build/es/index.js
CHANGED
|
@@ -42,7 +42,8 @@ async function initContext(appConfig, runtimeEnvironment, globalData) {
|
|
|
42
42
|
const hooks = await loadHooks(appConfig);
|
|
43
43
|
// apply both config and on start hooks
|
|
44
44
|
if (hooks.length) {
|
|
45
|
-
|
|
45
|
+
const skipValidation = true; // skip for config hook, since `executeStartHooks` hook will validate
|
|
46
|
+
await executeConfigHooks(hooks, appConfig, runtimeEnvironment, globalData, skipValidation);
|
|
46
47
|
executeStartHooks(hooks, appConfig);
|
|
47
48
|
}
|
|
48
49
|
// load all configurable modules
|
|
@@ -52,8 +52,8 @@ class Hmr {
|
|
|
52
52
|
version,
|
|
53
53
|
};
|
|
54
54
|
const modulesCacheId = getCacheKeyFromJson({ format, compat, debug });
|
|
55
|
-
const newUri = moduleRegistry.
|
|
56
|
-
const oldUri = moduleRegistry.
|
|
55
|
+
const newUri = moduleRegistry.resolveModuleUriSync(moduleId, signature, runtimeEnvironment, runtimeParams);
|
|
56
|
+
const oldUri = moduleRegistry.resolveModuleUriSync(moduleId, 'latest', runtimeEnvironment, runtimeParams);
|
|
57
57
|
if (this.connectedClients) {
|
|
58
58
|
for (const [ws, cacheId] of this.connectedClients) {
|
|
59
59
|
if (cacheId === modulesCacheId) {
|
|
@@ -231,7 +231,7 @@ export default class SiteGenerator {
|
|
|
231
231
|
addBundleToSiteMetadata(bundleDefinition, url, siteConfig) {
|
|
232
232
|
if (siteConfig.siteMetadata) {
|
|
233
233
|
const specifier = bundleDefinition.specifier;
|
|
234
|
-
const imports = bundleDefinition.bundleRecord.imports?.map((moduleRef) => moduleRef
|
|
234
|
+
const imports = bundleDefinition.bundleRecord.imports?.map((moduleRef) => getSpecifier(moduleRef)) || [];
|
|
235
235
|
const bundleMetadata = {
|
|
236
236
|
version: bundleDefinition.version,
|
|
237
237
|
path: decodeURIComponent(url),
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.9.0-alpha.
|
|
7
|
+
"version": "0.9.0-alpha.23",
|
|
8
8
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -37,29 +37,29 @@
|
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@locker/compiler": "0.18.9",
|
|
40
|
-
"@lwrjs/app-service": "0.9.0-alpha.
|
|
41
|
-
"@lwrjs/asset-registry": "0.9.0-alpha.
|
|
42
|
-
"@lwrjs/asset-transformer": "0.9.0-alpha.
|
|
43
|
-
"@lwrjs/base-view-provider": "0.9.0-alpha.
|
|
44
|
-
"@lwrjs/base-view-transformer": "0.9.0-alpha.
|
|
45
|
-
"@lwrjs/client-modules": "0.9.0-alpha.
|
|
46
|
-
"@lwrjs/config": "0.9.0-alpha.
|
|
47
|
-
"@lwrjs/diagnostics": "0.9.0-alpha.
|
|
48
|
-
"@lwrjs/fs-asset-provider": "0.9.0-alpha.
|
|
49
|
-
"@lwrjs/html-view-provider": "0.9.0-alpha.
|
|
50
|
-
"@lwrjs/loader": "0.9.0-alpha.
|
|
51
|
-
"@lwrjs/lwc-module-provider": "0.9.0-alpha.
|
|
52
|
-
"@lwrjs/markdown-view-provider": "0.9.0-alpha.
|
|
53
|
-
"@lwrjs/module-bundler": "0.9.0-alpha.
|
|
54
|
-
"@lwrjs/module-registry": "0.9.0-alpha.
|
|
55
|
-
"@lwrjs/npm-module-provider": "0.9.0-alpha.
|
|
56
|
-
"@lwrjs/nunjucks-view-provider": "0.9.0-alpha.
|
|
57
|
-
"@lwrjs/o11y": "0.9.0-alpha.
|
|
58
|
-
"@lwrjs/resource-registry": "0.9.0-alpha.
|
|
59
|
-
"@lwrjs/router": "0.9.0-alpha.
|
|
60
|
-
"@lwrjs/server": "0.9.0-alpha.
|
|
61
|
-
"@lwrjs/shared-utils": "0.9.0-alpha.
|
|
62
|
-
"@lwrjs/view-registry": "0.9.0-alpha.
|
|
40
|
+
"@lwrjs/app-service": "0.9.0-alpha.23",
|
|
41
|
+
"@lwrjs/asset-registry": "0.9.0-alpha.23",
|
|
42
|
+
"@lwrjs/asset-transformer": "0.9.0-alpha.23",
|
|
43
|
+
"@lwrjs/base-view-provider": "0.9.0-alpha.23",
|
|
44
|
+
"@lwrjs/base-view-transformer": "0.9.0-alpha.23",
|
|
45
|
+
"@lwrjs/client-modules": "0.9.0-alpha.23",
|
|
46
|
+
"@lwrjs/config": "0.9.0-alpha.23",
|
|
47
|
+
"@lwrjs/diagnostics": "0.9.0-alpha.23",
|
|
48
|
+
"@lwrjs/fs-asset-provider": "0.9.0-alpha.23",
|
|
49
|
+
"@lwrjs/html-view-provider": "0.9.0-alpha.23",
|
|
50
|
+
"@lwrjs/loader": "0.9.0-alpha.23",
|
|
51
|
+
"@lwrjs/lwc-module-provider": "0.9.0-alpha.23",
|
|
52
|
+
"@lwrjs/markdown-view-provider": "0.9.0-alpha.23",
|
|
53
|
+
"@lwrjs/module-bundler": "0.9.0-alpha.23",
|
|
54
|
+
"@lwrjs/module-registry": "0.9.0-alpha.23",
|
|
55
|
+
"@lwrjs/npm-module-provider": "0.9.0-alpha.23",
|
|
56
|
+
"@lwrjs/nunjucks-view-provider": "0.9.0-alpha.23",
|
|
57
|
+
"@lwrjs/o11y": "0.9.0-alpha.23",
|
|
58
|
+
"@lwrjs/resource-registry": "0.9.0-alpha.23",
|
|
59
|
+
"@lwrjs/router": "0.9.0-alpha.23",
|
|
60
|
+
"@lwrjs/server": "0.9.0-alpha.23",
|
|
61
|
+
"@lwrjs/shared-utils": "0.9.0-alpha.23",
|
|
62
|
+
"@lwrjs/view-registry": "0.9.0-alpha.23",
|
|
63
63
|
"chokidar": "^3.5.3",
|
|
64
64
|
"esbuild": "^0.9.7",
|
|
65
65
|
"fs-extra": "^10.1.0",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"ws": "^8.8.1"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@lwrjs/types": "0.9.0-alpha.
|
|
72
|
+
"@lwrjs/types": "0.9.0-alpha.23",
|
|
73
73
|
"@types/ws": "^8.5.3"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"engines": {
|
|
79
79
|
"node": ">=14.15.4 <19"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "13106b8a0e5011dfd0fab2e361aa9b518f409fbb"
|
|
82
82
|
}
|