npm / bowser
bowser
What changed in bowser 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-22.
3 breaking1 security10 new APIs and options5 behavior and defaults1 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initbowser 220 changes
Breaking changes 3
HeyTap, Vivo and Ladybird users are reported under their own browser names instead of Chrome, and Motorola Edge phones are no longer reported as Microsoft Edge.
The addition of named exports was rolled back, so they are no longer available.
The API is entirely new, more explicit, and more useful; existing code may need changes.
Security 1
Polynomial ReDoS patterns in Firefox-on-iPad, Linespider, SlackBot and the generic fallback rules were fixed, preventing crafted User-Agent strings from blocking the Node.js event loop during parsing.
New APIs and options 10
The package is dual packaged: require('bowser') still returns the same UMD build, while import resolves to a real ES module with named exports.
The method can now use an array of versions.
Adds support for detecting the DuckDuckGo browser.
Adds detection for the Line spider.
Adds detection for Slack bots.
Adds support for detecting AI crawl bots.
Adds support for more bot platforms.
Adds LibreWolf browser detection as a standalone type.
Adds named exports to support tree shaking with Vite and modern bundlers.
Adds Sogou browser support.
Behavior and default changes 5
The bundle is about 11 KB larger gzipped because it uses current core-js 3 polyfills with fuller spec compliance; it covers the same features as before.
Adds support for detecting the Brave browser.
Adds detection for the Smart TV platform.
Adds support for HarmonyOS user-agent detection.
Adds support for detecting the latest macOS.
Fixes and other changes 1
The ES5 build remains unchanged at about 7.5 KB gzipped and is suggested for projects that already ship polyfills.