Skip to content

Latest commit

 

History

History
208 lines (106 loc) · 13.9 KB

CHANGELOG.md

File metadata and controls

208 lines (106 loc) · 13.9 KB

htmljs-parser

5.5.2

Patch Changes

5.5.1

Patch Changes

  • #168 3a696d0 Thanks @DylanPiercey! - When the preceding character of an expression is a quote, prefer division over regexp state. This improves parsing for inline css grid properties.

5.5.0

Minor Changes

  • #164 13a33a3 Thanks @DylanPiercey! - Allow indented javascript style comments that are not under a parent tag in concise mode.

5.4.3

Patch Changes

  • #161 be73442 Thanks @DylanPiercey! - Fixes a regression where the parsed text state (used by eg script, style) was not properly entering back into text for the closing quote on the string.

  • #162 085451c Thanks @DylanPiercey! - Always consume next character of expression if terminator was preceded by an operator.

5.4.2

Patch Changes

  • #158 fe98530 Thanks @DylanPiercey! - Fixes an regression where string literals inside of parsed text nodes (eg <script>) were not properly changing the parser state. This caused issues when comment like syntax was embedded within these string literals"

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

5.4.0

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.

5.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.

5.2.4

Patch Changes

5.2.3

Patch Changes

5.2.2

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.

5.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.

5.2.0

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.

5.1.5

Patch Changes

5.1.4

Patch Changes

  • #134 cdbc6b2 Thanks @DylanPiercey! - Improve missing attribute error when the tag is immediately closed without the attribute value.

5.1.3

Patch Changes

  • #132 59a10d5 Thanks @DylanPiercey! - Fix regression which caused script tags with a trailing comment as the same line as the closing tag to not always parse properly.

5.1.2

Patch Changes

  • #130 ebc850f Thanks @DylanPiercey! - Switch from regexp based parsing for the expression continuations. This slightly improves performance and more importantly fixes usage of the parser in safari.

5.1.1

Patch Changes

  • #127 222b145 Thanks @DylanPiercey! - Fix regression around JS style comments in the body by requiring that they are preceded by a whitespace.

5.1.0

Minor Changes

5.0.4

Patch Changes

5.0.3

Patch Changes

5.0.2

Patch Changes

  • #119 28fde07 Thanks @DylanPiercey! - Support JS line comments inside the open tag (previously just block comments could be used).
  • #119 28fde07 Thanks @DylanPiercey! - Support JS style comments in HTML bodies (previously allowed in parsed text and concise mode).

5.0.1

Patch Changes

  • #117 8bd3c40 Thanks @DylanPiercey! - Fix issue with onCloseTagStart not called for text mode tags (eg style, script, textarea & html-comment).

5.0.0

Major Changes

  • #114 14f3499 Thanks @DylanPiercey! - Rename onTagName to onOpenTagName. Add a new onOpenTagStart event (before onOpenTagName). Split the onCloseTag event into three new events: onClosetTagStart, onCloseTagName & onCloseTagEnd).

4.0.0

Major Changes

  • #112 2ad4628 Thanks @DylanPiercey! - Switch character position offsets for newlines to be to similar to vscode. Previously the newline was counted as the first character of the line, now it is the last character of the previous line.

3.3.6

Patch Changes

3.3.5

Patch Changes

  • #108 8a988f4 Thanks @DylanPiercey! - Fix issue where parser would sometimes not consume enough characters and cause a bracket mismatch

3.3.4

Patch Changes

  • #103 a4e3635 Thanks @DylanPiercey! - Fixes issue where expressions could consume an extra character when windows line endings used.
  • #103 1f2c9b0 Thanks @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 469b4bc Thanks @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

3.3.2

Patch Changes

  • #99 b1a3008 Thanks @DylanPiercey! - Fix expression continuations containing equals not consuming enough characters

3.3.1

Patch Changes