Merge branch 'release/1.5.0'

pull/170/head
Denis Demchenko 8 years ago
commit 2df607d457

@ -1,5 +1,9 @@
# Bowser Changelog
### 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)
### 1.4.6 (September 19, 2016)
- [FIX] Fix mobile Opera's version detection on Android
- [FIX] Fix typescript typings — add `mobile` and `tablet` flags

@ -41,12 +41,12 @@ bowser.check({msie: "9.0"}); // false
/**
* specific user agent
*/
bowser.check({chrome: 45}, window.navigator.userAgent); // true
bowser.check({chrome: "45"}, window.navigator.userAgent); // true
/**
* but false in strict mode
*/
bowser.check({chrome: 45}, true, window.navigator.userAgent); // false
bowser.check({chrome: "45"}, true, window.navigator.userAgent); // false
```
### bowser.compareVersions(versions`:Array<String>`)`:Number`

@ -7,7 +7,7 @@
"sniff",
"detection"
],
"version": "1.4.6",
"version": "1.5.0",
"homepage": "https://github.com/ded/bowser",
"author": "Dustin Diaz <dustin@dustindiaz.com> (http://dustindiaz.com)",
"main": "./src/bowser.js",

Loading…
Cancel
Save