Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Require exact Babel 8 version in assertVersion#15955

Merged
nicolo-ribaudo merged 4 commits into
babel:mainfrom
nicolo-ribaudo:assert-version-babel-8
Oct 13, 2023
Merged

Require exact Babel 8 version in assertVersion#15955
nicolo-ribaudo merged 4 commits into
babel:mainfrom
nicolo-ribaudo:assert-version-babel-8

Conversation

@nicolo-ribaudo
Copy link
Copy Markdown
Member

@nicolo-ribaudo nicolo-ribaudo commented Sep 11, 2023

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

Once we release 8.0.0 stable, we'll have to use process.env.BABEL_8_BREAKING ? "^8.0.0" : "..." instead.

@nicolo-ribaudo nicolo-ribaudo added the PR: Internal (next major) 🏠 A type of pull request used for our changelog categories for next major release label Sep 11, 2023
@babel-bot
Copy link
Copy Markdown
Collaborator

babel-bot commented Sep 11, 2023

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

@babel-bot
Copy link
Copy Markdown
Collaborator

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

@nicolo-ribaudo
Copy link
Copy Markdown
Member Author

Ugh

@nicolo-ribaudo nicolo-ribaudo marked this pull request as draft September 11, 2023 16:23
@nicolo-ribaudo
Copy link
Copy Markdown
Member Author

I'll eventually work on a PR to properly support CONDITION_1 && CONDITION_2 ? x : y in our transform.

@nicolo-ribaudo nicolo-ribaudo marked this pull request as ready for review September 11, 2023 16:36
minSupportedCoreVersion += " || >=8.0.0-0";
}
const minSupportedCoreVersion = process.env.BABEL_8_BREAKING
? PACKAGE_JSON.version
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
? PACKAGE_JSON.version
? ">=8.0.0-0"

otherwise we will keep bumping Babel 8 requirements in every babel eslint parser 8 releases.

Copy link
Copy Markdown
Member Author

@nicolo-ribaudo nicolo-ribaudo Sep 11, 2023

Choose a reason for hiding this comment

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

I think during the prerelease period we'd want everything to be exactly at the same version, and then we relax it to ^8.0.0 once stable.

@nicolo-ribaudo
Copy link
Copy Markdown
Member Author

nicolo-ribaudo commented Sep 12, 2023

The first commit is from #15961.

@nicolo-ribaudo nicolo-ribaudo marked this pull request as draft September 12, 2023 14:18
@nicolo-ribaudo nicolo-ribaudo marked this pull request as ready for review September 18, 2023 17:41
@nicolo-ribaudo nicolo-ribaudo added this to the v8.0.0-alpha.next milestone Sep 26, 2023
@nicolo-ribaudo nicolo-ribaudo merged commit 1e15165 into babel:main Oct 13, 2023
@nicolo-ribaudo nicolo-ribaudo deleted the assert-version-babel-8 branch October 13, 2023 08:41
@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 Jan 31, 2024
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jan 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Internal (next major) 🏠 A type of pull request used for our changelog categories for next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants