Releases: jaydenseric/coverage-node
Releases · jaydenseric/coverage-node
Version 8.0.0
Major
- Use the
node:
URL scheme for Node.js builtin module imports. - Migrated from the Node.js builtin module
fs
tonode:fs/promises
.
Patch
- Updated dependencies.
Version 7.0.0
Major
- Updated Node.js support to
^14.17.0 || ^16.0.0 || >= 18.0.0
. - Updated dev dependencies, some of which require newer Node.js versions than previously supported.
- The command
coverage-node
no longer skips code coverage and logs a warning for Node.js versions < v13.3 that produce unreliable coverage data as they are no longer supported. - Removed these modules that were previously exported:
coverageSupported.mjs
coverageSupportedMinNodeVersion.mjs
Patch
- Updated dependencies.
- Updated
jsconfig.json
:- Set
compilerOptions.maxNodeModuleJsDepth
to10
. - Set
compilerOptions.module
tonodenext
.
- Set
- Updated ESLint config.
- Updated GitHub Actions CI config:
- Run tests with Node.js v14, v16, v18.
- Updated
actions/checkout
to v3. - Updated
actions/setup-node
to v3.
- Fixed a broken JSDoc link.
- Fixed a comment typo.
- Revamped the readme:
- Removed the badges.
- Updated install size comparisons.
- Added information about TypeScript config and optimal JavaScript module design.
Version 6.1.0
Minor
- A truthy
ALLOW_MISSING_COVERAGE
environment variable can now be used with thecoverage-node
CLI to prevent missing coverage from causing the process to exit with code1
, via #2.
Patch
- Updated dependencies.
- Amended the v6.0.0 changelog entry.
Version 6.0.1
Patch
- Simplified dev dependencies and config for ESLint.
- The private
reportCliError
function now explicitly calls.toString()
for errors that don’t have astack
property. - Stopped using the
kleur
chaining API. - Use a new
replace-stack-traces
dev dependency in tests.
Version 6.0.0
Major
- Updated Node.js support to
^12.22.0 || ^14.17.0 || >= 16.0.0
. - Updated dependencies, some of which require newer Node.js versions than previously supported.
- Public modules are now individually listed in the package
files
andexports
fields. - Removed
./package
from the packageexports
field; the fullpackage.json
filename must be used in arequire
path. - Removed the package main index module; deep imports must be used.
- Shortened public module deep import paths, removing the
/public/
. - Implemented TypeScript types via JSDoc comments.
Patch
- Simplified package scripts.
- Check TypeScript types via a new package
types
script. - Fixed various type related issues.
- Also run GitHub Actions CI with Node.js v17, and drop v15.
- Removed the
jsdoc-md
dev dependency and the related package scripts, replacing the readme “API” section with a manually written “Exports” section. - Fixed snapshot tests for the Node.js v17.0.0+ behavior of adding the Node.js version after trace for errors that cause the process to exit.
- Reorganized the test file structure.
- Renamed imports in the test index module.
- Added
CliError
class tests. - Runtime type check
CLiError
constructor arguments. - Simplified runtime type error messages.
- Configured Prettier option
singleQuote
to the default,false
. - Added a
license.md
MIT License file. - Readme tweaks.
Version 5.0.1
Patch
- Updated dependencies.
- Added a package
test:jsdoc
script that checks the readme API docs are up to date with the source JSDoc. - Readme tweaks.
Version 5.0.0
Major
- Updated supported Node.js versions to
^12.20 || >= 14.13
. - Updated dependencies, some of which require newer Node.js versions than previously supported.
- The API is now ESM in
.mjs
files instead of CJS in.js
files, accessible viaimport
but notrequire
. - Replaced the the
package.json
exports
field public subpath folder mapping (deprecated by Node.js) with a subpath pattern.
Patch
- Simplified the package scripts now that
jsdoc-md
v10 automatically generates a Prettier formatted readme. - Always use regex
u
mode. - Stop using
hard-rejection
to detect unhandledPromise
rejections in tests, as Node.js v15+ does this natively. - Improved the test helper function
replaceStackTraces
. - Refactored unnecessary template strings.
- 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.
Version 4.0.0
Major
- The updated
kleur
dependency causes subtle differences in which environments get colored console output.
Minor
- Added runtime argument type checks for various private and public functions.
- Improved console output for
coverage-node
CLI errors.
Patch
- Updated dependencies.
- Also test Node.js v15 in GitHub Actions CI.
- Simplified the GitHub Actions CI config with the
npm install-test
command. - Removed
npm-debug.log
from the.gitignore
file as npm v4.2.0+ doesn’t create it in the current working directory. - Removed an extra space character from the
coverage-node
CLI error message when coverage is enabled. - Use the
FORCE_COLOR
environment variable in tests to ensure output is colorized. - Use a new
snapshot-assertion
dev dependency to snapshot test CLI output. - Replaced the
stripStackTraces
test helper with a smarterreplaceStackTraces
helper that allows tests to detect a missing stack trace. - Use
spawnSync
from the Node.jschild_process
API instead of theexecFilePromise
helper in tests. - Added more
coverage-node
CLI tests. - Improved internal JSDoc.
- Updated SLOC and install size related documentation.
Version 3.0.0
Major
- Updated supported Node.js versions to
^10.17.0 || ^12.0.0 || >= 13.7.0
. - Updated dependencies, some of which require newer Node.js versions than were previously supported.
- Added a package
exports
field with conditional exports to support native ESM in Node.js and keep internal code private, whilst avoiding the dual package hazard. Published files have been reorganized, so previously undocumented deep imports will need to be rewritten according to the newly documented paths.
Patch
- Updated Prettier config and scripts.
- Added ESM related keywords to the package
keywords
field. - Updated ESLint config to match the new Node.js version support.
- Moved reading
process.argv
into thecoverageNode
function scope. - Improved a JSDoc return type.
- Ensure GitHub Actions run on pull request.
- Test with Node.js v14 instead of v13.
- Updated EditorConfig.
Version 2.0.3
Patch
- Updated dev dependencies.
- Added a new
hard-rejection
dev dependency to ensure unhandled rejections in tests exit the process with an error. - Destructured
assert
imports. - Moved the
execFilePromise
helper from the/lib
directory to/test
, reducing the install size.