From 54f52cff8b54c8c384040475389008a9c3ff5f4e Mon Sep 17 00:00:00 2001 From: Francois Date: Mon, 25 Jul 2016 12:19:34 +0200 Subject: [PATCH 1/4] add isUnsupportedBrowser in typings isUnsupportedBrowser is missing in typings description --- typings.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/typings.d.ts b/typings.d.ts index 485c4b0..7cb0cb1 100644 --- a/typings.d.ts +++ b/typings.d.ts @@ -40,6 +40,7 @@ export const windows: boolean export const windowsphone: boolean export function test(browserList: Flag[]): boolean +export function isUnsupportedBrowser(minVersions:Object, strictMode?:Boolean, ua?:string): boolean export type Flag = "a" | "b" | "c" | "android" | "bada" | "blackberry" | "chrome" | "firefox" | "gecko" | "ios" | "msie" From da07cd5868fe9de49bd9857f03bd0aeeb6fcc6ff Mon Sep 17 00:00:00 2001 From: Denis Demchenko Date: Tue, 26 Jul 2016 14:05:51 +0300 Subject: [PATCH 2/4] fix check declaration in readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c539419..0386ff3 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ Use it to get object with detected flags of your current browser. ### bowser._detect(ua `:String`)`:Object` Use it to get object with detected flags from User Agent string. -### bowser.check(minVersions`:Object`, strictMode`:Boolean`)`:Boolean` +### bowser.check(minVersions`:Object`, strictMode`:Boolean`, [ua]`:String`)`:Boolean` Use it to check if browser supported. ``` From 1c5d369306cf4b2fbcc86414282404a474976b3f Mon Sep 17 00:00:00 2001 From: Denis Demchenko Date: Tue, 26 Jul 2016 14:06:02 +0300 Subject: [PATCH 3/4] write changelog for 1.4.2 --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index dd29217..7e194ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Bowser Changelog + +### 1.4.2 (July 26, 2016) + +- [FIX] Fix missing `isUnsupportedBrowser` in typings description +- [DOC] Fix `check`'s declaration in README + ### 1.4.1 (July 7, 2016) - [FIX] Fix `strictMode` logic for `isUnsupportedBrowser` From f32dc38dd99fadc43cbf55177ac7a5fead48ffcb Mon Sep 17 00:00:00 2001 From: Denis Demchenko Date: Tue, 26 Jul 2016 14:06:33 +0300 Subject: [PATCH 4/4] version bump --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c60442c..f619e12 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "sniff", "detection" ], - "version": "1.4.1", + "version": "1.4.2", "homepage": "https://github.com/ded/bowser", "author": "Dustin Diaz (http://dustindiaz.com)", "main": "./src/bowser.js",