@lwc/engine-core 6.3.2 → 6.3.4

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
@@ -499,29 +499,6 @@ function assertNotProd() {
499
499
  throw new ReferenceError();
500
500
  }
501
501
  }
502
- // Temporary fix for when the LWC v5 compiler is used in conjunction with a v6+ engine
503
- // The old compiler format used the "slot" attribute in the `data` bag, whereas the new
504
- // format uses the special `slotAssignment` key.
505
- // This should be removed when the LWC v5 compiler is not used anywhere where it could be mismatched
506
- // with another LWC engine version.
507
- // TODO [#3974]: remove temporary logic to support v5 compiler + v6+ engine
508
- function applyTemporaryCompilerV5SlotFix(data) {
509
- if (lwcRuntimeFlags.DISABLE_TEMPORARY_V5_COMPILER_SUPPORT) {
510
- return data;
511
- }
512
- const { attrs } = data;
513
- if (!isUndefined$1(attrs)) {
514
- const { slot } = attrs;
515
- if (!isUndefined$1(slot) && !isNull(slot)) {
516
- return {
517
- ...data,
518
- attrs: cloneAndOmitKey(attrs, 'slot'),
519
- slotAssignment: String(slot),
520
- };
521
- }
522
- }
523
- return data;
524
- }
525
502
  function shouldBeFormAssociated(Ctor) {
526
503
  const ctorFormAssociated = Boolean(Ctor.formAssociated);
527
504
  const apiVersion = getComponentAPIVersion(Ctor);
@@ -663,7 +640,6 @@ forEach.call(defaultDefHTMLPropertyNames, (propName) => {
663
640
  * SPDX-License-Identifier: MIT
664
641
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
665
642
  */
666
- /* eslint @lwc/lwc-internal/no-production-assert: "off" */
667
643
  function generateDataDescriptor(options) {
668
644
  return assign({
669
645
  configurable: true,
@@ -4933,8 +4909,6 @@ function h(sel, data, children = EmptyArray) {
4933
4909
  }
4934
4910
  });
4935
4911
  }
4936
- // TODO [#3974]: remove temporary logic to support v5 compiler + v6+ engine
4937
- data = applyTemporaryCompilerV5SlotFix(data);
4938
4912
  const { key, slotAssignment } = data;
4939
4913
  const vnode = {
4940
4914
  type: 2 /* VNodeType.Element */,
@@ -4971,8 +4945,6 @@ function s(slotName, data, children, slotset) {
4971
4945
  }
4972
4946
  const vmBeingRendered = getVMBeingRendered();
4973
4947
  const { renderMode, apiVersion } = vmBeingRendered;
4974
- // TODO [#3974]: remove temporary logic to support v5 compiler + v6+ engine
4975
- data = applyTemporaryCompilerV5SlotFix(data);
4976
4948
  if (!isUndefined$1(slotset) &&
4977
4949
  !isUndefined$1(slotset.slotAssignments) &&
4978
4950
  !isUndefined$1(slotset.slotAssignments[slotName]) &&
@@ -5076,8 +5048,6 @@ function c(sel, Ctor, data, children = EmptyArray) {
5076
5048
  });
5077
5049
  }
5078
5050
  }
5079
- // TODO [#3974]: remove temporary logic to support v5 compiler + v6+ engine
5080
- data = applyTemporaryCompilerV5SlotFix(data);
5081
5051
  const { key, slotAssignment } = data;
5082
5052
  let elm, aChildren, vm;
5083
5053
  const vnode = {
@@ -5916,7 +5886,7 @@ function getWrappedComponentsListener(vm, listener) {
5916
5886
  }
5917
5887
 
5918
5888
  /*
5919
- * Copyright (c) 2023, Salesforce.com, inc.
5889
+ * Copyright (c) 2024, Salesforce, Inc.
5920
5890
  * All rights reserved.
5921
5891
  * SPDX-License-Identifier: MIT
5922
5892
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
@@ -6137,14 +6107,13 @@ function computeShadowAndRenderMode(Ctor, renderer) {
6137
6107
  return { renderMode, shadowMode };
6138
6108
  }
6139
6109
  function computeShadowMode(def, owner, renderer, hydrated) {
6110
+ if (
6140
6111
  // Force the shadow mode to always be native. Used for running tests with synthetic shadow patches
6141
6112
  // 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)) {
6113
+ (process.env.NODE_ENV === 'test-karma-lwc' &&
6114
+ process.env.FORCE_NATIVE_SHADOW_MODE_FOR_TEST) ||
6147
6115
  // hydration only supports native shadow
6116
+ isTrue(hydrated)) {
6148
6117
  return 0 /* ShadowMode.Native */;
6149
6118
  }
6150
6119
  const { isSyntheticShadowDefined } = renderer;
@@ -7559,5 +7528,5 @@ function readonly(obj) {
7559
7528
  }
7560
7529
 
7561
7530
  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 */
7531
+ /** version: 6.3.4 */
7563
7532
  //# sourceMappingURL=index.js.map