@lwc/engine-core 6.3.2 → 6.3.3

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.js CHANGED
@@ -663,7 +663,6 @@ forEach.call(defaultDefHTMLPropertyNames, (propName) => {
663
663
  * SPDX-License-Identifier: MIT
664
664
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
665
665
  */
666
- /* eslint @lwc/lwc-internal/no-production-assert: "off" */
667
666
  function generateDataDescriptor(options) {
668
667
  return assign({
669
668
  configurable: true,
@@ -5916,7 +5915,7 @@ function getWrappedComponentsListener(vm, listener) {
5916
5915
  }
5917
5916
 
5918
5917
  /*
5919
- * Copyright (c) 2023, Salesforce.com, inc.
5918
+ * Copyright (c) 2024, Salesforce, Inc.
5920
5919
  * All rights reserved.
5921
5920
  * SPDX-License-Identifier: MIT
5922
5921
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
@@ -6137,14 +6136,13 @@ function computeShadowAndRenderMode(Ctor, renderer) {
6137
6136
  return { renderMode, shadowMode };
6138
6137
  }
6139
6138
  function computeShadowMode(def, owner, renderer, hydrated) {
6139
+ if (
6140
6140
  // Force the shadow mode to always be native. Used for running tests with synthetic shadow patches
6141
6141
  // on, but components running in actual native shadow mode
6142
- if (process.env.NODE_ENV !== 'production' &&
6143
- lwcRuntimeFlags.ENABLE_FORCE_NATIVE_SHADOW_MODE_FOR_TEST) {
6144
- return 0 /* ShadowMode.Native */;
6145
- }
6146
- if (isTrue(hydrated)) {
6142
+ (process.env.NODE_ENV === 'test-karma-lwc' &&
6143
+ process.env.FORCE_NATIVE_SHADOW_MODE_FOR_TEST) ||
6147
6144
  // hydration only supports native shadow
6145
+ isTrue(hydrated)) {
6148
6146
  return 0 /* ShadowMode.Native */;
6149
6147
  }
6150
6148
  const { isSyntheticShadowDefined } = renderer;
@@ -7559,5 +7557,5 @@ function readonly(obj) {
7559
7557
  }
7560
7558
 
7561
7559
  export { 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, setHooks, shouldBeFormAssociated, swapComponent, swapStyle, swapTemplate, track, unwrap, wire };
7562
- /** version: 6.3.2 */
7560
+ /** version: 6.3.3 */
7563
7561
  //# sourceMappingURL=index.js.map