npm / browserslist
browserslist
What changed in browserslist 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
3 breaking4 security4 new APIs and options2 performance3 behavior and defaults14 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initbrowserslist 430 changes
Breaking changes 3
An error is now reported for misspelled config files.
Removed the Baseline warning because it has its own warning.
Removes support for Node.js 4.
Security 4
Fixed config name loading protection on Windows.
Browserslist: Unbounded memory growth (no cache eviction) via distinct query results, leading to eventual OOM
Browserslist: Uncaught crash / prototype write via untrusted browserslist-stats.json custom stats (normalizeStats)
Fixes prototype pollution.
New APIs and options 4
Added the BROWSERSLIST_TRACE_WARNING environment variable.
Adds comma support in the config file.
Adds the maintained node versions query.
Adds the node X query for selecting Node.js versions.
Performance 2
Improves
orparsing performance.Parsing performance was improved.
Behavior and default changes 3
Browserslist’s Firefox ESR data was updated, which may change the browser versions selected by matching queries.
Queries can now continue across lines and array entries, allowing multiline query configuration.
Shows a warning when caniuse-lite is old.
Fixes and other changes 14
The CLI no longer errors when stdout is closed.
Node.js prereleases are now handled correctly in node queries.
The old data warning is now handled correctly in npm silent mode.
Fixed browserslist.coverage for
my stats.Fixed joined version bounds in version ray and range queries.
Fixed whitespace processing.
Fixed ignoring null usage in cover X in Y queries.
Fixed case-insensitive negation queries.
Fixed percentage and supports queries case-insensitive.
Fixed
including kaiosin baseline queries.Fixed Electron version queries.
Fixed
>and>=queries.Fixed the SyntaxError regression introduced in 4.28.3.
Baseline queries are now case-insensitive.