Releases: marko-js/htmljs-parser
Releases · marko-js/htmljs-parser
v5.4.1
Patch Changes
- #156
72b3379
Thanks @DylanPiercey! - Fix regression where the parser would continue unary keyword expressions even if the keyword was inside a word boundary. Eg<div class=thing_new x>
would cause the parser to see the expression asthing_
andnew x
.
v5.4.0
Minor Changes
-
#154
6b5b196
Thanks @DylanPiercey! - In concise mode, a new line which starts with a coma will now continue attributes for the current tag. -
#154
6b5b196
Thanks @DylanPiercey! - Allow a comma to follow the tag name to begin attributes.
Patch Changes
- #154
61e6966
Thanks @DylanPiercey! - Avoid continuing expressions after a period if after the whitespace is something that could not be an identifier.
v5.3.0
Minor Changes
- #152
ea65c9f
Thanks @DylanPiercey! - Improve handling ambiguity with tag type args vs type params. Type args must now always be directly adjacent the tag name, otherwise it will become type params.
v5.2.4
Patch Changes
- #150
0d7210b
Thanks @DylanPiercey! - Fix issue with tag variable not terminated on concise mode text delimiter
v5.2.3
Patch Changes
- #148
948830e
Thanks @DylanPiercey! - Fix issue with semi-colon after a block scriptlet.
v5.2.2
Patch Changes
- #146
bcfd809
Thanks @DylanPiercey! - Fixes an issue where attribute names that started with a keyword (eg:as-thing
orinstanceof-thing
) were incorrectly treated as an expression continuation.
v5.2.1
Patch Changes
- #143
635b97c
Thanks @DylanPiercey! - Fix issue where and extra character was being consumed if an escaped placeholder was at the end of a tag.
v5.2.0
Minor Changes
- #141
81cff30
Thanks @DylanPiercey! - Add support for type parameter/argument parsing.
This adds a newonTagTypeParams
,onTagTypeArgs
events and a.typeParams
property on theAttrMethod
range.
v5.1.5
Patch Changes
- #138
8c34227
Thanks @DylanPiercey! - Fixes a parse error where division is immediately followed by enclosed code.
v5.1.4
Patch Changes
-
#136
b5fa4d0
Thanks @DylanPiercey! - Optimize parser constructor to avoid initializing unecessary properties. -
#134
cdbc6b2
Thanks @DylanPiercey! - Improve missing attribute error when the tag is immediately closed without the attribute value.