Skip to content

Version 6.0.0

Compare
Choose a tag to compare
@jaydenseric jaydenseric released this 02 Jul 04:14
· 28 commits to master since this release

Major

  • Updated Node.js support to ^18.18.0 || ^20.9.0 || >=22.0.0.
  • Updated dev dependencies, some of which require newer Node.js versions than previously supported.
  • Use the Node.js test runner API and remove the dev dependency test-director.
  • Updated the dependency globby to v14.
  • Updated the function findUnusedExports to no longer ignore dotfiles when executing the module glob.
  • Changed the function findUnusedExports option moduleGlob and the CLI command find-unused-exports argument --module-glob default value from **/{!(*.d).mts,!(*.d).cts,*.{mjs,cjs,js}} to **/{!(*.d).mts,!(*.d).cts,!(*.d).ts,*.{mjs,cjs,js,tsx}}; .ts and .tsx files (but not TypeScript definition files) are now recursively matched by default.
  • Support resolving additional kinds of TypeScript source modules (if the exist) depending on the import specifier path file extension:
    • .cjs resolves .cts.
    • .js resolves .ts and .tsx.
  • Use the TypeScript v5.5+ JSDoc tag @import to import types in modules.

Minor

  • Enable TypeScript syntax when parsing .ts and .tsx files with Babel, even when the project has no Babel config for TypeScript.
  • Enable JSX syntax when parsing .tsx files with Babel, even when the project has no Babel config for JSX.

Patch

  • Updated the package.json field repository to conform to new npm requirements.
  • Updated GitHub Actions CI config:
    • No longer run the workflow on pull request.
    • Enable manual workflow dispatching.
    • Run tests with Node.js v18, v20, v22.
    • Updated actions/checkout to v4.
    • Updated actions/setup-node to v4.
  • Migrated to the ESLint v9 CLI and “flat” config.
  • Integrated a new dev dependency eslint-plugin-jsdoc.
  • Updated a test snapshot for newer dependencies.
  • Avoid British English spelling in a JSDoc description.