Skip to content

Commit f094114

Browse files
committed
Merge tag '2.11.0'
2.11.0 2.11.0
2 parents 5b11ac2 + e188e8a commit f094114

File tree

10 files changed

+132
-577
lines changed

10 files changed

+132
-577
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Bowser Changelog
22

3+
### 2.11.0 (Sep 12, 2020)
4+
- [ADD] Added support for aliases in `Parser#is` method (#437)
5+
- [ADD] Added more typings (#438, #427)
6+
- [ADD] Added support for MIUI Browserr (#436)
7+
38
### 2.10.0 (Jul 9, 2020)
49
- [FIX] Fix for Firefox detection on iOS 13 [#415]
510
- [FIX] Fixes for typings.d.ts [#409]

docs/Bowser.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ <h5>Returns:</h5>
492492
<br class="clear">
493493

494494
<footer>
495-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Thu Jul 09 2020 22:10:18 GMT+0300 (Eastern European Summer Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
495+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Sat Sep 12 2020 11:21:13 GMT+0300 (Eastern European Summer Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
496496
</footer>
497497

498498
<script>prettyPrint();</script>

docs/Parser.html

Lines changed: 77 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1498,7 +1498,7 @@ <h4 class="name" id="getResult"><span class="type-signature"></span>getResult<sp
14981498

14991499
<dt class="tag-source">Source:</dt>
15001500
<dd class="tag-source"><ul class="dummy"><li>
1501-
<a href="parser.js.html">parser.js</a>, <a href="parser.js.html#line330">line 330</a>
1501+
<a href="parser.js.html">parser.js</a>, <a href="parser.js.html#line331">line 331</a>
15021502
</li></ul></dd>
15031503

15041504

@@ -1700,7 +1700,7 @@ <h5>Returns:</h5>
17001700

17011701

17021702

1703-
<h4 class="name" id="is"><span class="type-signature"></span>is<span class="signature">(anything)</span><span class="type-signature"> &rarr; {Boolean}</span></h4>
1703+
<h4 class="name" id="is"><span class="type-signature"></span>is<span class="signature">(anything, includingAlias<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Boolean}</span></h4>
17041704

17051705

17061706

@@ -1712,7 +1712,7 @@ <h4 class="name" id="is"><span class="type-signature"></span>is<span class="sign
17121712

17131713
<dt class="tag-source">Source:</dt>
17141714
<dd class="tag-source"><ul class="dummy"><li>
1715-
<a href="parser.js.html">parser.js</a>, <a href="parser.js.html#line479">line 479</a>
1715+
<a href="parser.js.html">parser.js</a>, <a href="parser.js.html#line481">line 481</a>
17161716
</li></ul></dd>
17171717

17181718

@@ -1779,8 +1779,12 @@ <h5>Parameters:</h5>
17791779
<th>Type</th>
17801780

17811781

1782+
<th>Attributes</th>
1783+
17821784

17831785

1786+
<th>Default</th>
1787+
17841788

17851789
<th class="last">Description</th>
17861790
</tr>
@@ -1804,13 +1808,59 @@ <h5>Parameters:</h5>
18041808
</td>
18051809

18061810

1811+
<td class="attributes">
1812+
1813+
1814+
18071815

1816+
1817+
</td>
1818+
1819+
1820+
1821+
<td class="default">
1822+
1823+
</td>
18081824

18091825

18101826
<td class="description last"></td>
18111827
</tr>
18121828

18131829

1830+
1831+
<tr>
1832+
1833+
<td class="name"><code>includingAlias</code></td>
1834+
1835+
1836+
<td class="type">
1837+
1838+
</td>
1839+
1840+
1841+
<td class="attributes">
1842+
1843+
&lt;optional><br>
1844+
1845+
1846+
1847+
1848+
1849+
</td>
1850+
1851+
1852+
1853+
<td class="default">
1854+
1855+
<code>false</code>
1856+
1857+
</td>
1858+
1859+
1860+
<td class="description last"><p>The flag showing whether alias will be included into comparison</p></td>
1861+
</tr>
1862+
1863+
18141864
</tbody>
18151865
</table>
18161866

@@ -1867,7 +1917,7 @@ <h4 class="name" id="isBrowser"><span class="type-signature"></span>isBrowser<sp
18671917

18681918
<dt class="tag-source">Source:</dt>
18691919
<dd class="tag-source"><ul class="dummy"><li>
1870-
<a href="parser.js.html">parser.js</a>, <a href="parser.js.html#line414">line 414</a>
1920+
<a href="parser.js.html">parser.js</a>, <a href="parser.js.html#line415">line 415</a>
18711921
</li></ul></dd>
18721922

18731923

@@ -2054,7 +2104,7 @@ <h5>Returns:</h5>
20542104

20552105

20562106

2057-
<h4 class="name" id="parse"><span class="type-signature"></span>parse<span class="signature">()</span><span class="type-signature"></span></h4>
2107+
<h4 class="name" id="parse"><span class="type-signature"></span>parse<span class="signature">()</span><span class="type-signature"> &rarr; {<a href="Parser.html">Parser</a>}</span></h4>
20582108

20592109

20602110

@@ -2066,7 +2116,7 @@ <h4 class="name" id="parse"><span class="type-signature"></span>parse<span class
20662116

20672117
<dt class="tag-source">Source:</dt>
20682118
<dd class="tag-source"><ul class="dummy"><li>
2069-
<a href="parser.js.html">parser.js</a>, <a href="parser.js.html#line317">line 317</a>
2119+
<a href="parser.js.html">parser.js</a>, <a href="parser.js.html#line318">line 318</a>
20702120
</li></ul></dd>
20712121

20722122

@@ -2133,6 +2183,24 @@ <h4 class="name" id="parse"><span class="type-signature"></span>parse<span class
21332183

21342184

21352185

2186+
<h5>Returns:</h5>
2187+
2188+
2189+
2190+
2191+
<dl class="param-type">
2192+
<dt>
2193+
Type
2194+
</dt>
2195+
<dd>
2196+
2197+
<span class="param-type"><a href="Parser.html">Parser</a></span>
2198+
2199+
2200+
</dd>
2201+
</dl>
2202+
2203+
21362204

21372205

21382206

@@ -2576,7 +2644,7 @@ <h4 class="name" id="satisfies"><span class="type-signature"></span>satisfies<sp
25762644

25772645
<dt class="tag-source">Source:</dt>
25782646
<dd class="tag-source"><ul class="dummy"><li>
2579-
<a href="parser.js.html">parser.js</a>, <a href="parser.js.html#line352">line 352</a>
2647+
<a href="parser.js.html">parser.js</a>, <a href="parser.js.html#line353">line 353</a>
25802648
</li></ul></dd>
25812649

25822650

@@ -2750,7 +2818,7 @@ <h4 class="name" id="some"><span class="type-signature"></span>some<span class="
27502818

27512819
<dt class="tag-source">Source:</dt>
27522820
<dd class="tag-source"><ul class="dummy"><li>
2753-
<a href="parser.js.html">parser.js</a>, <a href="parser.js.html#line488">line 488</a>
2821+
<a href="parser.js.html">parser.js</a>, <a href="parser.js.html#line491">line 491</a>
27542822
</li></ul></dd>
27552823

27562824

@@ -3061,7 +3129,7 @@ <h5>Returns:</h5>
30613129
<br class="clear">
30623130

30633131
<footer>
3064-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Thu Jul 09 2020 22:10:18 GMT+0300 (Eastern European Summer Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
3132+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Sat Sep 12 2020 11:21:13 GMT+0300 (Eastern European Summer Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
30653133
</footer>
30663134

30673135
<script>prettyPrint();</script>

docs/bowser.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ <h1 class="page-title">bowser.js</h1>
133133
<br class="clear">
134134

135135
<footer>
136-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Thu Jul 09 2020 22:10:18 GMT+0300 (Eastern European Summer Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
136+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Sat Sep 12 2020 11:21:13 GMT+0300 (Eastern European Summer Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
137137
</footer>
138138

139139
<script>prettyPrint();</script>

docs/global.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2706,7 +2706,7 @@ <h6>Properties</h6>
27062706
<br class="clear">
27072707

27082708
<footer>
2709-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Thu Jul 09 2020 22:10:18 GMT+0300 (Eastern European Summer Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
2709+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Sat Sep 12 2020 11:21:13 GMT+0300 (Eastern European Summer Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
27102710
</footer>
27112711

27122712
<script>prettyPrint();</script>

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ <h2>License</h2>
210210
<br class="clear">
211211

212212
<footer>
213-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Thu Jul 09 2020 22:10:18 GMT+0300 (Eastern European Summer Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
213+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Sat Sep 12 2020 11:21:13 GMT+0300 (Eastern European Summer Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
214214
</footer>
215215

216216
<script>prettyPrint();</script>

docs/parser.js.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,7 @@ <h1 class="page-title">parser.js</h1>
357357

358358
/**
359359
* Parse full information about the browser
360+
* @returns {Parser}
360361
*/
361362
parse() {
362363
this.parseBrowser();
@@ -518,10 +519,12 @@ <h1 class="page-title">parser.js</h1>
518519
* Is anything? Check if the browser is called "anything",
519520
* the OS called "anything" or the platform called "anything"
520521
* @param {String} anything
522+
* @param [includingAlias=false] The flag showing whether alias will be included into comparison
521523
* @returns {Boolean}
522524
*/
523-
is(anything) {
524-
return this.isBrowser(anything) || this.isOS(anything) || this.isPlatform(anything);
525+
is(anything, includingAlias = false) {
526+
return this.isBrowser(anything, includingAlias) || this.isOS(anything)
527+
|| this.isPlatform(anything);
525528
}
526529

527530
/**
@@ -549,7 +552,7 @@ <h1 class="page-title">parser.js</h1>
549552
<br class="clear">
550553

551554
<footer>
552-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Thu Jul 09 2020 22:10:18 GMT+0300 (Eastern European Summer Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
555+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Sat Sep 12 2020 11:21:13 GMT+0300 (Eastern European Summer Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
553556
</footer>
554557

555558
<script>prettyPrint();</script>

docs/utils.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ <h1 class="page-title">utils.js</h1>
365365
<br class="clear">
366366

367367
<footer>
368-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Thu Jul 09 2020 22:10:18 GMT+0300 (Eastern European Summer Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
368+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Sat Sep 12 2020 11:21:13 GMT+0300 (Eastern European Summer Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
369369
</footer>
370370

371371
<script>prettyPrint();</script>

0 commit comments

Comments
 (0)