Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

Upgrade ua-parser-js

Blue Mousefd79223d7be1
diff --git a/web/app/lib/constants/index.ts b/web/app/lib/constants/index.ts
index ead9ad30b..1174b1f70 100644
--- a/web/app/lib/constants/index.ts
+++ b/web/app/lib/constants/index.ts
@@ -813,7 +813,9 @@ export const SSO_PROVIDERS = Object.freeze({
export const BROWSER_LOGO_MAP = {
Chrome: '/assets/browsers/chrome_48x48.png',
+ 'Mobile Chrome': '/assets/browsers/chrome_48x48.png',
Firefox: '/assets/browsers/firefox_48x48.png',
+ 'Mobile Firefox': '/assets/browsers/firefox_48x48.png',
Safari: '/assets/browsers/safari_48x48.png',
'Mobile Safari': '/assets/browsers/safari-ios_48x48.png',
Edge: '/assets/browsers/edge_48x48.png',
@@ -855,6 +857,7 @@ export const OS_LOGO_MAP = {
Android: 'assets/os/AND.png',
iOS: 'assets/os/apple.svg',
'Mac OS': 'assets/os/apple.svg',
+ macOS: 'assets/os/apple.svg',
Mac: 'assets/os/apple.svg',
Linux: 'assets/os/LIN.png',
Ubuntu: 'assets/os/UBT.png',
@@ -878,5 +881,6 @@ export const OS_LOGO_MAP = {
export const OS_LOGO_MAP_DARK = {
iOS: 'assets/os/apple-dark.svg',
'Mac OS': 'assets/os/apple-dark.svg',
+ macOS: 'assets/os/apple-dark.svg',
Mac: 'assets/os/apple-dark.svg',
}
diff --git a/web/package-lock.json b/web/package-lock.json
index 87bbda397..69e1acb4a 100644
--- a/web/package-lock.json
+++ b/web/package-lock.json
@@ -56,7 +56,7 @@
"spacetime": "^7.7.0",
"swetrix": "^3.5.3",
"timezone-soft": "^1.5.2",
- "ua-parser-js": "^1.0.39"
+ "ua-parser-js": "^2.0.0"
},
"devDependencies": {
"@remix-run/dev": "^2.15.2",
@@ -4991,6 +4991,26 @@
"npm": "1.2.8000 || >= 1.4.16"
}
},
+ "node_modules/detect-europe-js": {
+ "version": "0.1.2",
+ "resolved": "https://registry.npmjs.org/detect-europe-js/-/detect-europe-js-0.1.2.tgz",
+ "integrity": "sha512-lgdERlL3u0aUdHocoouzT10d9I89VVhk0qNRmll7mXdGfJT1/wqZ2ZLA4oJAjeACPY5fT1wsbq2AT+GkuInsow==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/faisalman"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/ua-parser-js"
+ },
+ {
+ "type": "paypal",
+ "url": "https://paypal.me/faisalman"
+ }
+ ],
+ "license": "MIT"
+ },
"node_modules/diacritics": {
"version": "1.3.0",
"license": "MIT"
@@ -7397,6 +7417,26 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/is-standalone-pwa": {
+ "version": "0.1.1",
+ "resolved": "https://registry.npmjs.org/is-standalone-pwa/-/is-standalone-pwa-0.1.1.tgz",
+ "integrity": "sha512-9Cbovsa52vNQCjdXOzeQq5CnCbAcRk05aU62K20WO372NrTv0NxibLFCK6lQ4/iZEFdEA3p3t2VNOn8AJ53F5g==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/faisalman"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/ua-parser-js"
+ },
+ {
+ "type": "paypal",
+ "url": "https://paypal.me/faisalman"
+ }
+ ],
+ "license": "MIT"
+ },
"node_modules/is-stream": {
"version": "2.0.1",
"license": "MIT",
@@ -11789,10 +11829,30 @@
"node": ">=14.17"
}
},
+ "node_modules/ua-is-frozen": {
+ "version": "0.1.2",
+ "resolved": "https://registry.npmjs.org/ua-is-frozen/-/ua-is-frozen-0.1.2.tgz",
+ "integrity": "sha512-RwKDW2p3iyWn4UbaxpP2+VxwqXh0jpvdxsYpZ5j/MLLiQOfbsV5shpgQiw93+KMYQPcteeMQ289MaAFzs3G9pw==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/faisalman"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/ua-parser-js"
+ },
+ {
+ "type": "paypal",
+ "url": "https://paypal.me/faisalman"
+ }
+ ],
+ "license": "MIT"
+ },
"node_modules/ua-parser-js": {
- "version": "1.0.39",
- "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-1.0.39.tgz",
- "integrity": "sha512-k24RCVWlEcjkdOxYmVJgeD/0a1TiSpqLg+ZalVGV9lsnr4yqu0w7tX/x2xX6G4zpkgQnRf89lxuZ1wsbjXM8lw==",
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-2.0.0.tgz",
+ "integrity": "sha512-SASgD4RlB7+SCMmlVNqrhPw0f/2pGawWBzJ2+LwGTD0GgNnrKGzPJDiraGHJDwW9Zm5DH2lTmUpqDpbZjJY4+Q==",
"funding": [
{
"type": "opencollective",
@@ -11807,7 +11867,12 @@
"url": "https://github.com/sponsors/faisalman"
}
],
- "license": "MIT",
+ "license": "AGPL-3.0-or-later",
+ "dependencies": {
+ "detect-europe-js": "^0.1.2",
+ "is-standalone-pwa": "^0.1.1",
+ "ua-is-frozen": "^0.1.2"
+ },
"bin": {
"ua-parser-js": "script/cli.js"
},
diff --git a/web/package.json b/web/package.json
index 28ab0863e..df6f49a80 100644
--- a/web/package.json
+++ b/web/package.json
@@ -69,7 +69,7 @@
"spacetime": "^7.7.0",
"swetrix": "^3.5.3",
"timezone-soft": "^1.5.2",
- "ua-parser-js": "^1.0.39"
+ "ua-parser-js": "^2.0.0"
},
"eslintConfig": {
"extends": [