marko 6.0.28 → 6.0.30

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."
@@ -9267,7 +9268,6 @@ var script_default = {
9267
9268
  tag.remove();
9268
9269
  }
9269
9270
  },
9270
- html: false,
9271
9271
  parseOptions: {
9272
9272
  text: true,
9273
9273
  preserveWhitespace: true
@@ -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.28",
3
+ "version": "6.0.30",
4
4
  "description": "Optimized runtime for Marko templates.",
5
5
  "keywords": [
6
6
  "api",
@@ -48,7 +48,7 @@
48
48
  "build": "node -r ~ts ./scripts/bundle.ts"
49
49
  },
50
50
  "dependencies": {
51
- "@marko/compiler": "^5.39.27",
51
+ "@marko/compiler": "^5.39.28",
52
52
  "csstype": "^3.1.3",
53
53
  "magic-string": "^0.30.17"
54
54
  },