marko 6.0.54 → 6.0.56

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,2 +1,3 @@
1
1
  import type { types as t } from "@marko/compiler";
2
2
  export declare function getParentTag(tag: t.NodePath<t.MarkoTag>): t.NodePath<t.MarkoTag> | undefined;
3
+ export declare function getAttributeTagParent(tag: t.NodePath<t.MarkoTag>): t.NodePath<t.MarkoTag>;
@@ -1,7 +1,7 @@
1
1
  import type { types as t } from "@marko/compiler";
2
- type MarkoExprRootPath = t.NodePath<t.MarkoTag | t.MarkoTagBody | t.MarkoAttribute | t.MarkoSpreadAttribute | t.MarkoScriptlet | t.MarkoPlaceholder>;
2
+ export type MarkoExprRootPath = t.NodePath<t.MarkoTag | t.MarkoTagBody | t.MarkoAttribute | t.MarkoSpreadAttribute | t.MarkoScriptlet | t.MarkoPlaceholder>;
3
3
  export declare function getMarkoRoot(path: t.NodePath<t.Node>): MarkoExprRootPath | null;
4
4
  export declare function getExprRoot(path: t.NodePath<t.Node>): t.NodePath<t.Node>;
5
5
  export declare function getFnRoot(path: t.NodePath<t.Node>): t.NodePath<t.ArrowFunctionExpression | t.FunctionExpression | t.ObjectMember> | undefined;
6
+ export declare function getDeclarationRoot(path: t.NodePath<t.Node>): t.NodePath<t.FunctionDeclaration | t.VariableDeclaration> | undefined;
6
7
  export declare function isMarko(path: t.NodePath<any>): path is MarkoExprRootPath;
7
- export {};
@@ -1,5 +1,5 @@
1
1
  import { types as t } from "@marko/compiler";
2
- import { type Many, type Opt, Sorted } from "./optional";
2
+ import { type Many, type OneMany, type Opt, Sorted } from "./optional";
3
3
  import { type Section } from "./sections";
4
4
  declare const kIsInvoked: unique symbol;
5
5
  export declare const kBranchSerializeReason: unique symbol;
@@ -52,6 +52,10 @@ declare module "@marko/compiler/dist/types" {
52
52
  interface NodeExtra {
53
53
  section?: Section;
54
54
  referencedBindings?: ReferencedBindings;
55
+ downstream?: {
56
+ bindings: OneMany<Binding>;
57
+ excludeProperties: undefined | Set<string>;
58
+ };
55
59
  binding?: Binding;
56
60
  assignment?: Binding;
57
61
  assignmentTo?: Binding;
@@ -120,4 +124,5 @@ export interface RegisteredFnExtra extends ReferencedExtra {
120
124
  referencedBindingsInFunction: ReferencedBindings;
121
125
  }
122
126
  export declare function isRegisteredFnExtra(extra: t.NodeExtra | undefined): extra is RegisteredFnExtra;
127
+ export declare function getCanonicalExtra<T extends t.NodeExtra>(extra: T): T;
123
128
  export {};
@@ -17,3 +17,4 @@ declare const _default: {
17
17
  analyze(this: unknown, fn: t.NodePath<t.Function>): void;
18
18
  };
19
19
  export default _default;
20
+ export declare function finalizeFunctionRegistry(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marko",
3
- "version": "6.0.54",
3
+ "version": "6.0.56",
4
4
  "description": "Optimized runtime for Marko templates.",
5
5
  "keywords": [
6
6
  "api",