From 9ba7a45c3fb6e4cc7b820a511daf008c5dacc120 Mon Sep 17 00:00:00 2001 From: Denis Demchenko Date: Wed, 17 Jul 2019 13:49:27 +0300 Subject: [PATCH 1/3] chore(package): bump package version --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index bd5a3ea..b0c1634 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "bowser", - "version": "2.5.0", + "version": "2.5.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 7a5c5cd..757a4a7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bowser", - "version": "2.5.0", + "version": "2.5.1", "description": "Lightweight browser detector", "keywords": [ "browser", From 7cf7777b1b17c037bde004a85ebf61259e65e163 Mon Sep 17 00:00:00 2001 From: Denis Demchenko Date: Wed, 17 Jul 2019 13:52:07 +0300 Subject: [PATCH 2/3] chore(changelog): write changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 96fd4dc..97fe14b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Bowser Changelog +### 2.5.1 (July 17, 2019) +- [FIX] Fixes the bug with a custom Error class (#335) +- [FIX] Fixes the settings for Babel to reduce the bundle size (#259) + ### 2.5.0 (July 16, 2019) - [ADD] Add constant output so that users can quickly get all types (#325) - [FIX] Add support for Roku OS (#332) From cd378adf8992b2f08126bbfe8e64b9d6f8dd1289 Mon Sep 17 00:00:00 2001 From: Denis Demchenko Date: Wed, 17 Jul 2019 13:52:54 +0300 Subject: [PATCH 3/3] chore(docs): auto-generate docs --- docs/Bowser.html | 10 +++++----- docs/Parser.html | 4 ++-- docs/bowser.js.html | 19 ++++--------------- docs/global.html | 4 ++-- docs/index.html | 6 +++--- docs/parser.js.html | 4 ++-- docs/utils.js.html | 4 ++-- 7 files changed, 20 insertions(+), 31 deletions(-) diff --git a/docs/Bowser.html b/docs/Bowser.html index 50b07fc..f24d358 100644 --- a/docs/Bowser.html +++ b/docs/Bowser.html @@ -27,7 +27,7 @@
@@ -90,7 +90,7 @@
Source:
@@ -284,7 +284,7 @@ explicitly. Same as skipParsing for Parser
-BowserUAIsNotAStringError +Error
@@ -335,7 +335,7 @@ explicitly. Same as skipParsing for ParserSource:
@@ -492,7 +492,7 @@ explicitly. Same as skipParsing for Parser
- Documentation generated by JSDoc 3.6.3 on Tue Jul 16 2019 22:20:27 GMT+0300 (Eastern European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.3 on Wed Jul 17 2019 13:52:37 GMT+0300 (Eastern European Summer Time) using the docdash theme.
diff --git a/docs/Parser.html b/docs/Parser.html index 96259b9..a01f4f7 100644 --- a/docs/Parser.html +++ b/docs/Parser.html @@ -27,7 +27,7 @@
@@ -3061,7 +3061,7 @@ Returns undefined when the browser is no described in the checkTree
- Documentation generated by JSDoc 3.6.3 on Tue Jul 16 2019 22:20:27 GMT+0300 (Eastern European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.3 on Wed Jul 17 2019 13:52:37 GMT+0300 (Eastern European Summer Time) using the docdash theme.
diff --git a/docs/bowser.js.html b/docs/bowser.js.html index 0594346..f846891 100644 --- a/docs/bowser.js.html +++ b/docs/bowser.js.html @@ -27,7 +27,7 @@
@@ -56,17 +56,6 @@ import { PLATFORMS_MAP, } from './constants.js'; -/** - * @class - * @property name - */ -class BowserUAIsNotAStringError extends Error { - constructor(message) { - super(message); - this.name = 'BowserUAIsNotAStringError'; - } -} - /** * Bowser class. * Keep it simple as much as it can be. @@ -86,7 +75,7 @@ class Bowser { * @param {Boolean} [skipParsing=false] Will make the Parser postpone parsing until you ask it * explicitly. Same as `skipParsing` for {@link Parser}. * @returns {Parser} - * @throws {BowserUAIsNotAStringError} when UA is not a String + * @throws {Error} when UA is not a String * * @example * const parser = Bowser.getParser(window.navigator.userAgent); @@ -94,7 +83,7 @@ class Bowser { */ static getParser(UA, skipParsing = false) { if (typeof UA !== 'string') { - throw new BowserUAIsNotAStringError('UserAgent should be a string'); + throw new Error('UserAgent should be a string'); } return new Parser(UA, skipParsing); } @@ -144,7 +133,7 @@ export default Bowser;
- Documentation generated by JSDoc 3.6.3 on Tue Jul 16 2019 22:20:27 GMT+0300 (Eastern European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.3 on Wed Jul 17 2019 13:52:37 GMT+0300 (Eastern European Summer Time) using the docdash theme.
diff --git a/docs/global.html b/docs/global.html index db43dcf..169d3b6 100644 --- a/docs/global.html +++ b/docs/global.html @@ -27,7 +27,7 @@
@@ -2178,7 +2178,7 @@ like "iPhone" or "Kindle Fire HD 7"
- Documentation generated by JSDoc 3.6.3 on Tue Jul 16 2019 22:20:27 GMT+0300 (Eastern European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.3 on Wed Jul 17 2019 13:52:37 GMT+0300 (Eastern European Summer Time) using the docdash theme.
diff --git a/docs/index.html b/docs/index.html index 69f8dfd..f9d4778 100644 --- a/docs/index.html +++ b/docs/index.html @@ -27,7 +27,7 @@
@@ -58,7 +58,7 @@

Bowser

-

A small, fast and reach-API browser/platform/engine detector for both browser and node.

+

A small, fast and rich-API browser/platform/engine detector for both browser and node.