@lwc/engine-core 8.18.0 → 8.18.1

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/dist/index.cjs.js CHANGED
@@ -6515,9 +6515,9 @@ function invokeComponentConstructor(vm, Ctor) {
6515
6515
  // When Locker is enabled, the "instanceof" operator would not work since Locker Service
6516
6516
  // provides its own implementation of LightningElement, so we indirectly check
6517
6517
  // if the base constructor is invoked by accessing the component on the vm.
6518
- // When the ENABLE_LOCKER_VALIDATION gate is true and LEGACY_LOCKER_ENABLED is false,
6518
+ // When the DISABLE_LOCKER_VALIDATION gate is false or LEGACY_LOCKER_ENABLED is false,
6519
6519
  // then the instanceof LightningElement can be used.
6520
- const useLegacyConstructorCheck = lwcRuntimeFlags.ENABLE_LEGACY_VALIDATION || lwcRuntimeFlags.LEGACY_LOCKER_ENABLED;
6520
+ const useLegacyConstructorCheck = !lwcRuntimeFlags.DISABLE_LEGACY_VALIDATION || lwcRuntimeFlags.LEGACY_LOCKER_ENABLED;
6521
6521
  const isInvalidConstructor = useLegacyConstructorCheck
6522
6522
  ? vmBeingConstructed.component !== result
6523
6523
  : !(result instanceof LightningElement);
@@ -8529,5 +8529,5 @@ exports.swapTemplate = swapTemplate;
8529
8529
  exports.track = track;
8530
8530
  exports.unwrap = unwrap;
8531
8531
  exports.wire = wire;
8532
- /** version: 8.18.0 */
8532
+ /** version: 8.18.1 */
8533
8533
  //# sourceMappingURL=index.cjs.js.map
package/dist/index.js CHANGED
@@ -6512,9 +6512,9 @@ function invokeComponentConstructor(vm, Ctor) {
6512
6512
  // When Locker is enabled, the "instanceof" operator would not work since Locker Service
6513
6513
  // provides its own implementation of LightningElement, so we indirectly check
6514
6514
  // if the base constructor is invoked by accessing the component on the vm.
6515
- // When the ENABLE_LOCKER_VALIDATION gate is true and LEGACY_LOCKER_ENABLED is false,
6515
+ // When the DISABLE_LOCKER_VALIDATION gate is false or LEGACY_LOCKER_ENABLED is false,
6516
6516
  // then the instanceof LightningElement can be used.
6517
- const useLegacyConstructorCheck = lwcRuntimeFlags.ENABLE_LEGACY_VALIDATION || lwcRuntimeFlags.LEGACY_LOCKER_ENABLED;
6517
+ const useLegacyConstructorCheck = !lwcRuntimeFlags.DISABLE_LEGACY_VALIDATION || lwcRuntimeFlags.LEGACY_LOCKER_ENABLED;
6518
6518
  const isInvalidConstructor = useLegacyConstructorCheck
6519
6519
  ? vmBeingConstructed.component !== result
6520
6520
  : !(result instanceof LightningElement);
@@ -8475,5 +8475,5 @@ function readonly(obj) {
8475
8475
  }
8476
8476
 
8477
8477
  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 };
8478
- /** version: 8.18.0 */
8478
+ /** version: 8.18.1 */
8479
8479
  //# 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.18.0",
7
+ "version": "8.18.1",
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.18.0",
50
- "@lwc/shared": "8.18.0",
51
- "@lwc/signals": "8.18.0"
49
+ "@lwc/features": "8.18.1",
50
+ "@lwc/shared": "8.18.1",
51
+ "@lwc/signals": "8.18.1"
52
52
  },
53
53
  "devDependencies": {
54
54
  "observable-membrane": "2.0.0"