Skip to content

Issue 5427 - Replace device library with an alternative #5473

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

Merged
merged 4 commits into from
Mar 31, 2025
Merged

Conversation

Bogdan-Crn
Copy link
Contributor

This fixes #5427

Description

Replaced the old device library with with node-device-detector.

Test cases

Updated the userAgent tests as well to reflect that the default response has changed and to add a test for smartphone access.

@Bogdan-Crn Bogdan-Crn requested a review from carmenfan March 26, 2025 14:46
@carmenfan carmenfan self-assigned this Mar 26, 2025
carmenfan
carmenfan previously approved these changes Mar 26, 2025
Copy link
Member

@carmenfan carmenfan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just wanted to lock down the library version (otherwise we may end up with things stop working if we ever have to remove yarn.lock) so I went and committed that

@@ -60,6 +59,7 @@
"moment-timezone": "0.5.45",
"mongodb": "3.7.4",
"multer": "1.4.5-lts.1",
"node-device-detector": "^2.2.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we lock down the version?

@carmenfan carmenfan merged commit 7a81a6e into staging Mar 31, 2025
11 checks passed
@carmenfan carmenfan deleted the ISSUE_5427 branch March 31, 2025 16:49
@carmenfan carmenfan removed their assignment Apr 8, 2025
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.

2 participants