@lwrjs/module-registry 0.11.0-alpha.8 → 0.11.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.
@@ -53,7 +53,7 @@ var LwrModuleRegistry = class {
53
53
  context.appObserver.onModuleSourceChange(async ({payload: moduleCompiled}) => {
54
54
  const id = moduleCompiled.id;
55
55
  if (!this.moduleDefCache.has(id)) {
56
- console.log("[WARNING] Unable to find match in moduleDefCache", {id});
56
+ import_diagnostics.logger.warn(`Unable to find match in moduleDefCache: ${id}`);
57
57
  }
58
58
  this.moduleDefCache.delete(id);
59
59
  const linkedModules = this.moduleLinkedCache.get(id);
package/build/es/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { LwrUnresolvableError, createSingleDiagnosticError, descriptions } from '@lwrjs/diagnostics';
1
+ import { LwrUnresolvableError, createSingleDiagnosticError, descriptions, logger } from '@lwrjs/diagnostics';
2
2
  import { discoverInterchangeableModules, getCacheKeyFromJson, InflightTasks, LATEST_SIGNATURE, ModuleNameType, getGroupName, } from '@lwrjs/shared-utils';
3
3
  // dependencies @locker/compiler and rollup are in this package.json is to satisfy the shared-utils/compiler optional dependencies
4
4
  import { convertToAmd } from '@lwrjs/shared-utils/compiler';
@@ -26,7 +26,7 @@ export class LwrModuleRegistry {
26
26
  context.appObserver.onModuleSourceChange(async ({ payload: moduleCompiled }) => {
27
27
  const id = moduleCompiled.id;
28
28
  if (!this.moduleDefCache.has(id)) {
29
- console.log('[WARNING] Unable to find match in moduleDefCache', { id });
29
+ logger.warn(`Unable to find match in moduleDefCache: ${id}`);
30
30
  }
31
31
  this.moduleDefCache.delete(id);
32
32
  const linkedModules = this.moduleLinkedCache.get(id);
@@ -95,7 +95,7 @@ export class LwrModuleRegistry {
95
95
  const cacheDisabled = process.env.NOCACHE === 'true';
96
96
  if (cacheDisabled === false && this.moduleDefCache.has(moduleEntry.id)) {
97
97
  // TODO add to profiling
98
- // console.log('[INFO] Module Cache Hit: %s', moduleEntry.id);
98
+ // logger.info('Module Cache Hit: %s', moduleEntry.id);
99
99
  return this.moduleDefCache.get(moduleEntry.id);
100
100
  }
101
101
  return this.inflightModuleDefinitions.execute(moduleEntry.id, async () => {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.11.0-alpha.8",
7
+ "version": "0.11.0",
8
8
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
@@ -30,15 +30,15 @@
30
30
  "build/**/*.d.ts"
31
31
  ],
32
32
  "dependencies": {
33
- "@lwrjs/diagnostics": "0.11.0-alpha.8",
34
- "@lwrjs/shared-utils": "0.11.0-alpha.8",
33
+ "@lwrjs/diagnostics": "0.11.0",
34
+ "@lwrjs/shared-utils": "0.11.0",
35
35
  "rollup": "^2.78.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@lwrjs/types": "0.11.0-alpha.8"
38
+ "@lwrjs/types": "0.11.0"
39
39
  },
40
40
  "engines": {
41
41
  "node": ">=16.0.0"
42
42
  },
43
- "gitHead": "bba3cfa996e84ee702f287e7e7b6361b807434db"
43
+ "gitHead": "fbc883ea90a12672ce6f1adc2201144fda8762bd"
44
44
  }