Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: use loose semver to eliminate unnecessary errors #561

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

Open
Speedrunyourknowledge wants to merge 1 commit into ds300:master
base: master
Choose a base branch
Loading
from Speedrunyourknowledge:Speedrunyourknowledge-patch-1

Conversation

Copy link

@Speedrunyourknowledge Speedrunyourknowledge commented Mar 25, 2025
edited
Loading

I recently used patch-package in production, and I got the "Version string cannot be parsed" error because one of my npm packages had the version 0.10.1a in its package.json. Specifically, this was the "mathquill" npm package. The "a" at the end of the version number was causing the error. As a result, patch-package was unable to patch this npm package when doing a fresh npm install and postinstall.

I propose using the "loose" option when checking if the semantic version of an npm package is valid. In my tests using the "loose" option, the mathquill npm package with version 0.10.1a was correctly given a patch with version 0.10.1-a.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /