From bf17647847775961edc50e1cd523f5422341303d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 26 Jun 2026 15:36:07 +0000 Subject: [PATCH] [ci] release --- .changeset/quick-comments-attrs.md | 5 ----- .changeset/statement-fn-return-type-body.md | 13 ------------- CHANGELOG.md | 18 ++++++++++++++++++ package-lock.json | 4 ++-- package.json | 2 +- 5 files changed, 21 insertions(+), 21 deletions(-) delete mode 100644 .changeset/quick-comments-attrs.md delete mode 100644 .changeset/statement-fn-return-type-body.md diff --git a/.changeset/quick-comments-attrs.md b/.changeset/quick-comments-attrs.md deleted file mode 100644 index 4dc48d7e..00000000 --- a/.changeset/quick-comments-attrs.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"htmljs-parser": minor ---- - -Support comments between concise mode line attributes. diff --git a/.changeset/statement-fn-return-type-body.md b/.changeset/statement-fn-return-type-body.md deleted file mode 100644 index f86fc6bd..00000000 --- a/.changeset/statement-fn-return-type-body.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -"htmljs-parser": patch ---- - -Fix a spurious "Mismatched group" error when a `>` (or other comparison) appears in the body of a statement function that declares a return type, e.g.: - -```marko -export function a(): b { - return c > d; -} -``` - -Previously the type-parsing state from the return type annotation leaked into the function body, so a `>` was treated as a closing generic bracket. A `{` that follows a completed type now correctly ends the annotation and parses the block as a value. diff --git a/CHANGELOG.md b/CHANGELOG.md index d58a2996..ea83e4a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,23 @@ # htmljs-parser +## 5.12.0 + +### Minor Changes + +- [#225](https://github.com/marko-js/htmljs-parser/pull/225) [`4d28e16`](https://github.com/marko-js/htmljs-parser/commit/4d28e1671e645642bebeae7e75e6d226f5ba0ce7) Thanks [@DylanPiercey](https://github.com/DylanPiercey)! - Support comments between concise mode line attributes. + +### Patch Changes + +- [#224](https://github.com/marko-js/htmljs-parser/pull/224) [`aaeb3fd`](https://github.com/marko-js/htmljs-parser/commit/aaeb3fd2e3616137b5ef7c13bfe0c71a820b6686) Thanks [@DylanPiercey](https://github.com/DylanPiercey)! - Fix a spurious "Mismatched group" error when a `>` (or other comparison) appears in the body of a statement function that declares a return type, e.g.: + + ```marko + export function a(): b { + return c > d; + } + ``` + + Previously the type-parsing state from the return type annotation leaked into the function body, so a `>` was treated as a closing generic bracket. A `{` that follows a completed type now correctly ends the annotation and parses the block as a value. + ## 5.11.0 ### Minor Changes diff --git a/package-lock.json b/package-lock.json index 0ff96498..a401098b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "htmljs-parser", - "version": "5.11.0", + "version": "5.12.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "htmljs-parser", - "version": "5.11.0", + "version": "5.12.0", "license": "MIT", "devDependencies": { "@changesets/changelog-github": "^0.7.0", diff --git a/package.json b/package.json index bac9ae8d..4171c34e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "htmljs-parser", - "version": "5.11.0", + "version": "5.12.0", "description": "An HTML parser recognizes content and string placeholders and allows JavaScript expressions as attribute values", "keywords": [ "HTML",