Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency react-device-detect to v2 #11

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Sep 26, 2021

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
react-device-detect 1.17.0 -> 2.2.3 age adoption passing confidence

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.1

Compare Source

Fix #​167

v2.0.1: v.2.0.1

Compare 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, 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.


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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@netlify
Copy link

netlify bot commented Sep 26, 2021

Deploy Preview for skok ready!

Name Link
🔨 Latest commit 2417897
🔍 Latest deploy log https://app.netlify.com/sites/skok/deploys/641553637f58d300081057f9
😎 Deploy Preview https://deploy-preview-11--skok.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@renovate renovate bot force-pushed the renovate/react-device-detect-2.x branch from be12b09 to aa95c4b Compare October 4, 2021 08:41
@renovate renovate bot force-pushed the renovate/react-device-detect-2.x branch 2 times, most recently from af9c18c to b7061c6 Compare October 25, 2021 10:46
@renovate renovate bot force-pushed the renovate/react-device-detect-2.x branch from b7061c6 to 503f3ff Compare April 24, 2022 21:45
@renovate renovate bot force-pushed the renovate/react-device-detect-2.x branch from 503f3ff to 2417897 Compare March 18, 2023 06:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants