Skip to content

Releases: duskload/react-device-detect

v2.2.3

Choose a tag to compare

@duskload duskload released this 08 Feb 08:00

v2.1.2

Choose a tag to compare

@duskload duskload released this 25 Oct 10:05

Fix #168

v.2.1.1

Choose a tag to compare

@duskload duskload released this 22 Oct 15:40

Fix #167

v.2.0.1

Choose a tag to compare

@duskload duskload released this 04 Oct 07:39
78fa9f9

Icludes #163

v2.0.0

Choose a tag to compare

@duskload duskload released this 27 Sep 16:29

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

Choose a tag to compare

@duskload duskload released this 22 Dec 06:49

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

v1.14.0

Choose a tag to compare

@duskload duskload released this 05 Oct 08:07

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

Choose a tag to compare

@duskload duskload released this 15 Jun 07:34
7153b07

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

Choose a tag to compare

@duskload duskload released this 28 Apr 19:16

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

v1.12.0

Choose a tag to compare

@duskload duskload released this 26 Apr 08:10
f81ecc5
  • Update ua-parser-js
  • Merge fix for ios 13 #81
  • Security fixes