Skip to content

Releases: duskload/react-device-detect

v2.2.3

08 Feb 08:00
Compare
Choose a tag to compare

v2.1.2

25 Oct 10:05
Compare
Choose a tag to compare

Fix #168

v.2.1.1

22 Oct 15:40
Compare
Choose a tag to compare

v.2.0.1

04 Oct 07:39
78fa9f9
Compare
Choose a tag to compare

Icludes #163

v2.0.0

27 Sep 16:29
Compare
Choose a tag to compare

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

22 Dec 06:49
Compare
Choose a tag to compare

Upgrade ua-parser-js version #121
fix withOrientationChange typing + expose useMobileOrientation hook #120
Allow React 17 as peerDependency #113

v1.14.0

05 Oct 08:07
Compare
Choose a tag to compare

Update ua-parser-js

Add isMIUI helper #98
Change isLegacyEdge to be false if isEdgeChromium #111
Make isEdgeChromium work for all operating systems #110

v.1.13.1

15 Jun 07:34
7153b07
Compare
Choose a tag to compare

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

v1.12.1

28 Apr 19:16
Compare
Choose a tag to compare

fix isIOS and isMobileSafari on iPads running Safari and iOS #85

v1.12.0

26 Apr 08:10
f81ecc5
Compare
Choose a tag to compare
  • Update ua-parser-js
  • Merge fix for ios 13 #81
  • Security fixes