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

Merge branch 'release/1.9.0' into production

This commit is contained in:
Denis Demchenko 2017-12-20 21:54:06 +02:00
commit f51676da56
6 changed files with 13 additions and 2 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

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