Skip to content

Releases: SBoudrias/AST-query

v2.0.0

10 Jun 04:28

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

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

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

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

Choose a tag to compare

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

v1.0.0

18 Feb 06:55

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

Choose a tag to compare

Maintenance update: code/build cleanup and dependencies bump

v0.3.0

19 Sep 06:34

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

Choose a tag to compare

  • Fix bug with prepend losing order. See #12

0.2.4

07 May 06:05

Choose a tag to compare

  • Keep comments in the AST
  • Allow Buffer as input
  • Fix bugs