Merge branch 'release/1.9.0' into production

v1.x 1.9.0
Denis Demchenko 7 years ago
commit f51676da56

@ -1,5 +1,9 @@
# Bowser Changelog
### 1.9.0 (December 20, 2017)
- [ADD] Add a public method `.detect()` (#205)
- [DOCS] Fix description of `chromium` flag in docs (#206)
### 1.8.1 (October 7, 2017)
- [FIX] Fix detection of MS Edge on Android and iOS (#201)

@ -112,6 +112,7 @@ If detected, one of these flags may be set to true:
If detected, one of these flags may be set to true. The rendering engine flag is shown in []'s:
* `chrome` - [`webkit`|`blink`]
* `chromium` - [`webkit`|`blink`]
* `firefox` - [`gecko`]
* `msie`
* `msedge`

@ -11,7 +11,7 @@
"ender",
"sniff"
],
"version": "1.8.1",
"version": "1.9.0",
"homepage": "https://github.com/lancedikson/bowser",
"scripts": [
"src/bowser.js"

@ -1,6 +1,6 @@
{
"name": "bowser",
"version": "1.8.1",
"version": "1.9.0",
"description": "Lightweight browser detector",
"keywords": [
"browser",

@ -611,5 +611,10 @@
*/
bowser._detect = detect;
/*
* Set our detect public method to the main bowser object
* This is needed to implement bowser in server side
*/
bowser.detect = detect;
return bowser
});

1
typings.d.ts vendored

@ -96,6 +96,7 @@ declare namespace bowser {
(): IBowserDetection;
test(browserList: string[]): boolean;
_detect(ua: string): IBowser;
detect(ua: string): IBowser;
compareVersions(versions: string[]): number;
check(minVersions: IBowserMinVersions, strictMode?: boolean|string, ua?: string): Boolean;
isUnsupportedBrowser(minVersions: IBowserMinVersions, strictMode?: boolean|string, ua?: string): boolean;

Loading…
Cancel
Save