# react-device-detect changelog > Detects device type and browser to branch rendering in React. - Vendor: duskload - Category: Frameworks & Libraries - Official site: https://github.com/duskload/react-device-detect - Tracked by: What's New (https://whatsnew.fyi/product/react-device-detect) - Harvested from: GitHub (duskload/react-device-detect) - Entries below: 10 (newest first) What's New is an index, not a publisher: every entry below links to the vendor's own release notes, which are the authoritative source. Entries are labelled where they are hand-curated sample data, pre-releases, or drawn from a secondary source such as a developer blog. Reuse: the summaries, labels and curation here are © What's New. Quote freely with attribution and a link back; wholesale republication of the corpus is not permitted — terms: https://whatsnew.fyi/terms. The vendors' own release notes remain their publishers'. ## Releases ### v2.2.3 - Date: 2023-02-08 - Version: v2.2.3 - Original notes: https://github.com/duskload/react-device-detect/releases/tag/v2.2.3 - Permalink: https://whatsnew.fyi/product/react-device-detect/releases/v2.2.3 #205 ### v2.1.2 - Date: 2021-10-25 - Version: v2.1.2 - Original notes: https://github.com/duskload/react-device-detect/releases/tag/v2.1.2 - Permalink: https://whatsnew.fyi/product/react-device-detect/releases/v2.1.2 Fix #168 ### v2.1.1 — v.2.1.1 - Date: 2021-10-22 - Version: v2.1.1 - Original notes: https://github.com/duskload/react-device-detect/releases/tag/v2.1.1 - Permalink: https://whatsnew.fyi/product/react-device-detect/releases/v2.1.1 Fix #167 ### v2.0.1 — v.2.0.1 - Date: 2021-10-04 - Version: v2.0.1 - Original notes: https://github.com/duskload/react-device-detect/releases/tag/v2.0.1 - Permalink: https://whatsnew.fyi/product/react-device-detect/releases/v2.0.1 Icludes #163 ### v2.0.0 - Date: 2021-09-27 - Version: v2.0.0 - Original notes: https://github.com/duskload/react-device-detect/releases/tag/v2.0.0 - Permalink: https://whatsnew.fyi/product/react-device-detect/releases/v2.0.0 - **changed** — Package was completely rewritten - **removed** — Views no longer accept viewClassName prop, use className instead - **added** — Add new type isEmbedded that returns if device type is embedded - **added** — Add useDeviceData hook that returns all device data and accepts optional userAgent prop or uses window.navigator.userAgent - **added** — Add useDeviceSelectors hook that returns all available selectors and accepts optional userAgent prop or uses window.navigator.userAgent - **added** — Export BrowserTypes and OsTypes enums from the package - **added** — Add getSelectorsByUserAgent function that returns all selectors available for a given user agent - **changed** — deviceDetect now accepts userAgent parameter and returns all available data for use in SSR - **added** — Add parseUserAgent function that returns all available data for a given user agent, useful in SSR Package was completely rewritten. But there is not many breaking changes. ###### Breaking change: Views doesn't accept `viewClassName` prop anymore, use `className` instead. ###### New type New type `isEmbedded` was added, it returns if device type is `embedded`. ###### New hooks `useDeviceData` and `useDeviceSelectors` hooks were introduces. First returns all device data, second returns all available selectors. Both hooks accept either `userAgent` as prop, or take it from `window.navigator.userAgent`. ###### Enums `BrowserTypes` and `OsTypes` are now exported from the package. They has not very big amount of entries for now, but they will be extended soon. ###### Utilities updates/additions Added function `getSelectorsByUserAgent` which returns all selectors available for given user agent. User agent argument is mandatory. Now `deviceDetect` accepts `userAgent` and returns all available data. Can be used in SSR. Added function `parseUserAgent` which returns all available data for given user agent. Useful in SSR. User agent argument is mandatory. ### v1.15.0 - Date: 2020-12-22 - Version: v1.15.0 - Original notes: https://github.com/duskload/react-device-detect/releases/tag/v1.15.0 - Permalink: https://whatsnew.fyi/product/react-device-detect/releases/v1.15.0 - **changed** — Upgrade ua-parser-js version - **fixed** — Fix withOrientationChange typing - **added** — Expose useMobileOrientation hook - **changed** — Allow React 17 as peerDependency Upgrade ua-parser-js version #121 fix withOrientationChange typing + expose useMobileOrientation hook #120 Allow React 17 as peerDependency #113 ### v.1.14.0 — v1.14.0 - Date: 2020-10-05 - Version: v.1.14.0 - Original notes: https://github.com/duskload/react-device-detect/releases/tag/v.1.14.0 - Permalink: https://whatsnew.fyi/product/react-device-detect/releases/v.1.14.0 - **changed** — Update ua-parser-js - **added** — Add isMIUI helper - **changed** — Change isLegacyEdge to be false if isEdgeChromium - **changed** — Make isEdgeChromium work for all operating systems Update `ua-parser-js` Add isMIUI helper #98 Change isLegacyEdge to be false if isEdgeChromium #111 Make isEdgeChromium work for all operating systems #110 ### v1.13.1 — v.1.13.1 - Date: 2020-06-15 - Version: v1.13.1 - Original notes: https://github.com/duskload/react-device-detect/releases/tag/v1.13.1 - Permalink: https://whatsnew.fyi/product/react-device-detect/releases/v1.13.1 - **added** — Add isLegacyEdge, isEdgeChromium, isWindows, and isMacOs types - **changed** — Update isEdgeType to detect both edge and edge chromium - **fixed** — Add fix in case of nav.platform is undefined Add `isLegacyEdge`, `isEdgeChromium`, `isWindows`, `isMacOs` types. Updated `isEdgeType` to detect both edge and edge chromium Add fix in case of nav.playtform is undefined #86 ### v.1.12.1 — v1.12.1 - Date: 2020-04-28 - Version: v.1.12.1 - Original notes: https://github.com/duskload/react-device-detect/releases/tag/v.1.12.1 - Permalink: https://whatsnew.fyi/product/react-device-detect/releases/v.1.12.1 fix isIOS and isMobileSafari on iPads running Safari and iOS #85 ### v1.12.0 - Date: 2020-04-26 - Version: v1.12.0 - Original notes: https://github.com/duskload/react-device-detect/releases/tag/v1.12.0 - Permalink: https://whatsnew.fyi/product/react-device-detect/releases/v1.12.0 * Update `ua-parser-js` * Merge fix for ios 13 #81 * Security fixes