Skip to content

Commit 6fc8ec3

Browse files
committed
Merge tag '2.0.4' into pro-enterprise
2 parents 59c20a5 + c9d008e commit 6fc8ec3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+2997
-352
lines changed

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,27 @@
6565

6666
---
6767

68+
## Version 2.0.4
69+
70+
- Add new browser: Edge WebView, Edge WebView2
71+
- Add new device vendor: Lava, Retroid, Vizio
72+
- Add new OS: ArcaOS, Knoppix, Xubuntu, Windows CE, Windows RT
73+
- Improve device detection: Google Pixel & Pixelbook Series, HMD, Infinix, LG WebOS TV, Motorola, Nothing, OnePlus, Sony, Tecno
74+
- Improve OS detection: AIX, Arch, Fuchsia, Haiku, HarmonyOS, Mint, MorphOS, Solaris, Windows
75+
- Improve `withClientHints()` browser naming adjustments: `Microsoft Edge WebView2` => `Edge WebView2`
76+
- Identify device that uses Firefox Reality / Wolvic as `xr`
77+
- Identify device with large screen as `smarttv`
78+
- Identify Windows CE & Windows RT as distinct OS variants
79+
- `extensions` submodule:
80+
- Remove lookbehind assertion to ensure regex compatibility
81+
- Add new crawlers: ChatGLM, Daum, iAskBot, Onespot, Qwantbot, Startpage
82+
- Add new emails: Apple's Mail, DaumMail, Polymail, ProtonMail, SparkDesktop, Zimbra, ZohoMail-Desktop
83+
- Add new fetchers: Iframely, MistralAI-User, Perplexity-User
84+
- Add new inApps: Discord, Evernote, Figma, Flipboard, Mattermost, Notion, Postman, Rambox, Rocket.Chat, Microsoft Teams, TikTok Lite, VS Code
85+
- Add new libraries: AdobeAIR, aiohttp, nutch, httpx, urllib3
86+
- `enum` submodule:
87+
- Fix mistakenly placed `BLU` categorized as browser name instead of device vendor
88+
6889
## Version 2.0.3
6990

7091
- Add new browser: Dooble, Ecosia, LG Browser, Otter, qutebrowser, Surf

dist/ua-parser.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/ua-parser.min.mjs

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

dist/ua-parser.pack.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/ua-parser.pack.mjs

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"title": "UAParser.js PRO Enterprise",
33
"name": "@ua-parser-js/pro-enterprise",
4-
"version": "2.0.3",
4+
"version": "2.0.4",
55
"author": "Faisal Salman <f@faisalman.com> (http://faisalman.com)",
66
"description": "Detect Browser, Engine, OS, CPU, and Device type/model from User-Agent & Client Hints data. Supports browser & node.js environment",
77
"keywords": [

src/enums/ua-parser-enums.d.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Type definitions for Enums submodule of UAParser.js v2.0.3
1+
// Type definitions for Enums submodule of UAParser.js v2.0.4
22
// Project: https://github.com/faisalman/ua-parser-js
33
// Definitions by: Faisal Salman <https://github.com/faisalman>
44

@@ -16,7 +16,6 @@ export const Browser: Readonly<{
1616
BAIDU: "Baidu Browser";
1717
BASILISK: "Basilisk";
1818
BLAZER: "Blazer";
19-
BLU: "BLU";
2019
BOLT: "Bolt";
2120
BOWSER: "Bowser";
2221
BRAVE: "Brave";
@@ -39,6 +38,8 @@ export const Browser: Readonly<{
3938
DUCKDUCKGO: "DuckDuckGo";
4039
ECOSIA: "Ecosia";
4140
EDGE: "Edge";
41+
EDGE_WEBVIEW: "Edge WebView";
42+
EDGE_WEBVIEW2: "Edge WebView2";
4243
EPIPHANY: "Epiphany";
4344
FACEBOOK: "Facebook";
4445
FALKON: "Falkon";
@@ -203,6 +204,7 @@ export const Vendor: Readonly<{
203204
ATT: "AT&T";
204205
BENQ: "BenQ";
205206
BLACKBERRY: "BlackBerry";
207+
BLU: "BLU";
206208
CAT: "Cat";
207209
DELL: "Dell";
208210
ENERGIZER: "Energizer";
@@ -221,6 +223,7 @@ export const Vendor: Readonly<{
221223
ITEL: "itel";
222224
JOLLA: "Jolla";
223225
KOBO: "Kobo";
226+
LAVA: "Lava";
224227
LENOVO: "Lenovo";
225228
LG: "LG";
226229
MEIZU: "Meizu";
@@ -241,6 +244,7 @@ export const Vendor: Readonly<{
241244
PICO: "Pico";
242245
POLYTRON: "Polytron";
243246
REALME: "Realme";
247+
RETROID: "Retroid";
244248
RIM: "RIM";
245249
ROKU: "Roku";
246250
SAMSUNG: "Samsung";
@@ -255,6 +259,7 @@ export const Vendor: Readonly<{
255259
TESLA: "Tesla";
256260
ULEFONE: "Ulefone";
257261
VIVO: "Vivo";
262+
VIZIO: "Vizio";
258263
VODAFONE: "Vodafone";
259264
XBOX: "Xbox";
260265
XIAOMI: "Xiaomi";
@@ -288,6 +293,7 @@ export const OS: Readonly<{
288293
AMIGA_OS: "Amiga OS";
289294
ANDROID: "Android";
290295
ANDROID_X86: "Android-x86";
296+
ARCAOS: "ArcaOS";
291297
ARCH: "Arch";
292298
BADA: "Bada";
293299
BEOS: "BeOS";
@@ -318,6 +324,7 @@ export const OS: Readonly<{
318324
IOS: "iOS";
319325
JOLI: "Joli";
320326
KAIOS: "KaiOS";
327+
KNOPPIX: "Knoppix";
321328
KUBUNTU: "Kubuntu";
322329
LINPUS: "Linpus";
323330
LINSPIRE: "Linspire";
@@ -366,9 +373,12 @@ export const OS: Readonly<{
366373
WATCHOS: "watchOS";
367374
WEBOS: "WebOS";
368375
WINDOWS: "Windows";
376+
WINDOWS_CE: "Windows CE";
369377
WINDOWS_IOT: "Windows IoT";
370378
WINDOWS_MOBILE: "Windows Mobile";
371379
WINDOWS_PHONE: "Windows Phone";
380+
WINDOWS_RT: "Windows RT";
372381
XBOX: "Xbox";
382+
XUBUNTU: "Xubuntu";
373383
ZENWALK: "Zenwalk";
374384
}>;

src/enums/ua-parser-enums.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
///////////////////////////////////////////////
2-
/* Enums for UAParser.js v2.0.3
2+
/* Enums for UAParser.js v2.0.4
33
https://github.com/faisalman/ua-parser-js
44
Author: Faisal Salman <f@faisalman.com>
55
UAParser.js PRO Enterprise License */
@@ -21,7 +21,6 @@ const Browser = Object.freeze({
2121
BAIDU: 'Baidu Browser',
2222
BASILISK: 'Basilisk',
2323
BLAZER: 'Blazer',
24-
BLU: 'BLU',
2524
BOLT: 'Bolt',
2625
BOWSER: 'Bowser',
2726
BRAVE: 'Brave',
@@ -44,6 +43,8 @@ const Browser = Object.freeze({
4443
DUCKDUCKGO: 'DuckDuckGo',
4544
ECOSIA: 'Ecosia',
4645
EDGE: 'Edge',
46+
EDGE_WEBVIEW: 'Edge WebView',
47+
EDGE_WEBVIEW2: 'Edge WebView2',
4748
EPIPHANY: 'Epiphany',
4849
FACEBOOK: 'Facebook',
4950
FALKON: 'Falkon',
@@ -214,6 +215,7 @@ const Vendor = Object.freeze({
214215
ATT: 'AT&T',
215216
BENQ: 'BenQ',
216217
BLACKBERRY: 'BlackBerry',
218+
BLU: 'BLU',
217219
CAT: 'Cat',
218220
DELL: 'Dell',
219221
ENERGIZER: 'Energizer',
@@ -232,6 +234,7 @@ const Vendor = Object.freeze({
232234
ITEL: 'itel',
233235
JOLLA: 'Jolla',
234236
KOBO: 'Kobo',
237+
LAVA: 'Lava',
235238
LENOVO: 'Lenovo',
236239
LG: 'LG',
237240
MEIZU: 'Meizu',
@@ -252,6 +255,7 @@ const Vendor = Object.freeze({
252255
PICO: 'Pico',
253256
POLYTRON: 'Polytron',
254257
REALME: 'Realme',
258+
RETROID: 'Retroid',
255259
RIM: 'RIM',
256260
ROKU: 'Roku',
257261
SAMSUNG: 'Samsung',
@@ -266,6 +270,7 @@ const Vendor = Object.freeze({
266270
TESLA: 'Tesla',
267271
ULEFONE: 'Ulefone',
268272
VIVO: 'Vivo',
273+
VIZIO: 'Vizio',
269274
VODAFONE: 'Vodafone',
270275
XBOX: 'Xbox',
271276
XIAOMI: 'Xiaomi',
@@ -303,6 +308,7 @@ const OS = Object.freeze({
303308
AMIGA_OS: 'Amiga OS',
304309
ANDROID: 'Android',
305310
ANDROID_X86: 'Android-x86',
311+
ARCAOS: 'ArcaOS',
306312
ARCH: 'Arch',
307313
BADA: 'Bada',
308314
BEOS: 'BeOS',
@@ -333,6 +339,7 @@ const OS = Object.freeze({
333339
IOS: 'iOS',
334340
JOLI: 'Joli',
335341
KAIOS: 'KaiOS',
342+
KNOPPIX: 'Knoppix',
336343
KUBUNTU: 'Kubuntu',
337344
LINPUS: 'Linpus',
338345
LINSPIRE: 'Linspire',
@@ -381,10 +388,13 @@ const OS = Object.freeze({
381388
WATCHOS: 'watchOS',
382389
WEBOS: 'WebOS',
383390
WINDOWS: 'Windows',
391+
WINDOWS_CE: 'Windows CE',
384392
WINDOWS_IOT: 'Windows IoT',
385393
WINDOWS_MOBILE: 'Windows Mobile',
386394
WINDOWS_PHONE: 'Windows Phone',
395+
WINDOWS_RT: 'Windows RT',
387396
XBOX: 'Xbox',
397+
XUBUNTU: 'Xubuntu',
388398
ZENWALK: 'Zenwalk'
389399

390400
// TODO : test!

src/enums/ua-parser-enums.mjs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// Source: /src/enums/ua-parser-enums.js
44

55
///////////////////////////////////////////////
6-
/* Enums for UAParser.js v2.0.3
6+
/* Enums for UAParser.js v2.0.4
77
https://github.com/faisalman/ua-parser-js
88
Author: Faisal Salman <f@faisalman.com>
99
UAParser.js PRO Enterprise License */
@@ -25,7 +25,6 @@ const Browser = Object.freeze({
2525
BAIDU: 'Baidu Browser',
2626
BASILISK: 'Basilisk',
2727
BLAZER: 'Blazer',
28-
BLU: 'BLU',
2928
BOLT: 'Bolt',
3029
BOWSER: 'Bowser',
3130
BRAVE: 'Brave',
@@ -48,6 +47,8 @@ const Browser = Object.freeze({
4847
DUCKDUCKGO: 'DuckDuckGo',
4948
ECOSIA: 'Ecosia',
5049
EDGE: 'Edge',
50+
EDGE_WEBVIEW: 'Edge WebView',
51+
EDGE_WEBVIEW2: 'Edge WebView2',
5152
EPIPHANY: 'Epiphany',
5253
FACEBOOK: 'Facebook',
5354
FALKON: 'Falkon',
@@ -218,6 +219,7 @@ const Vendor = Object.freeze({
218219
ATT: 'AT&T',
219220
BENQ: 'BenQ',
220221
BLACKBERRY: 'BlackBerry',
222+
BLU: 'BLU',
221223
CAT: 'Cat',
222224
DELL: 'Dell',
223225
ENERGIZER: 'Energizer',
@@ -236,6 +238,7 @@ const Vendor = Object.freeze({
236238
ITEL: 'itel',
237239
JOLLA: 'Jolla',
238240
KOBO: 'Kobo',
241+
LAVA: 'Lava',
239242
LENOVO: 'Lenovo',
240243
LG: 'LG',
241244
MEIZU: 'Meizu',
@@ -256,6 +259,7 @@ const Vendor = Object.freeze({
256259
PICO: 'Pico',
257260
POLYTRON: 'Polytron',
258261
REALME: 'Realme',
262+
RETROID: 'Retroid',
259263
RIM: 'RIM',
260264
ROKU: 'Roku',
261265
SAMSUNG: 'Samsung',
@@ -270,6 +274,7 @@ const Vendor = Object.freeze({
270274
TESLA: 'Tesla',
271275
ULEFONE: 'Ulefone',
272276
VIVO: 'Vivo',
277+
VIZIO: 'Vizio',
273278
VODAFONE: 'Vodafone',
274279
XBOX: 'Xbox',
275280
XIAOMI: 'Xiaomi',
@@ -307,6 +312,7 @@ const OS = Object.freeze({
307312
AMIGA_OS: 'Amiga OS',
308313
ANDROID: 'Android',
309314
ANDROID_X86: 'Android-x86',
315+
ARCAOS: 'ArcaOS',
310316
ARCH: 'Arch',
311317
BADA: 'Bada',
312318
BEOS: 'BeOS',
@@ -337,6 +343,7 @@ const OS = Object.freeze({
337343
IOS: 'iOS',
338344
JOLI: 'Joli',
339345
KAIOS: 'KaiOS',
346+
KNOPPIX: 'Knoppix',
340347
KUBUNTU: 'Kubuntu',
341348
LINPUS: 'Linpus',
342349
LINSPIRE: 'Linspire',
@@ -385,10 +392,13 @@ const OS = Object.freeze({
385392
WATCHOS: 'watchOS',
386393
WEBOS: 'WebOS',
387394
WINDOWS: 'Windows',
395+
WINDOWS_CE: 'Windows CE',
388396
WINDOWS_IOT: 'Windows IoT',
389397
WINDOWS_MOBILE: 'Windows Mobile',
390398
WINDOWS_PHONE: 'Windows Phone',
399+
WINDOWS_RT: 'Windows RT',
391400
XBOX: 'Xbox',
401+
XUBUNTU: 'Xubuntu',
392402
ZENWALK: 'Zenwalk'
393403

394404
// TODO : test!

0 commit comments

Comments
 (0)