Skip to content

Commit 061cf0e

Browse files
committed
Bump version 2.0.6
1 parent 2882014 commit 061cf0e

19 files changed

+247
-189
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,20 @@
6969

7070
---
7171

72+
## Version 2.0.6
73+
- Add new CLI feature: processing batch user-agent data from file and output as JSON
74+
- Fix `setUA()`: trim leading space from user-agent string input
75+
- Replace `undici` dependency with node's internal `Headers`
76+
- Add new browser: Bing, Qwant
77+
- Add new device vendor: Hisense, Wiko
78+
- Improve browser detection: Mozilla, Pale Moon
79+
- Improve CPU detection: 68k
80+
- Improve device detection: Apple, BlackBerry, Huawei, Nokia, Xiaomi
81+
- Improve OS detection: iOS 26
82+
- `extensions` submodule:
83+
- Add new fetcher: Discordbot, KeybaseBot, Slackbot, Slackbot-LinkExpanding, Slack-ImgProxy, Twitterbot
84+
- Add new crawler: Qwantbot-news, SurdotlyBot, SwiftBot
85+
7286
## Version 2.0.5
7387

7488
- Add new browser: Zalo

README.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<a href="https://www.npmjs.com/package/ua-parser-js"><img src="https://img.shields.io/npm/v/ua-parser-js.svg?logo=npm&color=red&style=for-the-badge"></a>
1919
<a href="https://cdnjs.com/libraries/UAParser.js"><img src="https://img.shields.io/cdnjs/v/UAParser.js.svg?color=orange&style=for-the-badge"></a>
2020
<img src="https://img.shields.io/ossf-scorecard/github.com/faisalman/ua-parser-js?label=openssf%20scorecard&style=for-the-badge">
21-
<a target="_blank" href="https://discord.gg/stt86vmr"><img alt="Discord invite" src="https://dcbadge.limes.pink/api/server/https://discord.gg/stt86vmr"></a>
21+
<a target="_blank" href="https://discord.com/channels/1406959509087453236/1406959509930381375"><img alt="Discord invite" src="https://dcbadge.limes.pink/api/server/https://discord.com/channels/1406959509087453236/1406959509930381375"></a>
2222
</p>
2323

2424
# UAParser.js
@@ -58,31 +58,31 @@ see what's new & breaking.
5858
<td>PRO Enterprise</td>
5959
</tr>
6060
<tr>
61-
<td>Browser detection</td>
61+
<td>Browser Detection</td>
6262
<td><a href="#demo" title="Basic detection">⚠️</a></td>
6363
<td>✅</td>
6464
<td>✅</td>
6565
<td>✅</td>
6666
<td>✅</td>
6767
</tr>
6868
<tr>
69-
<td>CPU detection</td>
69+
<td>CPU Detection</td>
7070
<td><a href="#demo" title="Basic detection">⚠️</a></td>
7171
<td>✅</td>
7272
<td>✅</td>
7373
<td>✅</td>
7474
<td>✅</td>
7575
</tr>
7676
<tr>
77-
<td>Device detection</td>
77+
<td>Device Detection</td>
7878
<td><a href="#demo" title="Basic detection">⚠️</a></td>
7979
<td>✅</td>
8080
<td>✅</td>
8181
<td>✅</td>
8282
<td>✅</td>
8383
</tr>
8484
<tr>
85-
<td>Engine detection</td>
85+
<td>Rendering Engine Detection</td>
8686
<td><a href="#demo" title="Basic detection">⚠️</a></td>
8787
<td>✅</td>
8888
<td>✅</td>
@@ -98,135 +98,135 @@ see what's new & breaking.
9898
<td>✅</td>
9999
</tr>
100100
<tr>
101-
<td>Bot detection</td>
101+
<td>Enhanced+ Accuracy</td>
102102
<td>❌</td>
103103
<td>✅</td>
104104
<td>✅</td>
105105
<td>✅</td>
106106
<td>✅</td>
107107
</tr>
108108
<tr>
109-
<td>AI Bot detection</td>
109+
<td>Bot Detection</td>
110110
<td>❌</td>
111111
<td>✅</td>
112112
<td>✅</td>
113113
<td>✅</td>
114114
<td>✅</td>
115115
</tr>
116116
<tr>
117-
<td>Extras (Apps, Libs, Emails, Media Players, etc) detection</td>
117+
<td>AI Detection</td>
118118
<td>❌</td>
119119
<td>✅</td>
120120
<td>✅</td>
121121
<td>✅</td>
122122
<td>✅</td>
123123
</tr>
124124
<tr>
125-
<td>Enhanced detection result</td>
125+
<td>Extra Detections (Apps, Libs, Emails, Media Players, Crawlers, and more)</td>
126126
<td>❌</td>
127127
<td>✅</td>
128128
<td>✅</td>
129129
<td>✅</td>
130130
<td>✅</td>
131131
</tr>
132132
<tr>
133-
<td>Client Hints support</td>
133+
<td>Client Hints Support</td>
134134
<td>❌</td>
135135
<td>✅</td>
136136
<td>✅</td>
137137
<td>✅</td>
138138
<td>✅</td>
139139
</tr>
140140
<tr>
141-
<td>CommonJS support</td>
141+
<td>CommonJS Support</td>
142142
<td>✅</td>
143143
<td>✅</td>
144144
<td>✅</td>
145145
<td>✅</td>
146146
<td>✅</td>
147147
</tr>
148148
<tr>
149-
<td>ES modules support</td>
149+
<td>ESM Support</td>
150150
<td>❌</td>
151151
<td>✅</td>
152152
<td>✅</td>
153153
<td>✅</td>
154154
<td>✅</td>
155155
</tr>
156156
<tr>
157-
<td>TypeScript declarations</td>
158-
<td><a href="#demo" title="Community version">⚠️</a></td>
157+
<td>TypeScript Definitions</td>
158+
<td><a href="#demo" title="Community version"></a></td>
159159
<td>✅</td>
160160
<td>✅</td>
161161
<td>✅</td>
162162
<td>✅</td>
163163
</tr>
164164
<tr>
165-
<td>npm module available</td>
165+
<td>npm Module Available</td>
166166
<td>✅</td>
167167
<td>✅</td>
168168
<td>✅</td>
169169
<td>✅</td>
170170
<td>✅</td>
171171
</tr>
172172
<tr>
173-
<td>Direct downloads available</td>
173+
<td>Direct Downloads Available</td>
174174
<td>✅</td>
175175
<td>✅</td>
176176
<td>✅</td>
177177
<td>✅</td>
178178
<td>✅</td>
179179
</tr>
180180
<tr>
181-
<td>Allows commercial usage</td>
181+
<td>Commercial Use Allowed</td>
182182
<td>✅</td>
183183
<td>✅</td>
184184
<td>❌</td>
185185
<td>✅</td>
186186
<td>✅</td>
187187
</tr>
188188
<tr>
189-
<td>Permissive (non-copyleft) license</td>
189+
<td>Permissive (non-Copyleft) License</td>
190190
<td>✅</td>
191191
<td><strong title="Copyleft license">❌</strong></td>
192192
<td>✅</td>
193193
<td>✅</td>
194194
<td>✅</td>
195195
</tr>
196196
<tr>
197-
<td>No open-source obligations</td>
197+
<td>No Open-Source Obligations</td>
198198
<td>✅</td>
199199
<td><strong title="Copyleft license">❌</strong></td>
200200
<td>✅</td>
201201
<td>✅</td>
202202
<td>✅</td>
203203
</tr>
204204
<tr>
205-
<td>Unlimited end-products</td>
205+
<td>Unlimited End-Products</td>
206206
<td>✅</td>
207207
<td>✅</td>
208208
<td>✅</td>
209209
<td><strong title="1 end-product per license">❌</strong></td>
210210
<td>✅</td>
211211
</tr>
212212
<tr>
213-
<td>Unlimited deployments</td>
213+
<td>Unlimited Deployments</td>
214214
<td>✅</td>
215215
<td>✅</td>
216216
<td>✅</td>
217217
<td><strong title="1 TLD or deliverable per license">❌</strong></td>
218218
<td>✅</td>
219219
</tr>
220220
<tr>
221-
<td>1-year product support</td>
221+
<td>1-year Product Support</td>
222222
<td>❌</td>
223223
<td>❌</td>
224224
<td>✅</td>
225225
<td>✅</td>
226226
<td>✅</td>
227227
</tr>
228228
<tr>
229-
<td>Lifetime updates</td>
229+
<td>Lifetime Updates</td>
230230
<td>✅</td>
231231
<td>✅</td>
232232
<td>✅</td>

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: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
{
22
"title": "UAParser.js",
33
"name": "ua-parser-js",
4-
"version": "2.0.5",
4+
"version": "2.0.6",
55
"author": "Faisal Salman <[email protected]> (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": [
88
"user-agent",
99
"client-hints",
10-
"parser",
1110
"browser",
1211
"engine",
1312
"os",
1413
"device",
1514
"cpu",
16-
"jquery-plugin",
17-
"ecosystem:jquery",
1815
"ua-parser-js",
1916
"browser-detection",
2017
"device-detection",
2118
"os-detection",
22-
"bot-detection"
19+
"bot-detection",
20+
"ai-detection",
21+
"app-detection",
22+
"crawler-detection"
2323
],
2424
"homepage": "https://uaparser.dev",
2525
"contributors": [

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

Lines changed: 14 additions & 1 deletion
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.5
6+
/* Enums for UAParser.js v2.0.6
77
https://github.com/faisalman/ua-parser-js
88
Author: Faisal Salman <[email protected]>
99
AGPLv3 License */
@@ -24,6 +24,7 @@ export const BrowserName: Readonly<{
2424
AVG: 'AVG Secure Browser',
2525
BAIDU: 'Baidu Browser',
2626
BASILISK: 'Basilisk',
27+
BING: 'Bing',
2728
BLAZER: 'Blazer',
2829
BOLT: 'Bolt',
2930
BOWSER: 'Bowser',
@@ -129,6 +130,7 @@ export const BrowserName: Readonly<{
129130
QUARK: 'Quark',
130131
QUPZILLA: 'QupZilla',
131132
QUTEBROWSER: 'qutebrowser',
133+
QWANT: 'Qwant',
132134
REKONQ: 'rekonq',
133135
ROCKMELT: 'Rockmelt',
134136
SAFARI: 'Safari',
@@ -243,6 +245,7 @@ export const DeviceVendor: Readonly<{
243245
GEEKSPHONE: 'GeeksPhone',
244246
GENERIC: 'Generic',
245247
GOOGLE: 'Google',
248+
HISENSE: 'Hisense',
246249
HMD: 'HMD',
247250
HP: 'HP',
248251
HTC: 'HTC',
@@ -291,6 +294,7 @@ export const DeviceVendor: Readonly<{
291294
VIVO: 'Vivo',
292295
VIZIO: 'Vizio',
293296
VODAFONE: 'Vodafone',
297+
WIKO: 'Wiko',
294298
XBOX: 'Xbox',
295299
XIAOMI: 'Xiaomi',
296300
ZEBRA: 'Zebra',
@@ -489,6 +493,7 @@ export const Extension: Readonly<{
489493
DUCKDUCKGO_BOT: 'DuckDuckBot',
490494
DUCKDUCKGO_FAVICONS_BOT: 'DuckDuckGo-Favicons-Bot',
491495
ELASTIC: 'Elastic',
496+
ELASTIC_SWIFTYPE_BOT: 'Swiftbot',
492497
EXALEAD_EXABOT: 'Exabot',
493498
FIRECRAWL_AGENT: 'FirecrawlAgent',
494499
FREESPOKE: 'Freespoke',
@@ -538,6 +543,7 @@ export const Extension: Readonly<{
538543
PERPLEXITY_BOT: 'PerplexityBot',
539544
QIHOO_360_SPIDER: '360Spider',
540545
QWANT_BOT: 'Qwantbot',
546+
QWANT_BOT_NEWS: 'Qwantbot-news',
541547
REPLICATE_BOT: 'Replicate-Bot',
542548
RUNPOD_BOT: 'RunPod-Bot',
543549
SB_INTUITIONS_BOT: 'SBIntuitionsBot',
@@ -551,6 +557,7 @@ export const Extension: Readonly<{
551557
SOGOU_PIC_SPIDER: 'Sogou Pic Spider',
552558
SOGOU_WEB_SPIDER: 'Sogou web spider',
553559
STARTPAGE: 'Startpage',
560+
SURLY_BOT: 'SurdotlyBot',
554561
TIMPI_BOT: 'Timpibot',
555562
TOGETHER_BOT: 'Together-Bot',
556563
TURNITIN_BOT: 'TurnitinBot',
@@ -631,6 +638,7 @@ export const Extension: Readonly<{
631638
BLUESKY: 'Bluesky',
632639
BUFFER_LINKPREVIEWBOT: 'BufferLinkPreviewBot',
633640
COHERE_AI: 'Cohere-AI',
641+
DISCORD_BOT: 'Discordbot',
634642
DUCKDUCKGO_ASSISTBOT: 'DuckAssistBot',
635643
GOOGLE_CHROME_LIGHTHOUSE: 'Chrome-Lighthouse',
636644
GOOGLE_FEEDFETCHER: 'FeedFetcher-Google',
@@ -643,6 +651,7 @@ export const Extension: Readonly<{
643651
HUBSPOT_PAGE_FETCHER: 'HubSpot Page Fetcher',
644652
IFRAMELY: 'Iframely',
645653
KAKAOTALK_SCRAP: 'kakaotalk-scrap',
654+
KEYBASE_BOT: 'KeybaseBot',
646655
META_EXTERNALFETCHER: 'meta-externalfetcher',
647656
META_WHATSAPP: 'WhatsApp',
648657
MICROSOFT_BINGPREVIEW: 'BingPreview',
@@ -654,6 +663,9 @@ export const Extension: Readonly<{
654663
PERPLEXITY_USER: 'Perplexity-User',
655664
PINTEREST_BOT: 'Pinterestbot',
656665
SEMRUSH_SITEAUDITBOT: 'SiteAuditBot',
666+
SLACK_BOT: 'Slackbot',
667+
SLACK_BOT_LINKEXPANDING: 'Slackbot-LinkExpanding',
668+
SLACK_IMGPROXY: 'Slack-ImgProxy',
657669
SNAP_URL_PREVIEW: 'Snap URL Preview',
658670
SKYPE_URIPREVIEW: 'SkypeUriPreview',
659671
TELEGRAM_BOT: 'TelegramBot',
@@ -663,6 +675,7 @@ export const Extension: Readonly<{
663675
VERCEL_BOT: 'Vercelbot',
664676
VERCEL_FLAGS: 'vercelflags',
665677
VERCEL_TRACING: 'verceltracing',
678+
X_TWITTERBOT: 'Twitterbot',
666679
YANDEX_CALENDAR: 'YandexCalendar',
667680
YANDEX_DIRECT: 'YandexDirect',
668681
YANDEX_DIRECTDYN: 'YandexDirectDyn',

src/enums/ua-parser-enums.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
///////////////////////////////////////////////
2-
/* Enums for UAParser.js v2.0.5
2+
/* Enums for UAParser.js v2.0.6
33
https://github.com/faisalman/ua-parser-js
44
Author: Faisal Salman <[email protected]>
55
AGPLv3 License */

0 commit comments

Comments
 (0)