Skip to content

Commit

Permalink
Release QUnit 3.0.0-alpha.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Krinkle committed Jul 12, 2024
1 parent 666890b commit eeb25bd
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 3 deletions.
1 change: 1 addition & 0 deletions .mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,4 @@ Bryan Crotaz <[email protected]>
Jan Buschtöns <[email protected]>
Ben Demboski <[email protected]> <[email protected]>
Izel Nakri <[email protected]>
Ray Cohen <[email protected]> <[email protected]>
1 change: 1 addition & 0 deletions AUTHORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -187,3 +187,4 @@ Sergey Astapov <[email protected]>
Hareesh <[email protected]>
Zixin Yin <[email protected]>
Timmy Willison <[email protected]>
NullVoxPopuli <[email protected]>
52 changes: 52 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,55 @@
3.0.0 (UNRELEASED)
==================

QUnit 3.0 Roadmap and feedback: https://github.com/qunitjs/qunit/issues/1498

### Added

* CLI: Add `.mjs` and `.cjs` to default test file extensions.
* Core: Add [`QUnit.test.if()`](https://qunitjs.com/api/QUnit/test.if/) and `QUnit.module.if()`. (Timo Tijhof) [#1772](https://github.com/qunitjs/qunit/pull/1772)
* Core: Add support for late [`runEnd` event](https://qunitjs.com/api/callbacks/QUnit.on/#the-runend-event) listeners. This should ease development of basic [browser integrations](https://qunitjs.com/browser/#integrations) that only relay the end report.
* Core: Expose [`QUnit.urlParams`](https://qunitjs.com/api/extension/QUnit.urlParams/) unconditionally.

### Changed

* Core: Enable a default [test timeout](https://qunitjs.com/api/config/testTimeout/) of 3 seconds. [#1483](https://github.com/qunitjs/qunit/issues/1483)
* Core: Promote warning "[Cannot add … hook outside the containing module](https://qunitjs.com/api/QUnit/module/#E0002)" to error. (Ray Cohen) [#1576](https://github.com/qunitjs/qunit/issues/1576)
* Core: Promote warning "QUnit.module() callback must not be async" to error, when passing an async function to `QUnit.module()`. (Ray Cohen) [#1761](https://github.com/qunitjs/qunit/pull/1761)
* Core: Promote warning "[Unexpected test after runEnd](https://qunitjs.com/api/config/autostart/#E0001)" to error. [#1377](https://github.com/qunitjs/qunit/issues/1377)
* Core: Change `before` and `after` hooks to run with module context. This enables inheritence between parent and child modules, and fixes leaks between last test and "after" hooks. (Ray Cohen) [#1328](https://github.com/qunitjs/qunit/issues/1328)
* HTML Reporter: Run headless and automatically avoid HTML Reporter overhead if no [`id=qunit` element](https://qunitjs.com/browser/) exists. [#1711](https://github.com/qunitjs/qunit/issues/1711)
* HTML Reporter: QUnit 3.0 theme.
* Theme design, layout, and structure changes. Before/after demo in [#1774](https://github.com/qunitjs/qunit/pull/1774).
* Address scrollbar overflow issues. [#1603](https://github.com/qunitjs/qunit/issues/1603)
* Change `#qunit-banner` from H2 to DIV, to fix WCAG compliance. [#1427](https://github.com/qunitjs/qunit/issues/1427)
* Change `#qunit-testresult` from P to DIV, to fix HTML serialization. [#1301](https://github.com/qunitjs/qunit/issues/1301)
* Report time as seconds in the toolbar display. [#1760](https://github.com/qunitjs/qunit/pull/1760)
* Remove assertion count from toolbar display. [#1760](https://github.com/qunitjs/qunit/pull/1760)
* Core: Set `QUnit.config.seed = undefined` initial value explicitly.
* Core: Set `QUnit.config.fixture = undefined` initial value explicitly.
* Core: Set `QUnit.config.current = undefined` initial value explicitly.

### Fixed

* Core: Fix crash when "bad thenable" is returned from global module hook. [3209462b88](https://github.com/qunitjs/qunit/commit/3209462b88)
* Core: Fix crash when mixing test.only() with module.only(). [99aee51a8a](https://github.com/qunitjs/qunit/commit/99aee51a8a4dfce3fa87559e171398fdf72c6886)
* Core: Fix missing second frame in `QUnit.stack()` in Safari. [#1776](https://github.com/qunitjs/qunit/pull/1776)
* Core: Fix stacktrace cleaner to also support clean traces on URLs with host ports. [#1769](https://github.com/qunitjs/qunit/issues/1769)
* HTML Reporter: Fix `<label>` to wrap `<select>` for multi-value urlConfig item. [#1773](https://github.com/qunitjs/qunit/pull/1773)
* HTML Reporter: Fix reversed order after clicking "Hide passed". [#1763](https://github.com/qunitjs/qunit/pull/1763)

### Removed

* Core: Remove support for IE 9 and IE 10 (IE 11 is supported). [#1725](https://github.com/qunitjs/qunit/issues/1725)
* Core: Remove support for PhantomJS.
* Core: Remove built-in AMD export. (NullVoxPopuli) [#1729](https://github.com/qunitjs/qunit/issues/1729)
* Core: Remove deprecated [`QUnit.extend()`](https://qunitjs.com/api/extension/QUnit.extend/). (Izel Nakri)
* Core: Remove deprecated [`QUnit.load()`](https://qunitjs.com/api/QUnit/load/). [#1084](https://github.com/qunitjs/qunit/issues/1084)
* Core: Remove deprecated `QUnit.onError()` and `QUnit.onUnhandledRejection()` in favor of [QUnit.onUncaughtException()](https://qunitjs.com/api/extension/QUnit.onUncaughtException/).
* Assert: Remove deprecated [`assert.push()`](https://qunitjs.com/api/assert/push/).
* Core: Remove undocumented `details.modules[].tests` from QUnit.begin() event.
* HTML Reporter: Remove support for legacy markup, use `<div id="qunit">` instead. Check [Browser Runner § Getting started](https://qunitjs.com/browser/).
* Build: Discontinue publication to Bower for future releases. Check [How to install](https://qunitjs.com/intro/#download) or [Getting started](https://qunitjs.com/intro/). [#1677](https://github.com/qunitjs/qunit/issues/1677)

2.21.0 / 2024-05-29
==================
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "qunit",
"title": "QUnit",
"description": "The powerful, easy-to-use testing framework.",
"version": "2.21.0",
"version": "3.0.0-alpha.1",
"homepage": "https://qunitjs.com",
"author": {
"name": "OpenJS Foundation and other contributors",
Expand Down

0 comments on commit eeb25bd

Please sign in to comment.