- edit: update dependencies
- edit: update dependencies
- edit: replace nyc with c8 (coverage)
- edit: update meriyah and path-parse
- add: pass parent node to the remove callback
- add: bring back esquery for better selector matching
- remove: rollup and client-side bundle
- add: ArrowFunctionExpression to types.json
- remove: esquery dependency (to simplify client-side bundling)
- edit: update dependencies
- edit: update required node to 14.0.0
- edit: improve logicalExpressionReduction
- edit: improve shorthand syntax for Literals
- add: support shorthand syntax for CallExpressions
- add: support shorthand syntax for Identifiers, Literals and ArrayExpressions
- edit: support array of nodes in the toBinaryExpression method
- edit: update dependencies
- edit: update rollup
- edit: update dependencies
- edit: update dependencies
- edit: update dependencies
- edit: downgrade required node to 12.20.1
- edit: update dependencies
- add: iife method (static)
- add: program method (static)
- remove: asttv dependency, inline code in the serialize method
- remove: estemplate dependency, inline code to support/import export and remove esprima dependency
- add: support dynamic imports in the generate method
- remove: to-ast dependency
- add: backfill code of the to-ast dependency inside of the template method
- add: possibility to use the library in the browser
- edit: update dependencies
- edit: improve binaryExpressionReduction
- edit: expose optimizations method directly
- add: new toBinaryExpression method
- add: new match method
- edit: fix README
- edit: add optimization techniques
- edit: change cherow to meriyah
- edit: append and prepend mutate existing arrays
- add: possibility to create a new abstract syntax tree instance without params
- add: append and prepend accept string as input
- update: ava
- edit: update nyc
- add: reduce method
- edit: update deps
- add: support object selector in the find, has and count methods
- edit: better performance for the remove method (string selector)
- remove: obsolete config.js file
- edit: remove nodes only if null is returned in the replace method
- add: static methods: find, each, first, last, count, has, remove, equal and traverse
- add: getters -> type, body, source and map
- edit: replace method now accepts options object instead of a callback
- edit: removed the
is
method, please use staticequal
method instead - edit: ast property has been replaced with _tree
- remove:
minify
andbeautify
methods - remove:
toSource
,toSourceMap
andtoString
methods
- edit: add src dir to files in package.json
- edit: move prettier to deps
- add: update replace method to handle array and null value
- edit: update cherow to 1.6.8
- edit: replace escodegen with astring
- edit: pass npm audit
- add: static replace method
- add: body method, as a shortcut for accessing tree.ast.body
- edit: change espree to cherow
- remove: comments support
- remove: drop node 4.0.0 support (LTS end of life)
- add: static generate method
- add: basic jsx support
- add: support node >= 4.0.0 (#40)
- add: mark method
- add: tests that show how to calculate binary expressions or drop if statements
- add: accept ast as a param of the constructor
- add: static walk method
- add: toSourceMap method
- edit: toSource accepts a sourceMap/sourceFile/sourceRoot options
- edit: expose removeByNode and removeBySelector as public methods
- add: docs, tests
- add: docs
- remove: astq
- add: browserified version in the build dir
- edit: replace js-beautify with prettier
- add: support astq query engine for find and query methods
- add: walk and traverse methods
- add: each and toString methods
- add: count method
- add: handle string selector in the remove method
- edit: switch from acorn to espree
- add: better comments support
- add: source field
- add: template method
- add: unwrap method (e.g. drop iife)
- add: is method (you can compare nodes loosely)
- add: wrap method (you can wrap the code, e.g. with iife or amd)
- add: minify method (noop, override it to provide extra functionality)
- add: beautify method to the class