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:
commit
f51676da56
@ -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)
|
||||||
|
|
||||||
|
@ -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`
|
||||||
|
@ -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"
|
||||||
|
@ -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",
|
||||||
|
@ -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
1
typings.d.ts
vendored
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user