From ce445c5d27f23ae23b90bb1033881df7ec26c544 Mon Sep 17 00:00:00 2001 From: Denis Demchenko Date: Thu, 3 Nov 2016 17:28:35 +0200 Subject: [PATCH 1/5] Update node version for travis --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index c7fb8eb..14de794 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: node_js node_js: - - "0.10" + - "4.4.7" notifications: email: - dustin@dustindiaz.com From c7d663a7b59e879200f3ea17c28390446ca6a948 Mon Sep 17 00:00:00 2001 From: Denis Demchenko Date: Thu, 3 Nov 2016 17:37:36 +0200 Subject: [PATCH 2/5] Add tests for some devices on Windows related to #89 --- src/useragents.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/useragents.js b/src/useragents.js index 4d2640d..7e6faf2 100644 --- a/src/useragents.js +++ b/src/useragents.js @@ -649,6 +649,18 @@ module.exports.useragents = { , version: '10.0' , a: true } + , 'Mozilla/5.0 (Windows NT 6.3; ARM; Trident/7.0; Touch; rv:11.0) like Gecko': { + msie: true + , version: '11.0' + , a: true + , windows: true + } + , 'Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; Touch; LCTE; rv:11.0)': { + msie: true + , version: '11.0' + , a: true + , windows: true + } } , 'Microsoft Edge': { 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36 Edge/12.0': { From 29bb872ab299feecc311b9ecfe775c84521142b6 Mon Sep 17 00:00:00 2001 From: Dmitri Voronianski Date: Tue, 29 Nov 2016 15:22:28 +0100 Subject: [PATCH 3/5] fix global exports --- src/bowser.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bowser.js b/src/bowser.js index 5afbc6a..e6b27e1 100644 --- a/src/bowser.js +++ b/src/bowser.js @@ -4,11 +4,11 @@ * MIT License | (c) Dustin Diaz 2015 */ -!function (name, definition) { +!function (root, name, definition) { if (typeof module != 'undefined' && module.exports) module.exports = definition() else if (typeof define == 'function' && define.amd) define(name, definition) - else this[name] = definition() -}('bowser', function () { + else root[name] = definition() +}(this, 'bowser', function () { /** * See useragents.js for examples of navigator.userAgent */ From eae652eb13a50b63e3bd8b2bfc69e00c73a188a3 Mon Sep 17 00:00:00 2001 From: Denis Demchenko Date: Mon, 5 Dec 2016 22:44:44 +0200 Subject: [PATCH 4/5] Bump version to 1.6.0 --- bower.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bower.json b/bower.json index 99cae6d..7003014 100644 --- a/bower.json +++ b/bower.json @@ -7,7 +7,7 @@ "sniff", "detection" ], - "version": "1.4.6", + "version": "1.6.0", "homepage": "https://github.com/ded/bowser", "scripts": [ "src/bowser.js" diff --git a/package.json b/package.json index e80b312..b23dab0 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "sniff", "detection" ], - "version": "1.5.0", + "version": "1.6.0", "homepage": "https://github.com/ded/bowser", "author": "Dustin Diaz (http://dustindiaz.com)", "main": "./src/bowser.js", From 57d266525ec92e1ed18127d44e3afeb86262eb01 Mon Sep 17 00:00:00 2001 From: Denis Demchenko Date: Mon, 5 Dec 2016 22:44:50 +0200 Subject: [PATCH 5/5] Write changelog --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 36ced52..2a28e74 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Bowser Changelog +### 1.6.0 (December 5, 2016) +- [ADD] Add some tests for Windows devices (#89) +- [ADD] Add `root` to initialization process (#170) +- [FIX] Upgrade .travis.yml config + ### 1.5.0 (October 31, 2016) - [ADD] Throw an error when `minVersion` map has not a string as a version and fix readme (#165) - [FIX] Fix truly detection of Windows Phones (#167)