Skip to content

Commit acaad29

Browse files
authored
Version 0.6.0 and Test on newer Node (#58)
* Version 0.6.0 and Test on newer Node * Migrate to GitHub Actions
1 parent aeed780 commit acaad29

File tree

5 files changed

+112
-77
lines changed

5 files changed

+112
-77
lines changed

.github/workflow/main.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Build and test
2+
"on":
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
jobs:
10+
Build:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node-version:
15+
- "6.x"
16+
- "7.x"
17+
- "8.x"
18+
- "9.x"
19+
- "10.x"
20+
- "11.x"
21+
- "12.x"
22+
- "13.x"
23+
- "14.x"
24+
- "15.x"
25+
- "16.x"
26+
steps:
27+
- name: "Set up Node.js ${{ matrix.node-version }}"
28+
uses: actions/setup-node@v1
29+
with:
30+
node-version: "${{ matrix.node-version }}"
31+
- uses: actions/checkout@v2
32+
- run: npm run lint
33+
- run: npm run test-and-coverage

.travis.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 75 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,105 +1,134 @@
1+
#### 0.6.0 (2022-02-16)
2+
3+
- **Database:** Synced the JavaScript version of WhichBrowser with the latest changes happened in WhichBrowser-PHP until [WhichBrowser-PHP@d082883](https://github.com/WhichBrowser/Parser-PHP/commit/d0828833c1e2e05654b72e78d6944732adeb606b) [[diff](https://github.com/WhichBrowser/Parser-PHP/compare/0ef1a43950f14c65a760fe8123b4401e2b315bc3...d082883)].
4+
- **Operations:** Migrate from TravisCI to GitHub Actuibs
5+
16
#### 0.5.1 (2019-11-30)
2-
* **Database:** Added Chrome 77 and 78.
7+
8+
- **Database:** Added Chrome 77 and 78.
39

410
#### 0.5.0 (2019-08-25)
5-
* **Database:** Added support for Chromium based Edge. Updated Android and iOS models. Added Chrome 75 and 76. Added Samsung Galaxy Fold and Galaxy A models.
6-
* **Fixes:** False positive for Obigo browser.
11+
12+
- **Database:** Added support for Chromium based Edge. Updated Android and iOS models. Added Chrome 75 and 76. Added Samsung Galaxy Fold and Galaxy A models.
13+
- **Fixes:** False positive for Obigo browser.
714

815
#### 0.4.2 (2019-06-01)
9-
Now *TypeScript Types* are available thanks to @[AnandChowdhary](https://github.com/AnandChowdhary) and his PR [#36](https://github.com/WhichBrowser/Parser-JavaScript/pull/36)
10-
* **Database:** Added Chrome 73 and 74 ([d2ea800](https://github.com/WhichBrowser/Parser-JavaScript/commit/d2ea8009277426ea874559e8e426f29510816ae0))
16+
17+
Now _TypeScript Types_ are available thanks to @[AnandChowdhary](https://github.com/AnandChowdhary) and his PR [#36](https://github.com/WhichBrowser/Parser-JavaScript/pull/36)
18+
19+
- **Database:** Added Chrome 73 and 74 ([d2ea800](https://github.com/WhichBrowser/Parser-JavaScript/commit/d2ea8009277426ea874559e8e426f29510816ae0))
1120

1221
#### 0.4.0 (2019-02-07)
13-
* **Fix:** [Issue 96 of WhichBrowser/Parser-PHP](https://github.com/WhichBrowser/Parser-PHP/issues/96), `profiles.js` and `models-*.js` files had some occourrences of spaces replaced by Unicode Character 'EN SPACE' (U+2002). The scripts that download these files are now stripping away that character and replacing it with a normal space. Thanks @[koconder](https://github.com/koconder) for [#29](https://github.com/WhichBrowser/Parser-JavaScript/pull/29) and @[Taiwaninja](https://github.com/Taiwaninja) for reporting it.
14-
* **Tools:** WhichBrowser/Parser-Javascript is now tested on all the node versions between 6 and 11 included. Thanks again to @[koconder](https://github.com/koconder) for [#30](https://github.com/WhichBrowser/Parser-JavaScript/pull/30).
15-
* **Database:** Added Chrome 70, 71 and 72 ([34735c2](https://github.com/WhichBrowser/Parser-JavaScript/commit/34735c27191e6b4c70b850aeea6f90bc51c65299))
22+
23+
- **Fix:** [Issue 96 of WhichBrowser/Parser-PHP](https://github.com/WhichBrowser/Parser-PHP/issues/96), `profiles.js` and `models-*.js` files had some occourrences of spaces replaced by Unicode Character 'EN SPACE' (U+2002). The scripts that download these files are now stripping away that character and replacing it with a normal space. Thanks @[koconder](https://github.com/koconder) for [#29](https://github.com/WhichBrowser/Parser-JavaScript/pull/29) and @[Taiwaninja](https://github.com/Taiwaninja) for reporting it.
24+
- **Tools:** WhichBrowser/Parser-Javascript is now tested on all the node versions between 6 and 11 included. Thanks again to @[koconder](https://github.com/koconder) for [#30](https://github.com/WhichBrowser/Parser-JavaScript/pull/30).
25+
- **Database:** Added Chrome 70, 71 and 72 ([34735c2](https://github.com/WhichBrowser/Parser-JavaScript/commit/34735c27191e6b4c70b850aeea6f90bc51c65299))
1626

1727
#### 0.3.5 (2018-10-01)
18-
* **Database:** Added new iPhones XS, XS Max, XR ([911ae7a](https://github.com/WhichBrowser/Parser-JavaScript/commit/911ae7a7847acc2be01a809db95bbfaeb930ae73))
28+
29+
- **Database:** Added new iPhones XS, XS Max, XR ([911ae7a](https://github.com/WhichBrowser/Parser-JavaScript/commit/911ae7a7847acc2be01a809db95bbfaeb930ae73))
1930

2031
#### 0.3.4 (2018-09-13)
21-
* **Database:** Added Chrome 69 ([5b8a4fa](https://github.com/WhichBrowser/Parser-JavaScript/commit/5b8a4fa5e81740336cf29c88982af152f70e81c9))
32+
33+
- **Database:** Added Chrome 69 ([5b8a4fa](https://github.com/WhichBrowser/Parser-JavaScript/commit/5b8a4fa5e81740336cf29c88982af152f70e81c9))
2234

2335
#### 0.3.3 (2018-08-22)
24-
* **Fixes:** Now is possible to *really* disable the bot detection with the option `detectBots: false` ([5e02e9a](https://github.com/WhichBrowser/Parser-JavaScript/commit/5e02e9a01fdee83b7bb0b6e91372b1870b157d52))
36+
37+
- **Fixes:** Now is possible to _really_ disable the bot detection with the option `detectBots: false` ([5e02e9a](https://github.com/WhichBrowser/Parser-JavaScript/commit/5e02e9a01fdee83b7bb0b6e91372b1870b157d52))
2538

2639
#### 0.3.2 (2018-07-27)
27-
* **Database:** Added Chrome 68 ([0d04c8d](https://github.com/WhichBrowser/Parser-JavaScript/commit/0d04c8def9971c7a6bf16e1b1398bb475e69a310) & [cd5ec81](https://github.com/WhichBrowser/Parser-JavaScript/commit/cd5ec8183a6145dd901e3433c78846e1f9af5976))
28-
* **Database:** Fixed name of Oculus Browser and added Oculus Go detection, thanks @frankolivier (#23) ([b38377c](https://github.com/WhichBrowser/Parser-JavaScript/commit/b38377c8d1856a316c6f74fea15ee3228aa050d6))
40+
41+
- **Database:** Added Chrome 68 ([0d04c8d](https://github.com/WhichBrowser/Parser-JavaScript/commit/0d04c8def9971c7a6bf16e1b1398bb475e69a310) & [cd5ec81](https://github.com/WhichBrowser/Parser-JavaScript/commit/cd5ec8183a6145dd901e3433c78846e1f9af5976))
42+
- **Database:** Fixed name of Oculus Browser and added Oculus Go detection, thanks @frankolivier (#23) ([b38377c](https://github.com/WhichBrowser/Parser-JavaScript/commit/b38377c8d1856a316c6f74fea15ee3228aa050d6))
2943

3044
#### 0.3.1 (2018-07-13)
31-
* **Database:** Updated Models, Indices and Profiles ([fa4dd85](https://github.com/WhichBrowser/Parser-JavaScript/commit/fa4dd8514991578da4102027269071db860194f3))
45+
46+
- **Database:** Updated Models, Indices and Profiles ([fa4dd85](https://github.com/WhichBrowser/Parser-JavaScript/commit/fa4dd8514991578da4102027269071db860194f3))
3247

3348
#### 0.3.0 (2018-06-19)
34-
* **Database:** Added Chrome 66 & 67 ([a9bce87](https://github.com/WhichBrowser/Parser-JavaScript/commit/a9bce872a9a17491539aca760d2627f1af2a6beb))
49+
50+
- **Database:** Added Chrome 66 & 67 ([a9bce87](https://github.com/WhichBrowser/Parser-JavaScript/commit/a9bce872a9a17491539aca760d2627f1af2a6beb))
3551

3652
#### 0.2.9 (2018-03-16)
37-
* **Database:** Added Chrome 65 ([c1c9148](https://github.com/WhichBrowser/Parser-JavaScript/commit/c1c9148397b179d0655ec0f5b181d8e65511df38))
53+
54+
- **Database:** Added Chrome 65 ([c1c9148](https://github.com/WhichBrowser/Parser-JavaScript/commit/c1c9148397b179d0655ec0f5b181d8e65511df38))
3855

3956
#### 0.2.8 (2018-03-06)
40-
* **Fixes:** Update dependencies due to [vulnerable moment.js version](https://nvd.nist.gov/vuln/detail/CVE-2017-18214) ([4ed2fc2](https://github.com/WhichBrowser/Parser-JavaScript/commit/4ed2fc296e1949b0cb8c5563a65b8cf97649241a))
41-
* **Database:** Added Czech service, thanks to @pixietrixibell for [#90 on Parser-PHP](https://github.com/WhichBrowser/Parser-PHP/pull/90) ([8a96017](https://github.com/WhichBrowser/Parser-JavaScript/commit/8a96017408ac35b37e73d31b7746ad84723dcfc0))
57+
58+
- **Fixes:** Update dependencies due to [vulnerable moment.js version](https://nvd.nist.gov/vuln/detail/CVE-2017-18214) ([4ed2fc2](https://github.com/WhichBrowser/Parser-JavaScript/commit/4ed2fc296e1949b0cb8c5563a65b8cf97649241a))
59+
- **Database:** Added Czech service, thanks to @pixietrixibell for [#90 on Parser-PHP](https://github.com/WhichBrowser/Parser-PHP/pull/90) ([8a96017](https://github.com/WhichBrowser/Parser-JavaScript/commit/8a96017408ac35b37e73d31b7746ad84723dcfc0))
4260

4361
#### 0.2.7 (2018-01-31)
44-
* **Fixes:** Windows IoT 10 being detected as Android ([695751b](https://github.com/WhichBrowser/Parser-JavaScript/commit/695751b00a28b6ca28208c944e8bbf13a230c798))
45-
* **Database:** Added Chrome 64 ([ec0e117](https://github.com/WhichBrowser/Parser-JavaScript/commit/ec0e117b7e1f56a68d53cc2e8d0982b23827994a))
62+
63+
- **Fixes:** Windows IoT 10 being detected as Android ([695751b](https://github.com/WhichBrowser/Parser-JavaScript/commit/695751b00a28b6ca28208c944e8bbf13a230c798))
64+
- **Database:** Added Chrome 64 ([ec0e117](https://github.com/WhichBrowser/Parser-JavaScript/commit/ec0e117b7e1f56a68d53cc2e8d0982b23827994a))
4665

4766
#### 0.2.6 (2018-01-21)
48-
**This update is too big to list all the improvements**
67+
68+
**This update is too big to list all the improvements**
4969
Just to list some of these:
5070

51-
* Improved XIAOMI and MIUI browser detection
52-
* Added Zen, Ziox, Yuanda and many others
53-
* Added a lot of new models
54-
* Added new browsers
71+
- Improved XIAOMI and MIUI browser detection
72+
- Added Zen, Ziox, Yuanda and many others
73+
- Added a lot of new models
74+
- Added new browsers
5575

5676
#### 0.2.5 (2017-12-07)
57-
* **Fixes:**
58-
* Issue [#10](https://github.com/WhichBrowser/Parser-JavaScript/issues/10) - Thanks [@stouf](https://github.com/stouf) for reporting ([a3285e1](https://github.com/WhichBrowser/Parser-JavaScript/commit/a3285e1f1f439bccbbe2c1bb93abfdcd3a93f7de))
59-
* **Database:** Added Chrome 63, new iPhones, MANY new models of various manufacturers and Os ([6e6715e](https://github.com/WhichBrowser/Parser-JavaScript/commit/6e6715e022bb26e2a4bd5a7f24a6fc2a9a023ebb))
60-
* **Analysis:** Better management of Edge, added management of KaiOS ([22a2752](https://github.com/WhichBrowser/Parser-JavaScript/commit/22a27520ce38dd5f50954387b5e0499c88bef1e0))
6177

62-
#### 0.2.4 (2017-11-17)
63-
* **Database:** Added Chrome 62 ([3d4a74c](https://github.com/WhichBrowser/Parser-JavaScript/commit/3d4a74c1cf995a41bde6a6136bfd076d9e877286))
78+
- **Fixes:**
79+
- Issue [#10](https://github.com/WhichBrowser/Parser-JavaScript/issues/10) - Thanks [@stouf](https://github.com/stouf) for reporting ([a3285e1](https://github.com/WhichBrowser/Parser-JavaScript/commit/a3285e1f1f439bccbbe2c1bb93abfdcd3a93f7de))
80+
- **Database:** Added Chrome 63, new iPhones, MANY new models of various manufacturers and Os ([6e6715e](https://github.com/WhichBrowser/Parser-JavaScript/commit/6e6715e022bb26e2a4bd5a7f24a6fc2a9a023ebb))
81+
- **Analysis:** Better management of Edge, added management of KaiOS ([22a2752](https://github.com/WhichBrowser/Parser-JavaScript/commit/22a27520ce38dd5f50954387b5e0499c88bef1e0))
82+
83+
#### 0.2.4 (2017-11-17)
84+
85+
- **Database:** Added Chrome 62 ([3d4a74c](https://github.com/WhichBrowser/Parser-JavaScript/commit/3d4a74c1cf995a41bde6a6136bfd076d9e877286))
86+
87+
#### 0.2.3 (2017-09-25)
6488

65-
#### 0.2.3 (2017-09-25)
66-
* **Database:** Added Chrome 61 ([6d86594](https://github.com/WhichBrowser/Parser-JavaScript/commit/6d86594e82e795fb1720dfc162c002e73889be4b))
67-
* **Database:** Added macOS High Sierra ([5b8584a](https://github.com/WhichBrowser/Parser-JavaScript/commit/5b8584adf81f449b75d851c34d2d6ab39d138579))
89+
- **Database:** Added Chrome 61 ([6d86594](https://github.com/WhichBrowser/Parser-JavaScript/commit/6d86594e82e795fb1720dfc162c002e73889be4b))
90+
- **Database:** Added macOS High Sierra ([5b8584a](https://github.com/WhichBrowser/Parser-JavaScript/commit/5b8584adf81f449b75d851c34d2d6ab39d138579))
6891

6992
#### 0.2.2 (2017-08-08)
7093

7194
##### New Features
72-
* **Database:** Added Chrome 60 ([0043804](https://github.com/WhichBrowser/Parser-JavaScript/commit/00438049ff3f30fb2810a980c88146b2112eff0b))
95+
96+
- **Database:** Added Chrome 60 ([0043804](https://github.com/WhichBrowser/Parser-JavaScript/commit/00438049ff3f30fb2810a980c88146b2112eff0b))
7397

7498
#### 0.2.1 (2017-07-14)
7599

76100
##### News
77-
* **This project:** 🎊 is now the official JavaScript version of WhichBrowser 🍾
101+
102+
- **This project:** 🎊 is now the official JavaScript version of WhichBrowser 🍾
78103

79104
##### Documentation Changes
80-
* **readme:** updated with new badge due to change of GitHub url ([11b18b7](https://github.com/WhichBrowser/Parser-JavaScript/commit/11b18b76409edeece95a8fd32fdb13b466ab1e8f))
81-
* **changelog:** added this changelog
105+
106+
- **readme:** updated with new badge due to change of GitHub url ([11b18b7](https://github.com/WhichBrowser/Parser-JavaScript/commit/11b18b76409edeece95a8fd32fdb13b466ab1e8f))
107+
- **changelog:** added this changelog
82108

83109
##### New Features
84-
* **database:** updated with new devices ([0e9f5ff](https://github.com/WhichBrowser/Parser-JavaScript/commit/0e9f5ffe6c8c571edec13d9590c67348247a8bc1))
85-
([a9ed8a0](https://github.com/WhichBrowser/Parser-JavaScript/commit/a9ed8a0a45206eae7a64f8f86f861688b4ed3cca))
86-
([cd4e0cd](https://github.com/WhichBrowser/Parser-JavaScript/commit/cd4e0cd158a897a917593e41cddd992b9325b53e))
87-
([3fbe24d](https://github.com/WhichBrowser/Parser-JavaScript/commit/3fbe24d223eb45d3fd14e97e91f55ef5f98be065))
110+
111+
- **database:** updated with new devices ([0e9f5ff](https://github.com/WhichBrowser/Parser-JavaScript/commit/0e9f5ffe6c8c571edec13d9590c67348247a8bc1))
112+
([a9ed8a0](https://github.com/WhichBrowser/Parser-JavaScript/commit/a9ed8a0a45206eae7a64f8f86f861688b4ed3cca))
113+
([cd4e0cd](https://github.com/WhichBrowser/Parser-JavaScript/commit/cd4e0cd158a897a917593e41cddd992b9325b53e))
114+
([3fbe24d](https://github.com/WhichBrowser/Parser-JavaScript/commit/3fbe24d223eb45d3fd14e97e91f55ef5f98be065))
88115

89116
##### Bug Fixes
90-
* **coverage:** removed unused line of code that lowered the coverage, now is 100% 🎉 ([36fed88](https://github.com/WhichBrowser/Parser-JavaScript/commit/36fed88210cbfd38f65911a03d1d90be6e3553c4))
117+
118+
- **coverage:** removed unused line of code that lowered the coverage, now is 100% 🎉 ([36fed88](https://github.com/WhichBrowser/Parser-JavaScript/commit/36fed88210cbfd38f65911a03d1d90be6e3553c4))
91119

92120
## 0.2.0 (2017-07-10)
93121

94122
##### Documentation Changes
95123

96-
* **readme:** added instructions 📖 on how to use cache ([0e2c83e](https://github.com/WhichBrowser/Parser-JavaScript/commit/0e2c83e5cd53bcaa5c59047ea8665a9e48174ff8))
124+
- **readme:** added instructions 📖 on how to use cache ([0e2c83e](https://github.com/WhichBrowser/Parser-JavaScript/commit/0e2c83e5cd53bcaa5c59047ea8665a9e48174ff8))
97125

98126
##### New Features
99-
* **cache:** adding a simple cache mechanism ([0e2c83e](https://github.com/WhichBrowser/Parser-JavaScript/commit/0e2c83e5cd53bcaa5c59047ea8665a9e48174ff8))
127+
128+
- **cache:** adding a simple cache mechanism ([0e2c83e](https://github.com/WhichBrowser/Parser-JavaScript/commit/0e2c83e5cd53bcaa5c59047ea8665a9e48174ff8))
100129

101130
## 0.1.0 (2017-07-06)
102131

103132
##### New Features
104133

105-
* **npm:** First version of JavaScript porting on npm 🎇
134+
- **npm:** First version of JavaScript porting on npm 🎇

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
This is an extremely complicated and almost completely useless browser sniffing library written in JavaScript. Useless because you shouldn't use browser sniffing. So stop right now and go read something about feature detecting instead. I'm serious. Go away. You'll thank me later.
22

3-
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/026f9fea094c4f90ab8fdba98ced5a13)](https://www.codacy.com/app/mariotsi/Parser-JavaScript?utm_source=github.com&utm_medium=referral&utm_content=WhichBrowser/Parser-JavaScript&utm_campaign=badger)
4-
[![Build Status](https://travis-ci.org/WhichBrowser/Parser-JavaScript.svg?branch=master)](https://travis-ci.org/WhichBrowser/Parser-JavaScript)
5-
[![Coverage Status](https://api.codacy.com/project/badge/Coverage/026f9fea094c4f90ab8fdba98ced5a13)](https://www.codacy.com/app/mariotsi/Parser-JavaScript?utm_source=github.com&utm_medium=referral&utm_content=WhichBrowser/Parser-JavaScript&utm_campaign=Badge_Coverage)
3+
![Build Status](https://github.com/WhichBrowser/Parser-JavaScript/actions/workflows/main.yml/badge.svg?event=push)
64
[![npm](https://img.shields.io/npm/l/which-browser.svg)](https://yarnpkg.com/en/package/which-browser)
75
[![npm](https://img.shields.io/npm/v/which-browser.svg)](https://yarnpkg.com/en/package/which-browser)
86
[![Twitter Follow](https://img.shields.io/twitter/follow/simariot.svg?style=social)](https://twitter.com/simariot)
@@ -54,8 +52,8 @@ You can install WhichBrowser by NPM and Yarn
5452
npm install which-browser
5553

5654
or
57-
58-
yarn add which-browser
55+
56+
yarn add which-browser
5957

6058
Do not stick to a specific WhichBrowser version, otherwise you will miss all the sniffing engine updates
6159

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "which-browser",
3-
"version": "0.5.1",
3+
"version": "0.6.0",
44
"description": "Browser sniffing tool and UA parser. Browser sniffing gone too far — A useragent parser library for JavaScript",
55
"main": "src/Parser.js",
66
"types": "which-browser.d.ts",

0 commit comments

Comments
 (0)