Skip to content

Commit 5328642

Browse files
committed
Update version to 2.0.0-beta.3
1 parent bdcd927 commit 5328642

18 files changed

+250
-99
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,20 @@
1616
- Provided Extensions submodule `'ua-parser-js/extensions'`
1717
- Provided Helpers submodule `'ua-parser-js/helpers'`
1818

19+
## Version 2.0.0-beta.3
20+
21+
- Breaking:
22+
- AR/VR devices moved to new device type: `xr`
23+
- New property in `browser`: `type`
24+
- In `ua-parser-js/extensions` submodule, `bots` divided into `crawler` / `fetcher`
25+
- New features:
26+
- Parse directly from command line using `npx ua-parser-js`
27+
- Extensions can be passed as a list to `UAParser()`
28+
- Add new browser: Pico Browser, Twitter, Wolvic
29+
- Improve browser detection: DuckDuckGo, ICEBrowser, Klar, QQ, Sleipnir
30+
- Improve device detection: Oculus Quest & Oppo Pad
31+
- Update latest client hints spec: `formFactor` -> `formFactors`
32+
1933
## Version 2.0.0-beta.2
2034

2135
- Increase UA_MAX_LENGTH to 500

README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
# UAParser.js
1717

18-
The most comprehensive, compact, & up-to-date JavaScript library to detect
18+
The most comprehensive, compact, & up-to-date isomorphic JavaScript library to detect
1919
user's Browser, Engine, OS, CPU, and Device type/model. Runs either in browser
2020
(client-side) or node.js (server-side).
2121

@@ -176,11 +176,11 @@ user's Browser, Engine, OS, CPU, and Device type/model. Runs either in browser
176176
</tr>
177177
<tr>
178178
<td>Price</td>
179-
<td><strong title="Pay as you want">FREE</strong></td>
180-
<td><strong title="Pay as you want">FREE</strong></td>
181-
<td><strong title="$12 (one-time fee)">$12</strong></td>
182-
<td><strong title="$25 (one-time fee)">$25</strong></td>
183-
<td><strong title="$500 (one-time fee)">$500</strong></td>
179+
<td><strong title="Pay as you want">FREE (<a target="_blank" href="https://raw.githubusercontent.com/faisalman/ua-parser-js/1.0.x/license.md">License</a>)</strong></td>
180+
<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>
181+
<td><strong title="$12 (one-time fee)">$12 (<a target="_blank" href="https://raw.githubusercontent.com/faisalman/ua-parser-js/pro-personal/LICENSE.md">License</a>)</strong></td>
182+
<td><strong title="$25 (one-time fee)">$25 (<a target="_blank" href="https://raw.githubusercontent.com/faisalman/ua-parser-js/pro-business/LICENSE.md">License</a>)</strong></td>
183+
<td><strong title="$500 (one-time fee)">$500 (<a target="_blank" href="https://raw.githubusercontent.com/faisalman/ua-parser-js/pro-enterprise/LICENSE.md">License</a>)</strong></td>
184184
</tr>
185185
</tbody>
186186
<tfoot>
@@ -205,8 +205,7 @@ see what's new & breaking.
205205

206206
## Contributors
207207

208-
Large or small, your contribution is valuable here. Please read [CONTRIBUTING](CONTRIBUTING.md)
209-
guide first for the instruction details.
208+
Please read [CONTRIBUTING](CONTRIBUTING.md) guide first for the instruction details.
210209

211210
<a href="https://github.com/faisalman/ua-parser-js/graphs/contributors">
212211
<img src="https://contrib.rocks/image?repo=faisalman/ua-parser-js" />

dist/ua-parser.min.js

Lines changed: 3 additions & 3 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: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

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

package.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package.describe({
22
name: 'faisalman:ua-parser-js',
3-
version: '2.0.0-beta.2',
3+
version: '2.0.0-beta.3',
44
summary: 'Lightweight JavaScript-based user-agent string parser',
55
git: 'https://github.com/faisalman/ua-parser-js.git',
66
documentation: 'readme.md'

package.json

Lines changed: 3 additions & 2 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-beta.2",
4+
"version": "2.0.0-beta.3",
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": [
@@ -18,7 +18,8 @@
1818
"ua-parser-js",
1919
"browser-detection",
2020
"device-detection",
21-
"os-detection"
21+
"os-detection",
22+
"bot-detection"
2223
],
2324
"homepage": "https://github.com/faisalman/ua-parser-js",
2425
"contributors": [

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-beta.2
2+
/* Enums for UAParser.js v2.0.0-beta.3
33
https://github.com/faisalman/ua-parser-js
44
Author: Faisal Salman <[email protected]>
55
AGPLv3 License */

src/enums/ua-parser-enums.mjs

Lines changed: 18 additions & 5 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.0-beta.2
6+
/* Enums for UAParser.js v2.0.0-beta.3
77
https://github.com/faisalman/ua-parser-js
88
Author: Faisal Salman <[email protected]>
99
AGPLv3 License */
@@ -54,7 +54,7 @@ const Browser = Object.freeze({
5454
FENNEC: 'Fennec',
5555
FLOCK: 'Flock',
5656
FLOW: 'Flow',
57-
GO: 'Go Browser',
57+
GO: 'GoBrowser',
5858
GOOGLE_SEARCH: 'GSA',
5959
HEYTAP: 'HeyTap',
6060
HUAWEI: 'Huawei Browser',
@@ -108,6 +108,7 @@ const Browser = Object.freeze({
108108
PALEMOON: 'PaleMoon',
109109
PHANTOMJS: 'PhantomJS',
110110
PHOENIX: 'Phoenix',
111+
PICOBROWSER: 'Pico Browser',
111112
POLARIS: 'Polaris',
112113
PUFFIN: 'Puffin',
113114
QQ: 'QQBrowser',
@@ -132,9 +133,9 @@ const Browser = Object.freeze({
132133
TESLA: 'Tesla',
133134
TIKTOK: 'TikTok',
134135
TIZEN: 'Tizen Browser',
136+
TWITTER: 'Twitter',
135137
UC: 'UCBrowser',
136138
UP: 'UP.Browser',
137-
VIERA: 'Viera',
138139
VIVALDI: 'Vivaldi',
139140
VIVO: 'Vivo Browser',
140141
W3M: 'w3m',
@@ -143,11 +144,21 @@ const Browser = Object.freeze({
143144
WECHAT: 'WeChat',
144145
WEIBO: 'Weibo',
145146
WHALE: 'Whale',
147+
WOLVIC: 'Wolvic',
146148
YANDEX: 'Yandex'
147149

148150
// TODO : test!
149151
});
150152

153+
const BrowserType = Object.freeze({
154+
CRAWLER: 'crawler',
155+
CLI: 'cli',
156+
EMAIL: 'email',
157+
FETCHER: 'fetcher',
158+
INAPP: 'inapp',
159+
MODULE: 'module'
160+
});
161+
151162
const CPU = Object.freeze({
152163
ARM : 'arm',
153164
ARM_64: 'arm64',
@@ -175,7 +186,8 @@ const Device = Object.freeze({
175186
MOBILE: 'mobile',
176187
SMARTTV: 'smarttv',
177188
TABLET: 'tablet',
178-
WEARABLE: 'wearable'
189+
WEARABLE: 'wearable',
190+
XR: 'xr'
179191
});
180192

181193
const Vendor = Object.freeze({
@@ -345,7 +357,8 @@ const OS = Object.freeze({
345357
});
346358

347359
export {
348-
Browser,
360+
Browser,
361+
BrowserType,
349362
CPU,
350363
Device,
351364
Vendor,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Type definitions for Helpers submodule of UAParser.js v2.0.0-beta.2
1+
// Type definitions for Helpers submodule of UAParser.js v2.0.0-beta.3
22
// Project: https://github.com/faisalman/ua-parser-js
33
// Definitions by: Faisal Salman <https://github.com/faisalman>
44

0 commit comments

Comments
 (0)