Announcing Stryker 2.0
A new major version of Stryker for JavaScript and TypeScript has been released: version 2.0.0. This blog post will cover some of the changes. For a full list of changes, please read our changelog.
If you run into any issues using the latest version of Stryker, please let us know!
๐ Migrationโ
Migrating to the latest major version is easy! Just update all @stryker-mutator
dependencies to at least version 2.0.0. If you are still using version 0.x.x, then please look at our blog post regarding stryker v1.
If you're new to Stryker, please see our quickstart. Have fun with mutation testing!
๐ฅ Breaking changesโ
This major release comes with some breaking changes:
- NodeJS version 8 or higher is now required to run Stryker
- The code of Stryker is now es2017 code instead of es5
โจ What's newโ
Not a big list of new features this time around. Mainly housekeeping and other optimizations. Here you'll find a list of small improvements.
- Prettier has been removed as a direct dependency. We use prettier when initially writing your stryker.conf.js to disk (with
stryker init
). We now run prettier using the npx command instead of packaging it with Stryker, keeping Stryker lean and mean. - We've updated our source-map dependency to enable lazy loading. This ensures that coverage data is only mapped when (and if) it's required.
- VueJS files are only mutated when they contain
<script>
blocks.
๐ด Deprecationsโ
Since Stryker v1, we've introduced a deprecation policy. This means that we'll support features for one major release after we've deprecated them. This is a (small) list of stuff we've deprecated. You'll also get a warning if you still use them in your setup.
- The use of mocha version 5 and below is deprecated. This is mainly because of big changes the way you configure mocha. Please upgrade to mocha 6 or above. See their changelog for more information about upgrading. Support for mocha version 5 and below will be removed in the future (with Stryker v3 probably).
- The
onScoreCalculated
internal reporter event is deprecated. Please useonMutationTestReportReady
and calculate the score using mutation-testing-metrics. All reporters maintained by the Stryker team are already migrated.
๐ Release scheduleโ
We'll keep improving Stryker by fixing nasty bugs, improving code (and test) quality and by adding new features. The next major release of Stryker will probably be at the start of 2020 due to the LTS support of NodeJS version 8 ending.