Skip to content

Pin babel-preset-react-app to to core-js minor '3.5' version and add a peer dependency #9021

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Mrman
Copy link

@Mrman Mrman commented May 16, 2020

  • Specified the minor version as recommended by core-js docs
  • Removed comment about core-js@3 upgrade
  • Added peer dependency on core-js from babel-preset-react-app.

Did some due dilligence and see react-error-overlay and react-scripts both directly depend on babel-preset-react-app but do not have a direct dependency on core-js. They do both have direct dependencies on react-app-polyfill that in turn depends on core-js.

From my testing:

  • npm doesn't complain about the peer depenency being unmet, guessing because it sees core-js in the dependency tree from react-app-polyfill
  • yarn does warn about the peer dependency being unmet, this seems more correct than npm's behaviour.

Forgive my ignorance but I don't know if babel-preset-react-app is expected to be usable without core-js? If not does that suggest react-scripts and react-error-overlay should have a direct dependency on core-js too?

closes #8875
closes #8779

@facebook-github-bot
Copy link

Hi @Mrman!

Thank you for your pull request and welcome to our community.We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file.

In order for us to review and merge your code, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

Mrman and others added 2 commits May 22, 2020 16:15
@Mrman Mrman changed the title Pin babel-preset-react-app to to core-js minor version and add a peer dependency Pin babel-preset-react-app to to core-js minor '3.5' version and add a peer dependency May 22, 2020
@Mrman
Copy link
Author

Mrman commented Jun 8, 2020

Now the peerDependency on core-js has been added, can this one go as part of the next milestone @ianschmitz? Think it would warrant a major version bump of babel-preset-react-app.

@stale
Copy link

stale bot commented Jul 11, 2020

This pull request has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.

@stale stale bot added the stale label Jul 11, 2020
@Mrman
Copy link
Author

Mrman commented Jul 12, 2020

PR is not stale, changes to my knowledge are good. Just needs review and release.

Can we get a breaking change and bug fix label added to this PR?

@stale stale bot removed the stale label Jul 12, 2020
@stale
Copy link

stale bot commented Aug 16, 2020

This pull request has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.

@stale stale bot added the stale label Aug 16, 2020
@Mrman
Copy link
Author

Mrman commented Aug 17, 2020

PR is not stale :)

@stale stale bot removed the stale label Aug 17, 2020
@Mrman
Copy link
Author

Mrman commented Sep 25, 2020

Have had to workaround this issue in another project. @ianschmitz / @iansu Is this something can be considered for the 4.1 milestone as a major version release to babel-preset-react-app?

@stale
Copy link

stale bot commented Dec 25, 2020

This pull request has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.

@stale stale bot added the stale label Dec 25, 2020
@stale stale bot removed the stale label Jan 2, 2021
@Mrman
Copy link
Author

Mrman commented Jan 2, 2021

Resolved conflicts. PR is not stale.

@Semigradsky
Copy link

Maybe change version to 3.8? :)

@Mrman
Copy link
Author

Mrman commented Jan 22, 2021

Maybe change version to 3.8? :)

We can go to 3.6 since that is the latest minor version that react-app-polyfill is pulling in

@stale
Copy link

stale bot commented Jan 9, 2022

This pull request has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.

@stale stale bot added the stale label Jan 9, 2022
@Semigradsky
Copy link

As I see react-app-polyfill has "core-js": "^3.19.2", in dependencies, so we can change version to 3.19?

@stale stale bot removed the stale label Jan 9, 2022
@xprommer
Copy link

xprommer commented Jan 9, 2022

I need corejs 3.17 for my project,
it would be great to update it to 3.19!

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