# What changed in range-parser

> 8 changes in range-parser 1 to 2 from its official release notes, upgrade guides and advisories: 4 breaking, 1 new APIs and options. Each one cited. Sources checked 2026-11-30. HTML: https://unstale.sh/npm/range-parser/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## range-parser 2

### Breaking changes

- The package now outputs ESM, which changes how developers load it. (2.0.0) — [release notes](https://github.com/jshttp/range-parser/releases/tag/v2.0.0)
- The minimum supported Node.js version is now 22. (2.0.0) — [release notes](https://github.com/jshttp/range-parser/releases/tag/v2.0.0)
- parse now always returns an object with a code property. (2.0.0) — [release notes](https://github.com/jshttp/range-parser/releases/tag/v2.0.0)
- Reversed ranges are now invalid. (2.0.0) — [release notes](https://github.com/jshttp/range-parser/releases/tag/v2.0.0)

### New APIs and options

- A format method was added. (2.0.0) — [release notes](https://github.com/jshttp/range-parser/releases/tag/v2.0.0)

### Performance

- Parsing performance was improved. (2.0.0) — [release notes](https://github.com/jshttp/range-parser/releases/tag/v2.0.0)

## range-parser 1

### Fixes and other changes

- Handles invalid start and end byte positions in range parsing. (1.3.0) — [release notes](https://github.com/jshttp/range-parser/releases/tag/v1.3.0)
- Improves number parsing. (1.3.0) — [release notes](https://github.com/jshttp/range-parser/releases/tag/v1.3.0)
