Skip to content

Releases: tdewolff/parse

v2.5.28

v2.5.27

13 Jan 20:51
Compare
Choose a tag to compare
  • JS: parse comma-operator expressions as a list, not a tree

v2.5.26

14 Dec 17:58
Compare
Choose a tag to compare
  • JS: fix WhileToFor option

v2.5.24

13 Dec 19:31
Compare
Choose a tag to compare
  • JS: const statement must have initializer
  • JS: mark var uses in for statement parameters as different from declarations inside for statement block

v2.5.23

07 Dec 15:23
Compare
Choose a tag to compare
  • JS: change parsing around variable declarations for reordering improvements in minifier for tdewolff/minify#445
  • JS: allow identifier with Unicode escape sequences after the first character

v2.5.22

04 Oct 18:55
Compare
Choose a tag to compare
  • HTML: set Text equal to Data for raw tag content, fixes #84
  • JS: fix JSON output for single-quoted strings, negative numbers, and return InvalidJSON form block en expression statements, fixes #88
  • JS: make JSON() optionally implemented on AST nodes, see #85
  • JS: bytes.Buffer now expected for JSON() instead of returning a string, fixes #85
  • JS: implement top level await, fixes #87
  • JS: add test cases for class field definitions

v2.5.21

11 Sep 02:01
Compare
Choose a tag to compare
  • JS: allow line and paragraph separators in strings, fixes #82

v2.5.20

11 Sep 01:16
Compare
Choose a tag to compare
  • JS: fix let{e}={e} where second e cannot be a declaration when there is the possibility that it might be arguments for an arrow func
  • JS: add JSON function, fixes #79

v2.5.19

06 Jul 23:40
Compare
Choose a tag to compare
  • JS: fix panic in Walk
  • JS: fix parsing of a++==b, see #75

v2.5.18

17 Jun 14:49
Compare
Choose a tag to compare
  • JS: properly parse {a:b=1} when part of arrow function arguments
  • JS: add JS() to convert AST to valid JS
  • JS: add AST walker functionality