@lwc/engine-core 2.37.1 → 2.37.2

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.
@@ -2522,7 +2522,7 @@ function checkVersionMismatch(func, type) {
2522
2522
  // stylesheets and templates do not have user-meaningful names, but components do
2523
2523
  const friendlyName = type === 'component' ? `${type} ${func.name}` : type;
2524
2524
  logError(`LWC WARNING: current engine is v${shared.LWC_VERSION}, but ${friendlyName} was compiled with v${version}.\nPlease update your compiled code or LWC engine so that the versions match.\nNo further warnings will appear.`);
2525
- report(1 /* ReportingEventId.CompilerRuntimeVersionMismatch */, {
2525
+ report("CompilerRuntimeVersionMismatch" /* ReportingEventId.CompilerRuntimeVersionMismatch */, {
2526
2526
  compilerVersion: version,
2527
2527
  runtimeVersion: shared.LWC_VERSION,
2528
2528
  });
@@ -5884,7 +5884,7 @@ function reportViolation$1(source, target, attrName) {
5884
5884
  // vm should never be undefined here, but just to be safe, bail out and don't report
5885
5885
  return;
5886
5886
  }
5887
- report(0 /* ReportingEventId.CrossRootAriaInSyntheticShadow */, {
5887
+ report("CrossRootAriaInSyntheticShadow" /* ReportingEventId.CrossRootAriaInSyntheticShadow */, {
5888
5888
  tagName: vm.tagName,
5889
5889
  attributeName: attrName,
5890
5890
  });
@@ -6064,7 +6064,7 @@ function checkAndReportViolation(elm, prop, isSetter, setValue) {
6064
6064
  // https://github.com/salesforce/lwc/issues/3284
6065
6065
  setValueType = shared.isNull(setValue) ? 'null' : typeof setValue;
6066
6066
  }
6067
- report(2 /* ReportingEventId.NonStandardAriaReflection */, {
6067
+ report("NonStandardAriaReflection" /* ReportingEventId.NonStandardAriaReflection */, {
6068
6068
  tagName: vm === null || vm === void 0 ? void 0 : vm.tagName,
6069
6069
  propertyName: prop,
6070
6070
  isSetter,
@@ -6650,10 +6650,10 @@ function reportViolation(type, eventId, prop) {
6650
6650
  report(eventId, { propertyName: prop });
6651
6651
  }
6652
6652
  function reportTemplateViolation(prop) {
6653
- reportViolation('template', 3 /* ReportingEventId.TemplateMutation */, prop);
6653
+ reportViolation('template', "TemplateMutation" /* ReportingEventId.TemplateMutation */, prop);
6654
6654
  }
6655
6655
  function reportStylesheetViolation(prop) {
6656
- reportViolation('stylesheet', 4 /* ReportingEventId.StylesheetMutation */, prop);
6656
+ reportViolation('stylesheet', "StylesheetMutation" /* ReportingEventId.StylesheetMutation */, prop);
6657
6657
  }
6658
6658
  // Warn if the user tries to mutate a stylesheets array, e.g.:
6659
6659
  // `tmpl.stylesheets.push(someStylesheetFunction)`
@@ -6864,4 +6864,4 @@ exports.swapTemplate = swapTemplate;
6864
6864
  exports.track = track;
6865
6865
  exports.unwrap = unwrap;
6866
6866
  exports.wire = wire;
6867
- /* version: 2.37.1 */
6867
+ /* version: 2.37.2 */
@@ -2520,7 +2520,7 @@ function checkVersionMismatch(func, type) {
2520
2520
  // stylesheets and templates do not have user-meaningful names, but components do
2521
2521
  const friendlyName = type === 'component' ? `${type} ${func.name}` : type;
2522
2522
  logError(`LWC WARNING: current engine is v${LWC_VERSION}, but ${friendlyName} was compiled with v${version}.\nPlease update your compiled code or LWC engine so that the versions match.\nNo further warnings will appear.`);
2523
- report(1 /* ReportingEventId.CompilerRuntimeVersionMismatch */, {
2523
+ report("CompilerRuntimeVersionMismatch" /* ReportingEventId.CompilerRuntimeVersionMismatch */, {
2524
2524
  compilerVersion: version,
2525
2525
  runtimeVersion: LWC_VERSION,
2526
2526
  });
@@ -5882,7 +5882,7 @@ function reportViolation$1(source, target, attrName) {
5882
5882
  // vm should never be undefined here, but just to be safe, bail out and don't report
5883
5883
  return;
5884
5884
  }
5885
- report(0 /* ReportingEventId.CrossRootAriaInSyntheticShadow */, {
5885
+ report("CrossRootAriaInSyntheticShadow" /* ReportingEventId.CrossRootAriaInSyntheticShadow */, {
5886
5886
  tagName: vm.tagName,
5887
5887
  attributeName: attrName,
5888
5888
  });
@@ -6062,7 +6062,7 @@ function checkAndReportViolation(elm, prop, isSetter, setValue) {
6062
6062
  // https://github.com/salesforce/lwc/issues/3284
6063
6063
  setValueType = isNull(setValue) ? 'null' : typeof setValue;
6064
6064
  }
6065
- report(2 /* ReportingEventId.NonStandardAriaReflection */, {
6065
+ report("NonStandardAriaReflection" /* ReportingEventId.NonStandardAriaReflection */, {
6066
6066
  tagName: vm === null || vm === void 0 ? void 0 : vm.tagName,
6067
6067
  propertyName: prop,
6068
6068
  isSetter,
@@ -6648,10 +6648,10 @@ function reportViolation(type, eventId, prop) {
6648
6648
  report(eventId, { propertyName: prop });
6649
6649
  }
6650
6650
  function reportTemplateViolation(prop) {
6651
- reportViolation('template', 3 /* ReportingEventId.TemplateMutation */, prop);
6651
+ reportViolation('template', "TemplateMutation" /* ReportingEventId.TemplateMutation */, prop);
6652
6652
  }
6653
6653
  function reportStylesheetViolation(prop) {
6654
- reportViolation('stylesheet', 4 /* ReportingEventId.StylesheetMutation */, prop);
6654
+ reportViolation('stylesheet', "StylesheetMutation" /* ReportingEventId.StylesheetMutation */, prop);
6655
6655
  }
6656
6656
  // Warn if the user tries to mutate a stylesheets array, e.g.:
6657
6657
  // `tmpl.stylesheets.push(someStylesheetFunction)`
@@ -6825,4 +6825,4 @@ function getComponentConstructor(elm) {
6825
6825
  }
6826
6826
 
6827
6827
  export { LightningElement, profilerControl as __unstable__ProfilerControl, reportingControl as __unstable__ReportingControl, api$1 as api, connectRootElement, createContextProvider, createVM, disconnectRootElement, freezeTemplate, getAssociatedVMIfPresent, getComponentConstructor, getComponentDef, getComponentHtmlPrototype, hydrateRoot, isComponentConstructor, parseFragment, parseSVGFragment, readonly, register, registerComponent, registerDecorators, registerTemplate, sanitizeAttribute, setHooks, swapComponent, swapStyle, swapTemplate, track, unwrap, wire };
6828
- /* version: 2.37.1 */
6828
+ /* version: 2.37.2 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lwc/engine-core",
3
- "version": "2.37.1",
3
+ "version": "2.37.2",
4
4
  "description": "Core LWC engine APIs.",
5
5
  "homepage": "https://lwc.dev/",
6
6
  "repository": {
@@ -24,9 +24,9 @@
24
24
  "types/"
25
25
  ],
26
26
  "dependencies": {
27
- "@lwc/aria-reflection": "2.37.1",
28
- "@lwc/features": "2.37.1",
29
- "@lwc/shared": "2.37.1"
27
+ "@lwc/aria-reflection": "2.37.2",
28
+ "@lwc/features": "2.37.2",
29
+ "@lwc/shared": "2.37.2"
30
30
  },
31
31
  "devDependencies": {
32
32
  "observable-membrane": "2.0.0"
@@ -1,9 +1,9 @@
1
1
  export declare const enum ReportingEventId {
2
- CrossRootAriaInSyntheticShadow = 0,
3
- CompilerRuntimeVersionMismatch = 1,
4
- NonStandardAriaReflection = 2,
5
- TemplateMutation = 3,
6
- StylesheetMutation = 4
2
+ CrossRootAriaInSyntheticShadow = "CrossRootAriaInSyntheticShadow",
3
+ CompilerRuntimeVersionMismatch = "CompilerRuntimeVersionMismatch",
4
+ NonStandardAriaReflection = "NonStandardAriaReflection",
5
+ TemplateMutation = "TemplateMutation",
6
+ StylesheetMutation = "StylesheetMutation"
7
7
  }
8
8
  export interface BasePayload {
9
9
  tagName?: string;