marko 6.0.29 → 6.0.31

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.
@@ -9044,11 +9044,12 @@ var lifecycle_default = {
9044
9044
  tag.node,
9045
9045
  getAllTagReferenceNodes(tag.node)
9046
9046
  );
9047
- tagExtra[kRef] = createBinding(
9047
+ const binding = tagExtra[kRef] = createBinding(
9048
9048
  generateUid("lifecycle"),
9049
9049
  5 /* derived */,
9050
9050
  section
9051
9051
  );
9052
+ binding.downstreamExpressions.add(tagExtra);
9052
9053
  if (node.attributes.length === 0) {
9053
9054
  throw tag.get("name").buildCodeFrameError(
9054
9055
  "The `lifecycle` tag requires at least one attribute."
@@ -10320,7 +10321,8 @@ function translateHTML(tag) {
10320
10321
  tagIdentifier,
10321
10322
  propsToExpression(properties),
10322
10323
  childSerializeReasonExpr
10323
- )
10324
+ ),
10325
+ "let"
10324
10326
  );
10325
10327
  } else {
10326
10328
  statements.push(
@@ -74,7 +74,7 @@ export declare function trackVarReferences(tag: t.NodePath<t.MarkoTag>, type: Bi
74
74
  export declare function trackParamsReferences(body: t.NodePath<t.MarkoTagBody | t.Program>, type: BindingType, upstreamAlias?: Binding["upstreamAlias"]): Binding | undefined;
75
75
  export declare function trackHoistedReference(referencePath: t.NodePath<t.Identifier>, binding: Binding): void;
76
76
  export declare function setReferencesScope(path: t.NodePath<any>): void;
77
- export declare function mergeReferences<T extends t.Node>(section: Section, target: T, nodes: (t.Node | undefined)[]): NonNullable<T["extra"]>;
77
+ export declare function mergeReferences<T extends t.Node>(section: Section, target: T, nodes: (t.Node | undefined)[]): NonNullable<T["extra"]> & ReferencedExtra;
78
78
  export declare function compareReferences(a: ReferencedBindings, b: ReferencedBindings): number;
79
79
  export declare function finalizeReferences(): void;
80
80
  export declare const intersectionMeta: WeakMap<Intersection, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marko",
3
- "version": "6.0.29",
3
+ "version": "6.0.31",
4
4
  "description": "Optimized runtime for Marko templates.",
5
5
  "keywords": [
6
6
  "api",