@lwrjs/core 0.6.0-alpha.4 → 0.6.0-alpha.8

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.
@@ -76,6 +76,7 @@ var DEFAULT_LWR_MODULES = [
76
76
  {npm: getLWCEngineSpecifier()},
77
77
  {npm: "@lwrjs/client-modules"},
78
78
  {npm: "@lwrjs/loader"},
79
+ {npm: "@lwrjs/o11y"},
79
80
  {npm: "@lwrjs/router"},
80
81
  {npm: "@lwc/synthetic-shadow"}
81
82
  ];
@@ -82,17 +82,17 @@ function apiMiddleware(app, context) {
82
82
  const resolvedUris = [];
83
83
  if (req.isSiteGeneration()) {
84
84
  if (bundleDef.bundleRecord.imports) {
85
- for (let index = 0; index < bundleDef.bundleRecord.imports.length; index++) {
86
- const theImport = bundleDef.bundleRecord.imports[index];
87
- const id = await (0, import_shared_utils.getVersionedModuleId)(theImport.specifier, moduleRegistry);
85
+ for (const theImport of bundleDef.bundleRecord.imports) {
86
+ const childSpecifier = theImport.specifier;
87
+ const id = await (0, import_shared_utils.getVersionedModuleId)(childSpecifier, moduleRegistry);
88
88
  const uri = await moduleRegistry.resolveModuleUri(id, runtimeEnvironment, runtimeParams);
89
89
  resolvedUris.push(uri);
90
90
  }
91
91
  }
92
92
  if (bundleDef.bundleRecord.dynamicImports) {
93
- for (let index = 0; index < bundleDef.bundleRecord.dynamicImports.length; index++) {
94
- const theImport = bundleDef.bundleRecord.dynamicImports[index];
95
- const id = await (0, import_shared_utils.getVersionedModuleId)(theImport.specifier, moduleRegistry);
93
+ for (const theImport of bundleDef.bundleRecord.dynamicImports) {
94
+ const childSpecifier = theImport.specifier;
95
+ const id = await (0, import_shared_utils.getVersionedModuleId)(childSpecifier, moduleRegistry);
96
96
  const uri = await moduleRegistry.resolveModuleUri(id, runtimeEnvironment, runtimeParams);
97
97
  resolvedUris.push(uri);
98
98
  }
@@ -50,6 +50,7 @@ const DEFAULT_LWR_MODULES = [
50
50
  { npm: getLWCEngineSpecifier() },
51
51
  { npm: '@lwrjs/client-modules' },
52
52
  { npm: '@lwrjs/loader' },
53
+ { npm: '@lwrjs/o11y' },
53
54
  { npm: '@lwrjs/router' },
54
55
  { npm: '@lwc/synthetic-shadow' },
55
56
  ];
@@ -61,20 +61,20 @@ export default function apiMiddleware(app, context) {
61
61
  // TODO might be able to remove this in the future but not sure how to properly send
62
62
  // back bundleRecord imports with absolute uris (lwc is the main one)
63
63
  if (bundleDef.bundleRecord.imports) {
64
- for (let index = 0; index < bundleDef.bundleRecord.imports.length; index++) {
65
- const theImport = bundleDef.bundleRecord.imports[index];
64
+ for (const theImport of bundleDef.bundleRecord.imports) {
65
+ const childSpecifier = theImport.specifier;
66
66
  // eslint-disable-next-line no-await-in-loop
67
- const id = await getVersionedModuleId(theImport.specifier, moduleRegistry);
67
+ const id = await getVersionedModuleId(childSpecifier, moduleRegistry);
68
68
  // eslint-disable-next-line no-await-in-loop
69
69
  const uri = await moduleRegistry.resolveModuleUri(id, runtimeEnvironment, runtimeParams);
70
70
  resolvedUris.push(uri);
71
71
  }
72
72
  }
73
73
  if (bundleDef.bundleRecord.dynamicImports) {
74
- for (let index = 0; index < bundleDef.bundleRecord.dynamicImports.length; index++) {
75
- const theImport = bundleDef.bundleRecord.dynamicImports[index];
74
+ for (const theImport of bundleDef.bundleRecord.dynamicImports) {
75
+ const childSpecifier = theImport.specifier;
76
76
  // eslint-disable-next-line no-await-in-loop
77
- const id = await getVersionedModuleId(theImport.specifier, moduleRegistry);
77
+ const id = await getVersionedModuleId(childSpecifier, moduleRegistry);
78
78
  // eslint-disable-next-line no-await-in-loop
79
79
  const uri = await moduleRegistry.resolveModuleUri(id, runtimeEnvironment, runtimeParams);
80
80
  resolvedUris.push(uri);
package/package.json CHANGED
@@ -4,8 +4,8 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.6.0-alpha.4",
8
- "homepage": "https://lwr.dev/",
7
+ "version": "0.6.0-alpha.8",
8
+ "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
11
11
  "url": "https://github.com/salesforce/lwr.git",
@@ -33,30 +33,31 @@
33
33
  "package.cjs"
34
34
  ],
35
35
  "dependencies": {
36
- "@lwrjs/app-service": "0.6.0-alpha.4",
37
- "@lwrjs/asset-registry": "0.6.0-alpha.4",
38
- "@lwrjs/asset-transformer": "0.6.0-alpha.4",
39
- "@lwrjs/base-template-engine": "0.6.0-alpha.4",
40
- "@lwrjs/base-view-provider": "0.6.0-alpha.4",
41
- "@lwrjs/base-view-transformer": "0.6.0-alpha.4",
42
- "@lwrjs/client-modules": "0.6.0-alpha.4",
43
- "@lwrjs/compiler": "0.6.0-alpha.4",
44
- "@lwrjs/diagnostics": "0.6.0-alpha.4",
45
- "@lwrjs/fs-asset-provider": "0.6.0-alpha.4",
46
- "@lwrjs/html-view-provider": "0.6.0-alpha.4",
47
- "@lwrjs/loader": "0.6.0-alpha.4",
48
- "@lwrjs/lwc-module-provider": "0.6.0-alpha.4",
49
- "@lwrjs/lwc-ssr": "0.6.0-alpha.4",
50
- "@lwrjs/markdown-view-provider": "0.6.0-alpha.4",
51
- "@lwrjs/module-bundler": "0.6.0-alpha.4",
52
- "@lwrjs/module-registry": "0.6.0-alpha.4",
53
- "@lwrjs/npm-module-provider": "0.6.0-alpha.4",
54
- "@lwrjs/nunjucks-view-provider": "0.6.0-alpha.4",
55
- "@lwrjs/resource-registry": "0.6.0-alpha.4",
56
- "@lwrjs/router": "0.6.0-alpha.4",
57
- "@lwrjs/server": "0.6.0-alpha.4",
58
- "@lwrjs/shared-utils": "0.6.0-alpha.4",
59
- "@lwrjs/view-registry": "0.6.0-alpha.4",
36
+ "@lwrjs/app-service": "0.6.0-alpha.8",
37
+ "@lwrjs/asset-registry": "0.6.0-alpha.8",
38
+ "@lwrjs/asset-transformer": "0.6.0-alpha.8",
39
+ "@lwrjs/base-template-engine": "0.6.0-alpha.8",
40
+ "@lwrjs/base-view-provider": "0.6.0-alpha.8",
41
+ "@lwrjs/base-view-transformer": "0.6.0-alpha.8",
42
+ "@lwrjs/client-modules": "0.6.0-alpha.8",
43
+ "@lwrjs/compiler": "0.6.0-alpha.8",
44
+ "@lwrjs/diagnostics": "0.6.0-alpha.8",
45
+ "@lwrjs/fs-asset-provider": "0.6.0-alpha.8",
46
+ "@lwrjs/html-view-provider": "0.6.0-alpha.8",
47
+ "@lwrjs/loader": "0.6.0-alpha.8",
48
+ "@lwrjs/lwc-module-provider": "0.6.0-alpha.8",
49
+ "@lwrjs/lwc-ssr": "0.6.0-alpha.8",
50
+ "@lwrjs/markdown-view-provider": "0.6.0-alpha.8",
51
+ "@lwrjs/module-bundler": "0.6.0-alpha.8",
52
+ "@lwrjs/module-registry": "0.6.0-alpha.8",
53
+ "@lwrjs/npm-module-provider": "0.6.0-alpha.8",
54
+ "@lwrjs/nunjucks-view-provider": "0.6.0-alpha.8",
55
+ "@lwrjs/o11y": "0.6.0-alpha.8",
56
+ "@lwrjs/resource-registry": "0.6.0-alpha.8",
57
+ "@lwrjs/router": "0.6.0-alpha.8",
58
+ "@lwrjs/server": "0.6.0-alpha.8",
59
+ "@lwrjs/shared-utils": "0.6.0-alpha.8",
60
+ "@lwrjs/view-registry": "0.6.0-alpha.8",
60
61
  "dompurify": "^2.3.0",
61
62
  "fs-extra": "^10.0.0",
62
63
  "jsdom": "^16.7.0",
@@ -66,7 +67,7 @@
66
67
  "qs": "^6.9.4"
67
68
  },
68
69
  "devDependencies": {
69
- "@lwrjs/types": "0.6.0-alpha.4"
70
+ "@lwrjs/types": "0.6.0-alpha.8"
70
71
  },
71
72
  "peerDependencies": {
72
73
  "lwc": ">= 1.x <= 2.x"
@@ -74,5 +75,5 @@
74
75
  "engines": {
75
76
  "node": ">=14.15.4 <17"
76
77
  },
77
- "gitHead": "e81cf99f5c1a648d7818784dd9f7df0e01e819d9"
78
+ "gitHead": "f57b843b079ef42fdd1e727521e5a88e70bf850a"
78
79
  }