ts-node
10.9.2 · 8 Dec 2023MIT60.2M / weekRepositoryHomepagenpmAtom feed
Upgrading ts-node From 8.10.2 to 9.0.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 3
- changes to make
- 0
- advisories fixed
- 2
- new
- 7
- fixes
Before you upgrade
Tick each one off as you go- breaking9.0.0
- breaking9.0.0
- breaking9.0.0
Release by release
- 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 aspnpm, Lerna workspaces, or other mono-repo configurations - new
Allow specifying
"require"option via tsconfig
- breaking
5 other lines we could not sort, mostly version bumps
- 9.0.0
Throw
ERR_REQUIRE_ESMwhen a file isrequire()d which should be loaded as ESM - 9.0.0
Re-add
"exports"declaration to package.json in backwards-compatible way, enablingnode --loader ts-node/esmwithout file extension - 9.0.0
REPL respects node's
NODE_NO_READLINEenvironment variable - 9.0.0
Compile files within
node_moduleswhen--skip-ignoreor--ignoreoptions are configured to allow it - 9.0.0
Better explain how to compile imports, either CommonJS or using experimental ESM loader. Resolves #1075