Skip to content

Releases: marko-js/htmljs-parser

v5.4.1

11 Mar 22:14
Compare
Choose a tag to compare

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 as thing_ and new x.

v5.4.0

08 Mar 14:44
Compare
Choose a tag to compare

Minor Changes

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

27 Feb 15:08
33d280d
Compare
Choose a tag to compare

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

13 Feb 19:29
210427c
Compare
Choose a tag to compare

Patch Changes

v5.2.3

07 Feb 22:23
75c1daa
Compare
Choose a tag to compare

Patch Changes

v5.2.2

24 Jan 21:03
e864b4b
Compare
Choose a tag to compare

Patch Changes

  • #146 bcfd809 Thanks @DylanPiercey! - Fixes an issue where attribute names that started with a keyword (eg: as-thing or instanceof-thing) were incorrectly treated as an expression continuation.

v5.2.1

07 Dec 21:32
b232aa2
Compare
Choose a tag to compare

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

22 Nov 17:39
76d00ee
Compare
Choose a tag to compare

Minor Changes

  • #141 81cff30 Thanks @DylanPiercey! - Add support for type parameter/argument parsing.
    This adds a new onTagTypeParams, onTagTypeArgs events and a .typeParams property on the AttrMethod range.

v5.1.5

09 Oct 03:40
9788f6e
Compare
Choose a tag to compare

Patch Changes

v5.1.4

17 Aug 16:01
7d3bd75
Compare
Choose a tag to compare

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.