431 Commits

Author SHA1 Message Date
Faisal Salman
f7810dbfcf Add new browsers: Wolvic & Pico Browser 2024-06-06 14:32:59 +07:00
Faisal Salman
0543b87c02 BREAKING CHANGE: AR/VR devices moved to new device type: xr 2024-06-05 15:49:07 +07:00
Faisal Salman
39590f112d BREAKING CHANGE - Add new property to browser: type 2024-06-02 23:04:25 +07:00
Faisal Salman
1a22c6951f Update all package references in /test to use current working directories 2024-06-02 22:39:33 +07:00
Faisal Salman
8991d34e56 Update formFactor -> formFactors, in accordance to the latest change in client hints spec 2024-06-02 21:56:36 +07:00
Faisal Salman
1a2ef00509 Improve browser detection for QQBrowser 2024-06-02 15:49:27 +07:00
Faisal Salman
12c2c2e48a Improve browser detection for Rekonq 2024-06-02 15:35:33 +07:00
Faisal Salman
85bf7076d3 Improve browser detection for ICEBrowser 2024-06-02 15:32:41 +07:00
Faisal Salman
1fa3d02594 Remove Viera from list of browsers 2024-06-02 15:20:50 +07:00
Faisal Salman
4cd867a36e Improve browser detection for Klar
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent/Firefox#klar_for_android
2024-06-02 15:14:42 +07:00
Faisal Salman
6b6fcc68f5 Improve browser detection for Sleipnir 2024-06-02 15:10:37 +07:00
Faisal Salman
760e85bbe7 Update test for some missing browsers:
Blazer, Comodo Dragon, Conkeror, Go Browser, Iron, Jasmine, Links, NetSurf, OviBrowser, Quark, Rekonq, w3m
2024-06-02 15:03:27 +07:00
Faisal Salman
e87c794fd9 Fix #730 - Improve browser detection: DuckDuckGo 2024-05-23 18:14:23 +07:00
Faisal Salman
d0db40c290 Fix #722 - Add new browser name: Twitter 2024-05-17 23:02:01 +07:00
Faisal Salman
8dce4cc514 Fix #721 - Improve detection: recognize OPPO Pad as tablet 2024-05-17 22:39:11 +07:00
Faisal Salman
b29a9a7ffb Fix #708 - Improve detection for Quest 3 2024-02-28 10:19:30 +07:00
Faisal Salman
4d950db145 Update version to 2.0.0-beta.2 2024-01-28 22:34:46 +07:00
Faisal Salman
9c5d6ee70e Fix Edge detection in ua-ch: "Microsoft Edge" -> "Edge" 2024-01-18 11:29:46 +07:00
Faisal Salman
b5c62b0c82 Fix #635 - ua-ch: prioritize more specific brand name regardless the order 2024-01-10 17:16:26 +07:00
Faisal Salman
0c49d75074 Fix #697 - Add new browser: Opera GX - https://www.opera.com/gx 2023-12-29 20:59:44 +07:00
Faisal Salman
09904a0a47 Fix undefined brandName when reading a field list that has no version 2023-12-20 22:28:23 +07:00
Faisal Salman
106d882fba Create test for helpers 2023-11-10 10:10:38 +07:00
Faisal Salman
7abc8b9ecc Add new helper method isChromiumBased() to check whether the current browser is a Chromium-based browser 2023-11-09 13:50:04 +07:00
Faisal Salman
17f0c1e1cd Improve browser detection: WeChat 2023-10-24 00:09:53 +07:00
Faisal Salman
9cc274fb6f Improve browser detection: unified name for Baidu 2023-10-24 00:00:38 +07:00
Faisal Salman
f56073bb3e Improve browser detection: remove unnecessary extra space in "Avant " 2023-10-23 23:33:04 +07:00
Faisal Salman
5c10e2b107 Improve browser detection: rename "Samsung Browser" to "Samsung Internet" https://developer.samsung.com/internet/user-agent-string-format.html 2023-10-23 23:32:35 +07:00
Faisal Salman
d565f65280 Fix #682 - Add new browser: Smart Lenovo Browser
https://browser.lenovo.com.cn/
2023-10-19 10:05:52 +07:00
Faisal Salman
69ed6cec77 Fix #683 - change MetaSr into Sogou Explorer (+add Sogou Mobile) 2023-10-12 22:11:20 +07:00
Faisal Salman
b51ae9eb38 Fix misidentified WebView token as device model - found in #681 2023-10-12 14:52:25 +07:00
Faisal Salman
125f0d9f16 Fix #681 - Add new browser: Vivo Browser
https://play.google.com/store/apps/details?id=com.vivo.browser
2023-10-12 14:43:26 +07:00
Faisal Salman
e614108911 Increase UA_MAX_LENGTH to 500 2023-10-12 14:36:54 +07:00
Faisal Salman
77e0aa1ac6 Fix #563 #631 - Add new browser: Alipay 2023-10-12 14:18:51 +07:00
Ilya Daraseliya
177a496c34
add Klarna Shopping Browser UA parser (#669)
Co-authored-by: Ilya Daraseliya <ilya.daraseliya@klarna.com>
2023-10-02 18:54:37 +07:00
Faisal Salman
5a0d9cc3d0 Fix #655 - Provide in-package type definitions 2023-10-02 14:54:32 +07:00
Faisal Salman
f6fbf170e3 Update formFactor to be a list 2023-09-30 16:05:32 +07:00
Faisal Salman
a9247154e0 Update build & test 2023-09-30 14:13:45 +07:00
Faisal Salman
f57f8fa1a7 Update enums & extensions 2023-09-30 14:10:53 +07:00
Faisal Salman
aa76da90d9 Fix #651 - Improve device detection: Xiaomi Redmi 2023-09-18 00:31:46 +07:00
Faisal Salman
817c5835ef Add new device vendor: Ulefone
https://ulefone.com/
https://www.gsmarena.com/ulefone-phones-124.php
2023-09-18 00:11:46 +07:00
Faisal Salman
6ea6936632 Improve device detection: Realme 2023-09-18 00:09:51 +07:00
Faisal Salman
647e115a1e [ua-helpers] Fix type error 2023-09-04 22:41:44 +07:00
Faisal Salman
807dcdbded Add eslint to devDependencies to support latest ES version 2023-08-30 12:56:59 +07:00
Faisal Salman
1522691426 [ua-client-hints] Refactor UAClientHints 2023-08-27 10:53:26 +07:00
Faisal Salman
3f105fe93b [helpers] split helpers into 2 new packages: user-agent-helpers & client-hints-helpers 2023-08-23 14:53:34 +07:00
Faisal Salman
129657673b [helpers] Add new method: UACHParser(), parse client-hints HTTP headers into its JS API equivalent 2023-08-22 23:58:04 +07:00
Faisal Salman
3dd4b60ee9 [helpers] Add new method: unfreezeUA(), construct new unfreezed user-agent string using real data from client hints 2023-08-22 01:16:09 +07:00
Faisal Salman
2046b77ede Improve device.type detection using client hints "form-factor" data 2023-08-20 13:59:44 +07:00
Faisal Salman
6e26e38247 [extension] Add Axios, jsdom, Scrapy. Also fixes #627 #156 #217 #227
Axios: `axios/VERSION`
https://www.zenrows.com/blog/axios-user-agent#what-is-axios-user-agent

JSDOM: `Mozilla/5.0 (${process.platform || "unknown OS"}) AppleWebKit/537.36 (KHTML, like Gecko) jsdom/${jsdomVersion}`
https://github.com/jsdom/jsdom

Scrapy: `Scrapy/VERSION (+https://scrapy.org)`
https://docs.scrapy.org/en/master/topics/settings.html
2023-08-15 11:46:31 +07:00
Runar Heggset
f76d8983ca Fix Amazon Fire TV device detection 2023-08-15 11:46:31 +07:00