Skip to content
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

Replace babylon with @babel/parser, and upgrade all babel dependencies #307

Merged
merged 1 commit into from
Jan 26, 2019

Conversation

rjatkins
Copy link
Contributor

 * Note that @babel/parser 7+ no longer supports wildcard plugins config, which forces us to be explicit. See https://babeljs.io/docs/en/babel-parser#plugins for the documented list of plugins
@codecov
Copy link

codecov bot commented Jan 25, 2019

Codecov Report

Merging #307 into master will decrease coverage by 0.28%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #307      +/-   ##
==========================================
- Coverage   98.39%   98.11%   -0.29%     
==========================================
  Files          32       30       -2     
  Lines         561      477      -84     
==========================================
- Hits          552      468      -84     
  Misses          9        9
Impacted Files Coverage Δ
src/parser/jsx.js 100% <ø> (ø) ⬆️
src/parser/es6.js 0% <ø> (ø) ⬆️
src/parser/vue.js 71.42% <ø> (ø) ⬆️
src/parser/es7.js 100% <ø> (ø) ⬆️
src/parser/typescript.js 83.33% <ø> (ø) ⬆️
src/utils/index.js 87.5% <0%> (-6.25%) ⬇️
src/check.js 98.83% <0%> (-1.17%) ⬇️
src/utils/linters.js 100% <0%> (ø) ⬆️
src/special/karma.js
src/utils/parser.js

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 69005fb...a13d9c8. Read the comment docs.

@codecov
Copy link

codecov bot commented Jan 25, 2019

Codecov Report

Merging #307 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #307   +/-   ##
=======================================
  Coverage   98.39%   98.39%           
=======================================
  Files          32       32           
  Lines         561      561           
=======================================
  Hits          552      552           
  Misses          9        9
Impacted Files Coverage Δ
src/parser/jsx.js 100% <ø> (ø) ⬆️
src/parser/es6.js 0% <ø> (ø) ⬆️
src/parser/vue.js 71.42% <ø> (ø) ⬆️
src/parser/es7.js 100% <ø> (ø) ⬆️
src/parser/typescript.js 83.33% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 69005fb...a13d9c8. Read the comment docs.

@lijunle
Copy link
Member

lijunle commented Jan 25, 2019

@rjatkins thank you very much on contributing on this project. Any breaking changes between babylon and @babel/parser?

Copy link
Member

@LinusU LinusU left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat 👏

@rjatkins
Copy link
Contributor Author

https://babeljs.io/docs/en/v7-migration-api#babel-parser-known-as-babylon lists the breaking changes in babel/parser. Aside from * plugins being removed, the default decorators spec implementation changed, and the class constructor call proposal was removed, because it was rejected by the tc39 committee.

I should note that I've left flow disabled by default, which may or may not be a good idea. We might have to create a specific flow parser to handle that instead. You definitely don't want flow and typescript enabled at the same time.

@rumpl rumpl merged commit 578f54e into depcheck:master Jan 26, 2019
@rumpl
Copy link
Member

rumpl commented Jan 26, 2019

I'm pretty much OK with flow being disabled :)

Thank you so much for contributing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants