Skip to content

Commit 410e049

Browse files
committed
Docs: Document browser support for QUnit 3.0 and QUnit 3.0 (ESM)
* QUnit 2.x and QUnit 3.0 have the same browser support. * QUnit 3.0 removes support for PhantomJS and raises the Node.js requirement. * The new "ESM" bundle for QUnit 3.0 has a higher browser requirement because ESM itself (i.e. `<script type=module>` and the `import` keyword) did not exist in browsers before that. Since commit ec7d6e7 the new ESM build uses a higher Rollup/Babel target that leverages native use of ES6 syntax instead of compiling to ES5. Ref #1808.
1 parent 85716a9 commit 410e049

File tree

5 files changed

+31
-16
lines changed

5 files changed

+31
-16
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
* [API documentation](https://qunitjs.com/api/)
1919
* [Guides how-to](https://qunitjs.com/guides/)
20-
* [Browser support](https://qunitjs.com/browser/#browser-support)
20+
* [Browser support](https://qunitjs.com/intro/#compatibility)
2121
* [Browser automation](https://qunitjs.com/browser/#integrations)
2222

2323
## Support

docs/_data/sitenav.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
href: /intro/#download
88
- name: Browser Runner
99
href: /browser/
10-
- name: Browser Support
11-
href: /browser/#browser-support
1210
- name: Command-line Interface
1311
href: /cli/
12+
- name: Compatibility
13+
href: /intro/#compatibility
1414
- name: Test lifecycle
1515
href: /lifecycle/
1616
- name: QUnit 2.0 Upgrade Guide

docs/api/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ redirect_from:
1010

1111
If you're new to QUnit, check out [Getting Started](../intro.md)!
1212

13-
QUnit is a powerful, easy-to-use JavaScript unit test suite. QUnit has no dependencies and supports Node.js, SpiderMonkey, and all [major browsers](../browser.md#browser-support).
13+
QUnit is a powerful, easy-to-use JavaScript unit test suite. QUnit has no dependencies and supports Node.js, SpiderMonkey, and all [major browsers](../intro.md#compatibility).
1414

1515
<!-- Omit trailing index.md, to aid in-repo directory browsing: -->
1616

docs/browser.md

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -78,18 +78,7 @@ When building out a larger feature, you can use the [module selector](#module-se
7878

7979
## Browser support
8080

81-
QUnit currently supports the following browsers:
82-
83-
* Internet Explorer: 9+
84-
* Edge: 15+ (both legacy MSEdge and Chromium-based)
85-
* Firefox: 45+
86-
* Safari: 9+
87-
* Opera: 36+
88-
* Chrome: 58+
89-
* Android: 4.3+
90-
* iOS: 7+ (Mobile Safari)
91-
92-
For older browsers, such as Internet Explorer 6-8, Opera 12+, or Safari 5+, please use QUnit 1.x, which you can download from the [release archives](https://releases.jquery.com/qunit/).
81+
_The browser support table was moved to [Compatibility](./intro.md#compatibility)_.
9382

9483
## Integrations
9584

docs/intro.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,32 @@ Check these QUnit tutorials and examples, to make the most of your unit tests!
2929
1. [Reporter API](./api/callbacks/QUnit.on.md#reporter-api): Event emitter, Create your own reporter.
3030
1. [Theme API](./browser.md#theme-api): Create your own theme.
3131

32+
## Compatibility
33+
34+
QUnit supports the following browsers and runtime environments:
35+
36+
<table>
37+
<thead>
38+
<tr><td></td><th>QUnit 1</th><th>QUnit&nbsp;2</th><th>QUnit&nbsp;3</th><th>QUnit 3 (ESM)</th></tr>
39+
</thead>
40+
<tbody>
41+
<tr><th>Internet Explorer</th><td>IE 6-11</td><td colspan=2>IE 9-11</td><td>&mdash;</td></tr>
42+
<tr><th>Edge</th><td>1+</td><td colspan=2>15+<sup><abbr title="both legacy MSEdge and Chromium-based Edge">[?]</abbr></sup></td><td>16+</td></tr>
43+
<tr><th>Firefox</th><td>3.6+</td><td colspan=2>45+</td><td>60+</td></tr>
44+
<tr><th>Safari</th><td>4.0+</td><td colspan=2>9.1+</td><td>10.1+</td></tr>
45+
<tr><th>Chrome</th><td>1+</td><td colspan=2>58+</td><td>61+</td></tr>
46+
<tr><th>Chrome Mobile</th><td>&mdash;</td><td colspan=2>49+ (Android 4.4+)</td><td>61+ (Android 7+)</td></tr>
47+
<tr><th>Opera</th><td>11+</td><td colspan=2>36+</td><td>48+</td></tr>
48+
<tr><th>Android Browser</th><td>2.3 - 5.0</td><td colspan=2>4.3 - 5.0</td><td>&mdash;</td></tr>
49+
<tr><th>iOS (Mobile Safari)</th><td>4.0+</td><td colspan=2>7.0+</td><td>10.3+</td></tr>
50+
<tr><th>PhantomJS</th><td colspan=2>1.x</td><td colspan=2>&mdash;</td></tr>
51+
<tr><th>Node.js</th><td>&mdash;</td><td>10+</td><td colspan=2>18+</td></tr>
52+
<tr><th>SpiderMonkey</th><td>&mdash;</td><td colspan=3>68+<sup><abbr title="since QUnit 2.14">[?]</abbr></sup></td></tr>
53+
</tbody>
54+
</table>
55+
56+
You can download QUnit 1.x and QUnit 2.x from the [release archives](https://releases.jquery.com/qunit/).
57+
3258
## Support
3359

3460
To report a bug, request a new feature, or ask a question [open an issue](https://github.com/qunitjs/qunit/issues) on GitHub.

0 commit comments

Comments
 (0)