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

Breaking change in 3.4.2: trailing comma from prettier-eslint 6.0.0 #64

Closed
denis-sokolov opened this issue May 26, 2017 · 6 comments
Closed

Comments

@denis-sokolov
Copy link
Contributor

In c5e802e, this project has upgraded its dependency prettier-eslint to 6.0.0. This introduced a backwards-compatibility breaking change, as prettier-eslint starting from 6.0.0 has a different default for trailing commas. Unlike prettier-eslint, however, this project released this change as a patch version 3.4.2. In our codebase, running prettier-eslint-cli@3.4.2 now generates a huge diff because it removes all trailing commas.

Seeing how there’s version 4.0.0 of prettier-eslint-cli that is cheerily moving forward, I would suggest releasing another version in the 3.x branch that reverts the breaking change only to maintain stability for users who have not upgraded yet.

#62 seems tangentially related.

@kentcdodds
Copy link
Member

Makes sense 👍 sorry about that. I'll be more careful about those kinds of changes in the future. Thanks!

kentcdodds pushed a commit that referenced this issue May 26, 2017
Closes #64
@kentcdodds
Copy link
Member

This has been published as 3.6.1

@denis-sokolov
Copy link
Contributor Author

Thanks for a quick response and a release. While I can confirm the main issue gone, there are still a few minor formatting differences between 3.4.1 and 3.6.1, but at least it’s not replacing the entire project.

@kentcdodds
Copy link
Member

Yeah, sorry about that. Hopefully this wont be an issue in the future.

@lukaszmoroz
Copy link

3.6.1 is now tagged latest on npm, so you may want to update it.

kentcdodds pushed a commit that referenced this issue Jun 1, 2017
@kentcdodds
Copy link
Member

Whoops! Thanks for that! Updating now 👍

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

No branches or pull requests

3 participants