-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(filelist): rename promise -> lastCompletedRefresh and remove… #3060
Conversation
lib/file-list.js
Outdated
@@ -131,16 +131,16 @@ class FileList { | |||
|
|||
// Check if we are currently refreshing | |||
_isRefreshing () { | |||
return this._refreshing.isPending() | |||
return this._refreshing && this._refreshing.isPending() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_isRefreshing
method is not used anywhere, we can remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was working off HEAD and forgot about your changes to this file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No problem, just wanted to mention it :)
} | ||
|
||
// Do the actual work of refreshing | ||
_refresh () { | ||
const buckets = this.buckets | ||
const matchedFiles = new Set() | ||
|
||
let promise | ||
promise = Promise.map(this._patterns, (patternObject) => { | ||
let lastCompletedRefresh = this._refreshing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why we need it ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please read the comment below ;-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think it's possible to write unit tests that fails when you replace let lastCompletedRefresh = this._refreshing
with let lastCompletedRefresh
- like it was before ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well maybe I'm confused. To me
let lastCompletedRefresh = Promise.map(this._patterns, (patternObject) => {...})
.then(() => {
if (this._refreshing !== lastCompletedRefresh) {
return this._refreshing
}
})
...
means that once this statement executes, lastCompletedRefresh is set to the promise returned by the RHS. In the promise callback the value is unambiguous. However this line will cause the test to fail with ReferenceError: lastCompletedRefresh is not defined
.
If we write
let lastCompletedRefresh = null
lastCompletedRefresh = Promise.map(this._patterns, (patternObject) => {...})
.then(() => {
if (lastCompletedRefresh === null) {
throw new Error('how can this be')
}
})
...
Then one of the unit tests throws "how can this be". I don't understand how the then
call back can run before the promise assignment.
So, no, but I also don't understand the unit tests behavior now.
(This long chain of promises at different levels is to hard to read. IMO it should be refactored to make the chains clearer).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then one of the unit tests throws "how can this be". I don't understand how the then call back can run before the promise assignment.
Because of something like this, which causes promise callbacks to be executed synchronously (and therefore before the assignment).
I'm working on simplifying this piece now.
2c8082f
to
9cf8b14
Compare
9cf8b14
to
a13ada4
Compare
All supported Node versions support native promises and async/await, current code has a minimal usage of Bluebird-specific methods, so dropping a third-party library in favor of native Promises. Tests were using `Promise.setScheduler()` from Bluebird, which allowed to customize how Promises are scheduled and made test work very different from the real code, which created tricky issues (like karma-runner#3060 (comment)). Affected tests were updated to not rely on `Promise.setScheduler()`, which improved readability in some situations. Also removed some test helpers as they are not necessary and not used anymore. BREAKING CHANGE: Karma plugins which rely on the fact that Karma uses Bluebird promises may break as Bluebird-specific API is no longer available on Promises returned by the Karma core
All supported Node versions support native promises and async/await, current code has a minimal usage of Bluebird-specific methods, so dropping a third-party library in favor of native Promises. Tests were using `Promise.setScheduler()` from Bluebird, which allowed to customize how Promises are scheduled and made test work very different from the real code, which created tricky issues (like #3060 (comment)). Affected tests were updated to not rely on `Promise.setScheduler()`, which improved readability in some situations. Also removed some test helpers as they are not necessary and not used anymore. BREAKING CHANGE: Karma plugins which rely on the fact that Karma uses Bluebird promises may break as Bluebird-specific API is no longer available on Promises returned by the Karma core
# [5.0.0](v4.4.1...v5.0.0) (2020-04-09) ### Bug Fixes * install semantic-release as a regular dev dependency ([#3455](#3455)) ([1eaf35e](1eaf35e)) * **ci:** echo travis env that gates release after_success ([#3446](#3446)) ([b8b2ed8](b8b2ed8)) * **ci:** poll every 10s to avoid rate limit. ([#3388](#3388)) ([91e7e00](91e7e00)) * **middleware/runner:** handle file list rejections ([#3400](#3400)) ([80febfb](80febfb)), closes [#3396](#3396) [#3396](#3396) * **server:** cleanup import of the removed method ([#3439](#3439)) ([cb1bcbf](cb1bcbf)) * **server:** createPreprocessor was removed ([#3435](#3435)) ([5c334f5](5c334f5)) * **server:** detection new MS Edge Chromium ([#3440](#3440)) ([7166ce2](7166ce2)) * **server:** replace optimist on yargs lib ([#3451](#3451)) ([ec1e69a](ec1e69a)), closes [#2473](#2473) * **server:** Report original error message ([#3415](#3415)) ([79ee331](79ee331)), closes [#3414](#3414) ### Code Refactoring * use native Promise instead of Bluebird ([#3436](#3436)) ([33a069f](33a069f)), closes [/github.com//pull/3060#discussion_r284797390](https://github.com//github.com/karma-runner/karma/pull/3060/issues/discussion_r284797390) ### Continuous Integration * drop node 8, adopt node 12 ([#3430](#3430)) ([a673aa8](a673aa8)) ### Features * **docs:** document `DEFAULT_LISTEN_ADDR` constant ([#3443](#3443)) ([057d527](057d527)), closes [#2479](#2479) * **karma-server:** added log to the server.js for uncaught exception ([#3399](#3399)) ([adc6a66](adc6a66)) * **preprocessor:** obey Pattern.isBinary when set ([#3422](#3422)) ([708ae13](708ae13)), closes [#3405](#3405) ### BREAKING CHANGES * Karma plugins which rely on the fact that Karma uses Bluebird promises may break as Bluebird-specific API is no longer available on Promises returned by the Karma core * **server:** Deprecated createPreprocessor removed, karma-browserify < 7 version doesn't work * no more testing on node 8.
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [karma](http://karma-runner.github.io/) ([source](https://togithub.com/karma-runner/karma)) | devDependencies | major | [`^4.1.0` -> `^5.0.0`](https://renovatebot.com/diffs/npm/karma/4.4.1/5.0.9) | --- ### Release Notes <details> <summary>karma-runner/karma</summary> ### [`v5.0.9`](https://togithub.com/karma-runner/karma/blob/master/CHANGELOG.md#​509-httpsgithubcomkarma-runnerkarmacomparev508v509-2020-05-19) [Compare Source](https://togithub.com/karma-runner/karma/compare/v5.0.8...v5.0.9) ##### Bug Fixes - **dependencies:** update to safe version of http-proxy ([#​3519](https://togithub.com/karma-runner/karma/issues/3519)) ([00347bb](https://togithub.com/karma-runner/karma/commit/00347bb204c8c87e1096679af4634032d6600b67)), closes [#​3510](https://togithub.com/karma-runner/karma/issues/3510) ### [`v5.0.8`](https://togithub.com/karma-runner/karma/blob/master/CHANGELOG.md#​508-httpsgithubcomkarma-runnerkarmacomparev507v508-2020-05-18) [Compare Source](https://togithub.com/karma-runner/karma/compare/v5.0.7...v5.0.8) ##### Bug Fixes - **dependencies:** update and unlock socket.io dependency ([#​3513](https://togithub.com/karma-runner/karma/issues/3513)) ([b60391f](https://togithub.com/karma-runner/karma/commit/b60391fbddcfa5f8c50b6ac6e3c8d8d845258a56)) - **dependencies:** update to latest log4js major ([#​3514](https://togithub.com/karma-runner/karma/issues/3514)) ([47f1cb2](https://togithub.com/karma-runner/karma/commit/47f1cb222ee0921defbe313b694da3288a894fec)) ### [`v5.0.7`](https://togithub.com/karma-runner/karma/blob/master/CHANGELOG.md#​507-httpsgithubcomkarma-runnerkarmacomparev506v507-2020-05-16) [Compare Source](https://togithub.com/karma-runner/karma/compare/v5.0.6...v5.0.7) ##### Bug Fixes - detect type for URLs with query parameter or fragment identifier ([#​3509](https://togithub.com/karma-runner/karma/issues/3509)) ([f399063](https://togithub.com/karma-runner/karma/commit/f399063d1bc8954dba74166ea3dabef2fe376ae4)), closes [#​3497](https://togithub.com/karma-runner/karma/issues/3497) ### [`v5.0.6`](https://togithub.com/karma-runner/karma/blob/master/CHANGELOG.md#​506-httpsgithubcomkarma-runnerkarmacomparev505v506-2020-05-16) [Compare Source](https://togithub.com/karma-runner/karma/compare/v5.0.5...v5.0.6) ##### Bug Fixes - **dependencies:** update production dependencies ([#​3512](https://togithub.com/karma-runner/karma/issues/3512)) ([0cd696f](https://togithub.com/karma-runner/karma/commit/0cd696fe91f2616f6646ea5c67cc44b49d7e941a)) ### [`v5.0.5`](https://togithub.com/karma-runner/karma/blob/master/CHANGELOG.md#​505-httpsgithubcomkarma-runnerkarmacomparev504v505-2020-05-07) [Compare Source](https://togithub.com/karma-runner/karma/compare/v5.0.4...v5.0.5) ##### Bug Fixes - **cli:** restore command line help contents ([#​3502](https://togithub.com/karma-runner/karma/issues/3502)) ([e99da31](https://togithub.com/karma-runner/karma/commit/e99da316a2d3f875f45baf4e985e521a2fcc755f)), closes [#​3474](https://togithub.com/karma-runner/karma/issues/3474) ### [`v5.0.4`](https://togithub.com/karma-runner/karma/blob/master/CHANGELOG.md#​504-httpsgithubcomkarma-runnerkarmacomparev503v504-2020-04-30) [Compare Source](https://togithub.com/karma-runner/karma/compare/v5.0.3...v5.0.4) ##### Bug Fixes - **browser:** make sure that empty results array is still recognized ([#​3486](https://togithub.com/karma-runner/karma/issues/3486)) ([fa95fa3](https://togithub.com/karma-runner/karma/commit/fa95fa3c917470fa4b9ad736287379d1e9ebb350)) ### [`v5.0.3`](https://togithub.com/karma-runner/karma/blob/master/CHANGELOG.md#​503-httpsgithubcomkarma-runnerkarmacomparev502v503-2020-04-29) [Compare Source](https://togithub.com/karma-runner/karma/compare/v5.0.2...v5.0.3) ##### Bug Fixes - **client:** flush resultsBuffer on engine upgrade ([#​3212](https://togithub.com/karma-runner/karma/issues/3212)) ([e44ca94](https://togithub.com/karma-runner/karma/commit/e44ca944fe94ae455cd6dc45d9985a6d9fb94754)), closes [#​3211](https://togithub.com/karma-runner/karma/issues/3211) ### [`v5.0.2`](https://togithub.com/karma-runner/karma/blob/master/CHANGELOG.md#​502-httpsgithubcomkarma-runnerkarmacomparev501v502-2020-04-16) [Compare Source](https://togithub.com/karma-runner/karma/compare/v5.0.1...v5.0.2) ##### Bug Fixes - **ci:** stop the proxy before killing the child, handle errors ([#​3472](https://togithub.com/karma-runner/karma/issues/3472)) ([abe9af6](https://togithub.com/karma-runner/karma/commit/abe9af616f7a08f3c64cc06f6a68bd5f9c941133)), closes [#​3464](https://togithub.com/karma-runner/karma/issues/3464) ### [`v5.0.1`](https://togithub.com/karma-runner/karma/blob/master/CHANGELOG.md#​501-httpsgithubcomkarma-runnerkarmacomparev500v501-2020-04-10) [Compare Source](https://togithub.com/karma-runner/karma/compare/v5.0.0...v5.0.1) ##### Bug Fixes - **file-list:** do not define fs.statAsync ([#​3467](https://togithub.com/karma-runner/karma/issues/3467)) ([55a59e7](https://togithub.com/karma-runner/karma/commit/55a59e70017af79d6f3c170d87d808acc8e21faf)) ### [`v5.0.0`](https://togithub.com/karma-runner/karma/blob/master/CHANGELOG.md#​500-httpsgithubcomkarma-runnerkarmacomparev441v500-2020-04-09) [Compare Source](https://togithub.com/karma-runner/karma/compare/v4.4.1...v5.0.0) ##### Bug Fixes - install semantic-release as a regular dev dependency ([#​3455](https://togithub.com/karma-runner/karma/issues/3455)) ([1eaf35e](https://togithub.com/karma-runner/karma/commit/1eaf35e1d616a2ef21dd00d843552f189fbc7c94)) - **ci:** echo travis env that gates release after_success ([#​3446](https://togithub.com/karma-runner/karma/issues/3446)) ([b8b2ed8](https://togithub.com/karma-runner/karma/commit/b8b2ed81e595baf0337c9628a736494b9f2c91c1)) - **ci:** poll every 10s to avoid rate limit. ([#​3388](https://togithub.com/karma-runner/karma/issues/3388)) ([91e7e00](https://togithub.com/karma-runner/karma/commit/91e7e00b29db95ea7209f60c07431b10ab597b02)) - **middleware/runner:** handle file list rejections ([#​3400](https://togithub.com/karma-runner/karma/issues/3400)) ([80febfb](https://togithub.com/karma-runner/karma/commit/80febfb53a7d041bdcbcffef617e53cdc2d8dd66)), closes [#​3396](https://togithub.com/karma-runner/karma/issues/3396) [#​3396](https://togithub.com/karma-runner/karma/issues/3396) - **server:** cleanup import of the removed method ([#​3439](https://togithub.com/karma-runner/karma/issues/3439)) ([cb1bcbf](https://togithub.com/karma-runner/karma/commit/cb1bcbf0b33c8b14a823f7c2cfb7003a7d7704e5)) - **server:** createPreprocessor was removed ([#​3435](https://togithub.com/karma-runner/karma/issues/3435)) ([5c334f5](https://togithub.com/karma-runner/karma/commit/5c334f5e811c490f49e4e681e38345776b77210a)) - **server:** detection new MS Edge Chromium ([#​3440](https://togithub.com/karma-runner/karma/issues/3440)) ([7166ce2](https://togithub.com/karma-runner/karma/commit/7166ce2b965a44c89010271fda908e2d58a10a9a)) - **server:** replace optimist on yargs lib ([#​3451](https://togithub.com/karma-runner/karma/issues/3451)) ([ec1e69a](https://togithub.com/karma-runner/karma/commit/ec1e69a2545695ee248f34c26f7c4c2b50439b94)), closes [#​2473](https://togithub.com/karma-runner/karma/issues/2473) - **server:** Report original error message ([#​3415](https://togithub.com/karma-runner/karma/issues/3415)) ([79ee331](https://togithub.com/karma-runner/karma/commit/79ee331c939b7fb76a826d9216fea5fabc646854)), closes [#​3414](https://togithub.com/karma-runner/karma/issues/3414) ##### Code Refactoring - use native Promise instead of Bluebird ([#​3436](https://togithub.com/karma-runner/karma/issues/3436)) ([33a069f](https://togithub.com/karma-runner/karma/commit/33a069f8a4c4687cdbe07971cca479d98b262e3f)), closes [/github.com/karma-runner/karma/pull/3060#discussion_r284797390](https://togithub.com//github.com/karma-runner/karma/pull/3060/issues/discussion_r284797390) ##### Continuous Integration - drop node 8, adopt node 12 ([#​3430](https://togithub.com/karma-runner/karma/issues/3430)) ([a673aa8](https://togithub.com/karma-runner/karma/commit/a673aa8ad76f733565498f2aab13fcd720502be1)) ##### Features - **docs:** document `DEFAULT_LISTEN_ADDR` constant ([#​3443](https://togithub.com/karma-runner/karma/issues/3443)) ([057d527](https://togithub.com/karma-runner/karma/commit/057d527262f1e258f53985116cba718268f108da)), closes [#​2479](https://togithub.com/karma-runner/karma/issues/2479) - **karma-server:** added log to the server.js for uncaught exception ([#​3399](https://togithub.com/karma-runner/karma/issues/3399)) ([adc6a66](https://togithub.com/karma-runner/karma/commit/adc6a66943c93185e8481060c3cf4b7416985151)) - **preprocessor:** obey Pattern.isBinary when set ([#​3422](https://togithub.com/karma-runner/karma/issues/3422)) ([708ae13](https://togithub.com/karma-runner/karma/commit/708ae133acc233195ea64657cafbb86cbd56f115)), closes [#​3405](https://togithub.com/karma-runner/karma/issues/3405) ##### BREAKING CHANGES - Karma plugins which rely on the fact that Karma uses Bluebird promises may break as Bluebird-specific API is no longer available on Promises returned by the Karma core - **server:** Deprecated createPreprocessor removed, karma-browserify < 7 version doesn't work - no more testing on node 8. #### [4.4.1](https://togithub.com/karma-runner/karma/compare/v4.4.0...v4.4.1) (2019-10-18) ##### Bug Fixes - **deps:** back to karma-browserstack-launcher 1.4 ([#​3361](https://togithub.com/karma-runner/karma/issues/3361)) ([1cd87ad](https://togithub.com/karma-runner/karma/commit/1cd87ad)) - **server:** Add test coverage for config.singleRun true branch. ([#​3384](https://togithub.com/karma-runner/karma/issues/3384)) ([259be0d](https://togithub.com/karma-runner/karma/commit/259be0d)) - if preprocessor is async function and doesn't return a content then await donePromise ([#​3387](https://togithub.com/karma-runner/karma/issues/3387)) ([f91be24](https://togithub.com/karma-runner/karma/commit/f91be24)) </details> --- ### Renovate configuration :date: **Schedule**: "after 9am and before 3pm" (UTC). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/gax-nodejs).
[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [karma](https://karma-runner.github.io/) ([source](https://togithub.com/karma-runner/karma)) | [`^4.0.0` -> `^6.0.0`](https://renovatebot.com/diffs/npm/karma/4.4.1/6.3.14) | [![age](https://badges.renovateapi.com/packages/npm/karma/6.3.14/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/karma/6.3.14/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/karma/6.3.14/compatibility-slim/4.4.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/karma/6.3.14/confidence-slim/4.4.1)](https://docs.renovatebot.com/merge-confidence/) | ### GitHub Vulnerability Alerts #### [CVE-2022-0437](https://nvd.nist.gov/vuln/detail/CVE-2022-0437) karma prior to version 6.3.14 contains a cross-site scripting vulnerability. #### [CVE-2021-23495](https://nvd.nist.gov/vuln/detail/CVE-2021-23495) The package karma before 6.3.16 is vulnerable to Open Redirect due to missing validation of the return_url query parameter. --- ### Release Notes <details> <summary>karma-runner/karma</summary> ### [`v6.3.14`](https://togithub.com/karma-runner/karma/blob/HEAD/CHANGELOG.md#​6314-httpsgithubcomkarma-runnerkarmacomparev6313v6314-2022-02-05) [Compare Source](https://togithub.com/karma-runner/karma/compare/v6.3.13...v6.3.14) ##### Bug Fixes - remove string template from client code ([91d5acd](https://togithub.com/karma-runner/karma/commit/91d5acda6325caf91685da465d688527bd412b47)) - warn when `singleRun` and `autoWatch` are `false` ([69cfc76](https://togithub.com/karma-runner/karma/commit/69cfc763c8f83e8e7e64d34e17829d0d3dcc0449)) - **security:** remove XSS vulnerability in `returnUrl` query param ([839578c](https://togithub.com/karma-runner/karma/commit/839578c45a8ac42fbc1d72105f97eab77dd3eb8a)) ### [`v6.3.13`](https://togithub.com/karma-runner/karma/blob/HEAD/CHANGELOG.md#​6313-httpsgithubcomkarma-runnerkarmacomparev6312v6313-2022-01-31) [Compare Source](https://togithub.com/karma-runner/karma/compare/v6.3.12...v6.3.13) ##### Bug Fixes - **deps:** bump log4js to resolve security issue ([5bf2df3](https://togithub.com/karma-runner/karma/commit/5bf2df304453c8f71ebc725653fd174ddb1dd28b)), closes [#​3751](https://togithub.com/karma-runner/karma/issues/3751) ### [`v6.3.12`](https://togithub.com/karma-runner/karma/blob/HEAD/CHANGELOG.md#​6312-httpsgithubcomkarma-runnerkarmacomparev6311v6312-2022-01-24) [Compare Source](https://togithub.com/karma-runner/karma/compare/v6.3.11...v6.3.12) ##### Bug Fixes - remove depreciation warning from log4js ([41bed33](https://togithub.com/karma-runner/karma/commit/41bed33bf4b88c7e0787ca3a5ec15f2913b936fd)) ### [`v6.3.11`](https://togithub.com/karma-runner/karma/blob/HEAD/CHANGELOG.md#​6311-httpsgithubcomkarma-runnerkarmacomparev6310v6311-2022-01-13) [Compare Source](https://togithub.com/karma-runner/karma/compare/v6.3.10...v6.3.11) ##### Bug Fixes - **deps:** pin colors package to 1.4.0 due to security vulnerability ([a5219c5](https://togithub.com/karma-runner/karma/commit/a5219c52e2515248eefae4fe1863ac8ad3fdd43b)) ### [`v6.3.10`](https://togithub.com/karma-runner/karma/blob/HEAD/CHANGELOG.md#​6310-httpsgithubcomkarma-runnerkarmacomparev639v6310-2022-01-08) [Compare Source](https://togithub.com/karma-runner/karma/compare/v6.3.9...v6.3.10) ##### Bug Fixes - **logger:** create parent folders if they are missing ([0d24bd9](https://togithub.com/karma-runner/karma/commit/0d24bd937f7089d1456e2ecf04419d2c268c3144)), closes [#​3734](https://togithub.com/karma-runner/karma/issues/3734) ### [`v6.3.9`](https://togithub.com/karma-runner/karma/blob/HEAD/CHANGELOG.md#​639-httpsgithubcomkarma-runnerkarmacomparev638v639-2021-11-16) [Compare Source](https://togithub.com/karma-runner/karma/compare/v6.3.8...v6.3.9) ##### Bug Fixes - restartOnFileChange option not restarting the test run ([92ffe60](https://togithub.com/karma-runner/karma/commit/92ffe6018451f6144e8bc7726d304057b5ac9d0a)), closes [#​27](https://togithub.com/karma-runner/karma/issues/27) [#​3724](https://togithub.com/karma-runner/karma/issues/3724) ### [`v6.3.8`](https://togithub.com/karma-runner/karma/blob/HEAD/CHANGELOG.md#​638-httpsgithubcomkarma-runnerkarmacomparev637v638-2021-11-07) [Compare Source](https://togithub.com/karma-runner/karma/compare/v6.3.7...v6.3.8) ##### Bug Fixes - **reporter:** warning if stack trace contains generated code invocation ([4f23b14](https://togithub.com/karma-runner/karma/commit/4f23b14d3e774c0401f2c9eecb188b37aed020eb)) ### [`v6.3.7`](https://togithub.com/karma-runner/karma/blob/HEAD/CHANGELOG.md#​637-httpsgithubcomkarma-runnerkarmacomparev636v637-2021-11-01) [Compare Source](https://togithub.com/karma-runner/karma/compare/v6.3.6...v6.3.7) ##### Bug Fixes - **middleware:** replace %X_UA_COMPATIBLE% marker anywhere in the file ([f1aeaec](https://togithub.com/karma-runner/karma/commit/f1aeaec09e49856747b8f650d06b4dcc61eb637e)), closes [#​3711](https://togithub.com/karma-runner/karma/issues/3711) ### [`v6.3.6`](https://togithub.com/karma-runner/karma/blob/HEAD/CHANGELOG.md#​636-httpsgithubcomkarma-runnerkarmacomparev635v636-2021-10-25) [Compare Source](https://togithub.com/karma-runner/karma/compare/v6.3.5...v6.3.6) ##### Bug Fixes - bump vulnerable ua-parser-js version ([6f2b2ec](https://togithub.com/karma-runner/karma/commit/6f2b2ec6ed0218980eabf2cbf44e0c8f16fee661)), closes [#​3713](https://togithub.com/karma-runner/karma/issues/3713) ### [`v6.3.5`](https://togithub.com/karma-runner/karma/blob/HEAD/CHANGELOG.md#​635-httpsgithubcomkarma-runnerkarmacomparev634v635-2021-10-20) [Compare Source](https://togithub.com/karma-runner/karma/compare/v6.3.4...v6.3.5) ##### Bug Fixes - **client:** prevent socket.io from hanging due to mocked clocks ([#​3695](https://togithub.com/karma-runner/karma/issues/3695)) ([105da90](https://togithub.com/karma-runner/karma/commit/105da90a9975c1050f96cda966bd30a3c677494e)) ### [`v6.3.4`](https://togithub.com/karma-runner/karma/blob/HEAD/CHANGELOG.md#​634-httpsgithubcomkarma-runnerkarmacomparev633v634-2021-06-14) [Compare Source](https://togithub.com/karma-runner/karma/compare/v6.3.3...v6.3.4) ##### Bug Fixes - bump production dependencies within SemVer ranges ([#​3682](https://togithub.com/karma-runner/karma/issues/3682)) ([36467a8](https://togithub.com/karma-runner/karma/commit/36467a8ac357108343dde4131ef34099004711e5)), closes [#​3680](https://togithub.com/karma-runner/karma/issues/3680) ### [`v6.3.3`](https://togithub.com/karma-runner/karma/blob/HEAD/CHANGELOG.md#​633-httpsgithubcomkarma-runnerkarmacomparev632v633-2021-06-01) [Compare Source](https://togithub.com/karma-runner/karma/compare/v6.3.2...v6.3.3) ##### Bug Fixes - **server:** clean up vestigial code from proxy ([#​3640](https://togithub.com/karma-runner/karma/issues/3640)) ([f4aeac3](https://togithub.com/karma-runner/karma/commit/f4aeac313ec07d61ce42edc2bd7ae5392a7b3fbc)), closes [/tools.ietf.org/html/std66#section-3](https://togithub.com//tools.ietf.org/html/std66/issues/section-3) ### [`v6.3.2`](https://togithub.com/karma-runner/karma/blob/HEAD/CHANGELOG.md#​632-httpsgithubcomkarma-runnerkarmacomparev631v632-2021-03-29) [Compare Source](https://togithub.com/karma-runner/karma/compare/v6.3.1...v6.3.2) ##### Bug Fixes - fix running tests in IE9 ([#​3668](https://togithub.com/karma-runner/karma/issues/3668)) ([0055bc5](https://togithub.com/karma-runner/karma/commit/0055bc5cbf75597fa1601661bc4bec8cc701a49a)), closes [/github.com/karma-runner/karma/blob/026fff870913fb6cd2858dd962935dc74c92b725/client/main.js#L14](https://togithub.com//github.com/karma-runner/karma/blob/026fff870913fb6cd2858dd962935dc74c92b725/client/main.js/issues/L14) [#​3665](https://togithub.com/karma-runner/karma/issues/3665) ### [`v6.3.1`](https://togithub.com/karma-runner/karma/blob/HEAD/CHANGELOG.md#​6316-httpsgithubcomkarma-runnerkarmacomparev6315v6316-2022-02-10) [Compare Source](https://togithub.com/karma-runner/karma/compare/v6.3.0...v6.3.1) ##### Bug Fixes - **security:** mitigate the "Open Redirect Vulnerability" ([ff7edbb](https://togithub.com/karma-runner/karma/commit/ff7edbb2ffbcdd69761bece86b7dc1ef0740508d)) ### [`v6.3.0`](https://togithub.com/karma-runner/karma/blob/HEAD/CHANGELOG.md#​630-httpsgithubcomkarma-runnerkarmacomparev620v630-2021-03-23) [Compare Source](https://togithub.com/karma-runner/karma/compare/v6.2.0...v6.3.0) ##### Features - support asynchronous `config.set()` call in karma.conf.js ([#​3660](https://togithub.com/karma-runner/karma/issues/3660)) ([4c9097a](https://togithub.com/karma-runner/karma/commit/4c9097a59c666671aaa55177e03e8738e047e886)) ### [`v6.2.0`](https://togithub.com/karma-runner/karma/blob/HEAD/CHANGELOG.md#​620-httpsgithubcomkarma-runnerkarmacomparev612v620-2021-03-10) [Compare Source](https://togithub.com/karma-runner/karma/compare/v6.1.2...v6.2.0) ##### Features - **plugins:** add support wildcard config for scoped package plugin ([#​3659](https://togithub.com/karma-runner/karma/issues/3659)) ([39831b1](https://togithub.com/karma-runner/karma/commit/39831b1c2f9cbeebdba94c73ce353efb7c44e802)) #### [6.1.2](https://togithub.com/karma-runner/karma/compare/v6.1.1...v6.1.2) (2021-03-09) ##### Bug Fixes - **commitlint:** skip task on master ([#​3650](https://togithub.com/karma-runner/karma/issues/3650)) ([3fc6fda](https://togithub.com/karma-runner/karma/commit/3fc6fdadd6b0ed6838de048c15485b1bd815fe23)) - patch karma to allow loading virtual packages ([#​3663](https://togithub.com/karma-runner/karma/issues/3663)) ([5bfcf5f](https://togithub.com/karma-runner/karma/commit/5bfcf5f37de6f0a12abcf9914c2fad510395b4d6)) #### [6.1.1](https://togithub.com/karma-runner/karma/compare/v6.1.0...v6.1.1) (2021-02-12) ##### Bug Fixes - **config:** check extension before ts-node register ([#​3651](https://togithub.com/karma-runner/karma/issues/3651)) ([474f4e1](https://togithub.com/karma-runner/karma/commit/474f4e1caff469cce87f19a11d9179e4e05552f9)), closes [#​3329](https://togithub.com/karma-runner/karma/issues/3329) - report launcher process error when exit event is not emitted ([#​3647](https://togithub.com/karma-runner/karma/issues/3647)) ([7ab86be](https://togithub.com/karma-runner/karma/commit/7ab86be25c334b07747632b0a6bdb1d650d881bc)) ### [`v6.1.2`](https://togithub.com/karma-runner/karma/blob/HEAD/CHANGELOG.md#​612-httpsgithubcomkarma-runnerkarmacomparev611v612-2021-03-09) [Compare Source](https://togithub.com/karma-runner/karma/compare/v6.1.1...v6.1.2) ##### Bug Fixes - **commitlint:** skip task on master ([#​3650](https://togithub.com/karma-runner/karma/issues/3650)) ([3fc6fda](https://togithub.com/karma-runner/karma/commit/3fc6fdadd6b0ed6838de048c15485b1bd815fe23)) - patch karma to allow loading virtual packages ([#​3663](https://togithub.com/karma-runner/karma/issues/3663)) ([5bfcf5f](https://togithub.com/karma-runner/karma/commit/5bfcf5f37de6f0a12abcf9914c2fad510395b4d6)) ### [`v6.1.1`](https://togithub.com/karma-runner/karma/blob/HEAD/CHANGELOG.md#​611-httpsgithubcomkarma-runnerkarmacomparev610v611-2021-02-12) [Compare Source](https://togithub.com/karma-runner/karma/compare/v6.1.0...v6.1.1) ##### Bug Fixes - **config:** check extension before ts-node register ([#​3651](https://togithub.com/karma-runner/karma/issues/3651)) ([474f4e1](https://togithub.com/karma-runner/karma/commit/474f4e1caff469cce87f19a11d9179e4e05552f9)), closes [#​3329](https://togithub.com/karma-runner/karma/issues/3329) - report launcher process error when exit event is not emitted ([#​3647](https://togithub.com/karma-runner/karma/issues/3647)) ([7ab86be](https://togithub.com/karma-runner/karma/commit/7ab86be25c334b07747632b0a6bdb1d650d881bc)) ### [`v6.1.0`](https://togithub.com/karma-runner/karma/blob/HEAD/CHANGELOG.md#​610-httpsgithubcomkarma-runnerkarmacomparev604v610-2021-02-03) [Compare Source](https://togithub.com/karma-runner/karma/compare/v6.0.4...v6.1.0) ##### Features - **config:** improve `karma.config.parseConfig` error handling ([#​3635](https://togithub.com/karma-runner/karma/issues/3635)) ([9dba1e2](https://togithub.com/karma-runner/karma/commit/9dba1e20af48d4885e1a1c6da8c08454acb0db9d)) #### [6.0.4](https://togithub.com/karma-runner/karma/compare/v6.0.3...v6.0.4) (2021-02-01) ##### Bug Fixes - **cli:** temporarily disable strict parameters validation ([#​3641](https://togithub.com/karma-runner/karma/issues/3641)) ([9c755e0](https://togithub.com/karma-runner/karma/commit/9c755e0d61f1e8fb0fed1281fc8a331d5f1734be)), closes [#​3625](https://togithub.com/karma-runner/karma/issues/3625) - **client:** fix a false positive page reload error in Safari ([#​3643](https://togithub.com/karma-runner/karma/issues/3643)) ([2a57b23](https://togithub.com/karma-runner/karma/commit/2a57b230cd6b27e1a6e903ca6557c5a6b3e31bf6)) - ensure that Karma supports running tests on IE 11 ([#​3642](https://togithub.com/karma-runner/karma/issues/3642)) ([dbd1943](https://togithub.com/karma-runner/karma/commit/dbd1943e6901c4cb86280db7663afde32f9ab86c)) #### [6.0.3](https://togithub.com/karma-runner/karma/compare/v6.0.2...v6.0.3) (2021-01-27) ##### Bug Fixes - **plugins:** refactor instantiatePlugin from preproprocessor ([#​3628](https://togithub.com/karma-runner/karma/issues/3628)) ([e02858a](https://togithub.com/karma-runner/karma/commit/e02858ae0d0de3f05add976b10e4b6b935cc3dd7)) #### [6.0.2](https://togithub.com/karma-runner/karma/compare/v6.0.1...v6.0.2) (2021-01-25) ##### Bug Fixes - avoid ES6+ syntax in client scripts ([#​3629](https://togithub.com/karma-runner/karma/issues/3629)) ([6629e96](https://togithub.com/karma-runner/karma/commit/6629e96901dbeae24fbaa4d0bfa009618fb8ee75)), closes [#​3630](https://togithub.com/karma-runner/karma/issues/3630) #### [6.0.1](https://togithub.com/karma-runner/karma/compare/v6.0.0...v6.0.1) (2021-01-20) ##### Bug Fixes - **server:** set maxHttpBufferSize to the socket.io v2 default ([#​3626](https://togithub.com/karma-runner/karma/issues/3626)) ([69baddc](https://togithub.com/karma-runner/karma/commit/69baddc843e4852a6770bfc1212fc2bce1f38fe7)), closes [#​3621](https://togithub.com/karma-runner/karma/issues/3621) - restore `customFileHandlers` provider ([#​3624](https://togithub.com/karma-runner/karma/issues/3624)) ([25d9abb](https://togithub.com/karma-runner/karma/commit/25d9abb76929b6ea8abe1cf040ba6db2f269d50e)) ### [`v6.0.4`](https://togithub.com/karma-runner/karma/blob/HEAD/CHANGELOG.md#​604-httpsgithubcomkarma-runnerkarmacomparev603v604-2021-02-01) [Compare Source](https://togithub.com/karma-runner/karma/compare/v6.0.3...v6.0.4) ##### Bug Fixes - **cli:** temporarily disable strict parameters validation ([#​3641](https://togithub.com/karma-runner/karma/issues/3641)) ([9c755e0](https://togithub.com/karma-runner/karma/commit/9c755e0d61f1e8fb0fed1281fc8a331d5f1734be)), closes [#​3625](https://togithub.com/karma-runner/karma/issues/3625) - **client:** fix a false positive page reload error in Safari ([#​3643](https://togithub.com/karma-runner/karma/issues/3643)) ([2a57b23](https://togithub.com/karma-runner/karma/commit/2a57b230cd6b27e1a6e903ca6557c5a6b3e31bf6)) - ensure that Karma supports running tests on IE 11 ([#​3642](https://togithub.com/karma-runner/karma/issues/3642)) ([dbd1943](https://togithub.com/karma-runner/karma/commit/dbd1943e6901c4cb86280db7663afde32f9ab86c)) ### [`v6.0.3`](https://togithub.com/karma-runner/karma/blob/HEAD/CHANGELOG.md#​603-httpsgithubcomkarma-runnerkarmacomparev602v603-2021-01-27) [Compare Source](https://togithub.com/karma-runner/karma/compare/v6.0.2...v6.0.3) ##### Bug Fixes - **plugins:** refactor instantiatePlugin from preproprocessor ([#​3628](https://togithub.com/karma-runner/karma/issues/3628)) ([e02858a](https://togithub.com/karma-runner/karma/commit/e02858ae0d0de3f05add976b10e4b6b935cc3dd7)) ### [`v6.0.2`](https://togithub.com/karma-runner/karma/blob/HEAD/CHANGELOG.md#​602-httpsgithubcomkarma-runnerkarmacomparev601v602-2021-01-25) [Compare Source](https://togithub.com/karma-runner/karma/compare/v6.0.1...v6.0.2) ##### Bug Fixes - avoid ES6+ syntax in client scripts ([#​3629](https://togithub.com/karma-runner/karma/issues/3629)) ([6629e96](https://togithub.com/karma-runner/karma/commit/6629e96901dbeae24fbaa4d0bfa009618fb8ee75)), closes [#​3630](https://togithub.com/karma-runner/karma/issues/3630) ### [`v6.0.1`](https://togithub.com/karma-runner/karma/blob/HEAD/CHANGELOG.md#​601-httpsgithubcomkarma-runnerkarmacomparev600v601-2021-01-20) [Compare Source](https://togithub.com/karma-runner/karma/compare/v6.0.0...v6.0.1) ##### Bug Fixes - **server:** set maxHttpBufferSize to the socket.io v2 default ([#​3626](https://togithub.com/karma-runner/karma/issues/3626)) ([69baddc](https://togithub.com/karma-runner/karma/commit/69baddc843e4852a6770bfc1212fc2bce1f38fe7)), closes [#​3621](https://togithub.com/karma-runner/karma/issues/3621) - restore `customFileHandlers` provider ([#​3624](https://togithub.com/karma-runner/karma/issues/3624)) ([25d9abb](https://togithub.com/karma-runner/karma/commit/25d9abb76929b6ea8abe1cf040ba6db2f269d50e)) ### [`v6.0.0`](https://togithub.com/karma-runner/karma/blob/HEAD/CHANGELOG.md#​600-httpsgithubcomkarma-runnerkarmacomparev523v600-2021-01-13) [Compare Source](https://togithub.com/karma-runner/karma/compare/v5.2.3...v6.0.0) ##### Bug Fixes - **ci:** abandon browserstack tests for Safari and IE ([#​3615](https://togithub.com/karma-runner/karma/issues/3615)) ([04a811d](https://togithub.com/karma-runner/karma/commit/04a811dc7a4b37aa56c0405880f03cb2493bf820)) - **client:** do not reset karmaNavigating in unload handler ([#​3591](https://togithub.com/karma-runner/karma/issues/3591)) ([4a8178f](https://togithub.com/karma-runner/karma/commit/4a8178f3a0504ef007b23ef0fd8f5ca128f0c5c6)), closes [#​3482](https://togithub.com/karma-runner/karma/issues/3482) - **context:** do not error when karma is navigating ([#​3565](https://togithub.com/karma-runner/karma/issues/3565)) ([05dc288](https://togithub.com/karma-runner/karma/commit/05dc28801627e3ce7054ae548046714dc2cf7a5e)), closes [#​3560](https://togithub.com/karma-runner/karma/issues/3560) - **cve:** update ua-parser-js to 0.7.23 to fix CVE-2020-7793 ([#​3584](https://togithub.com/karma-runner/karma/issues/3584)) ([f819fa8](https://togithub.com/karma-runner/karma/commit/f819fa843fa0633edbe2af6ac2889e25ea2cb639)) - **cve:** update yargs to 16.1.1 to fix cve-2020-7774 in y18n ([#​3578](https://togithub.com/karma-runner/karma/issues/3578)) ([3fed0bc](https://togithub.com/karma-runner/karma/commit/3fed0bc7dd042a09c8aec55c059654781a4584ec)), closes [#​3577](https://togithub.com/karma-runner/karma/issues/3577) - **deps:** bump socket-io to v3 ([#​3586](https://togithub.com/karma-runner/karma/issues/3586)) ([1b9e1de](https://togithub.com/karma-runner/karma/commit/1b9e1de7d081e1c205debff27c6b5e1fe0585dee)), closes [#​3569](https://togithub.com/karma-runner/karma/issues/3569) - **middleware:** catch errors when loading a module ([#​3605](https://togithub.com/karma-runner/karma/issues/3605)) ([fec972f](https://togithub.com/karma-runner/karma/commit/fec972ff63760f9606a4cef7673a68c55c880722)), closes [#​3572](https://togithub.com/karma-runner/karma/issues/3572) - **server:** clean up close-server logic ([#​3607](https://togithub.com/karma-runner/karma/issues/3607)) ([3fca456](https://togithub.com/karma-runner/karma/commit/3fca456a02a65304d6423d6311fb55f83e73d85e)) - **test:** clear up clearContext ([#​3597](https://togithub.com/karma-runner/karma/issues/3597)) ([8997b74](https://togithub.com/karma-runner/karma/commit/8997b7465de3c5f7e436078b57acae98de1ce39a)) - **test:** mark all second connections reconnects ([#​3598](https://togithub.com/karma-runner/karma/issues/3598)) ([1c9c2de](https://togithub.com/karma-runner/karma/commit/1c9c2de54fa1abcb2c0edceebb159440b77e4863)) ##### Features - **cli:** error out on unexpected options or parameters ([#​3589](https://togithub.com/karma-runner/karma/issues/3589)) ([603bbc0](https://togithub.com/karma-runner/karma/commit/603bbc0db2ef4e6b8474f97a8255587f2a5f924e)) - **client:** update banner with connection, test status, ping times ([#​3611](https://togithub.com/karma-runner/karma/issues/3611)) ([4bf90f7](https://togithub.com/karma-runner/karma/commit/4bf90f70f46cddf52a55d8f2b9ce0ccd2d4a4d3b)) - **server:** print stack of unhandledrejections ([#​3593](https://togithub.com/karma-runner/karma/issues/3593)) ([35a5842](https://togithub.com/karma-runner/karma/commit/35a584234b00297dc511300bb6e42eeaceac8345)) - **server:** remove deprecated static methods ([#​3595](https://togithub.com/karma-runner/karma/issues/3595)) ([1a65bf1](https://togithub.com/karma-runner/karma/commit/1a65bf1181bc9eb5c28ba0130ab7d90e89b21918)) - remove support for running dart code in the browser ([#​3592](https://togithub.com/karma-runner/karma/issues/3592)) ([7a3bd55](https://togithub.com/karma-runner/karma/commit/7a3bd5545fa1307c754419252fa35ff0b7572ae4)) ##### BREAKING CHANGES - **server:** Deprecated `require('karma').server.start()` and `require('karma').Server.start()` variants were removed from the public API. Instead use canonical form: <!----> const { Server } = require('karma'); const server = new Server(); server.start(); - **cli:** Karma is more strict and will error out if unknown option or argument is passed to CLI. - Using Karma to run Dart code in the browser is no longer supported. Use your favorite Dart-to-JS compiler instead. `dart` file type has been removed without a replacement. `customFileHandlers` DI token has been removed. Use [`middleware`](https://karma-runner.github.io/5.2/config/configuration-file.html#middleware) to achieve similar functionality. `customScriptTypes` DI token has been removed. It had no effect, so no replacement is provided. - **deps:** Some projects have socket.io tests that are version sensitive. #### [5.2.3](https://togithub.com/karma-runner/karma/compare/v5.2.2...v5.2.3) (2020-09-25) ##### Bug Fixes - update us-parser-js dependency ([#​3564](https://togithub.com/karma-runner/karma/issues/3564)) ([500ed25](https://togithub.com/karma-runner/karma/commit/500ed25d7e523efe7e7cff2ec70830be7e6e797a)) #### [5.2.2](https://togithub.com/karma-runner/karma/compare/v5.2.1...v5.2.2) (2020-09-08) ##### Bug Fixes - revert source-map update ([#​3559](https://togithub.com/karma-runner/karma/issues/3559)) ([d9ba284](https://togithub.com/karma-runner/karma/commit/d9ba2849ced403a2ff2574d8e3a14deee21f1cc4)), closes [#​3557](https://togithub.com/karma-runner/karma/issues/3557) #### [5.2.1](https://togithub.com/karma-runner/karma/compare/v5.2.0...v5.2.1) (2020-09-02) ##### Bug Fixes - remove broken link from docs - 06-angularjs.md ([#​3555](https://togithub.com/karma-runner/karma/issues/3555)) ([da2f307](https://togithub.com/karma-runner/karma/commit/da2f307603dbdeb9b49e30ebdbbe9ce68ccc2e9e)) - remove unused JSON utilities and flatted dependency ([#​3550](https://togithub.com/karma-runner/karma/issues/3550)) ([beed255](https://togithub.com/karma-runner/karma/commit/beed255698c2efb3b7139f2145123829578345f6)) ### [`v5.2.3`](https://togithub.com/karma-runner/karma/blob/HEAD/CHANGELOG.md#​523-httpsgithubcomkarma-runnerkarmacomparev522v523-2020-09-25) [Compare Source](https://togithub.com/karma-runner/karma/compare/v5.2.2...v5.2.3) ##### Bug Fixes - update us-parser-js dependency ([#​3564](https://togithub.com/karma-runner/karma/issues/3564)) ([500ed25](https://togithub.com/karma-runner/karma/commit/500ed25d7e523efe7e7cff2ec70830be7e6e797a)) ### [`v5.2.2`](https://togithub.com/karma-runner/karma/blob/HEAD/CHANGELOG.md#​522-httpsgithubcomkarma-runnerkarmacomparev521v522-2020-09-08) [Compare Source](https://togithub.com/karma-runner/karma/compare/v5.2.1...v5.2.2) ##### Bug Fixes - revert source-map update ([#​3559](https://togithub.com/karma-runner/karma/issues/3559)) ([d9ba284](https://togithub.com/karma-runner/karma/commit/d9ba2849ced403a2ff2574d8e3a14deee21f1cc4)), closes [#​3557](https://togithub.com/karma-runner/karma/issues/3557) ### [`v5.2.1`](https://togithub.com/karma-runner/karma/blob/HEAD/CHANGELOG.md#​521-httpsgithubcomkarma-runnerkarmacomparev520v521-2020-09-02) [Compare Source](https://togithub.com/karma-runner/karma/compare/v5.2.0...v5.2.1) ##### Bug Fixes - remove broken link from docs - 06-angularjs.md ([#​3555](https://togithub.com/karma-runner/karma/issues/3555)) ([da2f307](https://togithub.com/karma-runner/karma/commit/da2f307603dbdeb9b49e30ebdbbe9ce68ccc2e9e)) - remove unused JSON utilities and flatted dependency ([#​3550](https://togithub.com/karma-runner/karma/issues/3550)) ([beed255](https://togithub.com/karma-runner/karma/commit/beed255698c2efb3b7139f2145123829578345f6)) ### [`v5.2.0`](https://togithub.com/karma-runner/karma/blob/HEAD/CHANGELOG.md#​520-httpsgithubcomkarma-runnerkarmacomparev511v520-2020-08-31) [Compare Source](https://togithub.com/karma-runner/karma/compare/v5.1.1...v5.2.0) ##### Bug Fixes - **client:** avoid race between execute and clearContext ([#​3452](https://togithub.com/karma-runner/karma/issues/3452)) ([8bc5b46](https://togithub.com/karma-runner/karma/commit/8bc5b468393bb90c0cac8f400d61e3434596c05a)), closes [#​3424](https://togithub.com/karma-runner/karma/issues/3424) - **client:** check in bundled client code into version control ([#​3524](https://togithub.com/karma-runner/karma/issues/3524)) ([6cd5a3b](https://togithub.com/karma-runner/karma/commit/6cd5a3b091490ad1c621710456f359213f0c161e)), closes [/github.com/karma-runner/karma/commit/f5521df7df5cd1201b5dce28dc4e326b1ffc41fd#commitcomment-38967493](https://togithub.com//github.com/karma-runner/karma/commit/f5521df7df5cd1201b5dce28dc4e326b1ffc41fd/issues/commitcomment-38967493) - **dependencies:** update dependencies ([#​3543](https://togithub.com/karma-runner/karma/issues/3543)) ([5db46b7](https://togithub.com/karma-runner/karma/commit/5db46b799b84a3d29157edfdbb8d0d0bc57f8fbc)) - **docs:** Update 03-how-it-works.md ([#​3539](https://togithub.com/karma-runner/karma/issues/3539)) ([e7cf7b1](https://togithub.com/karma-runner/karma/commit/e7cf7b11ca3f70a6401c0499376f78984b18e1cc)) - **server:** log error when file loading or preprocessing fails ([#​3540](https://togithub.com/karma-runner/karma/issues/3540)) ([fc2fd61](https://togithub.com/karma-runner/karma/commit/fc2fd6102a1c6ed2972ab5bdec29d8747f1b8e64)) ##### Features - **server:** allow 'exit' listeners to set exit code ([#​3541](https://togithub.com/karma-runner/karma/issues/3541)) ([7a94d33](https://togithub.com/karma-runner/karma/commit/7a94d33ab60b1924fd760b4675254d1edea5dd0a)) #### [5.1.1](https://togithub.com/karma-runner/karma/compare/v5.1.0...v5.1.1) (2020-07-28) ##### Bug Fixes - **server:** echo the hostname rather than listenAddress ([#​3532](https://togithub.com/karma-runner/karma/issues/3532)) ([ebe7ce4](https://togithub.com/karma-runner/karma/commit/ebe7ce4c1aaa7637f2acfde6647f5766347ae1f5)) ### [`v5.1.1`](https://togithub.com/karma-runner/karma/blob/HEAD/CHANGELOG.md#​511-httpsgithubcomkarma-runnerkarmacomparev510v511-2020-07-28) [Compare Source](https://togithub.com/karma-runner/karma/compare/v5.1.0...v5.1.1) ##### Bug Fixes - **server:** echo the hostname rather than listenAddress ([#​3532](https://togithub.com/karma-runner/karma/issues/3532)) ([ebe7ce4](https://togithub.com/karma-runner/karma/commit/ebe7ce4c1aaa7637f2acfde6647f5766347ae1f5)) ### [`v5.1.0`](https://togithub.com/karma-runner/karma/blob/HEAD/CHANGELOG.md#​510-httpsgithubcomkarma-runnerkarmacomparev509v510-2020-06-11) [Compare Source](https://togithub.com/karma-runner/karma/compare/v5.0.9...v5.1.0) ##### Features - **proxy:** use keepAlive agent ([#​3527](https://togithub.com/karma-runner/karma/issues/3527)) ([b77f94c](https://togithub.com/karma-runner/karma/commit/b77f94c1c95d0f717866eae42d478d09544b6d9d)) #### [5.0.9](https://togithub.com/karma-runner/karma/compare/v5.0.8...v5.0.9) (2020-05-19) ##### Bug Fixes - **dependencies:** update to safe version of http-proxy ([#​3519](https://togithub.com/karma-runner/karma/issues/3519)) ([00347bb](https://togithub.com/karma-runner/karma/commit/00347bb204c8c87e1096679af4634032d6600b67)), closes [#​3510](https://togithub.com/karma-runner/karma/issues/3510) #### [5.0.8](https://togithub.com/karma-runner/karma/compare/v5.0.7...v5.0.8) (2020-05-18) ##### Bug Fixes - **dependencies:** update and unlock socket.io dependency ([#​3513](https://togithub.com/karma-runner/karma/issues/3513)) ([b60391f](https://togithub.com/karma-runner/karma/commit/b60391fbddcfa5f8c50b6ac6e3c8d8d845258a56)) - **dependencies:** update to latest log4js major ([#​3514](https://togithub.com/karma-runner/karma/issues/3514)) ([47f1cb2](https://togithub.com/karma-runner/karma/commit/47f1cb222ee0921defbe313b694da3288a894fec)) #### [5.0.7](https://togithub.com/karma-runner/karma/compare/v5.0.6...v5.0.7) (2020-05-16) ##### Bug Fixes - detect type for URLs with query parameter or fragment identifier ([#​3509](https://togithub.com/karma-runner/karma/issues/3509)) ([f399063](https://togithub.com/karma-runner/karma/commit/f399063d1bc8954dba74166ea3dabef2fe376ae4)), closes [#​3497](https://togithub.com/karma-runner/karma/issues/3497) #### [5.0.6](https://togithub.com/karma-runner/karma/compare/v5.0.5...v5.0.6) (2020-05-16) ##### Bug Fixes - **dependencies:** update production dependencies ([#​3512](https://togithub.com/karma-runner/karma/issues/3512)) ([0cd696f](https://togithub.com/karma-runner/karma/commit/0cd696fe91f2616f6646ea5c67cc44b49d7e941a)) #### [5.0.5](https://togithub.com/karma-runner/karma/compare/v5.0.4...v5.0.5) (2020-05-07) ##### Bug Fixes - **cli:** restore command line help contents ([#​3502](https://togithub.com/karma-runner/karma/issues/3502)) ([e99da31](https://togithub.com/karma-runner/karma/commit/e99da316a2d3f875f45baf4e985e521a2fcc755f)), closes [#​3474](https://togithub.com/karma-runner/karma/issues/3474) #### [5.0.4](https://togithub.com/karma-runner/karma/compare/v5.0.3...v5.0.4) (2020-04-30) ##### Bug Fixes - **browser:** make sure that empty results array is still recognized ([#​3486](https://togithub.com/karma-runner/karma/issues/3486)) ([fa95fa3](https://togithub.com/karma-runner/karma/commit/fa95fa3c917470fa4b9ad736287379d1e9ebb350)) #### [5.0.3](https://togithub.com/karma-runner/karma/compare/v5.0.2...v5.0.3) (2020-04-29) ##### Bug Fixes - **client:** flush resultsBuffer on engine upgrade ([#​3212](https://togithub.com/karma-runner/karma/issues/3212)) ([e44ca94](https://togithub.com/karma-runner/karma/commit/e44ca944fe94ae455cd6dc45d9985a6d9fb94754)), closes [#​3211](https://togithub.com/karma-runner/karma/issues/3211) #### [5.0.2](https://togithub.com/karma-runner/karma/compare/v5.0.1...v5.0.2) (2020-04-16) ##### Bug Fixes - **ci:** stop the proxy before killing the child, handle errors ([#​3472](https://togithub.com/karma-runner/karma/issues/3472)) ([abe9af6](https://togithub.com/karma-runner/karma/commit/abe9af616f7a08f3c64cc06f6a68bd5f9c941133)), closes [#​3464](https://togithub.com/karma-runner/karma/issues/3464) #### [5.0.1](https://togithub.com/karma-runner/karma/compare/v5.0.0...v5.0.1) (2020-04-10) ##### Bug Fixes - **file-list:** do not define fs.statAsync ([#​3467](https://togithub.com/karma-runner/karma/issues/3467)) ([55a59e7](https://togithub.com/karma-runner/karma/commit/55a59e70017af79d6f3c170d87d808acc8e21faf)) ### [`v5.0.9`](https://togithub.com/karma-runner/karma/blob/HEAD/CHANGELOG.md#​509-httpsgithubcomkarma-runnerkarmacomparev508v509-2020-05-19) [Compare Source](https://togithub.com/karma-runner/karma/compare/v5.0.8...v5.0.9) ##### Bug Fixes - **dependencies:** update to safe version of http-proxy ([#​3519](https://togithub.com/karma-runner/karma/issues/3519)) ([00347bb](https://togithub.com/karma-runner/karma/commit/00347bb204c8c87e1096679af4634032d6600b67)), closes [#​3510](https://togithub.com/karma-runner/karma/issues/3510) ### [`v5.0.8`](https://togithub.com/karma-runner/karma/blob/HEAD/CHANGELOG.md#​508-httpsgithubcomkarma-runnerkarmacomparev507v508-2020-05-18) [Compare Source](https://togithub.com/karma-runner/karma/compare/v5.0.7...v5.0.8) ##### Bug Fixes - **dependencies:** update and unlock socket.io dependency ([#​3513](https://togithub.com/karma-runner/karma/issues/3513)) ([b60391f](https://togithub.com/karma-runner/karma/commit/b60391fbddcfa5f8c50b6ac6e3c8d8d845258a56)) - **dependencies:** update to latest log4js major ([#​3514](https://togithub.com/karma-runner/karma/issues/3514)) ([47f1cb2](https://togithub.com/karma-runner/karma/commit/47f1cb222ee0921defbe313b694da3288a894fec)) ### [`v5.0.7`](https://togithub.com/karma-runner/karma/blob/HEAD/CHANGELOG.md#​507-httpsgithubcomkarma-runnerkarmacomparev506v507-2020-05-16) [Compare Source](https://togithub.com/karma-runner/karma/compare/v5.0.6...v5.0.7) ##### Bug Fixes - detect type for URLs with query parameter or fragment identifier ([#​3509](https://togithub.com/karma-runner/karma/issues/3509)) ([f399063](https://togithub.com/karma-runner/karma/commit/f399063d1bc8954dba74166ea3dabef2fe376ae4)), closes [#​3497](https://togithub.com/karma-runner/karma/issues/3497) ### [`v5.0.6`](https://togithub.com/karma-runner/karma/blob/HEAD/CHANGELOG.md#​506-httpsgithubcomkarma-runnerkarmacomparev505v506-2020-05-16) [Compare Source](https://togithub.com/karma-runner/karma/compare/v5.0.5...v5.0.6) ##### Bug Fixes - **dependencies:** update production dependencies ([#​3512](https://togithub.com/karma-runner/karma/issues/3512)) ([0cd696f](https://togithub.com/karma-runner/karma/commit/0cd696fe91f2616f6646ea5c67cc44b49d7e941a)) ### [`v5.0.5`](https://togithub.com/karma-runner/karma/blob/HEAD/CHANGELOG.md#​505-httpsgithubcomkarma-runnerkarmacomparev504v505-2020-05-07) [Compare Source](https://togithub.com/karma-runner/karma/compare/v5.0.4...v5.0.5) ##### Bug Fixes - **cli:** restore command line help contents ([#​3502](https://togithub.com/karma-runner/karma/issues/3502)) ([e99da31](https://togithub.com/karma-runner/karma/commit/e99da316a2d3f875f45baf4e985e521a2fcc755f)), closes [#​3474](https://togithub.com/karma-runner/karma/issues/3474) ### [`v5.0.4`](https://togithub.com/karma-runner/karma/blob/HEAD/CHANGELOG.md#​504-httpsgithubcomkarma-runnerkarmacomparev503v504-2020-04-30) [Compare Source](https://togithub.com/karma-runner/karma/compare/v5.0.3...v5.0.4) ##### Bug Fixes - **browser:** make sure that empty results array is still recognized ([#​3486](https://togithub.com/karma-runner/karma/issues/3486)) ([fa95fa3](https://togithub.com/karma-runner/karma/commit/fa95fa3c917470fa4b9ad736287379d1e9ebb350)) ### [`v5.0.3`](https://togithub.com/karma-runner/karma/blob/HEAD/CHANGELOG.md#​503-httpsgithubcomkarma-runnerkarmacomparev502v503-2020-04-29) [Compare Source](https://togithub.com/karma-runner/karma/compare/v5.0.2...v5.0.3) ##### Bug Fixes - **client:** flush resultsBuffer on engine upgrade ([#​3212](https://togithub.com/karma-runner/karma/issues/3212)) ([e44ca94](https://togithub.com/karma-runner/karma/commit/e44ca944fe94ae455cd6dc45d9985a6d9fb94754)), closes [#​3211](https://togithub.com/karma-runner/karma/issues/3211) ### [`v5.0.2`](https://togithub.com/karma-runner/karma/blob/HEAD/CHANGELOG.md#​502-httpsgithubcomkarma-runnerkarmacomparev501v502-2020-04-16) [Compare Source](https://togithub.com/karma-runner/karma/compare/v5.0.1...v5.0.2) ##### Bug Fixes - **ci:** stop the proxy before killing the child, handle errors ([#​3472](https://togithub.com/karma-runner/karma/issues/3472)) ([abe9af6](https://togithub.com/karma-runner/karma/commit/abe9af616f7a08f3c64cc06f6a68bd5f9c941133)), closes [#​3464](https://togithub.com/karma-runner/karma/issues/3464) ### [`v5.0.1`](https://togithub.com/karma-runner/karma/blob/HEAD/CHANGELOG.md#​501-httpsgithubcomkarma-runnerkarmacomparev500v501-2020-04-10) [Compare Source](https://togithub.com/karma-runner/karma/compare/v5.0.0...v5.0.1) ##### Bug Fixes - **file-list:** do not define fs.statAsync ([#​3467](https://togithub.com/karma-runner/karma/issues/3467)) ([55a59e7](https://togithub.com/karma-runner/karma/commit/55a59e70017af79d6f3c170d87d808acc8e21faf)) ### [`v5.0.0`](https://togithub.com/karma-runner/karma/blob/HEAD/CHANGELOG.md#​500-httpsgithubcomkarma-runnerkarmacomparev441v500-2020-04-09) [Compare Source](https://togithub.com/karma-runner/karma/compare/v4.4.1...v5.0.0) ##### Bug Fixes - install semantic-release as a regular dev dependency ([#​3455](https://togithub.com/karma-runner/karma/issues/3455)) ([1eaf35e](https://togithub.com/karma-runner/karma/commit/1eaf35e1d616a2ef21dd00d843552f189fbc7c94)) - **ci:** echo travis env that gates release after_success ([#​3446](https://togithub.com/karma-runner/karma/issues/3446)) ([b8b2ed8](https://togithub.com/karma-runner/karma/commit/b8b2ed81e595baf0337c9628a736494b9f2c91c1)) - **ci:** poll every 10s to avoid rate limit. ([#​3388](https://togithub.com/karma-runner/karma/issues/3388)) ([91e7e00](https://togithub.com/karma-runner/karma/commit/91e7e00b29db95ea7209f60c07431b10ab597b02)) - **middleware/runner:** handle file list rejections ([#​3400](https://togithub.com/karma-runner/karma/issues/3400)) ([80febfb](https://togithub.com/karma-runner/karma/commit/80febfb53a7d041bdcbcffef617e53cdc2d8dd66)), closes [#​3396](https://togithub.com/karma-runner/karma/issues/3396) [#​3396](https://togithub.com/karma-runner/karma/issues/3396) - **server:** cleanup import of the removed method ([#​3439](https://togithub.com/karma-runner/karma/issues/3439)) ([cb1bcbf](https://togithub.com/karma-runner/karma/commit/cb1bcbf0b33c8b14a823f7c2cfb7003a7d7704e5)) - **server:** createPreprocessor was removed ([#​3435](https://togithub.com/karma-runner/karma/issues/3435)) ([5c334f5](https://togithub.com/karma-runner/karma/commit/5c334f5e811c490f49e4e681e38345776b77210a)) - **server:** detection new MS Edge Chromium ([#​3440](https://togithub.com/karma-runner/karma/issues/3440)) ([7166ce2](https://togithub.com/karma-runner/karma/commit/7166ce2b965a44c89010271fda908e2d58a10a9a)) - **server:** replace optimist on yargs lib ([#​3451](https://togithub.com/karma-runner/karma/issues/3451)) ([ec1e69a](https://togithub.com/karma-runner/karma/commit/ec1e69a2545695ee248f34c26f7c4c2b50439b94)), closes [#​2473](https://togithub.com/karma-runner/karma/issues/2473) - **server:** Report original error message ([#​3415](https://togithub.com/karma-runner/karma/issues/3415)) ([79ee331](https://togithub.com/karma-runner/karma/commit/79ee331c939b7fb76a826d9216fea5fabc646854)), closes [#​3414](https://togithub.com/karma-runner/karma/issues/3414) ##### Code Refactoring - use native Promise instead of Bluebird ([#​3436](https://togithub.com/karma-runner/karma/issues/3436)) ([33a069f](https://togithub.com/karma-runner/karma/commit/33a069f8a4c4687cdbe07971cca479d98b262e3f)), closes [/github.com/karma-runner/karma/pull/3060#discussion_r284797390](https://togithub.com//github.com/karma-runner/karma/pull/3060/issues/discussion_r284797390) ##### Continuous Integration - drop node 8, adopt node 12 ([#​3430](https://togithub.com/karma-runner/karma/issues/3430)) ([a673aa8](https://togithub.com/karma-runner/karma/commit/a673aa8ad76f733565498f2aab13fcd720502be1)) ##### Features - **docs:** document `DEFAULT_LISTEN_ADDR` constant ([#​3443](https://togithub.com/karma-runner/karma/issues/3443)) ([057d527](https://togithub.com/karma-runner/karma/commit/057d527262f1e258f53985116cba718268f108da)), closes [#​2479](https://togithub.com/karma-runner/karma/issues/2479) - **karma-server:** added log to the server.js for uncaught exception ([#​3399](https://togithub.com/karma-runner/karma/issues/3399)) ([adc6a66](https://togithub.com/karma-runner/karma/commit/adc6a66943c93185e8481060c3cf4b7416985151)) - **preprocessor:** obey Pattern.isBinary when set ([#​3422](https://togithub.com/karma-runner/karma/issues/3422)) ([708ae13](https://togithub.com/karma-runner/karma/commit/708ae133acc233195ea64657cafbb86cbd56f115)), closes [#​3405](https://togithub.com/karma-runner/karma/issues/3405) ##### BREAKING CHANGES - Karma plugins which rely on the fact that Karma uses Bluebird promises may break as Bluebird-specific API is no longer available on Promises returned by the Karma core - **server:** Deprecated createPreprocessor removed, karma-browserify < 7 version doesn't work - no more testing on node 8. #### [4.4.1](https://togithub.com/karma-runner/karma/compare/v4.4.0...v4.4.1) (2019-10-18) ##### Bug Fixes - **deps:** back to karma-browserstack-launcher 1.4 ([#​3361](https://togithub.com/karma-runner/karma/issues/3361)) ([1cd87ad](https://togithub.com/karma-runner/karma/commit/1cd87ad)) - **server:** Add test coverage for config.singleRun true branch. ([#​3384](https://togithub.com/karma-runner/karma/issues/3384)) ([259be0d](https://togithub.com/karma-runner/karma/commit/259be0d)) - if preprocessor is async function and doesn't return a content then await donePromise ([#​3387](https://togithub.com/karma-runner/karma/issues/3387)) ([f91be24](https://togithub.com/karma-runner/karma/commit/f91be24)) </details> --- ### Configuration 📅 **Schedule**: "" (UTC). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/carbon-design-system/carbon-for-ibm-dotcom).
All supported Node versions support native promises and async/await, current code has a minimal usage of Bluebird-specific methods, so dropping a third-party library in favor of native Promises. Tests were using `Promise.setScheduler()` from Bluebird, which allowed to customize how Promises are scheduled and made test work very different from the real code, which created tricky issues (like karma-runner#3060 (comment)). Affected tests were updated to not rely on `Promise.setScheduler()`, which improved readability in some situations. Also removed some test helpers as they are not necessary and not used anymore. BREAKING CHANGE: Karma plugins which rely on the fact that Karma uses Bluebird promises may break as Bluebird-specific API is no longer available on Promises returned by the Karma core
# [5.0.0](karma-runner/karma@v4.4.1...v5.0.0) (2020-04-09) ### Bug Fixes * install semantic-release as a regular dev dependency ([karma-runner#3455](karma-runner#3455)) ([1eaf35e](karma-runner@1eaf35e)) * **ci:** echo travis env that gates release after_success ([karma-runner#3446](karma-runner#3446)) ([b8b2ed8](karma-runner@b8b2ed8)) * **ci:** poll every 10s to avoid rate limit. ([karma-runner#3388](karma-runner#3388)) ([91e7e00](karma-runner@91e7e00)) * **middleware/runner:** handle file list rejections ([karma-runner#3400](karma-runner#3400)) ([80febfb](karma-runner@80febfb)), closes [karma-runner#3396](karma-runner#3396) [karma-runner#3396](karma-runner#3396) * **server:** cleanup import of the removed method ([karma-runner#3439](karma-runner#3439)) ([cb1bcbf](karma-runner@cb1bcbf)) * **server:** createPreprocessor was removed ([karma-runner#3435](karma-runner#3435)) ([5c334f5](karma-runner@5c334f5)) * **server:** detection new MS Edge Chromium ([karma-runner#3440](karma-runner#3440)) ([7166ce2](karma-runner@7166ce2)) * **server:** replace optimist on yargs lib ([karma-runner#3451](karma-runner#3451)) ([ec1e69a](karma-runner@ec1e69a)), closes [karma-runner#2473](karma-runner#2473) * **server:** Report original error message ([karma-runner#3415](karma-runner#3415)) ([79ee331](karma-runner@79ee331)), closes [karma-runner#3414](karma-runner#3414) ### Code Refactoring * use native Promise instead of Bluebird ([karma-runner#3436](karma-runner#3436)) ([33a069f](karma-runner@33a069f)), closes [/github.com/karma-runner/pull/3060#discussion_r284797390](https://github.com//github.com/karma-runner/karma/pull/3060/issues/discussion_r284797390) ### Continuous Integration * drop node 8, adopt node 12 ([karma-runner#3430](karma-runner#3430)) ([a673aa8](karma-runner@a673aa8)) ### Features * **docs:** document `DEFAULT_LISTEN_ADDR` constant ([karma-runner#3443](karma-runner#3443)) ([057d527](karma-runner@057d527)), closes [karma-runner#2479](karma-runner#2479) * **karma-server:** added log to the server.js for uncaught exception ([karma-runner#3399](karma-runner#3399)) ([adc6a66](karma-runner@adc6a66)) * **preprocessor:** obey Pattern.isBinary when set ([karma-runner#3422](karma-runner#3422)) ([708ae13](karma-runner@708ae13)), closes [karma-runner#3405](karma-runner#3405) ### BREAKING CHANGES * Karma plugins which rely on the fact that Karma uses Bluebird promises may break as Bluebird-specific API is no longer available on Promises returned by the Karma core * **server:** Deprecated createPreprocessor removed, karma-browserify < 7 version doesn't work * no more testing on node 8.
… unused promise