Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
~8.4.1
->~10.5.0
Release Notes
TypeStrong/ts-node
v10.5.0
Compare Source
Questions about this release? Ask in the official discussion thread: #1634
Added
transpileOnly
-style transformation.isolatedModules
. This will only affect rare cases such as usingconst enums
withpreserveConstEnums
disabled.swc: true
convenience option (docs) (#1487, #1536, #1613, #1627)"swc": true
or--swc
will use swc for faster execution@swc/core
or@swc/wasm
dependencies from your project before falling-back to global installations (#1613, #1627)traceResolution
output (docs) (#1128, #1491) @TheUnlockedts-node -vvv
also logs absolute paths tots-node
andtypescript
, to make it more obvious when you're accidentally using globally-installed versions (#1323, #1620)Changed
v8-compile-cache-lib
to load typescript--camelCase
and--hyphen-case
for all CLI flags; update documentation to use--camelCase
(#1598, #1599)TSError
diagnosticText
property non-enumerable to prevent it from being logged below the stack (#1632)Fixed
undefined
for all inputs after the first when using swc transpiler (#1478, #1580, #1602)--showConfig
output, emit accuratemoduleTypes
paths resolved relative to thetsconfig.json
which declared them (#1389, #1619)ts-node --help
output (#1597, #1600)tsconfig.schemastore-schema.json
(#1425, #1618)"use strict"
emit in SWC transpiler (#1531, #1537)ERR_UNKNOWN_FILE_EXTENSION
constructor; was throwingERR_UNKNOWN_FILE_EXTENSION is not a constructor
(#1562) @blueloversDocs
env -S
flag for shebangs (docs) (#1448, #1545) @sheeit, @cheeskipIgnore
when you want to compile files in node_modules (docs) (#1553) @webstrandmoduleTypes
on options page (docs) (#1630, #1633)Misc
experimentalResolverFeatures
option, but it does not do anything yet (#1514, #1614)https://github.com/TypeStrong/ts-node/milestone/4
v10.4.0
Compare Source
Added
Changed
creatEsmHooks
(API docs) (#1506, #1529)Fixed
https://github.com/TypeStrong/ts-node/milestone/8
v10.3.1
Compare Source
Fixed
https://github.com/TypeStrong/ts-node/milestone/7
v10.3.0
Compare Source
Questions about this release? Ask in the official discussion thread: #1507
Added
util.promisify(setTimeout)(1000)
orfs.readFileSync('example.txt')
createEsmHooks()
function to create ESM loader hooks (API docs) (#1439) @nonararegister()
accepts a ts-nodeService
(API docs) (#1474)register(options)
is still supported; no breaking changes--emit
to--help
output (#1400, #1484) @markbradley27Changed
require('source-map-support')
, they will be redirected to@cspotcode/source-map-support
Fixed
source-map-support
instead of@cspotcode/source-map-support
(#1440, #1441, #1438, #1495, cspotcode/node-source-map-support#23, #1496, #1497) @ejose19require('source-map-support')
, they will be redirected to@cspotcode/source-map-support
@cspotcode/source-map-support
for the fixes and enhancements listed here:@cspotcode/source-map-support
changelog100
on first line and* 2
on second line would erronously be interpreted as100 * 2
allowJs
(#1488, #1489)TS_NODE_IGNORE
andTS_NODE_IGNORE_DIAGNOSTICS
; treat empty environment variable as empty array (#1301, #1483) @ValeriaVGTS_NODE_IGNORE= ts-node ./example.ts
will disable default ignore rules; will compile files in./node_modules
Docs
https://github.com/TypeStrong/ts-node/milestone/5
v10.2.1
Compare Source
Fixed
https://github.com/TypeStrong/ts-node/milestone/6
v10.2.0
Compare Source
Questions about this release? Ask in the official discussion thread: #1423
Added
--no-experimental-repl-await
,experimentalReplAwait
, orTS_NODE_EXPERIMENTAL_REPL_AWAIT
(CLI docs, API docs)"pretty": false
disables pretty formatting of diagnostics even when stdout is a TTY (#1418, #1420) @elevatebartpretty
option, not to be confused with TypeScript'spretty
optionconst foo = 1
in the REPL,foo
is unused. We ignore the resulting diagnosticfoo is declared but its value is never read
Fixed
--loader
async
annotations (#1405, #1410)require.resolve
error when@types/node
peerDependency is missing (#1419, #1422)https://github.com/TypeStrong/ts-node/milestone/2
v10.1.0
Compare Source
Questions about this release? Ask in the official discussion thread: #1390
Added
"moduleType"
option to override module type -- CommonJS or ECMAScript -- on select files. (docs) (#1342, #1371, #1376)webpack.config.ts
, must execute as CommonJS but the rest of the project is ESMpackage.json
"type"
andtsconfig.json
"module"
.cjs
and.mjs
extensions, but for.ts
and.tsx
files"extends"
support for"ts-node"
options intsconfig.json
(#1328, #1356)"ts-node": {}
options will be parsed from extended tsconfigsscope
andscopeDir
; add both to CLI andtsconfig.json
options; un-deprecateTS_NODE_SCOPE
env var; addTS_NODE_SCOPE_DIR
env var (docs) (#1346, #1367)Changed
"ts-node"
object at the top of--showConfig
output instead of the bottom (#1355)Fixed
[stdin]
,[eval]
, and<repl>
contexts (#1333)ts-node -e
__filename
,__dirname
,module
and sub-fields ofmodule
,exports
, and builtin module aliasesfs
, etckeepClassNames
totrue
(#1344)Docs
node --loader ts-node/esm
(docs) (#1379)https://github.com/TypeStrong/ts-node/milestone/3
v10.0.0
Compare Source
Questions about this release? Ask in the official discussion thread: #1337
Breaking changes are prefixed with [BREAKING]
Added
--show-config
to log the resolved configuration (docs) (#1100, #1243)swc
integration and new--transpiler
option to use third-party transpilers for a massive speed boost on large codebases (docs) (#779, #1160)scopeDir
API option (docs) (#1155)projectSearchDir
API option (docs) (#1155)--cwd-mode
andts-node-cwd
to resolve config file relative to cwd, not entrypoint script (#1155)Changed
--script-mode
default behavior; resolve tsconfig relative to entrypoint script instead of cwd (#949, #1197, #1155)$PATH
, becausets-node
will respect the script's localtsconfig.json
--cwd-mode
orts-node-cwd
if you need legacy behaviorignore
rules evaluate relative totsconfig.json
directory, otherwisecwd
(#1155)--dir
to--cwd
; renameTS_NODE_DIR
toTS_NODE_CWD
(#1155)--dir
andTS_NODE_DIR
are deprecated but still parsed for backwards-compatibility--dir
effectively changed the working directory ofts-node
; renaming makes this behavior more obviousDeprecated
TS_NODE_SCOPE
(#1155)--dir
andTS_NODE_DIR
(#1155)Removed
DEFAULTS
,normalizeSlashes
,parse
,split
ts-node
's programmatic APIFixed
ERR_REQUIRE_ESM
when attempting to execute ESM as CJS, even when not using--loader ts-node/esm
(#1232)node
compiler
is loaded relative totsconfig.json
instead of entrypoint script (#1155)ts-node ./index
may execute the wrong file extension because tsconfig search poisons therequire.resolve
cache (#1155)Docs
CONTRIBUTING.md
to document the codebase and our development workflowhttps://github.com/TypeStrong/ts-node/milestone/1
v9.1.1
Compare Source
No code changes. We re-packed and republished v9.1.1, because the v9.1.0 package was broken due to an npm v7 bug.
Fixes
v9.1.0
Compare Source
Added
--typeCheck
flag to override--transpileOnly
flag specified intsconfig.json
(#1142)Changed
Register
toService
. It is still aliased asRegister
for backwards compatibility (#1158)Fixed
--es-module-specifier-resolution
as an alias of--experimental-specifier-resolution
for node 12 compatibility (#1122) @nguyensomniacDocs
ts-node-dev
in README (#1131) @iamandrewlucatransformers
description to clarify incompatibility withtranspileOnly
(#1123)Misc
v9.0.0
Compare Source
Breaking changes are labelled [BREAKING] below.
Added
ERR_REQUIRE_ESM
when a file isrequire()
d which should be loaded as ESM (#1031)"exports"
declaration to package.json in backwards-compatible way, enablingnode --loader ts-node/esm
without file extension (#1028)"require"
option via tsconfig (#925)NODE_NO_READLINE
environment variable (#1090)node --loader ts-node/esm/transpile-only
(#1102) @concisionChanged
Fixed
realpath
, which should fix workflows that use symlinks, such aspnpm
, Lerna workspaces, or other mono-repo configurations (#970)node_modules
when--skip-ignore
or--ignore
options are configured to allow it (#970)getSourceFileNames
/rootNames
(#999)projectVersion
every timegetSourceFileNames
changes, avoiding accidentally outdated typechecking (#998)ts.transpileModule
(#1054) @thetutlage--experimental-specifier-resolution
coming fromNODE_OPTIONS
in ESM loader (#1085) @evg656e.cjs
,.mjs
, and any unexpected file extensions (#1103) @concisionDocs
Misc
v8.10.2
Compare Source
Fixed
Fixes #1037: source maps broken on Windows. (#1038)
Misc
Fix failing tests on node 6 (#1035)
Push coverage from Github Actions; remove TravisCI (#1034)
Run tests e2e against an
npm pack && npm install
ed ts-node (#1032)Run CI tests on Windows (#1041)
Run CI only once per commit on pull requests and master (#1042)
v8.10.1
Compare Source
Fix
Fixes #1026: revert the addition of package.json "exports" because it blocked
require()
s that used to work, for examplerequire('ts-node/register')
(#1027)v8.10.0
Compare Source
Added
Experimental support for native ECMAScript modules in node >=13 (#1007, #1010)
v8.9.1
Compare Source
Fixed
Fix
--interactive
/-i
flag so it forces REPL even when stdin is not a TTY (#1019)v8.9.0
Compare Source
Fixed
Fix failing tests caused by recent changes to @types/node (#1016)
Fix #945: Bump source-map-support dependency to include upstream fix for worker threads error handling (#1015) @addaleax
Fix #1004: in
--scriptMode
, resolve config file relative to realpath of entrypoint script (#1009)Normalized filenames in cache to fix performance issues on Windows (#997) @sylc
Added
Add timestamps to debug logging (#994) @sylc
Docs
Improve coverage of the README (#1000) @KasparEtter
Change order of install commands in README (#993) @jacobdcastro
Mention
ts-node -vv
flag in issue template (#1001)Run GHActions tests on pull requests (#1017)
v8.8.2
Compare Source
Fixed
rootFileNames
with versionv8.8.1
Compare Source
Fixed
--files
supportbe2c899
v8.8.0
Compare Source
Added
sanitize=true
to README for SVGs to work on NPMFixed
projectVersion++
by incrementing on each file changegetScriptFileNames
(#985) - revisits the change in 8.2.0 regression TypeStrong/ts-node#884v8.7.0
Compare Source
Fixed
ts.sys.readDirectory
(#969)-
(#944)Added
LanguageServiceHost::getProjectVersion
to workaround microsoft/TypeScript#36748 (#906ts-node-transpile-only
binary (#939) @G-RathChanged
ts-script
in favor ofts-node-script
(#948) @G-RathDocs
v8.6.2
Compare Source
Fixed
yn
due to node engine (#942)v8.6.1
Compare Source
Fixed
TS_NODE_COMPILER_OPTIONS
- closes v8.6.0 breaks TS_NODE_COMPILER_OPTIONS environment variable TypeStrong/ts-node#938v8.6.0
Compare Source
Fixed
Added
tsconfig.json
(#921) @cspotcode 🎉dir
to be configurable--build
flag for emitting compiled TypeScript (under--compiler-host
mode)v8.5.4
Compare Source
node_modules
ignore266eaa5
v8.5.3
Compare Source
Fixed
907e3e1
--ignore
relativeea6e1da
v8.5.2
Compare Source
Fixed
--require
module loading changev8.5.0
Compare Source
Added
ts-script
for relativetsconfig.json
files from<script.ts>
--interactive
CLI optionts-node
instance information onprocess
enable
of registeredts-node
instances--dir
to be configurable from CLI--scope
flag for directory scoped compilation of TypeScriptcreate
function for programmatic compiler usageFixed
Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.