FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: use loose semver to eliminate unnecessary errors by Speedrunyourknowledge · Pull Request #561 · ds300/patch-package · GitHub

fix: use loose semver to eliminate unnecessary errors - #561

Open
Speedrunyourknowledge wants to merge 1 commit into
ds300:masterfrom
Speedrunyourknowledge:Speedrunyourknowledge-patch-1
Open

fix: use loose semver to eliminate unnecessary errors#561
Speedrunyourknowledge wants to merge 1 commit into
ds300:masterfrom
Speedrunyourknowledge:Speedrunyourknowledge-patch-1

Conversation

Speedrunyourknowledge commented Mar 25, 2025
edited
Loading

Copy link
Copy Markdown

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.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL