1
0
mirror of https://github.com/lancedikson/bowser synced 2024-10-27 20:34:22 +00:00

Merge branch 'release/1.5.0'

This commit is contained in:
Denis Demchenko 2016-10-31 11:12:44 +02:00
commit 2df607d457
3 changed files with 7 additions and 3 deletions

View File

@ -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

View File

@ -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`

View File

@ -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",