[Snyk] Upgrade mocha from 2.5.3 to 6.2.1#1
Open
snyk-bot wants to merge 1 commit into
Open
Conversation
Snyk has created this PR to upgrade mocha from 2.5.3 to 6.2.1. See this package in NPM: https://www.npmjs.com/package/mocha See this project in Snyk: https://app.snyk.io/org/ajesse11x/project/22b05c4f-cc9a-4abb-86fc-c67046243258?utm_source=github&utm_medium=upgrade-pr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade
mochafrom 2.5.3 to 6.2.1.Warning: This is a major version upgrade, and may be a breaking change.
The recommended version fixes:
Release notes
6.2.1 / 2019-09-29
🐛 Fixes
📖 Documentation
6.2.0 / 2019-07-18
🎉 Enhancements
🐛 Fixes
--file(@gabegorelick)globalorglobals(@pascalpp)_mochabinary (@juergba)--timeout/--slowstring values and duplicate arguments (@boneskull, @juergba)📖 Documentation
🔍 Coverage
--watchoptions (@geigerzaehler)🔩 Other
--watchmode behavior (@geigerzaehler)runWatchinto separate module (@geigerzaehler)mocha.min.jsfile to stacktrace filter (@brian-lagerman)--excludeto--ignoreand create alias (@boneskull)mocha.css(@DanielRuf)6.1.4 / 2019-04-18
🔒 Security Fixes
6.1.3 / 2019-04-11
🐛 Fixes
yargs-related global scope pollution (@inukshuk)pnpm(@boneskull)6.1.2 / 2019-04-08
🐛 Fixes
6.1.1 / 2019-04-07
🐛 Fixes
6.1.0 / 2019-04-07
🔒 Security Fixes
🎉 Enhancements
optionsparameter (@plroebuck).jsoncextension (@sstephant)📠 Deprecations
These are soft-deprecated, and will emit a warning upon use. Support will be removed in (likely) the next major version of Mocha:
this.skip()for "after all" hooks (@juergba)🐛 Fixes
this.skip()in "before each" hooks (@juergba)--allow-uncaughtfor uncaught exceptions thrown inside hooks (@givanse)and some regressions:
Suitecloning by copyingrootproperty (@fatso83)📖 Documentation
🔩 Other
6.0.2 / 2019-02-25
🐛 Fixes
Two more regressions fixed:
mocha.opts(@boneskull)--requiredoes not break on module names that look like certainnodeflags (@boneskull)6.0.1 / 2019-02-21
The obligatory round of post-major-release bugfixes.
🐛 Fixes
These issues were regressions.
test.jswhen run without arguments (@plroebuck)--ui(@boneskull)--watch(@boneskull)undefinedvalue from adescribecallback is no longer considered deprecated (@boneskull)📖 Documentation
@mocha/docdash@2(@tendonstrength)6.0.0 / 2019-02-18
💥 Breaking Changes
--grepand--fgrepare now mutually exclusive; attempting to use both will cause Mocha to fail instead of simply ignoring--grep--compilersis no longer supported; attempting to use will cause Mocha to fail with a link to more information-dis no longer an alias for--debug;-dis currently ignored--watch-extensionsno longer impliesjs; it must be explicitly added (@TheDancingCode)tapreporter emits error messages (@chrmod)beforehook, subsequentbeforehooks and tests in nested suites are now skipped (@bannmoore)lib/template.htmlhas moved tolib/browser/template.html(@boneskull)mocha.optsat a user-specified path (@plroebuck)Base-extending reporter without aRunnerparameter will throw an exception (@craigtaub)codeproperty (and some will have additional metadata). SomeErrormessages have changed. Please use thecodeproperty to checkErrortypes instead of themessageproperty; these descriptions will be localized in the future. (@craigtaub)📠 Deprecations
These are soft-deprecated, and will emit a warning upon use. Support will be removed in (likely) the next major version of Mocha:
-gcusers should use--gc-globalinsteadbin/optionsshould now use theloadMochaOptsorloadOptions(preferred) functions exported by thelib/cli/optionsmoduleRegarding the
Mochaclass constructor (fromlib/mocha):color: falseinstead ofuseColors: falsetimeout: falseinstead ofenableTimeouts: falseAll of the above deprecations were introduced by #3556.
mocha.optsis now considered "legacy"; please prefer RC file orpackage.jsonovermocha.opts.🎉 Enhancements
requirecache (@plroebuck)Enhancements introduced in #3556:
Mocha now supports "RC" files in JS, JSON, YAML, or
package.json-based (usingmochaproperty) format.mocharc.js,.mocharc.json,.mocharc.yamlor.mocharc.ymlare valid "rc" file names and will be automatically loaded--config /path/to/rc/fileto specify an explicit path--package /path/to/package.jsonto specify an explicitpackage.jsonto read themochaprop from--no-configor--no-packageto completely disable loading of configuration via RC file andpackage.json, respectivelypackage.jsonmocha.optsNode/V8 flag support in
mochaexecutable:nodeflags as supported by the running version ofnode(also thanks to @demurgos)--v8-to the flag namepackage.jsonproperties, ormocha.opts--inspect) now imply--no-timeouts--debugwill automatically invoke--inspectif supported by running version ofnodeSupport negation of any Mocha-specific command-line flag by prepending
--no-to the flag nameInterfaces now have descriptions when listed using
--interfacesflagMochaconstructor supports all options--extensionis now an alias for--watch-extensionsand affects non-watch-mode test runs as well. For example, to run onlytest/*.coffee(nottest/*.js), you can domocha --require coffee-script/register --extensions coffee.#3552:
tapreporter is now TAP13-capable (@plroebuck & @mollstam)#3535: Mocha's version can now be queried programmatically via public property
Mocha.prototype.version(@plroebuck)#3428:
xunitreporter shows diffs (@mlucool)#2529:
Runnernow emits aretryevent when tests are retried (reporters can listen for this) (@catdad)#2962, #3111: In-browser notification support; warn about missing prereqs when
--growlsupplied (@plroebuck)🐛 Fixes
Suite#_onlyTestsandSuite#_onlySuites(@vkarpov15)lookupFilesandfiles(@plroebuck)--delay(and other boolean options) not working in all cases (@boneskull)--reporter-option/--reporter-optionsdid not support comma-separated key/value pairs (@boneskull)mocharc.jsonin published package (@boneskull)--no-timeoutsand--timeout 0now does what you'd expect (@boneskull)--no-exitoption (@boneskull)SIGINT(@boneskull)--forbid-onlyand--forbid-pendingnow "fail fast" when encountered on a suite (@outsideris)stdout:prefix in browser console (@Bamieh)utils.isPromise()(@fabiosantoscode)--bailwould not execute "after" nor "after each" hooks (@juergba)TERM=dumb(@plroebuck)📖 Documentation
.github/CONTRIBUTING.md(@markowsiak)slowoption (@finfin)--watchdocs (@benglass)🔩 Other
msuserland module instead of hand-rolled solution (@gizemkeser)🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs