Skip to content

Commit ee51caf

Browse files
committed
Update version to 2.0.0-rc.3
1 parent 84c4613 commit ee51caf

17 files changed

+208
-119
lines changed

CHANGELOG.md

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# UAParser.js Changelog
22

3+
# Version 2.0
34
## Migrating from v1 to v2
45

56
- What's breaking:
@@ -8,28 +9,38 @@
89
- OS detection: `"Mac OS" => "macOS"`, `"Chromium OS" => "Chrome OS"`
910
- What's new:
1011
- New device type: `xr`, to identify AR/VR devices
11-
- New browser property: `browser.type`, to identify the type of the browser: `crawler`, `cli`, `email`, `fetcher`, `inapp`, `mediaplayer`, `module`
12+
- New browser property: `browser.type`, to identify the type of the browser: `crawler`, `cli`, `email`, `fetcher`, `inapp`, `library`, `mediaplayer`
1213
- New methods in result object (all of `get*()` return value):
13-
- Support for client hints: `withClientHints()`
14-
- Support for feature detection: `withFeatureCheck()`
14+
- Enhance detection using client hints: `withClientHints()`
15+
- Enhance detection using feature check: `withFeatureCheck()`
1516
- Utility for easy comparison: `is()`
1617
- Utility to print full-name: `toString()`
17-
- Parse directly from command line using `npx ua-parser-js`
18+
- Parse user-agent directly from command line using `npx ua-parser-js "[User-Agent]"`
1819
- Extensions can be passed as a list to `UAParser()`
1920
- Support for ES module & TypeScript `import { UAParser } from 'ua-parser-js'`
2021
- Provided Enums submodule `'ua-parser-js/enums'`
2122
- Provided Extensions submodule `'ua-parser-js/extensions'`
2223
- Provided Helpers submodule `'ua-parser-js/helpers'`:
23-
- `getDeviceVendor()` to guess for a device vendor based on its model name
24-
- `isAppleSilicon()` to check if the device has Apple Silicon Mac device properties
25-
- `isBot()` to check if the browser is identified as a bot
26-
- `isChromeFamily()` to check if the browser is Chrome-based / has Blink engine (i.e: New Opera, New Edge, Vivaldi, Brave, Arc, etc.)
27-
- `isElectron()` to check if current window is running inside Electron
28-
- `isFromEU()` to check if current window is from an EU (European Union) country
29-
- `isFrozenUA()` to check if a user-agent string match with the reduced/frozen user-agent pattern
30-
- `isStandalonePWA()` to check if current window is a standalone PWA
24+
- `getDeviceVendor()`: guess for a device vendor based on its model name
25+
- `isAppleSilicon()`: check if the device has Apple Silicon Mac device properties
26+
- `isBot()`: check if the browser is identified as a bot
27+
- `isChromeFamily()`: check if the browser is Chrome-based (has Blink engine, i.e: New Opera, New Edge, Vivaldi, Brave, Arc, etc.)
28+
- `isElectron()`: check if current window is running inside Electron
29+
- `isFromEU()`: check if current window is from an EU (European Union) country
30+
- `isFrozenUA()`: check if a user-agent string match with the reduced/frozen user-agent pattern
31+
- `isStandalonePWA()`: check if current window is a standalone PWA
32+
33+
---
3134

32-
--
35+
## Version 2.0.0-rc.3
36+
37+
- Add support for Headers object
38+
- Add new device: Advan, Cat, Energizer, Honor, IMO, Micromax, Smartfren
39+
- Add new engine: Servo
40+
- `ua-parser-js/extensions` submodule:
41+
- Breaking change: rename `module` to `library`
42+
- Add new email clients: Evolution, KMail, Kontact
43+
- Add new bots: 360Spider, Archive.org Bots, CCBot, DataForSeoBot, DuckAssistBot, Exabot, Google Bots, Meta Bots, MojeekBot, PerplexityBot, PetalBot, TurnitinBot, Yeti, YisouSpider
3344

3445
## Version 2.0.0-rc.2
3546

@@ -59,7 +70,7 @@
5970
- Rename `isChromiumBased()` to `isChromeFamily()`
6071
- Update `isAppleSilicon()` to also checks for WebGL renderer info
6172
- `ua-parser-js/extensions` submodule:
62-
- Restore `bots` as a compilation of all these browser types: `clis`, `crawlers`, `fetchers`, and `modules`
73+
- Restore `Bots` as a compilation of all these browser types: `cli`, `crawler`, `fetcher`, and `library`
6374

6475
## Version 2.0.0-beta.3
6576

README.md

Lines changed: 35 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -44,71 +44,79 @@ see what's new & breaking.
4444
<tbody>
4545
<tr>
4646
<td>License options</td>
47-
<td>MIT (v1.x)</td>
48-
<td>AGPL (v2.x)</td>
47+
<td>MIT (v0.7~v1.0)</td>
48+
<td>AGPL (&gt;=v2.0)</td>
4949
<td>PRO Personal</td>
5050
<td>PRO Business</td>
5151
<td>PRO Enterprise</td>
5252
</tr>
5353
<tr>
5454
<td>Browser detection</td>
55-
<td><strong title="Basic detection">⚠️</strong></td>
55+
<td><a href="#demo" title="Basic detection">⚠️</a></td>
5656
<td>✅</td>
5757
<td>✅</td>
5858
<td>✅</td>
5959
<td>✅</td>
6060
</tr>
6161
<tr>
6262
<td>CPU detection</td>
63-
<td><strong title="Basic detection">⚠️</strong></td>
63+
<td><a href="#demo" title="Basic detection">⚠️</a></td>
6464
<td>✅</td>
6565
<td>✅</td>
6666
<td>✅</td>
6767
<td>✅</td>
6868
</tr>
6969
<tr>
7070
<td>Device detection</td>
71-
<td><strong title="Basic detection">⚠️</strong></td>
71+
<td><a href="#demo" title="Basic detection">⚠️</a></td>
7272
<td>✅</td>
7373
<td>✅</td>
7474
<td>✅</td>
7575
<td>✅</td>
7676
</tr>
7777
<tr>
7878
<td>Engine detection</td>
79-
<td><strong title="Basic detection">⚠️</strong></td>
79+
<td><a href="#demo" title="Basic detection">⚠️</a></td>
8080
<td>✅</td>
8181
<td>✅</td>
8282
<td>✅</td>
8383
<td>✅</td>
8484
</tr>
8585
<tr>
8686
<td>OS detection</td>
87-
<td><strong title="Basic detection">⚠️</strong></td>
87+
<td><a href="#demo" title="Basic detection">⚠️</a></td>
8888
<td>✅</td>
8989
<td>✅</td>
9090
<td>✅</td>
9191
<td>✅</td>
9292
</tr>
9393
<tr>
94-
<td>Enhanced detection</td>
95-
<td>⛔️</td>
94+
<td>Bot detection</td>
95+
<td></td>
9696
<td>✅</td>
9797
<td>✅</td>
9898
<td>✅</td>
9999
<td>✅</td>
100100
</tr>
101101
<tr>
102-
<td>Client Hints support</td>
103-
<td>⛔️</td>
102+
<td>Extras (Apps, Libs, Emails, Media Players, etc)</td>
103+
<td>❌</td>
104+
<td>✅</td>
105+
<td>✅</td>
106+
<td>✅</td>
107+
<td>✅</td>
108+
</tr>
109+
<tr>
110+
<td>Enhanced detection result</td>
111+
<td>❌</td>
104112
<td>✅</td>
105113
<td>✅</td>
106114
<td>✅</td>
107115
<td>✅</td>
108116
</tr>
109117
<tr>
110-
<td>Extras (Apps, Bots, Libs, Emails, Media Players, etc)</td>
111-
<td>⛔️</td>
118+
<td>Client Hints support</td>
119+
<td></td>
112120
<td>✅</td>
113121
<td>✅</td>
114122
<td>✅</td>
@@ -124,40 +132,40 @@ see what's new & breaking.
124132
</tr>
125133
<tr>
126134
<td>ES modules support</td>
127-
<td>⛔️</td>
135+
<td></td>
128136
<td>✅</td>
129137
<td>✅</td>
130138
<td>✅</td>
131139
<td>✅</td>
132140
</tr>
133141
<tr>
134-
<td>npm module available</td>
142+
<td>npm module</td>
135143
<td>✅</td>
136144
<td>✅</td>
137145
<td>✅</td>
138146
<td>✅</td>
139147
<td>✅</td>
140148
</tr>
141149
<tr>
142-
<td>TypeScript declarations available</td>
143-
<td><strong title="Community version">⚠️</strong></td>
150+
<td>TypeScript declarations</td>
151+
<td><a href="#demo" title="Community version">⚠️</a></td>
144152
<td>✅</td>
145153
<td>✅</td>
146154
<td>✅</td>
147155
<td>✅</td>
148156
</tr>
149157
<tr>
150-
<td>Allowed for commercial use</td>
158+
<td>Allows commercial use</td>
151159
<td>✅</td>
152160
<td>✅</td>
153-
<td>⛔️</td>
161+
<td></td>
154162
<td>✅</td>
155163
<td>✅</td>
156164
</tr>
157165
<tr>
158166
<td>Permissive (non-copyleft) license</td>
159167
<td>✅</td>
160-
<td><strong title="Copyleft license">⛔️</strong></td>
168+
<td><strong title="Copyleft license"></strong></td>
161169
<td>✅</td>
162170
<td>✅</td>
163171
<td>✅</td>
@@ -167,13 +175,13 @@ see what's new & breaking.
167175
<td>✅</td>
168176
<td>✅</td>
169177
<td>✅</td>
170-
<td><strong title="1 project per 1 license">⛔️</strong></td>
178+
<td><strong title="1 project per 1 license"></strong></td>
171179
<td>✅</td>
172180
</tr>
173181
<tr>
174-
<td>1-year support</td>
175-
<td>⛔️</td>
176-
<td>⛔️</td>
182+
<td>1-year product support</td>
183+
<td></td>
184+
<td></td>
177185
<td>✅</td>
178186
<td>✅</td>
179187
<td>✅</td>
@@ -192,13 +200,13 @@ see what's new & breaking.
192200
<td><strong title="Pay as you want">FREE (<a target="_blank" href="https://raw.githubusercontent.com/faisalman/ua-parser-js/master/LICENSE.md">License</a>)</strong></td>
193201
<td><strong title="$14 (one-time fee)">$14 (<a target="_blank" href="https://raw.githubusercontent.com/faisalman/ua-parser-js/pro-personal/LICENSE.md">License</a>)</strong></td>
194202
<td><strong title="$29 (one-time fee)">$29 (<a target="_blank" href="https://raw.githubusercontent.com/faisalman/ua-parser-js/pro-business/LICENSE.md">License</a>)</strong></td>
195-
<td><strong title="$588 (one-time fee)">$588 (<a target="_blank" href="https://raw.githubusercontent.com/faisalman/ua-parser-js/pro-enterprise/LICENSE.md">License</a>)</strong></td>
203+
<td><strong title="$599 (one-time fee)">$599 (<a target="_blank" href="https://raw.githubusercontent.com/faisalman/ua-parser-js/pro-enterprise/LICENSE.md">License</a>)</strong></td>
196204
</tr>
197205
</tbody>
198206
<tfoot>
199207
<tr>
200208
<th align="right" colspan="6">
201-
<a target="_blank" href="https://store.faisalman.com/checkout/buy/e236ea87-9b2b-400e-9683-24367f731b35"> GET THE PRO PACKAGES 📥</a>
209+
<h3><a target="_blank" href="https://store.faisalman.com/checkout/buy/e236ea87-9b2b-400e-9683-24367f731b35"> GET THE PRO PACKAGES 📥</a></h3>
202210
</th>
203211
</tr>
204212
</tfoot>
@@ -221,4 +229,4 @@ Made with [contributors-img](https://contrib.rocks).
221229
<a href="https://opencollective.com/ua-parser-js"><img src="https://opencollective.com/ua-parser-js/organizations.svg?avatarHeight=64"></a>
222230
<a href="https://opencollective.com/ua-parser-js"><img src="https://opencollective.com/ua-parser-js/individuals.svg?avatarHeight=64"></a>
223231

224-
Support the open-source versions of UAParser.js on [OpenCollective](https://opencollective.com/ua-parser-js) or [GitHub Sponsors](https://github.com/sponsors/faisalman).
232+
Support the open-source editions of UAParser.js on [OpenCollective](https://opencollective.com/ua-parser-js) or [GitHub Sponsors](https://github.com/sponsors/faisalman).

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.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.

package-lock.json

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

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"title": "UAParser.js",
33
"name": "ua-parser-js",
4-
"version": "2.0.0-rc.2",
4+
"version": "2.0.0-rc.3",
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": [
@@ -211,9 +211,9 @@
211211
"test:playwright": "playwright test"
212212
},
213213
"dependencies": {
214-
"detect-europe-js": "^0.1.1",
215-
"is-standalone-pwa": "^0.1.0",
216-
"ua-is-frozen": "^0.1.1"
214+
"detect-europe-js": "^0.1.2",
215+
"is-standalone-pwa": "^0.1.1",
216+
"ua-is-frozen": "^0.1.2"
217217
},
218218
"devDependencies": {
219219
"@babel/parser": "7.15.8",

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.0-rc.2
2+
/* Enums for UAParser.js v2.0.0-rc.3
33
https://github.com/faisalman/ua-parser-js
44
Author: Faisal Salman <f@faisalman.com>
55
AGPLv3 License */

0 commit comments

Comments
 (0)