Skip to content

Commit 8d38c8b

Browse files
github-actions[bot]DylanPiercey
authored andcommitted
[ci] release
1 parent 3c95d7f commit 8d38c8b

6 files changed

Lines changed: 21 additions & 24 deletions

File tree

.changeset/fast-expressions-skip-scans.md

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

.changeset/petite-signs-dance.md

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

.changeset/shiny-llamas-search.md

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

CHANGELOG.md

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

3+
## 5.11.0
4+
5+
### Minor Changes
6+
7+
- [#222](https://github.com/marko-js/htmljs-parser/pull/222) [`221d3b7`](https://github.com/marko-js/htmljs-parser/commit/221d3b71d71593f63347a01cb8a0d195377fe7b2) Thanks [@DylanPiercey](https://github.com/DylanPiercey)! - Replace TypeScript enums with erasable const modules so the source runs directly under node's type stripping. The public `TagType`, `ErrorCode`, and `Validity` values keep their runtime shape and values, and their types are now the equivalent literal unions. Constant values remain fully inlined in the published bundles.
8+
9+
### Patch Changes
10+
11+
- [#223](https://github.com/marko-js/htmljs-parser/pull/223) [`3c95d7f`](https://github.com/marko-js/htmljs-parser/commit/3c95d7f088d96cea92ca034ccf1fa70c173d6a6c) Thanks [@DylanPiercey](https://github.com/DylanPiercey)! - Speed up expression parsing by skipping work that provably cannot match. An
12+
identifier/number character is never whitespace, never a terminator (no
13+
`shouldTerminate` implementation matches a word character), and is not handled
14+
by the expression switch, so it now takes a fast path that just advances the
15+
position. The unary/binary operator keyword scans also bail out immediately when
16+
the surrounding character cannot start or end a keyword. This improves
17+
steady-state parsing throughput with no behavior change.
18+
19+
- [#220](https://github.com/marko-js/htmljs-parser/pull/220) [`85c8973`](https://github.com/marko-js/htmljs-parser/commit/85c8973693a005f925738f5f03a90a3221005b70) Thanks [@DylanPiercey](https://github.com/DylanPiercey)! - Refactor parser to allow individual states to process multiple characters. This allows for eager scanning, simplifies things some, and improves performance by about 30% in realworld tempaltes.
20+
321
## 5.10.2
422

523
### Patch 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.10.2",
3+
"version": "5.11.0",
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)