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

Better support React 16.3.0 #4090

Merged
merged 2 commits into from
Mar 31, 2018
Merged

Better support React 16.3.0 #4090

merged 2 commits into from
Mar 31, 2018

Conversation

oliviertassinari
Copy link
Contributor

package.json Outdated
@@ -77,7 +77,7 @@
"fresh": "0.5.2",
"friendly-errors-webpack-plugin": "1.6.1",
"glob": "7.1.2",
"hoist-non-react-statics": "2.3.1",
"hoist-non-react-statics": "^2.5.0",
Copy link
Member

Choose a reason for hiding this comment

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

Lets make ^2.5.0 => 2.5.0

Copy link
Member

Choose a reason for hiding this comment

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

Other than that, amazing 👌

Copy link
Contributor Author

@oliviertassinari oliviertassinari Mar 31, 2018

Choose a reason for hiding this comment

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

@timneutkens Next.js seems to be using a yarn.lock. Why do you want to lock the versions? The larger the scope is, the less likely a package will be duplicated on user-side (smaller client bundle, faster yarn installation).

Copy link
Member

Choose a reason for hiding this comment

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

yarn.lock doesn't work for published packages. We've had many cases where Next / other ZEIT projects broke because a faulty version was released, eg react-hot-loader. By locking we're always very sure the supplied versions work perfectly with Next (thanks to the tests).

Copy link
Member

Choose a reason for hiding this comment

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

I've updated the PR and merged 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK thanks. It's definitely not the tradeoff I would have chosen. This solution isn't systematic. People depends on a bunch of other dependencies. Even if they don't experience broken releases from next, they will from other dependencies. So, either they don't care about it or they will solve the problem with yarn.lock or package.lock. Either way, libraries authors can ignore the problem. I would rather not harm the majority for a minority of the user base.
Anyway, I understand the motivation. I will stick to the React 16.3.0 thing :).

@timneutkens timneutkens merged commit bd50a7c into vercel:canary Mar 31, 2018
@oliviertassinari oliviertassinari deleted the patch-5 branch March 31, 2018 13:14
@oliviertassinari
Copy link
Contributor Author

oliviertassinari commented Mar 31, 2018

Thank you for the quick review! I was shopping outside.

@oliviertassinari oliviertassinari mentioned this pull request Apr 3, 2018
timneutkens pushed a commit that referenced this pull request Apr 3, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Mar 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants