Packages

ts-node

10.9.2 · 8 Dec 2023MIT60.2M / weekRepositoryHomepagenpmAtom feed

Your version

9.0.0

major21 Aug 2020Where it was published

9.1.1 is the newest release of 9.x.

In short

3 breaking2 new7 fixed5 changed

  • breaking

    Breaking changes are labelled [BREAKING] below.

  • breaking

    Drops support for node versions < 10

  • breaking

    Re-add realpath, which should fix workflows that use symlinks, such as pnpm, Lerna workspaces, or other mono-repo configurations

Release note

Breaking changes are labelled [BREAKING] below.

Added

  • Throw ERR_REQUIRE_ESM when a file is require()d which should be loaded as ESM

  • Re-add "exports" declaration to package.json in backwards-compatible way, enabling node --loader ts-node/esm without file extension

  • Allow specifying "require" option via tsconfig

  • REPL respects node's NODE_NO_READLINE environment variable

  • Add a transpile-only entrypoint for ESM loader: node --loader ts-node/esm/transpile-only

Changed

  • breaking

    Drops support for node versions < 10

Fixed

  • breaking

    Re-add realpath, which should fix workflows that use symlinks, such as pnpm, Lerna workspaces, or other mono-repo configurations

  • Compile files within node_modules when --skip-ignore or --ignore options are configured to allow it

  • Fix #884 by not adding all referenced files to getSourceFileNames/rootNames

  • Fix #996: bump projectVersion every time getSourceFileNames changes, avoiding accidentally outdated typechecking

  • Fix #1051: pass transformers object to ts.transpileModule

  • Fix #1060: use source maps for stack traces in ESM modules

  • Fix #1072: Respect --experimental-specifier-resolution coming from NODE_OPTIONS in ESM loader

  • Fix #1098: ESM loader should skip .cjs, .mjs, and any unexpected file extensions

Docs

  • Better explain how to compile imports, either CommonJS or using experimental ESM loader. Resolves #1075

Misc

v8.10.2...v9.0.0