Ts-node version 10.0.0 introduces several key updates and feature enhancements compared to version 9.1.1. Notably, v10.0.0 adds support for newer TypeScript versions and Node.js environments, specifically including @tsconfig/node10, @tsconfig/node12, @tsconfig/node14, and @tsconfig/node16, offering better compatibility with evolving JavaScript and TypeScript ecosystems. A major change pertains to peer dependencies, meaning that v10.0.0 necessitates including @swc/core and @swc/wasm if these are used, which v9.1.1 did not explicitly do.
The devDependencies have also been significantly upgraded. The testing framework has transitioned from mocha to ava, plus nyc remains for coverage, indicating a shift in testing strategy. Additional tooling like typedoc, prettier, @swc/core, @swc/wasm, @yarnpkg/fslib and @microsoft/api-extractor have been introduced, showcasing a strengthened emphasis on documentation, code formatting, fast compilation using swc and API extraction. Most of the @types/* dev dependencies are bumped to higher versions reflecting more up-to-date support for the new dependencies. A notable addition is the inclusion of @types/proxyquire, suggesting improved testing and mocking capabilities. The typescript version is bumped from 4.1.2 to 4.2.2 in devDependencies.
These upgrades make v10.0.0 a more modern and robust choice for developers seeking wider compatibility, improved testing, and enhanced development tooling within their TypeScript projects. The increased file count and reduced unpacked size also hint at internal optimizations.
The are not vulnerabilities for the version 10.0.0 of the package ts-node