marko 6.0.0-next.3.75 → 6.0.0-next.3.77

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,9 +1,8 @@
1
1
  import { types as t } from "@marko/compiler";
2
2
  import type { Opt } from "./optional";
3
- import { type Binding, type ReferencedBindings } from "./references";
3
+ import { type Binding } from "./references";
4
4
  import { type Section } from "./sections";
5
5
  export declare function getDynamicSourcesForBinding(binding: Binding): true | import("./optional").OneMany<Binding> | undefined;
6
- export declare function getDynamicSourcesForReferences(referencedBindings: ReferencedBindings): true | Binding | import("./optional").Many<Binding> | undefined;
7
6
  export declare function getDynamicSourcesForExtra(extra: t.NodeExtra): true | Binding | import("./optional").Many<Binding> | undefined;
8
7
  export declare function getDynamicSourcesForExtras(extras: Iterable<t.NodeExtra>): true | Opt<Binding>;
9
8
  export declare function getDynamicSourcesForSection(section: Section): {
@@ -5,7 +5,7 @@ declare module "@marko/compiler/dist/types" {
5
5
  computed?: unknown;
6
6
  }
7
7
  }
8
- export default function evaluate(value: t.Expression): (t.NodeExtra | (t.ArrowFunctionExpressionExtra & t.NodeExtra) | (t.FunctionExpressionExtra & t.NodeExtra)) & {
8
+ export default function evaluate<T extends t.Expression>(value: T): T["extra"] & {
9
9
  confident: boolean;
10
10
  computed: unknown;
11
11
  };
@@ -0,0 +1,3 @@
1
+ import { types as t } from "@marko/compiler";
2
+ export declare function generateUid(name?: string): string;
3
+ export declare function generateUidIdentifier(name?: string): t.Identifier;
@@ -6,4 +6,5 @@ type VisitKeys<T> = (string | number) & (T extends T ? {
6
6
  }[keyof T] : never);
7
7
  export declare function traverseReplace<T, K extends VisitKeys<T>>(container: T, key: K, enter: (node: t.Node, container: t.Node | t.Node[], key: string | number) => t.Node | void): void;
8
8
  export declare function traverseContains(node: undefined | null | t.Node | t.Node[], check: (node: t.Node) => void | boolean | typeof skip): boolean;
9
+ export declare function traverse(visit: (node: t.Node, parent?: t.Node, grandParent?: t.Node) => void | typeof skip, node: undefined | t.Node | t.Node[], parent?: t.Node, grandParent?: t.Node): void;
9
10
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marko",
3
- "version": "6.0.0-next.3.75",
3
+ "version": "6.0.0-next.3.77",
4
4
  "description": "Optimized runtime for Marko templates.",
5
5
  "keywords": [
6
6
  "api",