Skip to content

Update jscodeshift to the latest version 🚀 #507

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 4, 2019

Conversation

greenkeeper[bot]
Copy link
Contributor

@greenkeeper greenkeeper bot commented Dec 4, 2018

The devDependency jscodeshift was updated from 0.4.1 to 0.6.0.

This version is not covered by your current version range.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.


Release Notes for v0.6.0

A bunch of changes to get jscodeshift in a better shape. This is minor version update because important dependencies and parser configurations have changed.


New

  • New CLI option --parser-config: This option accepts a path to a JSON file and overrides the default options for flow or babylon. This allows you to tweak parser settings (e.g. legacy decorators). (46d250f)
  • New CLI option --stdin: If provided, the list of files/directories is read from stdin. This makes it easier to pass large lists of files. (b6eaa0a)
  • New API in transforms: api.report lets you print arbitrary text to stdout. Useful if another tools consumes jscodeshift's stdout. (c902a00) Example:
// In the transform
api.report('some data');

// in stdout
REP path/to/file.js some data

  • Support for Typescript source code, via babylon ( #286 ; @brieb). Use --parser=ts or --parser=tsx.

Improvements

Fixes

  • JSXElements's hasAttributes method understands value-less Boolean attributes (#277 , @artemruts )
  • More reliable printing to stdout (62b12ad)

Internal

  • Replaces deprecated nomnom with own implementation (a2becc5)
  • Remove direct dependency on lodash (4701096)
Commits

The new version differs by 52 commits.

  • 5ab40a9 Use prepare instead of prepublish
  • 4fecbb5 Bump version to 0.6.0 for publishing
  • 2fd2429 Fix flow options
  • 1cbe93d Set tokens: true to all babylon configs
  • b5ca352 Update lock file
  • f70bbd6 Minor change to trigger travis ci build
  • 46d250f Allow passing custom options to babylon or flow via CLI option
  • ee6242d Drop support for Node v4
  • 75a7070 Enable ES6 feature in eslint
  • 4701096 Remove direct dependency on lodash
  • 143e375 Update dependencies
  • c902a00 Add simple reporting API
  • 4e8da4b Improve transform error output
  • 9c83c39 Do not use .apply to flatten arrays
  • 62b12ad Respect process.stdout.write's return value

There are 52 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper bot 🌴

@coveralls
Copy link

Coverage Status

Coverage remained the same at 99.442% when pulling 2c5fb06 on greenkeeper/jscodeshift-0.6.0 into e53906d on master.

@coveralls
Copy link

coveralls commented Dec 4, 2018

Coverage Status

Coverage remained the same at 99.443% when pulling 4d74737 on greenkeeper/jscodeshift-0.6.0 into ffa5430 on master.

greenkeeper bot added a commit that referenced this pull request Dec 5, 2018
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Dec 5, 2018

  • The devDependency jscodeshift was updated from 0.4.1 to 0.6.1.

Update to this version instead 🚀

Commits

The new version differs by 16 commits.

There are 16 commits in total.

See the full diff

greenkeeper bot added a commit that referenced this pull request Dec 6, 2018
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Dec 6, 2018

  • The devDependency jscodeshift was updated from 0.4.1 to 0.6.2.

Update to this version instead 🚀

Commits

The new version differs by 5 commits.

  • 891dea3 Bump version to 0.6.2 for publishing
  • 55ef34d Update changelog
  • cb92c48 Improve/fix @babel/register usage (closes #294)
  • 3fc6ca1 nomnom is not used anymore
  • 6e38213 Fix #243 (#244)

See the full diff

@jessebeach jessebeach merged commit fff6a4b into master Jan 4, 2019
@jessebeach jessebeach deleted the greenkeeper/jscodeshift-0.6.0 branch January 4, 2019 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants