marko 6.3.15 → 6.3.17

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,3 +1,2 @@
1
1
  import { types as t } from "@marko/compiler";
2
- export declare function toFirstExpressionOrBlock(stmts: t.Statement[]): t.ArrayExpression | t.ArrowFunctionExpression | t.AwaitExpression | t.BigIntLiteral | t.BinaryExpression | t.BindExpression | t.BlockStatement | t.BooleanLiteral | t.CallExpression | t.ClassExpression | t.ConditionalExpression | t.DecimalLiteral | t.DoExpression | t.FunctionExpression | t.Identifier | t.Import | t.ImportExpression | t.JSXElement | t.JSXFragment | t.LogicalExpression | t.MemberExpression | t.MetaProperty | t.ModuleExpression | t.NewExpression | t.NullLiteral | t.NumericLiteral | t.OptionalCallExpression | t.OptionalMemberExpression | t.ParenthesizedExpression | t.PipelineBareFunction | t.PipelinePrimaryTopicReference | t.PipelineTopicExpression | t.RecordExpression | t.RegExpLiteral | t.SequenceExpression | t.StringLiteral | t.Super | t.TSAsExpression | t.TSInstantiationExpression | t.TSNonNullExpression | t.TSSatisfiesExpression | t.TSTypeAssertion | t.TaggedTemplateExpression | t.TemplateLiteral | t.ThisExpression | t.TopicReference | t.TupleExpression | t.TypeCastExpression | t.UnaryExpression | t.UpdateExpression | t.YieldExpression | t.MarkoParseError;
3
- export declare function toParenthesizedExpressionIfNeeded(expr: t.Expression): t.ArrayExpression | t.ArrowFunctionExpression | t.AwaitExpression | t.BigIntLiteral | t.BinaryExpression | t.BindExpression | t.BooleanLiteral | t.CallExpression | t.ClassExpression | t.ConditionalExpression | t.DecimalLiteral | t.DoExpression | t.FunctionExpression | t.Identifier | t.Import | t.ImportExpression | t.JSXElement | t.JSXFragment | t.LogicalExpression | t.MemberExpression | t.MetaProperty | t.ModuleExpression | t.NewExpression | t.NullLiteral | t.NumericLiteral | t.OptionalCallExpression | t.OptionalMemberExpression | t.ParenthesizedExpression | t.PipelineBareFunction | t.PipelinePrimaryTopicReference | t.PipelineTopicExpression | t.RecordExpression | t.RegExpLiteral | t.SequenceExpression | t.StringLiteral | t.Super | t.TSAsExpression | t.TSInstantiationExpression | t.TSNonNullExpression | t.TSSatisfiesExpression | t.TSTypeAssertion | t.TaggedTemplateExpression | t.TemplateLiteral | t.ThisExpression | t.TopicReference | t.TupleExpression | t.TypeCastExpression | t.UnaryExpression | t.UpdateExpression | t.YieldExpression | t.MarkoParseError;
2
+ export declare function toFirstExpressionOrBlock(stmts: t.Statement[]): t.BlockStatement | t.Expression;
@@ -6,7 +6,7 @@ export declare enum Step {
6
6
  Enter = 0,
7
7
  Exit = 1
8
8
  }
9
- type VisitCodes = WalkCode.Get | WalkCode.Inside | WalkCode.Replace | WalkCode.DynamicTagWithVar;
9
+ type VisitCodes = WalkCode.Get | WalkCode.Replace | WalkCode.DynamicTagWithVar;
10
10
  export declare function enter(path: t.NodePath<any>): void;
11
11
  export declare function exit(path: t.NodePath<any>): void;
12
12
  export declare function enterShallow(path: t.NodePath<any>): void;
@@ -14,5 +14,5 @@ interface SectionMeta {
14
14
  }
15
15
  export declare const getSectionMeta: (section: Section) => SectionMeta;
16
16
  export declare function getSectionMetaIdentifiers(section: Section): SectionMeta;
17
- export declare function markNode(path: t.NodePath<t.MarkoTag | t.MarkoPlaceholder>, nodeBinding: Binding, reason: undefined | false | SerializeReason): void;
17
+ export declare function markNode(path: t.NodePath<t.MarkoTag | t.MarkoPlaceholder>, nodeBinding: Binding, reason: undefined | false | SerializeReason, deferred?: boolean): void;
18
18
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marko",
3
- "version": "6.3.15",
3
+ "version": "6.3.17",
4
4
  "description": "Optimized runtime for Marko templates.",
5
5
  "keywords": [
6
6
  "api",
@@ -47,15 +47,16 @@
47
47
  "!**/*.tsbuildinfo",
48
48
  "cheatsheet.md"
49
49
  ],
50
- "scripts": {
51
- "build": "node -r ~ts ./scripts/bundle.mts"
52
- },
53
50
  "dependencies": {
54
- "@marko/compiler": "^5.41.2",
51
+ "@marko/compiler": "^5.41.4",
55
52
  "csstype": "^3.2.3",
56
53
  "fastest-levenshtein": "^1.0.16",
57
54
  "magic-string": "^0.30.21"
58
55
  },
56
+ "devDependencies": {
57
+ "@marko/runtime-tags": "npm:marko@6.3.17",
58
+ "marko": "5.39.26"
59
+ },
59
60
  "engines": {
60
61
  "node": ">=22"
61
62
  },
@@ -69,5 +70,8 @@
69
70
  "./debug/*": "./src/*.ts",
70
71
  "./*": "./src/*.ts"
71
72
  },
72
- "private": false
73
- }
73
+ "private": false,
74
+ "scripts": {
75
+ "build": "node -r ~ts ./scripts/bundle.mts"
76
+ }
77
+ }