refactor: replace semver with verkit - #18145
Merged
Merged
Conversation
semver with verkit
Collaborator
|
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/61985 |
|
commit: |
14 tasks
Member
|
Thanks -- for what is worth at some point I was even considering vendoring Deno's Who does currently use it? |
Member
|
I am slightly in favor of this. |
Contributor
Author
|
Since |
sxzz
marked this pull request as ready for review
July 21, 2026 16:37
sxzz
force-pushed
the
codex/replace-semver-with-verkit
branch
2 times, most recently
from
July 23, 2026 11:40
502c0e8 to
ea793ac
Compare
This was referenced Jul 25, 2026
sxzz
force-pushed
the
codex/replace-semver-with-verkit
branch
from
August 4, 2026 18:10
ea793ac to
4a6e4c2
Compare
nicolo-ribaudo
approved these changes
Aug 7, 2026
JLHwung
approved these changes
Aug 8, 2026
liuxingbaoyu
approved these changes
Aug 8, 2026
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
semverwithverkitSummary
This PR replaces Babel's direct usage of
semverwithverkit.verkitprovides:The migration also removes
@types/semverand Babel's ESLint workaround forsemver's CommonJS exports. Existing version, range, coercion, and prerelease behavior is preserved.Motivation
node-semverdoes not appear to have an active ESM migration plan. The related request in semver/semver#1123 was closed as not planned. A direct dual-format ESM proposal in npm/node-semver#844 was also closed; maintainers noted that ESM is on their radar but is not currently being worked on. npm/node-semver#712That said,
verkitis still young and currently atv0.2.0. There is no urgency to adopt it—the Babel community may prefer to observe its stability and adoption before merging this change.Validation
yarn lint@babel/standalonebuild