unstale

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 init

@unstale/cli on npm

bowser 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.

    2.15.0release notes

  • The addition of named exports was rolled back, so they are no longer available.

    2.13.1release notes

  • The API is entirely new, more explicit, and more useful; existing code may need changes.

    2.0.0release notes

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.

    2.15.0release notes

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.

    2.15.0release notes

  • The method can now use an array of versions.

    2.15.0release notes

  • Adds support for detecting the DuckDuckGo browser.

    2.14.0release notes

  • Adds detection for the Line spider.

    2.14.0release notes

  • Adds detection for Slack bots.

    2.14.0release notes

  • Adds support for detecting AI crawl bots.

    2.13.0release notes

  • Adds support for more bot platforms.

    2.13.0release notes

  • Adds LibreWolf browser detection as a standalone type.

    2.13.0release notes

  • Adds named exports to support tree shaking with Vite and modern bundlers.

    2.13.0release notes

  • Adds Sogou browser support.

    2.13.0release notes

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.

    2.15.0release notes

  • Adds support for detecting the Brave browser.

    2.14.0release notes

  • Adds detection for the Smart TV platform.

    2.14.0release notes

  • Adds support for HarmonyOS user-agent detection.

    2.13.0release notes

  • Adds support for detecting the latest macOS.

    2.13.0release notes

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.

    2.15.0release notes