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