Skip to content

Releases: jaydenseric/coverage-node

Version 8.0.0

18 Aug 04:35
Compare
Choose a tag to compare

Major

  • Use the node: URL scheme for Node.js builtin module imports.
  • Migrated from the Node.js builtin module fs to node:fs/promises.

Patch

  • Updated dependencies.

Version 7.0.0

17 Aug 23:20
Compare
Choose a tag to compare

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 to 10.
    • Set compilerOptions.module to nodenext.
  • 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:

Version 6.1.0

17 Feb 10:58
Compare
Choose a tag to compare

Minor

  • A truthy ALLOW_MISSING_COVERAGE environment variable can now be used with the coverage-node CLI to prevent missing coverage from causing the process to exit with code 1, via #2.

Patch

  • Updated dependencies.
  • Amended the v6.0.0 changelog entry.

Version 6.0.1

30 Jan 03:01
Compare
Choose a tag to compare

Patch

  • Simplified dev dependencies and config for ESLint.
  • The private reportCliError function now explicitly calls .toString() for errors that don’t have a stack property.
  • Stopped using the kleur chaining API.
  • Use a new replace-stack-traces dev dependency in tests.

Version 6.0.0

26 Jan 10:55
Compare
Choose a tag to compare

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 and exports fields.
  • Removed ./package from the package exports field; the full package.json filename must be used in a require 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

02 May 04:33
Compare
Choose a tag to compare

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

27 Apr 11:05
Compare
Choose a tag to compare

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 via import but not require.
  • 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 unhandled Promise 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

11 Dec 00:34
Compare
Choose a tag to compare

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 smarter replaceStackTraces helper that allows tests to detect a missing stack trace.
  • Use spawnSync from the Node.js child_process API instead of the execFilePromise helper in tests.
  • Added more coverage-node CLI tests.
  • Improved internal JSDoc.
  • Updated SLOC and install size related documentation.

Version 3.0.0

14 Jun 05:48
Compare
Choose a tag to compare

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 the coverageNode 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

02 Feb 06:03
Compare
Choose a tag to compare

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.