From 40c908a09291473d15c0493b846d599e22037a4a Mon Sep 17 00:00:00 2001 From: Denis Demchenko Date: Thu, 7 Jul 2016 18:04:35 +0300 Subject: [PATCH 1/4] version bump --- bower.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bower.json b/bower.json index b68f116..6dee789 100644 --- a/bower.json +++ b/bower.json @@ -7,7 +7,7 @@ "sniff", "detection" ], - "version": "1.3.0", + "version": "1.4.1", "homepage": "https://github.com/ded/bowser", "scripts": [ "src/bowser.js" diff --git a/package.json b/package.json index aabb3c6..c60442c 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "sniff", "detection" ], - "version": "1.4.0", + "version": "1.4.1", "homepage": "https://github.com/ded/bowser", "author": "Dustin Diaz (http://dustindiaz.com)", "main": "./src/bowser.js", From 1729a5971b5ee21dc676e88e11c2d31fd2314d1a Mon Sep 17 00:00:00 2001 From: Denis Demchenko Date: Thu, 7 Jul 2016 18:17:49 +0300 Subject: [PATCH 2/4] fix jsdoc declaration --- src/bowser.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bowser.js b/src/bowser.js index efebf7d..57c6762 100644 --- a/src/bowser.js +++ b/src/bowser.js @@ -539,6 +539,7 @@ * * @param {Object} minVersions map of minimal version to browser * @param {Boolean} [strictMode = false] flag to return false if browser wasn't found in map + * @param {String} [ua] user agent string * @return {Boolean} */ function check(minVersions, strictMode, ua) { From e3be8145dc9ced35354a9e254c20238645c6b80a Mon Sep 17 00:00:00 2001 From: Denis Demchenko Date: Thu, 7 Jul 2016 18:18:48 +0300 Subject: [PATCH 3/4] fix strictMode --- src/bowser.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/bowser.js b/src/bowser.js index 57c6762..49cb903 100644 --- a/src/bowser.js +++ b/src/bowser.js @@ -529,9 +529,7 @@ } } - if (strictMode) { - return false; // not found - } + return strictMode; // not found } /** From ea8c671c6856b89fbd3febe3dc255369574e447a Mon Sep 17 00:00:00 2001 From: Denis Demchenko Date: Thu, 7 Jul 2016 18:19:19 +0300 Subject: [PATCH 4/4] add changelog --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 15ea258..dd29217 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Bowser Changelog +### 1.4.1 (July 7, 2016) + +- [FIX] Fix `strictMode` logic for `isUnsupportedBrowser` ### 1.4.0 (June 28, 2016)