Releases
v4.0.0
Compare
Sorry, something went wrong.
No results found
Major
Updated Node.js support to ^12.20 || >= 14.13.
Updated dev dependencies, some of which require newer Node.js versions than were previously supported.
The API is now ESM in .mjs files instead of CJS in .js files, accessible via import but not require .
The function disposableDirectory is now only accessible via a default import from the main index.
The function disposableDirectory now throws a TypeError if argument 1 callback isn’t a function.
Added back a package sideEffects field.
Patch
Stop using hard-rejection to detect unhandled Promise rejections in tests, as Node.js v15+ does this natively.
Simplified the package scripts now that jsdoc-md v10 automatically generates a Prettier formatted readme.
Added a package test:jsdoc script that checks the readme API docs are up to date with the source JSDoc.
Updated GitHub Actions CI config:
Also run tests with Node.js v16.
Updated actions/checkout to v2.
Updated actions/setup-node to v2.
Don’t specify the CI environment variable as it’s set by default.
Simplified the ESLint config.
Removed npm-debug.log from the .gitignore file as npm v4.2.0 + doesn’t create it in the current working directory.
Updated the private function fsPathRemove:
Throw a more specific TypeError when argument 1 path isn’t a string.
Resolve void.
Simplified a rejects assertion in fsPathRemove tests.
Removed the test helper function sleep.
Replaced the test helper function fsPathExists with the Node.js fs.existsSync function.
Readme tweaks.
You can’t perform that action at this time.