@lwrjs/module-registry 0.15.0-alpha.8 → 0.15.0

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.
@@ -139,6 +139,7 @@ var LwrModuleRegistry = class {
139
139
  const {format, compat, debug, minify, bundle} = runtimeEnvironment;
140
140
  const locale = runtimeParams?.["locale"];
141
141
  const environment = runtimeParams?.["environment"];
142
+ const ssr = runtimeParams?.["ssr"];
142
143
  const {
143
144
  locker: {enabled: lockerEnabled}
144
145
  } = this.globalConfig;
@@ -153,7 +154,8 @@ var LwrModuleRegistry = class {
153
154
  bundle,
154
155
  lockerEnabled,
155
156
  locale,
156
- environment
157
+ environment,
158
+ ssr
157
159
  });
158
160
  const moduleLinked2 = moduleLinks.get(runtimeEnvKey);
159
161
  if (moduleLinked2) {
@@ -177,7 +179,8 @@ var LwrModuleRegistry = class {
177
179
  bundle,
178
180
  lockerEnabled,
179
181
  locale,
180
- environment
182
+ environment,
183
+ ssr
181
184
  }), moduleLinked);
182
185
  this.moduleLinkedCache.set(id, linkedMap);
183
186
  }
package/build/es/index.js CHANGED
@@ -23,6 +23,7 @@ export class LwrModuleRegistry {
23
23
  this.interchangeableModules = discoverInterchangeableModules(globalConfig.lwc.modules, globalConfig.lwc.interchangeableModulesMap);
24
24
  }
25
25
  context.appObserver.onModuleSourceChange(async ({ payload: moduleCompiled }) => {
26
+ // module source change events are triggered from the lwc-module-provider
26
27
  const id = moduleCompiled.id;
27
28
  if (!this.moduleDefCache.has(id)) {
28
29
  logger.warn({
@@ -40,6 +41,7 @@ export class LwrModuleRegistry {
40
41
  // eslint-disable-next-line no-await-in-loop
41
42
  const moduleDefinition = await this.getLinkedModule(moduleCompiled, module.runtimeEnvironment, module.runtimeParams);
42
43
  // emit changes for each module definition already cached
44
+ // subscribed: Module Bundler, View Registry, HMR Middleware
43
45
  this.emitter.notifyModuleDefinitionChanged(moduleDefinition);
44
46
  }
45
47
  }
@@ -132,6 +134,7 @@ export class LwrModuleRegistry {
132
134
  const { format, compat, debug, minify, bundle } = runtimeEnvironment;
133
135
  const locale = runtimeParams?.['locale'];
134
136
  const environment = runtimeParams?.['environment'];
137
+ const ssr = runtimeParams?.['ssr'];
135
138
  const { locker: { enabled: lockerEnabled }, } = this.globalConfig;
136
139
  const cacheDisabled = process.env.NOCACHE === 'true';
137
140
  if (cacheDisabled === false && this.moduleLinkedCache.has(id)) {
@@ -145,6 +148,7 @@ export class LwrModuleRegistry {
145
148
  lockerEnabled,
146
149
  locale,
147
150
  environment,
151
+ ssr,
148
152
  });
149
153
  const moduleLinked = moduleLinks.get(runtimeEnvKey);
150
154
  if (moduleLinked) {
@@ -175,6 +179,7 @@ export class LwrModuleRegistry {
175
179
  lockerEnabled,
176
180
  locale,
177
181
  environment,
182
+ ssr,
178
183
  }), moduleLinked);
179
184
  this.moduleLinkedCache.set(id, linkedMap);
180
185
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.15.0-alpha.8",
7
+ "version": "0.15.0",
8
8
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
@@ -37,18 +37,18 @@
37
37
  "build": "tsc -b"
38
38
  },
39
39
  "dependencies": {
40
- "@lwrjs/config": "0.15.0-alpha.8",
41
- "@lwrjs/diagnostics": "0.15.0-alpha.8",
42
- "@lwrjs/shared-utils": "0.15.0-alpha.8",
40
+ "@lwrjs/config": "0.15.0",
41
+ "@lwrjs/diagnostics": "0.15.0",
42
+ "@lwrjs/shared-utils": "0.15.0",
43
43
  "fs-extra": "^11.1.1",
44
- "rollup": "^2.78.0"
44
+ "rollup": "^2.79.2"
45
45
  },
46
46
  "devDependencies": {
47
- "@lwrjs/types": "0.15.0-alpha.8",
48
- "memfs": "^4.9.3"
47
+ "@lwrjs/types": "0.15.0",
48
+ "memfs": "^4.13.0"
49
49
  },
50
50
  "engines": {
51
51
  "node": ">=18.0.0"
52
52
  },
53
- "gitHead": "79fa28a99f3d89eca6a254c53a2a944778203ef2"
53
+ "gitHead": "ee374df435d5342f63e4da126a09461e761837f3"
54
54
  }