Skip to content

Commit c4732ec

Browse files
github-actions[bot]DylanPiercey
authored andcommitted
[ci] release
1 parent a576b5c commit c4732ec

4 files changed

Lines changed: 11 additions & 10 deletions

File tree

.changeset/tidy-carrots-repair.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# htmljs-parser
22

3+
## 5.12.1
4+
5+
### Patch Changes
6+
7+
- [#227](https://github.com/marko-js/htmljs-parser/pull/227) [`a576b5c`](https://github.com/marko-js/htmljs-parser/commit/a576b5c86e1e7fe8a366784915361f50a9bdb381) Thanks [@DylanPiercey](https://github.com/DylanPiercey)! - Fix `isValidAttrValue` (and `isValidStatement` / `isValidScriptlet`) reporting `enclosed` for a value that ends in a trailing `//` line comment (e.g. `"hello" // note`).
8+
9+
A line comment with no terminating newline consumes everything that would follow it on the line, so such a value is not safe to emit verbatim. It is now classified as `valid` (needs wrapping when placed inline), matching the existing behavior for an unguarded trailing newline. A comment guarded by a group (e.g. `("hello" // c\n)`) or a self-closing block comment (`"hello" /* c */`) still classifies as `enclosed`.
10+
311
## 5.12.0
412

513
### Minor Changes

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "htmljs-parser",
3-
"version": "5.12.0",
3+
"version": "5.12.1",
44
"description": "An HTML parser recognizes content and string placeholders and allows JavaScript expressions as attribute values",
55
"keywords": [
66
"HTML",

0 commit comments

Comments
 (0)