Skip to content

Commit a1644b6

Browse files
committed
Update version to 2.0.0-rc.2
1 parent 0808d1d commit a1644b6

17 files changed

+150
-81
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ assignees: ''
1010
**Library version**
1111
Which version of the library that you use, eg: v0.7.35 or v2.0.0-alpha.3
1212

13-
For the issue related with detection result, you can use the demo section in https://uaparser.dev to confirm
14-
1513
**Describe the bug**
1614
A clear and concise description of what the bug is.
1715

@@ -23,11 +21,13 @@ Steps to reproduce the behavior:
2321
4. See error
2422

2523
**Expected behavior**
26-
A clear and concise description of what you expected to happen.
24+
A clear and concise description of what you expected to happen, or what's referred in the docs https://docs.uaparser.dev/
2725

2826
**Screenshots**
2927
If applicable, add screenshots to help explain your problem.
3028

29+
For issues related to detection results, you can send the screenshots of the demo section at https://uaparser.dev/#demo to confirm.
30+
3131
**Desktop (please complete the following information):**
3232
- OS: [e.g. iOS]
3333
- Browser [e.g. chrome, safari]
@@ -40,4 +40,4 @@ If applicable, add screenshots to help explain your problem.
4040
- Version [e.g. 22]
4141

4242
**Additional context**
43-
Add any other context about the problem here.
43+
Add any other context about the problem here.

CHANGELOG.md

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

3+
## Migrating from v1 to v2
4+
5+
- What's breaking:
6+
- Licensed under AGPLv3 (open-source) or PRO License (commercial)
7+
- Browser detection on mobile device: `"Chrome" => "Mobile Chrome"`, `"Firefox" => "Mobile Firefox"`
8+
- OS detection: `"Mac OS" => "macOS"`, `"Chromium OS" => "Chrome OS"`
9+
- What's new:
10+
- 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 methods in result object (all of `get*()` return value):
13+
- Support for client hints: `withClientHints()`
14+
- Support for feature detection: `withFeatureCheck()`
15+
- Utility for easy comparison: `is()`
16+
- Utility to print full-name: `toString()`
17+
- Parse directly from command line using `npx ua-parser-js`
18+
- Extensions can be passed as a list to `UAParser()`
19+
- Support for ES module & TypeScript `import { UAParser } from 'ua-parser-js'`
20+
- Provided Enums submodule `'ua-parser-js/enums'`
21+
- Provided Extensions submodule `'ua-parser-js/extensions'`
22+
- 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
31+
32+
--
33+
34+
## Version 2.0.0-rc.2
35+
36+
- Fix incorrect import path in ESM files
37+
- Add new browser: 115, SlimBoat, Slimjet, LibreWolf
38+
- Improve browser detection: 2345, 360, Dragon, Iron, Maxthon
39+
- `ua-parser-js/enums` submodule:
40+
- Add Chromecast OS variants: Android/Fuchsia/Linux/SmartSpeaker
41+
- `ua-parser-js/helpers` submodule:
42+
- Add new method: `isBot()` to check if the browser is identified as a bot
43+
344
## Version 2.0.0-rc.1
445

546
- Fix Python Request mistakenly identified as Meta Quest
@@ -68,27 +109,6 @@
68109

69110
- Initial work on new major version
70111

71-
## Version 2.0
72-
73-
- What's breaking:
74-
- Dual-licensed under AGPLv3 or PRO License
75-
- Browser detection on mobile device: `"Chrome" => "Mobile Chrome"`, `"Firefox" => "Mobile Firefox"`
76-
- OS detection: `"Mac OS" => "macOS"`, `"Chromium OS" => "Chrome OS"`
77-
- AR/VR devices moved to new device type: `xr`
78-
- New property in `browser`: `type`
79-
- What's new:
80-
- Some new methods in result object:
81-
- Support for client hints: `withClientHints()`
82-
- Support for feature detection: `withFeatureCheck()`
83-
- Utility for easy comparison: `is()`
84-
- Utility to print full-name: `toString()`
85-
- Parse directly from command line using `npx ua-parser-js`
86-
- Extensions can be passed as a list to `UAParser()`
87-
- Support for ES module `import { UAParser } from 'ua-parser-js'`
88-
- Provided Enums submodule `'ua-parser-js/enums'`
89-
- Provided Extensions submodule `'ua-parser-js/extensions'`
90-
- Provided Helpers submodule `'ua-parser-js/helpers'`
91-
92112
---
93113

94114
## Version 0.7.38 / 1.0.38

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: 43 additions & 3 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",
33
"name": "ua-parser-js",
4-
"version": "2.0.0-rc.1",
4+
"version": "2.0.0-rc.2",
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.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.1
2+
/* Enums for UAParser.js v2.0.0-rc.2
33
https://github.com/faisalman/ua-parser-js
44
Author: Faisal Salman <f@faisalman.com>
55
AGPLv3 License */

src/enums/ua-parser-enums.mjs

Lines changed: 12 additions & 4 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-rc.1
6+
/* Enums for UAParser.js v2.0.0-rc.2
77
https://github.com/faisalman/ua-parser-js
88
Author: Faisal Salman <f@faisalman.com>
99
AGPLv3 License */
@@ -12,8 +12,9 @@
1212
/*jshint esversion: 6 */
1313

1414
const Browser = Object.freeze({
15-
'2345_EXPLORER': '2345Explorer',
16-
'360': '360 Browser',
15+
'115': '115',
16+
'2345': '2345',
17+
'360': '360',
1718
ALIPAY: 'Alipay',
1819
AMAYA: 'Amaya',
1920
ANDROID: 'Android Browser',
@@ -36,11 +37,11 @@ const Browser = Object.freeze({
3637
CHROMIUM: 'Chromium',
3738
COBALT: 'Cobalt',
3839
COC_COC: 'Coc Coc',
39-
COMODO_DRAGON: 'Comodo Dragon',
4040
CONKEROR: 'Conkeror',
4141
DILLO: 'Dillo',
4242
DOLPHIN: 'Dolphin',
4343
DORIS: 'Doris',
44+
DRAGON: 'Dragon',
4445
DUCKDUCKGO: 'DuckDuckGo',
4546
EDGE: 'Edge',
4647
EPIPHANY: 'Epiphany',
@@ -78,6 +79,7 @@ const Browser = Object.freeze({
7879
KLARNA: 'Klarna',
7980
KINDLE: 'Kindle',
8081
LENOVO: 'Smart Lenovo Browser',
82+
LIBREWOLF: 'LibreWolf',
8183
LIEBAO: 'LBBROWSER',
8284
LINE: 'Line',
8385
LINKEDIN: 'LinkedIn',
@@ -126,7 +128,9 @@ const Browser = Object.freeze({
126128
SILK: 'Silk',
127129
SKYFIRE: 'Skyfire',
128130
SLEIPNIR: 'Sleipnir',
131+
SLIMBOAT: 'SlimBoat',
129132
SLIMBROWSER: 'SlimBrowser',
133+
SLIMJET: 'Slimjet',
130134
SNAPCHAT: 'Snapchat',
131135
SOGOU_EXPLORER: 'Sogou Explorer',
132136
SOGOU_MOBILE: 'Sogou Mobile',
@@ -291,6 +295,10 @@ const OS = Object.freeze({
291295
CENTOS: 'CentOS',
292296
CHROME_OS: 'Chrome OS',
293297
CHROMECAST: 'Chromecast',
298+
CHROMECAST_ANDROID: 'Chromecast Android',
299+
CHROMECAST_FUCHSIA: 'Chromecast Fuchsia',
300+
CHROMECAST_LINUX: 'Chromecast Linux',
301+
CHROMECAST_SMARTSPEAKER: 'Chromecast SmartSpeaker',
294302
CONTIKI: 'Contiki',
295303
DEBIAN: 'Debian',
296304
DEEPIN: 'Deepin',

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.3
1+
// Type definitions for Helpers submodule of UAParser.js v2.0.0-rc.2
22
// Project: https://github.com/faisalman/ua-parser-js
33
// Definitions by: Faisal Salman <https://github.com/faisalman>
44

src/extensions/ua-parser-extensions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
///////////////////////////////////////////////
2-
/* Extensions for UAParser.js v2.0.0-rc.1
2+
/* Extensions for UAParser.js v2.0.0-rc.2
33
https://github.com/faisalman/ua-parser-js
44
Author: Faisal Salman <f@faisalman.com>
55
AGPLv3 License */

0 commit comments

Comments
 (0)