Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: invalid version #95

Merged
merged 1 commit into from
Dec 8, 2023
Merged

Conversation

pdx-xf
Copy link
Contributor

@pdx-xf pdx-xf commented Dec 8, 2023

Description

When the version in package.json is incomplete, such as ^18 or ^18.2, SemVer will throw an exception.

image

Linked Issues

Additional context

@antfu antfu changed the title fix: Invalid Version fix: invalid version Dec 8, 2023
@antfu antfu merged commit 5e38c28 into antfu-collective:main Dec 8, 2023
5 checks passed
@JounQin
Copy link

JounQin commented Dec 26, 2023

I'm meeting this issue also:

{
  "open": "^8.4.2 || ^9.1.0 || ^10.0.1"
}
TypeError: Invalid Version: 8.4.2 || ^9.1.0 || ^10.0.1

When will this fix be released?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants