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
fstonode: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-nodeno 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.mjscoverageSupportedMinNodeVersion.mjs
Patch
- Updated dependencies.
- Updated
jsconfig.json:- Set
compilerOptions.maxNodeModuleJsDepthto10. - Set
compilerOptions.moduletonodenext.
- Set
- Updated ESLint config.
- Updated GitHub Actions CI config:
- Run tests with Node.js v14, v16, v18.
- Updated
actions/checkoutto v3. - Updated
actions/setup-nodeto 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_COVERAGEenvironment variable can now be used with thecoverage-nodeCLI 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
reportCliErrorfunction now explicitly calls.toString()for errors that don’t have astackproperty. - Stopped using the
kleurchaining API. - Use a new
replace-stack-tracesdev 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
filesandexportsfields. - Removed
./packagefrom the packageexportsfield; the fullpackage.jsonfilename must be used in arequirepath. - 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
typesscript. - Fixed various type related issues.
- Also run GitHub Actions CI with Node.js v17, and drop v15.
- Removed the
jsdoc-mddev 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
CliErrorclass tests. - Runtime type check
CLiErrorconstructor arguments. - Simplified runtime type error messages.
- Configured Prettier option
singleQuoteto the default,false. - Added a
license.mdMIT License file. - Readme tweaks.
Version 5.0.1
Patch
- Updated dependencies.
- Added a package
test:jsdocscript 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
.mjsfiles instead of CJS in.jsfiles, accessible viaimportbut notrequire. - Replaced the the
package.jsonexportsfield public subpath folder mapping (deprecated by Node.js) with a subpath pattern.
Patch
- Simplified the package scripts now that
jsdoc-mdv10 automatically generates a Prettier formatted readme. - Always use regex
umode. - Stop using
hard-rejectionto detect unhandledPromiserejections 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/checkoutto v2. - Updated
actions/setup-nodeto v2. - Don’t specify the
CIenvironment variable as it’s set by default.
Version 4.0.0
Major
- The updated
kleurdependency 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-nodeCLI errors.
Patch
- Updated dependencies.
- Also test Node.js v15 in GitHub Actions CI.
- Simplified the GitHub Actions CI config with the
npm install-testcommand. - Removed
npm-debug.logfrom the.gitignorefile as npm v4.2.0+ doesn’t create it in the current working directory. - Removed an extra space character from the
coverage-nodeCLI error message when coverage is enabled. - Use the
FORCE_COLORenvironment variable in tests to ensure output is colorized. - Use a new
snapshot-assertiondev dependency to snapshot test CLI output. - Replaced the
stripStackTracestest helper with a smarterreplaceStackTraceshelper that allows tests to detect a missing stack trace. - Use
spawnSyncfrom the Node.jschild_processAPI instead of theexecFilePromisehelper in tests. - Added more
coverage-nodeCLI 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
exportsfield 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
keywordsfield. - Updated ESLint config to match the new Node.js version support.
- Moved reading
process.argvinto thecoverageNodefunction 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-rejectiondev dependency to ensure unhandled rejections in tests exit the process with an error. - Destructured
assertimports. - Moved the
execFilePromisehelper from the/libdirectory to/test, reducing the install size.