Skip to content

Commit ae45a1a

Browse files
authored
V 0.3.2 (#25)
* Add Chrome 68. Small improvement on update-chrome script * Add Oculus Go * Rename Oculus Internet to Oculus Browser
1 parent b38377c commit ae45a1a

File tree

5 files changed

+29
-6
lines changed

5 files changed

+29
-6
lines changed

.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
1,
1717
120
1818
],
19-
"no-console":"warn"
19+
"no-console":"warn",
20+
"require-jsdoc": 0
2021
}
2122
}

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#### 0.3.2 (2017-07-25)
2+
* **Database:** Added Chrome 68 ([0d04c8d](https://github.com/WhichBrowser/Parser-JavaScript/commit/0d04c8def9971c7a6bf16e1b1398bb475e69a310) & [cd5ec81](https://github.com/WhichBrowser/Parser-JavaScript/commit/cd5ec8183a6145dd901e3433c78846e1f9af5976))
3+
* **Database:** Fixed name of Oculus Browser and added Oculus Go detection, thanks @frankolivier (#23) ([b38377c](https://github.com/WhichBrowser/Parser-JavaScript/commit/b38377c8d1856a316c6f74fea15ee3228aa050d6))
4+
15
#### 0.3.1 (2017-07-13)
26
* **Database:** Updated Models, Indices and Profiles ([fa4dd85](https://github.com/WhichBrowser/Parser-JavaScript/commit/fa4dd8514991578da4102027269071db860194f3))
37

bin/update-chrome.js

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ const stable = {
1010
desktop: [],
1111
mobile: [],
1212
};
13+
function comparator(a, b) {
14+
return parseInt(a, 10) - parseInt(b, 10);
15+
}
1316

1417
request('http://omahaproxy.appspot.com/history', (err, response = {}) => {
1518
if (err) {
@@ -19,13 +22,26 @@ request('http://omahaproxy.appspot.com/history', (err, response = {}) => {
1922
omaha.forEach((line) => {
2023
const [os, stability, version] = line.split(',');
2124
if (os === 'mac' && stability === 'stable') {
22-
stable.desktop.push(version.split('.').slice(0, 3).join('.'));
25+
stable.desktop.push(
26+
version
27+
.split('.')
28+
.slice(0, 3)
29+
.join('.')
30+
);
2331
}
2432
if (os === 'android' && stability === 'stable') {
25-
stable.mobile.push(version.split('.').slice(0, 3).join('.'));
33+
stable.mobile.push(
34+
version
35+
.split('.')
36+
.slice(0, 3)
37+
.join('.')
38+
);
2639
}
2740
});
2841

42+
stable.desktop.sort(comparator);
43+
stable.mobile.sort(comparator);
44+
2945
let countNewDesktop = 0;
3046
stable.desktop.forEach((version) => {
3147
if (!Chrome.DESKTOP[version]) {

data/browsers-chrome.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,9 @@ module.exports = {
6969
'63.0.3239': 'stable',
7070
'64.0.3282': 'stable',
7171
'65.0.3325': 'stable',
72-
'67.0.3396': 'stable',
7372
'66.0.3359': 'stable',
73+
'67.0.3396': 'stable',
74+
'68.0.3440': 'stable',
7475
},
7576
MOBILE: {
7677
'16.0.912': 'beta',
@@ -114,7 +115,8 @@ module.exports = {
114115
'63.0.3239': 'stable',
115116
'64.0.3282': 'stable',
116117
'65.0.3325': 'stable',
117-
'67.0.3396': 'stable',
118118
'66.0.3359': 'stable',
119+
'67.0.3396': 'stable',
120+
'68.0.3440': 'stable',
119121
},
120122
};

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.3.1",
3+
"version": "0.3.2",
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
"scripts": {

0 commit comments

Comments
 (0)