fix(deps): update dependency react-device-detect to v2 #11
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.17.0
->2.2.3
Release Notes
duskload/react-device-detect (react-device-detect)
v2.2.3
Compare Source
#205
v2.2.2
Compare Source
v2.1.2
Compare Source
Fix #168
v2.1.1
: v.2.1.1Compare Source
Fix #167
v2.0.1
: v.2.0.1Compare Source
Icludes #163
v2.0.0
Compare Source
Package was completely rewritten. But there is not many breaking changes.
Breaking change:
Views doesn't accept
viewClassName
prop anymore, useclassName
instead.New type
New type
isEmbedded
was added, it returns if device type isembedded
.New hooks
useDeviceData
anduseDeviceSelectors
hooks were introduces.First returns all device data, second returns all available selectors.
Both hooks accept either
userAgent
as prop, or take it fromwindow.navigator.userAgent
.Enums
BrowserTypes
andOsTypes
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
acceptsuserAgent
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.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.