@lwrjs/module-registry 0.15.0-alpha.23 → 0.15.0-alpha.25

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/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
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.15.0-alpha.23",
7
+ "version": "0.15.0-alpha.25",
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.23",
41
- "@lwrjs/diagnostics": "0.15.0-alpha.23",
42
- "@lwrjs/shared-utils": "0.15.0-alpha.23",
40
+ "@lwrjs/config": "0.15.0-alpha.25",
41
+ "@lwrjs/diagnostics": "0.15.0-alpha.25",
42
+ "@lwrjs/shared-utils": "0.15.0-alpha.25",
43
43
  "fs-extra": "^11.1.1",
44
44
  "rollup": "^2.79.2"
45
45
  },
46
46
  "devDependencies": {
47
- "@lwrjs/types": "0.15.0-alpha.23",
48
- "memfs": "^4.9.3"
47
+ "@lwrjs/types": "0.15.0-alpha.25",
48
+ "memfs": "^4.13.0"
49
49
  },
50
50
  "engines": {
51
51
  "node": ">=18.0.0"
52
52
  },
53
- "gitHead": "07592ebcbcfd739a9a8882b2f8f56da50332250d"
53
+ "gitHead": "0e430bd7cbd44f66c9a30d86d2dc69fa592af0ea"
54
54
  }