⚠ BREAKING CHANGES
- browserslist 4.21 or higher is required.
- Node.js 22 or higher is required.
- SemverPart is a plain object now: it has no reverse
mapping (SemverPart[0] is undefined instead of 'Major') and is not a
type anymore, use number for semver part indexes.
Features
- add allowVersionsGap option (#1621) (c20322c), closes #1498 #1547
- add unsupported option (#1622), closes #1558
- require Node.js 22 (#1609) (684966f)
- trim regex parts which don't change whether it matches (#1634) (c582ef9)
Bug Fixes
- bound versions at the end of regexes (#1631) (e30e7c3)
- compare versions part by part when higher versions are allowed (#1626) (005979f)
- deps: update ua-regexes-lite to v1.3.0 (#1619) (d33af59), closes #753
- deps: update ua-regexes-lite to v1.3.3 (#1645) (85f7c94)
- don't match selected versions with the unsupported option (#1647) (b416dd3)
- ignore zero subversions of each version with allowZeroSubversions (#1652) (d496778)
- make the regex which matches nothing compile in RE2 (#1653) (9c5a696)
- match higher versions in all regexes of a browser (#1648) (09dcaac)
- match higher versions only above the newest requested one with allowVersionsGap (#1650) (4873388)
- match only numbers of the range in segment patterns (#1636) (771f7b8)
- range browser versions which differ in several parts (#1627) (9a52903)
- use default export condition to allow require (#1600) (a5a212f)
Performance Improvements
- don't combine repeating patterns in regexes (#1632) (070a7d7)
- factor common parts of regex alternatives (#1633) (6991933)