Skip to content

Conversation

@clarkdo
Copy link
Member

@clarkdo clarkdo commented Nov 24, 2019

Types of changes

  • Bug fix (a non-breaking change which fixes an issue)
  • New feature (a non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description

As core-js@2 has been deprecated officially, we can change default version to v3 now.

https://www.npmjs.com/package/core-js/v/2.6.10

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly. (PR: #)
  • I have added tests to cover my changes (if not applicable, please state why)
  • All new and existing tests are passing.

@clarkdo clarkdo requested a review from a team November 24, 2019 19:50
@TheAlexLichter
Copy link
Member

This will be a breaking change, right?

@codecov-io
Copy link

codecov-io commented Nov 24, 2019

Codecov Report

Merging #6721 into next will decrease coverage by 0.2%.
The diff coverage is 28.2%.

Impacted file tree graph

@@            Coverage Diff             @@
##             next    #6721      +/-   ##
==========================================
- Coverage   62.47%   62.27%   -0.21%     
==========================================
  Files          82       82              
  Lines        3310     3332      +22     
  Branches      902      905       +3     
==========================================
+ Hits         2068     2075       +7     
- Misses        997     1009      +12     
- Partials      245      248       +3
Flag Coverage Δ
#unittests 62.27% <28.2%> (-0.21%) ⬇️
Impacted Files Coverage Δ
packages/vue-app/src/index.js 0% <ø> (ø) ⬆️
packages/core/src/nuxt.js 93.18% <ø> (ø) ⬆️
packages/webpack/src/utils/postcss.js 1.19% <0%> (-0.15%) ⬇️
packages/vue-renderer/src/renderers/ssr.js 0% <0%> (ø) ⬆️
packages/vue-renderer/src/renderers/modern.js 0% <0%> (ø) ⬆️
packages/utils/src/modern.js 100% <100%> (ø) ⬆️

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 33d70e3...366371a. Read the comment docs.

@clarkdo
Copy link
Member Author

clarkdo commented Nov 24, 2019

@manniL I think it's not a breaking change since user won't change anything for it.

We fixed the core-js version at v2 because v3 was just released and there are issues due to nested/hoisting in different version.

Now, v3 has been released for 8 months and v2 has been deprecated officially, so I think it's the time to upgrade it.

@clarkdo
Copy link
Member Author

clarkdo commented Nov 24, 2019

@manniL Oh, one potential breaking change could be: User installed core-js@2 manually but doesn't configure corejs: 2.

@nuxt/core-team What you think if we put notification in release note and doc, then release it as a feature in next minor release ?

@galvez
Copy link
Contributor

galvez commented Nov 24, 2019

@nuxt/core-team What you think if we put notification in release note and doc, then release it as a feature in next minor release ?

Sounds good to me. Must be done carefully or we'll have a slew of bug reports due to a bad package-lock.json.

@TheAlexLichter
Copy link
Member

We should definitely give it a try but we have to assess the changes properly to avoid another bunch of core-js issues. IRC some projects, e.g. vue-cli, bumped the core-js version up to 3 in a major release.

@pi0
Copy link
Member

pi0 commented Nov 26, 2019

Indeed we need to be careful about bumping to 3. Le'ts hold this on until next team meeting.

@clarkdo
Copy link
Member Author

clarkdo commented Feb 2, 2020

@pi0 @manniL I've added a core-js version checking, so I think it should be OK to migrate to v3 in next minor release as core-js@2 has been deprecated officially.

@garrensweet
Copy link

bump

@clarkdo
Copy link
Member Author

clarkdo commented Feb 10, 2020

@pi0 @manniL I've added a core-js version checking, so I think it should be OK to migrate to v3 in next minor release as core-js@2 has been deprecated officially.

@pi0 Can you please have a look at latest change ?

@clarkdo
Copy link
Member Author

clarkdo commented Feb 25, 2020

cc @pi0

@pi0 pi0 changed the base branch from dev to next February 26, 2020 12:28
@pi0 pi0 changed the title feat(babel): change default core-js to v3 feat(babel-preset-app): change default core-js to v3 Feb 26, 2020
@pi0 pi0 merged commit 030b396 into next Feb 26, 2020
@pi0 pi0 deleted the core-js-3 branch February 26, 2020 13:13
@danielroe danielroe added the 2.x label Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants