# Changelog

All notable changes to this project are documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.5.1](https://github.com/barisaydinoglu/Detectizr/compare/v2.5.0...v2.5.1) (2026-12-01)


### Fixed

* load as a module in webpack, Vite and other bundlers ([4c9cbf4](https://github.com/barisaydinoglu/Detectizr/commit/4c9cbf467940369c0ca08cecae7aeb8042b0c12e)), closes [#54](https://github.com/barisaydinoglu/Detectizr/issues/54)
* report 64bit on macOS ([2412dad](https://github.com/barisaydinoglu/Detectizr/commit/2412dad580df9f010ce8891e3ee521298cdcf841))

## [2.5.0](https://github.com/barisaydinoglu/Detectizr/compare/v2.4.1...v2.5.0) (2026-12-01)


### Added

* refine detection with User-Agent Client Hints ([d77fe09](https://github.com/barisaydinoglu/Detectizr/commit/d77fe0930d2f84b7f67b2cdff925fec79ff7adb4)), closes [#35](https://github.com/barisaydinoglu/Detectizr/issues/35)

## [2.4.1](https://github.com/barisaydinoglu/Detectizr/compare/v2.4.0...v2.4.1) (2026-12-01)


### Fixed

* write "mac os" as one macOs class ([9e2c108](https://github.com/barisaydinoglu/Detectizr/commit/9e2c10894378f6930237e04ead25fbb2b1f43918))

## [2.4.0](https://github.com/barisaydinoglu/Detectizr/compare/v2.3.1...v2.4.0) (2026-11-30)


### Added

* detect ChromeOS and keep Chromebooks on desktop ([da19fd4](https://github.com/barisaydinoglu/Detectizr/commit/da19fd480cea1e8a4cc85d6598062a8ea931b9b8)), closes [#44](https://github.com/barisaydinoglu/Detectizr/issues/44)
* detect Chromium-based Microsoft Edge ([f63e1fa](https://github.com/barisaydinoglu/Detectizr/commit/f63e1fac2179921b5d8ac17230dc459a121f3c9c)), closes [#58](https://github.com/barisaydinoglu/Detectizr/issues/58)
* detect Fire tablets, Fire OS and the Silk browser ([73dba92](https://github.com/barisaydinoglu/Detectizr/commit/73dba9232ceb586a2fee443da7baa4dfab6ae446)), closes [#23](https://github.com/barisaydinoglu/Detectizr/issues/23)
* detect in-app browsers of social apps and Android WebView ([37304e6](https://github.com/barisaydinoglu/Detectizr/commit/37304e6bf3e5f2be68c522638f0b575f8bcc8f1e)), closes [#22](https://github.com/barisaydinoglu/Detectizr/issues/22)
* detect iPadOS 13+ as an iPad ([a457d5f](https://github.com/barisaydinoglu/Detectizr/commit/a457d5f6cf89136bb725bf762b28e91dff545eeb)), closes [#24](https://github.com/barisaydinoglu/Detectizr/issues/24)
* detect Opera on Chromium ([23742d1](https://github.com/barisaydinoglu/Detectizr/commit/23742d118e078c30bc304a9fb4cfc02e18fc3935)), closes [#34](https://github.com/barisaydinoglu/Detectizr/issues/34)
* detect PlayStation 4, PlayStation 5 and Nintendo Switch as consoles ([dac8c6b](https://github.com/barisaydinoglu/Detectizr/commit/dac8c6b9daff0b63446a55a7509cd779b3ccce02))
* detect Samsung Internet ([9def674](https://github.com/barisaydinoglu/Detectizr/commit/9def6740401bc7fe38d2e785aea34bc4f524b391)), closes [#57](https://github.com/barisaydinoglu/Detectizr/issues/57)
* expose the version as Detectizr.version ([ed79de0](https://github.com/barisaydinoglu/Detectizr/commit/ed79de0179e21f74777569c2aa4bc86b1183a77d))

## [2.3.1](https://github.com/barisaydinoglu/Detectizr/compare/v2.3.0...v2.3.1) (2026-11-30)


### Fixed

* apply detect() settings to that call only ([d51c019](https://github.com/barisaydinoglu/Detectizr/commit/d51c01926e8a1dd1f45d5bef65a85a9969b55a00))
* detect Darwin user agents as macOS instead of Windows ([f991031](https://github.com/barisaydinoglu/Detectizr/commit/f991031edab437068043fb32d866dcc9039493c2))
* detect plugins through ActiveX on Internet Explorer ([101bd5f](https://github.com/barisaydinoglu/Detectizr/commit/101bd5f45e03d53d6ca8fbe4c20af0dc7a367f9b)), closes [#36](https://github.com/barisaydinoglu/Detectizr/issues/36)
* detect plugins whose description contains "undefined" ([a07e244](https://github.com/barisaydinoglu/Detectizr/commit/a07e24449a90aa7fe31b42e0bd649e418f7bdd60))
* do not crash when device or browser detection is disabled ([0d98c7b](https://github.com/barisaydinoglu/Detectizr/commit/0d98c7be3b1f9573dae0b4353a33349ecf19880a))
* keep the page's own window.onresize handler ([ee3eeff](https://github.com/barisaydinoglu/Detectizr/commit/ee3eeffae47a309c26c0103b02d49e9c9538e8a8))
* remove the results of an earlier detect() when detecting again ([f3f3eed](https://github.com/barisaydinoglu/Detectizr/commit/f3f3eedde9a35fce9c2e7e3381c0a15f729fb197))

## [2.3.0] - 2026-11-30

The first release since 2.2.0 (December 2015). It ships the community fixes that
were merged into `master` in 2016–2017 but never published to npm, and brings the
tooling and test suite up to date.

> **Note:** `dist/` on `master` has contained these changes since November 2016
> while still being labelled 2.2.0. If you load Detectizr from
> `cdn.jsdelivr.net/gh/barisaydinoglu/Detectizr@master`, you already run this
> detection code; pin to `@2.3.0` instead.

### Added
- Firefox for iOS (`FxiOS`) is detected as `firefox` (was reported as Safari).
  Thanks [@Splact](https://github.com/Splact) (Dario Carella) — #51.

### Changed
- BlackBerry 10 phones are detected as `mobile` instead of `tablet`.
  Thanks [@lquinn](https://github.com/lquinn) (Liam Quinn) — #41, fixes #40.
- NVIDIA SHIELD is detected as an Android `tablet`.
  Thanks [@axelhodler](https://github.com/axelhodler) (Axel Hodler) — #43, fixes #42.

These change the `device.type` value and the `<html>` classes for those devices.

### Fixed
- No error in old browsers where `navigator.javaEnabled` is not a function.
  Thanks [@anagami](https://github.com/anagami) — #46.
- Detection falls back to an empty string when no user agent, vendor or
  `window.opera` is available. Thanks [@anagami](https://github.com/anagami) — #48.
- The minified file's banner now shows the license (`Licensed MIT`).

### Internal
- All dev dependencies updated to their current major versions; `npm audit` is clean.
  Removed the unmaintained `grunt-jscs`, `grunt-release-it`, `grunt-git-authors` and `q`.
- QUnit 1 → QUnit 3; browser tests run in headless Chrome (Puppeteer) instead of PhantomJS,
  now against a real Modernizr 3 build (`external/modernizr/`).
- New Node test suite (QUnit + jsdom + istanbul) with 100% statement, branch, function
  and line coverage enforced in CI. The same suite also runs against the built `dist` files.
  Known detection bugs are recorded as `QUnit.test.todo` tests.
- Removed unreachable defensive code from `src/detectizr.js`; behaviour is unchanged
  (the full suite passes against both the old and the new source).
- Travis CI replaced by GitHub Actions (Node 22).
- Documentation: Modernizr 3.x note ([@bichotll](https://github.com/bichotll), #50),
  Markdown heading fixes ([@bryant1410](https://github.com/bryant1410), #52),
  jsDelivr badge ([@LukasDrgon](https://github.com/LukasDrgon), #55).

## [2.2.0] - 2015-12-07

Last release before this changelog was introduced. See the
[git history](https://github.com/barisaydinoglu/Detectizr/commits/v2.2.0) for earlier changes.

[2.3.0]: https://github.com/barisaydinoglu/Detectizr/compare/v2.2.0...v2.3.0
[2.2.0]: https://github.com/barisaydinoglu/Detectizr/releases/tag/v2.2.0
