From 2dc08c0da745909845625718184f47c37758b194 Mon Sep 17 00:00:00 2001 From: Denis Demchenko Date: Fri, 3 May 2019 21:50:09 +0300 Subject: [PATCH 1/2] Bump version, update changelog --- CHANGELOG.md | 6 ++++++ package-lock.json | 2 +- package.json | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fd93f17..3dd596d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Bowser Changelog +### 2.4.0 (May 3, 2019) +- [FIX] Update regexp for generic browsers (#310) +- [FIX] Fix issues with module.exports (#318) +- [FIX] Update devDependencies (#316, #321, #322) +- [FIX] Fix docs (#320) + ### 2.3.0 (April 14, 2019) - [ADD] Add support for Blink-based MS Edge (#311) - [ADD] Add more types for TS (#289) diff --git a/package-lock.json b/package-lock.json index b52c8f5..7a98b87 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "bowser", - "version": "2.3.0", + "version": "2.4.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index bd408ff..c260440 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bowser", - "version": "2.3.0", + "version": "2.4.0", "description": "Lightweight browser detector", "keywords": [ "browser", From d160acaf12390e7e21609b1bdbfc3a0bccbb1b85 Mon Sep 17 00:00:00 2001 From: Denis Demchenko Date: Fri, 3 May 2019 21:50:41 +0300 Subject: [PATCH 2/2] Update documents --- docs/Bowser.html | 2 +- docs/Parser.html | 4 ++-- docs/bowser.js.html | 2 +- docs/global.html | 2 +- docs/index.html | 2 +- docs/parser.js.html | 4 ++-- docs/utils.js.html | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/Bowser.html b/docs/Bowser.html index ef9f7b1..bd8aaad 100644 --- a/docs/Bowser.html +++ b/docs/Bowser.html @@ -572,7 +572,7 @@ const result = parser.getResult();
- Documentation generated by JSDoc 3.5.5 on Sun Apr 14 2019 13:45:42 GMT+0300 (EEST) using the docdash theme. + Documentation generated by JSDoc 3.5.5 on Fri May 03 2019 21:50:23 GMT+0300 (EEST) using the docdash theme.
diff --git a/docs/Parser.html b/docs/Parser.html index 15311e3..232d438 100644 --- a/docs/Parser.html +++ b/docs/Parser.html @@ -2566,7 +2566,7 @@ the OS called "anything" or the platform called "anything"Example -
const browser = new Bowser(UA);
+    
const browser = Bowser.getParser(window.navigator.userAgent);
 if (browser.satisfies({chrome: '>118.01.1322' }))
 // or with os
 if (browser.satisfies({windows: { chrome: '>118.01.1322' } }))
@@ -2989,7 +2989,7 @@ Returns undefined when the browser is no described in the checkTree
 
- Documentation generated by JSDoc 3.5.5 on Sun Apr 14 2019 13:45:42 GMT+0300 (EEST) using the docdash theme. + Documentation generated by JSDoc 3.5.5 on Fri May 03 2019 21:50:23 GMT+0300 (EEST) using the docdash theme.
diff --git a/docs/bowser.js.html b/docs/bowser.js.html index 92479e1..d140e3e 100644 --- a/docs/bowser.js.html +++ b/docs/bowser.js.html @@ -105,7 +105,7 @@ export default Bowser;
- Documentation generated by JSDoc 3.5.5 on Sun Apr 14 2019 13:45:42 GMT+0300 (EEST) using the docdash theme. + Documentation generated by JSDoc 3.5.5 on Fri May 03 2019 21:50:23 GMT+0300 (EEST) using the docdash theme.
diff --git a/docs/global.html b/docs/global.html index 63340cb..e580535 100644 --- a/docs/global.html +++ b/docs/global.html @@ -1995,7 +1995,7 @@ like "iPhone" or "Kindle Fire HD 7"
- Documentation generated by JSDoc 3.5.5 on Sun Apr 14 2019 13:45:42 GMT+0300 (EEST) using the docdash theme. + Documentation generated by JSDoc 3.5.5 on Fri May 03 2019 21:50:23 GMT+0300 (EEST) using the docdash theme.
diff --git a/docs/index.html b/docs/index.html index df0ec08..b4410ef 100644 --- a/docs/index.html +++ b/docs/index.html @@ -157,7 +157,7 @@ list of aliases can be found in the file.


- Documentation generated by JSDoc 3.5.5 on Sun Apr 14 2019 13:45:42 GMT+0300 (EEST) using the docdash theme. + Documentation generated by JSDoc 3.5.5 on Fri May 03 2019 21:50:23 GMT+0300 (EEST) using the docdash theme.
diff --git a/docs/parser.js.html b/docs/parser.js.html index ab43e3e..b1579f1 100644 --- a/docs/parser.js.html +++ b/docs/parser.js.html @@ -385,7 +385,7 @@ class Parser { * Returns `undefined` when the browser is no described in the checkTree object. * * @example - * const browser = new Bowser(UA); + * const browser = Bowser.getParser(window.navigator.userAgent); * if (browser.satisfies({chrome: '>118.01.1322' })) * // or with os * if (browser.satisfies({windows: { chrome: '>118.01.1322' } })) @@ -546,7 +546,7 @@ export default Parser;
- Documentation generated by JSDoc 3.5.5 on Sun Apr 14 2019 13:45:42 GMT+0300 (EEST) using the docdash theme. + Documentation generated by JSDoc 3.5.5 on Fri May 03 2019 21:50:23 GMT+0300 (EEST) using the docdash theme.
diff --git a/docs/utils.js.html b/docs/utils.js.html index c1102e4..6b47314 100644 --- a/docs/utils.js.html +++ b/docs/utils.js.html @@ -260,7 +260,7 @@ export default class Utils {
- Documentation generated by JSDoc 3.5.5 on Sun Apr 14 2019 13:45:42 GMT+0300 (EEST) using the docdash theme. + Documentation generated by JSDoc 3.5.5 on Fri May 03 2019 21:50:23 GMT+0300 (EEST) using the docdash theme.