marko 6.0.3 → 6.0.5

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,2 @@
1
+ declare const _default: Set<string>;
2
+ export default _default;
@@ -3,6 +3,7 @@ import { type Many, type OneMany, type Opt, Sorted } from "./optional";
3
3
  import { type Section } from "./sections";
4
4
  import { type SerializeReason } from "./serialize-reasons";
5
5
  declare const kIsInvoked: unique symbol;
6
+ export declare const kBranchSerializeReason: unique symbol;
6
7
  export type Aliases = undefined | Binding | {
7
8
  [property: string]: Aliases;
8
9
  };
@@ -2,7 +2,7 @@ import { types as t } from "@marko/compiler";
2
2
  import type { DynamicSerializeReason } from "../../util/serialize-reasons";
3
3
  export declare function getTemplateContentName(): string;
4
4
  export declare function getExprIfSerialized<T extends undefined | boolean | DynamicSerializeReason, U extends t.Expression>(reason: T, expr: U): T extends {} ? U : undefined;
5
- export declare function getSerializeGuard<T extends undefined | boolean | DynamicSerializeReason>(reason: T): T extends {} ? t.Expression : undefined;
5
+ export declare function getSerializeGuard(reason: DynamicSerializeReason): t.CallExpression;
6
6
  declare const _default: {
7
7
  translate: {
8
8
  exit(this: unknown, program: t.NodePath<t.Program>): void;
@@ -18,8 +18,8 @@ declare const _default: {
18
18
  enter(this: unknown, tag: t.NodePath<t.MarkoTag>): void;
19
19
  };
20
20
  translate: {
21
- enter(this: unknown, tag: t.NodePath<t.MarkoTag>): void;
22
- exit(this: unknown, tag: t.NodePath<t.MarkoTag>): void;
21
+ readonly enter: (path: t.NodePath<t.MarkoTag>) => void;
22
+ readonly exit: (path: t.NodePath<t.MarkoTag>) => void;
23
23
  };
24
24
  };
25
25
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marko",
3
- "version": "6.0.3",
3
+ "version": "6.0.5",
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.18",
51
+ "@marko/compiler": "^5.39.19",
52
52
  "csstype": "^3.1.3",
53
53
  "magic-string": "^0.30.17"
54
54
  },