marko 6.0.0-next.3.22 → 6.0.0-next.3.23

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,6 +1,6 @@
1
1
  import { types as t } from "@marko/compiler";
2
+ import type { Falsy } from "../../common/types";
2
3
  import { attr, classAttr, escapeScript, escapeStyle, escapeXML, styleAttr, toString } from "../../html";
3
- type Falsy = false | 0 | "" | null | undefined;
4
4
  export declare function importRuntime(name: keyof typeof import("../../dom") | keyof typeof import("../../html")): t.MemberExpression;
5
5
  export declare function callRuntime(name: keyof typeof import("../../dom") | keyof typeof import("../../html"), ...args: Array<Parameters<typeof t.callExpression>[1][number] | Falsy>): t.CallExpression;
6
6
  export declare function getHTMLRuntime(): {
@@ -13,4 +13,3 @@ export declare function getHTMLRuntime(): {
13
13
  escapeStyle: typeof escapeStyle;
14
14
  };
15
15
  export declare function getCompatRuntimeFile(): string;
16
- export {};
@@ -16,7 +16,8 @@ export interface Section {
16
16
  closures: ReferencedBindings;
17
17
  bindings: ReferencedBindings;
18
18
  upstreamExpression: t.NodeExtra | undefined;
19
- hasCleanup: boolean;
19
+ hasAbortSignal: boolean;
20
+ isBranch: boolean;
20
21
  content: null | {
21
22
  startType: ContentType;
22
23
  endType: ContentType;
@@ -2,7 +2,7 @@ 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 subscribeBuilder = (subscriber: t.Expression) => t.Expression;
5
+ export type closureSignalBuilder = (signal: Signal, render: t.Expression, intersection?: t.Expression) => t.Expression;
6
6
  export type registerScopeBuilder = (scope: t.Expression) => t.Expression;
7
7
  export type Signal = {
8
8
  identifier: t.Identifier;
@@ -35,7 +35,7 @@ export type Signal = {
35
35
  extraArgs?: t.Expression[];
36
36
  buildAssignment?: (valueSection: Section, value: t.Expression) => t.Expression;
37
37
  };
38
- export declare function setSubscriberBuilder(tag: t.NodePath<t.MarkoTag>, builder: subscribeBuilder): void;
38
+ export declare function setClosureSignalBuilder(tag: t.NodePath<t.MarkoTag>, builder: closureSignalBuilder): void;
39
39
  export declare function setForceResumeScope(section: Section): void;
40
40
  export declare const getSerializedScopeProperties: (section: Section) => Map<t.StringLiteral | t.NumericLiteral, t.Expression>;
41
41
  export declare function getSignal(section: Section, referencedBindings: ReferencedBindings, name?: string): Signal;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marko",
3
- "version": "6.0.0-next.3.22",
3
+ "version": "6.0.0-next.3.23",
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.9",
51
+ "@marko/compiler": "^5.39.11",
52
52
  "csstype": "^3.1.3",
53
53
  "magic-string": "^0.30.17"
54
54
  },