refactor: replace semver with verkit#18145
Open
sxzz wants to merge 2 commits into
Open
Conversation
semver with verkit
Collaborator
|
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/61962 |
|
commit: |
10 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
from
July 21, 2026 16:37
fefb6c2 to
059d7a9
Compare
sxzz
force-pushed
the
codex/replace-semver-with-verkit
branch
from
July 23, 2026 11:40
502c0e8 to
ea793ac
Compare
This was referenced Jul 25, 2026
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