Releases: facebook/jscodeshift
Releases · facebook/jscodeshift
v0.5.0
v0.3.32
v0.3.31
Fixes
- Printing issues by bumping recast and babylon versions ( #200 , #201 @xixixao)
- Bug with
template.expression
when a literal with no interpolation was used ( #196, @jsnajdr)
Internally
- Drop usage of
es6-promise
( #189, @wtgtybhertgeghgtwtg)
Thank you @xixixao, @jsnajdr and @wtgtybhertgeghgtwtg for contributing!
v0.3.30
v0.3.29
New
-
Collections now have a
.length
property which is equivalent to.size()
(#151, @DrewML) -
You can now reference jscodeshift as
j
directly from the transform's API options. I.e. you can writeexport default function transformer(file, { j }) { return j(file.source).toSource(); }
instead of
export default function transformer(file, api) { const j = api.jscodeshift; return j(file.source).toSource(); }
or
export default function transformer(file, {jscodeshift: j}) { return j(file.source).toSource(); }
Improved
- Experimental settings have been enabled for the flow parser, so it is now be able to process files that use e.g. public class fields (a2e4a3a)
v0.3.28
v0.3.27
v0.3.26
New
- Return value of
Runner.run
includes elapsed time and stats collected viastats
method ( #128, @iamdustan). jscodeshift --version
also prints the used recast version ( #131, @keyanzhang)