diff --git a/.changeset/afraid-comics-whisper.md b/.changeset/afraid-comics-whisper.md deleted file mode 100644 index 4872dbe9..00000000 --- a/.changeset/afraid-comics-whisper.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"htmljs-parser": patch ---- - -Fixes issue where expressions could consume an extra character when windows line endings used. diff --git a/.changeset/light-trees-laugh.md b/.changeset/light-trees-laugh.md deleted file mode 100644 index c67fd9e7..00000000 --- a/.changeset/light-trees-laugh.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"htmljs-parser": patch ---- - -When parsing unenclosed expressions we look backwards for unary operators preceded by a word break. This caused a false positive when a member expression was found with the operator name, eg `input.new`. Now we ensure that these operators are not in a member expression like this. diff --git a/.changeset/strange-zoos-tell.md b/.changeset/strange-zoos-tell.md deleted file mode 100644 index 480f50fd..00000000 --- a/.changeset/strange-zoos-tell.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"htmljs-parser": patch ---- - -Improves consistency with v2 of the parser by allowing expressions to span multiple lines if the line is ended with the continuation. This change also allows html attributes and grouped concise attributes to span multiple lines with a new line before _or after_ the continuation. diff --git a/CHANGELOG.md b/CHANGELOG.md index e116a04e..785bda2a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # htmljs-parser +## 3.3.4 + +### Patch Changes + +- [#103](https://github.com/marko-js/htmljs-parser/pull/103) [`a4e3635`](https://github.com/marko-js/htmljs-parser/commit/a4e3635f790ebccdbacb3f432064891c7cee9b60) Thanks [@DylanPiercey](https://github.com/DylanPiercey)! - Fixes issue where expressions could consume an extra character when windows line endings used. + +* [#103](https://github.com/marko-js/htmljs-parser/pull/103) [`1f2c9b0`](https://github.com/marko-js/htmljs-parser/commit/1f2c9b01d852ec7f735b2aa8e48a54ac67d63919) Thanks [@DylanPiercey](https://github.com/DylanPiercey)! - When parsing unenclosed expressions we look backwards for unary operators preceded by a word break. This caused a false positive when a member expression was found with the operator name, eg `input.new`. Now we ensure that these operators are not in a member expression like this. + +- [#103](https://github.com/marko-js/htmljs-parser/pull/103) [`469b4bc`](https://github.com/marko-js/htmljs-parser/commit/469b4bc23fa5412bae6f2b3a701c180b1f77b812) Thanks [@DylanPiercey](https://github.com/DylanPiercey)! - Improves consistency with v2 of the parser by allowing expressions to span multiple lines if the line is ended with the continuation. This change also allows html attributes and grouped concise attributes to span multiple lines with a new line before _or after_ the continuation. + ## 3.3.3 ### Patch Changes diff --git a/package.json b/package.json index c932e27a..55d02de4 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "htmljs-parser", "description": "An HTML parser recognizes content and string placeholders and allows JavaScript expressions as attribute values", - "version": "3.3.3", + "version": "3.3.4", "devDependencies": { "@changesets/changelog-github": "^0.4.4", "@changesets/cli": "^2.22.0",