npm / range-parser
range-parser
What changed in range-parser 1 to 2, from its official release notes, upgrade guides and advisories. Also covers @types/range-parser. Sources checked 2026-11-30.
4 breaking1 new APIs and options1 performance2 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initrange-parser 26 changes
Breaking changes 4
The package now outputs ESM, which changes how developers load it.
The minimum supported Node.js version is now 22.
parse now always returns an object with a code property.
Reversed ranges are now invalid.
New APIs and options 1
A format method was added.
Performance 1
Parsing performance was improved.
range-parser 12 changes
Fixes and other changes 2
Handles invalid start and end byte positions in range parsing.
Improves number parsing.