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

fix: runtime-corejs 2 should depend on core-js@2 #14937

Merged
merged 2 commits into from Sep 15, 2022

Conversation

JLHwung
Copy link
Contributor

@JLHwung JLHwung commented Sep 14, 2022

Q                       A
Fixed Issues? Fixes #14936
Patch: Bug Fix? Y
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

This PR fixes a regression introduced in #14924: We run yarn up core-js without checking that @babel/runtime-corejs2 must depend on core-js@2. This issue had happened once before but then we fixed it before we published. Anyway I draft a new yarn constraint and hopefully it won't bother us any more.

@JLHwung JLHwung added PR: Bug Fix 🐛 A type of pull request used for our changelog categories i: regression labels Sep 14, 2022
@babel-bot
Copy link
Collaborator

babel-bot commented Sep 14, 2022

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/52950/

(DependencyType = 'dependencies'),
% The rule works for @babel/runtime-corejs2 only
(WorkspaceIdent = '@babel/runtime-corejs2').
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Now yarn constraints will throw

YN0024: @babel/runtime-corejs2 must depend on core-js via ^2.6.12, but uses ^3.25.1 instead (in dependencies)

if we run yarn up core-js without yarn constraints --fix, the constraint check is in CI so we should be all good.

@nicolo-ribaudo nicolo-ribaudo merged commit b5d3cc6 into babel:main Sep 15, 2022
@nicolo-ribaudo nicolo-ribaudo deleted the fix-14936 branch September 15, 2022 00:26
@nicolo-ribaudo
Copy link
Member

I'll release as soon as ci is green on main.

@liuxingbaoyu
Copy link
Member

Amazing, thanks!

@mynnx
Copy link

mynnx commented Sep 15, 2022

This fix does not yet appear to be pushed to NPM - is this a caching issue or did we fail to push the release?

@liuxingbaoyu
Copy link
Member

@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Dec 16, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
i: regression outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Bug Fix 🐛 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: after update runtime-corejs to 7.19.1 webpack falling with error
5 participants