@lwc/engine-core 8.13.3 → 8.14.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.
@@ -1,4 +1,4 @@
1
- import { LightningElement } from './base-lightning-element';
1
+ import type { LightningElement } from './base-lightning-element';
2
2
  import type { VM } from './vm';
3
3
  import type { LightningElementConstructor } from './base-lightning-element';
4
4
  import type { VNodes } from './vnodes';
package/dist/index.cjs.js CHANGED
@@ -6494,9 +6494,11 @@ function invokeComponentConstructor(vm, Ctor) {
6494
6494
  // the "instanceof" operator would not work here since Locker Service provides its own
6495
6495
  // implementation of LightningElement, so we indirectly check if the base constructor is
6496
6496
  // invoked by accessing the component on the vm.
6497
- const isInvalidConstructor = lwcRuntimeFlags.LEGACY_LOCKER_ENABLED
6498
- ? vmBeingConstructed.component !== result
6499
- : !(result instanceof LightningElement);
6497
+ // TODO [W-17769475]: Restore this fix when we can reliably detect Locker enabled
6498
+ // const isInvalidConstructor = lwcRuntimeFlags.LEGACY_LOCKER_ENABLED
6499
+ // ? vmBeingConstructed.component !== result
6500
+ // : !(result instanceof LightningElement);
6501
+ const isInvalidConstructor = vmBeingConstructed.component !== result;
6500
6502
  if (isInvalidConstructor) {
6501
6503
  throw new TypeError('Invalid component constructor, the class should extend LightningElement.');
6502
6504
  }
@@ -8500,5 +8502,5 @@ exports.swapTemplate = swapTemplate;
8500
8502
  exports.track = track;
8501
8503
  exports.unwrap = unwrap;
8502
8504
  exports.wire = wire;
8503
- /** version: 8.13.3 */
8505
+ /** version: 8.14.0 */
8504
8506
  //# sourceMappingURL=index.cjs.js.map
package/dist/index.js CHANGED
@@ -6491,9 +6491,11 @@ function invokeComponentConstructor(vm, Ctor) {
6491
6491
  // the "instanceof" operator would not work here since Locker Service provides its own
6492
6492
  // implementation of LightningElement, so we indirectly check if the base constructor is
6493
6493
  // invoked by accessing the component on the vm.
6494
- const isInvalidConstructor = lwcRuntimeFlags.LEGACY_LOCKER_ENABLED
6495
- ? vmBeingConstructed.component !== result
6496
- : !(result instanceof LightningElement);
6494
+ // TODO [W-17769475]: Restore this fix when we can reliably detect Locker enabled
6495
+ // const isInvalidConstructor = lwcRuntimeFlags.LEGACY_LOCKER_ENABLED
6496
+ // ? vmBeingConstructed.component !== result
6497
+ // : !(result instanceof LightningElement);
6498
+ const isInvalidConstructor = vmBeingConstructed.component !== result;
6497
6499
  if (isInvalidConstructor) {
6498
6500
  throw new TypeError('Invalid component constructor, the class should extend LightningElement.');
6499
6501
  }
@@ -8446,5 +8448,5 @@ function readonly(obj) {
8446
8448
  }
8447
8449
 
8448
8450
  export { BaseBridgeElement, LightningElement, profilerControl as __unstable__ProfilerControl, reportingControl as __unstable__ReportingControl, api$1 as api, computeShadowAndRenderMode, connectRootElement, createContextProviderWithRegister, createVM, disconnectRootElement, freezeTemplate, getAssociatedVMIfPresent, getComponentAPIVersion, getComponentConstructor, getComponentDef, getComponentHtmlPrototype, hydrateRoot, isComponentConstructor, parseFragment, parseSVGFragment, readonly, registerComponent, registerDecorators, registerTemplate, runFormAssociatedCallback, runFormDisabledCallback, runFormResetCallback, runFormStateRestoreCallback, sanitizeAttribute, shouldBeFormAssociated, swapComponent, swapStyle, swapTemplate, track, unwrap, wire };
8449
- /** version: 8.13.3 */
8451
+ /** version: 8.14.0 */
8450
8452
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "You can safely modify dependencies, devDependencies, keywords, etc., but other props will be overwritten."
5
5
  ],
6
6
  "name": "@lwc/engine-core",
7
- "version": "8.13.3",
7
+ "version": "8.14.0",
8
8
  "description": "Core LWC engine APIs.",
9
9
  "keywords": [
10
10
  "lwc"
@@ -46,9 +46,9 @@
46
46
  }
47
47
  },
48
48
  "dependencies": {
49
- "@lwc/features": "8.13.3",
50
- "@lwc/shared": "8.13.3",
51
- "@lwc/signals": "8.13.3"
49
+ "@lwc/features": "8.14.0",
50
+ "@lwc/shared": "8.14.0",
51
+ "@lwc/signals": "8.14.0"
52
52
  },
53
53
  "devDependencies": {
54
54
  "observable-membrane": "2.0.0"