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 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) 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", 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 */ 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': {