Skip to content

Releases: SBoudrias/AST-query

v2.0.0

10 Jun 04:28
Compare
Choose a tag to compare
  • Update AST parser to Acorn
  • Added tree.verbatim() function to allow inserting unparsed code like JSX syntax, etc

v1.2.0

15 Mar 07:23
Compare
Choose a tag to compare
  • Capacity to match assignment, var and callExpression with RegEx.

Example:

tree.var(/^selected[A-Z]+/);

v1.1.1

15 Mar 07:15
Compare
Choose a tag to compare
  • Esprima options passed are now also correctly applied to code appended/modified on the three object.

v1.1.0

23 Dec 19:14
Compare
Choose a tag to compare
  • Allow passing Esprima options to the tree object in order to parse modules as ES6 (by defining the sourceType).

v1.0.1

18 Feb 07:16
Compare
Choose a tag to compare

Fix bug where a CallExpression object couldn't be empty.

v1.0.0

18 Feb 06:55
Compare
Choose a tag to compare
  • Add ArrayExpression#value() method.
  • ArrayExpression items are now available on the elements property

Major bump mostly to follow semver and better match npm version semantic. Also this module interface have been pretty stable for a while now.

v0.3.1

25 Jan 22:50
Compare
Choose a tag to compare

Maintenance update: code/build cleanup and dependencies bump

v0.3.0

19 Sep 06:34
Compare
Choose a tag to compare

Feature

  • Add ability to pass escodegen options (output code formatting) to the program constructor.

v0.2.5

19 Sep 06:23
Compare
Choose a tag to compare
  • Fix bug with prepend losing order. See #12

0.2.4

07 May 06:05
Compare
Choose a tag to compare
  • Keep comments in the AST
  • Allow Buffer as input
  • Fix bugs