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 # 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) ### 1.8.1 (October 7, 2017)
- [FIX] Fix detection of MS Edge on Android and iOS (#201) - [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: If detected, one of these flags may be set to true. The rendering engine flag is shown in []'s:
* `chrome` - [`webkit`|`blink`] * `chrome` - [`webkit`|`blink`]
* `chromium` - [`webkit`|`blink`]
* `firefox` - [`gecko`] * `firefox` - [`gecko`]
* `msie` * `msie`
* `msedge` * `msedge`

View File

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

View File

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

View File

@ -611,5 +611,10 @@
*/ */
bowser._detect = detect; 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 return bowser
}); });

1
typings.d.ts vendored
View File

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