Can I test changing a range inside a package.json patch?
Use JSON Patch Rehearsal to preview the structural edit, then paste the updated range here to test matching against a version list. Neither tool installs packages.
Runs in your browser. No file uploads for processing.
Test versions against one or two npm dependency ranges locally. See matches, differences and npm’s prerelease behavior.
Loading tool...
Paste one complete version per line, such as 0.2.3 or 0.3.0-beta.1. The test does not query npm or check whether those versions were ever published.
For example, caret ^0.2.3 matches 0.2.3 and 0.2.4 but not 0.3.0. Compare it with >=0.2.4 <0.4.0 to see which entered versions are accepted by only one range.
The default uses npm’s usual prerelease matching rules. Turn on includePrerelease to see how the same supplied versions behave under that option. The optional JSON contains your inputs and per-row results.
The tool processes inputs in your browser. Account features and usage analytics are separate.
Use JSON Patch Rehearsal to preview the structural edit, then paste the updated range here to test matching against a version list. Neither tool installs packages.
No. That caret range allows compatible versions below the next nonzero component, so 0.2.4 can match and 0.3.0 cannot.
By default, npm’s range matcher only accepts a prerelease if a comparator in the matching set has a prerelease on the same major, minor and patch. Use includePrerelease to test the explicit alternative behavior.
No. It compares both ranges against the supplied versions. The ranges could differ on versions you did not enter.
No. The parser runs in your browser, does not install or fetch packages, and does not request a list of published versions.