Replace semver dependency with verkit - #1015
Merged
Merged
Conversation
Contributor
|
The changes in this PR will be included in the next version bump.
|
Contributor
📦 Bundle size✅ shrinks the bundle by 104.8 KB (−2.1%)
dist/ only; native binaries are versioned separately and not counted here. |
Contributor
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes across the dependency replacement and all version-sensitive call sites.
- Dependency replacement: Removes the direct
semverand@types/semverdependencies and addsverkit@^0.4.0with a patch changeset. - Plugin version handling: Maps exact-version validation, range normalization, and installed-version satisfaction checks to the corresponding
verkitAPIs. - Runtime comparisons: Moves the Bun minimum-version check and flattening logic to
verkitwhile preserving their existing decisions. - Packaging: Keeps
verkitbundled into Varlock's ESM output and self-contained CJS runtime bundles.
azure/gpt-5.6-sol | 𝕏
commit: |
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.



Replaces the `semver` package (plus `@types/semver`) with verkit, a smaller, zero-dependency, tree-shakeable semver implementation with native ESM and TypeScript support.
Function mapping at the call sites (plugins, install-plugin command, bun version check, flatten):
One minor behavior change: verkit does not treat `=1.2.3` as a valid fixed version, so it is now rejected by the fixed-version checks. The raw descriptor was previously used to build npm registry URLs, where `=1.2.3` would have failed anyway.
verkit is ESM-only; the self-contained CJS bundles inline it via `noExternal`, verified in the build output.