marko 6.0.0-next.3.37 → 6.0.0-next.3.39

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.
@@ -0,0 +1,14 @@
1
+ import { types as t } from "@marko/compiler";
2
+ import { type Binding } from "./references";
3
+ import type { Section } from "./sections";
4
+ declare const kOnlyChildInParent: unique symbol;
5
+ declare const kNodeRef: unique symbol;
6
+ declare module "@marko/compiler/dist/types" {
7
+ interface NodeExtra {
8
+ [kOnlyChildInParent]?: boolean;
9
+ [kNodeRef]?: Binding;
10
+ }
11
+ }
12
+ export declare function isOnlyChildInParent(tag: t.NodePath<t.MarkoTag>, branchSize?: number): boolean;
13
+ export declare function getOptimizedOnlyChildNodeRef(tag: t.NodePath<t.MarkoTag>, section: Section, branchSize?: number): Binding;
14
+ export {};
@@ -2,8 +2,6 @@ import { types as t } from "@marko/compiler";
2
2
  import { type Opt } from "./optional";
3
3
  import { type Binding, type ReferencedBindings } from "./references";
4
4
  import { type Section } from "./sections";
5
- export type closureSignalBuilder = (signal: Signal, render: t.Expression, intersection?: t.Expression) => t.Expression;
6
- export type registerScopeBuilder = (scope: t.Expression) => t.Expression;
7
5
  export type Signal = {
8
6
  identifier: t.Identifier;
9
7
  valueAccessor?: t.Expression;
@@ -11,7 +9,6 @@ export type Signal = {
11
9
  section: Section;
12
10
  build: () => t.Expression;
13
11
  register?: boolean;
14
- isDynamicClosure?: boolean;
15
12
  values: Array<{
16
13
  signal: {
17
14
  identifier: t.Identifier | t.MemberExpression;
@@ -35,6 +32,7 @@ export type Signal = {
35
32
  extraArgs?: t.Expression[];
36
33
  buildAssignment?: (valueSection: Section, value: t.Expression) => t.Expression;
37
34
  };
35
+ type closureSignalBuilder = (signal: Signal, render: t.Expression, intersection?: t.Expression) => t.Expression;
38
36
  export declare function setClosureSignalBuilder(tag: t.NodePath<t.MarkoTag>, builder: closureSignalBuilder): void;
39
37
  export declare function setForceResumeScope(section: Section): void;
40
38
  export declare const getSerializedScopeProperties: (section: Section) => Map<t.StringLiteral | t.NumericLiteral, t.Expression>;
@@ -60,3 +58,4 @@ export declare function addHTMLEffectCall(section: Section, referencedBindings?:
60
58
  export declare function writeHTMLResumeStatements(path: t.NodePath<t.MarkoTagBody | t.Program>): void;
61
59
  export declare function getSetup(section: Section): t.Identifier | undefined;
62
60
  export declare function replaceRegisteredFunctionNode(node: t.Node): t.CallExpression | t.ClassPrivateProperty | t.ClassProperty | t.VariableDeclaration | t.Identifier | t.ObjectProperty | undefined;
61
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marko",
3
- "version": "6.0.0-next.3.37",
3
+ "version": "6.0.0-next.3.39",
4
4
  "description": "Optimized runtime for Marko templates.",
5
5
  "keywords": [
6
6
  "api",