@lwc/engine-core 6.3.3 → 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.
@@ -1,6 +1,5 @@
1
1
  import { StylesheetFactory, TemplateStylesheetFactories } from './stylesheet';
2
2
  import { LightningElementConstructor } from './base-lightning-element';
3
- import { VElementData } from './vnodes';
4
3
  type Callback = () => void;
5
4
  export declare const SPACE_CHAR = 32;
6
5
  export declare const EmptyObject: any;
@@ -18,24 +17,5 @@ export declare function cloneAndOmitKey(object: {
18
17
  };
19
18
  export declare function flattenStylesheets(stylesheets: TemplateStylesheetFactories): StylesheetFactory[];
20
19
  export declare function assertNotProd(): void;
21
- export declare function applyTemporaryCompilerV5SlotFix(data: VElementData): VElementData | {
22
- attrs: {
23
- [key: string]: any;
24
- };
25
- slotAssignment: string;
26
- key: import("./vnodes").Key;
27
- external?: boolean | undefined;
28
- ref?: string | undefined;
29
- slotData?: any;
30
- props?: Readonly<Record<string, any>> | undefined;
31
- className?: string | undefined;
32
- style?: string | undefined;
33
- classMap?: Readonly<Record<string, boolean>> | undefined;
34
- styleDecls?: readonly [string, string, boolean][] | undefined;
35
- context?: Readonly<Record<string, Readonly<Record<string, any>>>> | undefined;
36
- on?: Readonly<Record<string, (event: Event) => any>> | undefined;
37
- svg?: boolean | undefined;
38
- renderer?: import("./renderer").RendererAPI | undefined;
39
- };
40
20
  export declare function shouldBeFormAssociated(Ctor: LightningElementConstructor): boolean;
41
21
  export {};
package/dist/index.cjs.js CHANGED
@@ -503,29 +503,6 @@ function assertNotProd() {
503
503
  throw new ReferenceError();
504
504
  }
505
505
  }
506
- // Temporary fix for when the LWC v5 compiler is used in conjunction with a v6+ engine
507
- // The old compiler format used the "slot" attribute in the `data` bag, whereas the new
508
- // format uses the special `slotAssignment` key.
509
- // This should be removed when the LWC v5 compiler is not used anywhere where it could be mismatched
510
- // with another LWC engine version.
511
- // TODO [#3974]: remove temporary logic to support v5 compiler + v6+ engine
512
- function applyTemporaryCompilerV5SlotFix(data) {
513
- if (lwcRuntimeFlags.DISABLE_TEMPORARY_V5_COMPILER_SUPPORT) {
514
- return data;
515
- }
516
- const { attrs } = data;
517
- if (!shared.isUndefined(attrs)) {
518
- const { slot } = attrs;
519
- if (!shared.isUndefined(slot) && !shared.isNull(slot)) {
520
- return {
521
- ...data,
522
- attrs: cloneAndOmitKey(attrs, 'slot'),
523
- slotAssignment: String(slot),
524
- };
525
- }
526
- }
527
- return data;
528
- }
529
506
  function shouldBeFormAssociated(Ctor) {
530
507
  const ctorFormAssociated = Boolean(Ctor.formAssociated);
531
508
  const apiVersion = getComponentAPIVersion(Ctor);
@@ -4936,8 +4913,6 @@ function h(sel, data, children = EmptyArray) {
4936
4913
  }
4937
4914
  });
4938
4915
  }
4939
- // TODO [#3974]: remove temporary logic to support v5 compiler + v6+ engine
4940
- data = applyTemporaryCompilerV5SlotFix(data);
4941
4916
  const { key, slotAssignment } = data;
4942
4917
  const vnode = {
4943
4918
  type: 2 /* VNodeType.Element */,
@@ -4974,8 +4949,6 @@ function s(slotName, data, children, slotset) {
4974
4949
  }
4975
4950
  const vmBeingRendered = getVMBeingRendered();
4976
4951
  const { renderMode, apiVersion } = vmBeingRendered;
4977
- // TODO [#3974]: remove temporary logic to support v5 compiler + v6+ engine
4978
- data = applyTemporaryCompilerV5SlotFix(data);
4979
4952
  if (!shared.isUndefined(slotset) &&
4980
4953
  !shared.isUndefined(slotset.slotAssignments) &&
4981
4954
  !shared.isUndefined(slotset.slotAssignments[slotName]) &&
@@ -5079,8 +5052,6 @@ function c(sel, Ctor, data, children = EmptyArray) {
5079
5052
  });
5080
5053
  }
5081
5054
  }
5082
- // TODO [#3974]: remove temporary logic to support v5 compiler + v6+ engine
5083
- data = applyTemporaryCompilerV5SlotFix(data);
5084
5055
  const { key, slotAssignment } = data;
5085
5056
  let elm, aChildren, vm;
5086
5057
  const vnode = {
@@ -7604,5 +7575,5 @@ exports.swapTemplate = swapTemplate;
7604
7575
  exports.track = track;
7605
7576
  exports.unwrap = unwrap;
7606
7577
  exports.wire = wire;
7607
- /** version: 6.3.3 */
7578
+ /** version: 6.3.4 */
7608
7579
  //# sourceMappingURL=index.cjs.js.map