Releases: SBoudrias/AST-query
Releases · SBoudrias/AST-query
v2.0.0
- Update AST parser to Acorn
- Added
tree.verbatim()
function to allow inserting unparsed code like JSX syntax, etc
v1.2.0
- Capacity to match
assignment
, var
and callExpression
with RegEx.
Example:
tree.var(/^selected[A-Z]+/);
v1.1.1
- Esprima options passed are now also correctly applied to code appended/modified on the three object.
v1.1.0
- Allow passing Esprima options to the tree object in order to parse
modules
as ES6 (by defining the sourceType
).
v1.0.1
Fix bug where a CallExpression
object couldn't be empty.
v1.0.0
- 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
Maintenance update: code/build cleanup and dependencies bump
v0.3.0
Feature
- Add ability to pass escodegen options (output code formatting) to the program constructor.
v0.2.5
- Fix bug with
prepend
losing order. See #12
0.2.4
- Keep comments in the AST
- Allow Buffer as input
- Fix bugs