Closed dubzzz closed 3 months ago
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
Latest deployment of this branch, based on commit ee73524d67161dd10bc2e2fa72169bd1149865c3:
Sandbox | Source |
---|---|
@fast-check/examples | Configuration |
👋 A preview of the new documentation is available at: http://66a426ec744d33718e6aaf74--dubzzz-fast-check.netlify.app
Description
⚠️ Minor breaking change first opened as #4589
The build chain of
@fast-check/ava
has been CommonJS-based since day 1. With ESM moving forward in the ecosystem, it's time to move ourselves to the new standard and adapt our build chains to ESM.Unfortunately it may have some subtle impacts on our users as our package will not be a CJS one offering a ESM fallback anymore. I will rather be the opposite: an ESM package with a fallback to CJS. It implies that we moved ESM related files closer to the root of the package (we could have kept them in esm/) and moved the CJS ones further in the file structure (we had to move them).
Another subtle impact is that it would impose our users to run at least Node ≥12.17.0. But it was already a requirement due to ava itself: https://github.com/avajs/ava/blob/v4.0.0/package.json#L23C1-L25C4.
As such we consider it as a breaking change.
Checklist — Don't delete this checklist and make sure you do the following before opening the PR
yarn bump
and flag the impacts properlyAdvanced