ts-node
10.9.2 · 8 Dec 2023MIT60.2M / weekRepositoryHomepagenpmAtom feed
Upgrading ts-node From 10.7.0 to 10.9.2
6 releases in betweenevery note read
Reading releases, release notes and advisories…
Release by release
10.9.1nothing new or fixed in the note
- new
Added helpful error message when swc version is too old to support our configuration
- new
Added
experimentalTsImportSpecifiersoption which allows using voluntary.tsfile extensions in import specifiers (undocumented except for API docs) - fixed
Fixed bug where
child_process.fork()would erroneously execute the parent's entrypoint script, not the intended child script (#1812, #1814) - fixed
Fixed support for jsx modes
"react-jsx"and"react-jsxdev"in swc transpiler (#1800, #1802) - fixed
Fixed bug where calling
repl.evalCode()with code not ending in a newline would not update the typechecker accordingly (#1764, #1824)
- new
- new
Allow JSON imports in node 16.15 and up
- new
- fixed
Fixed #1769: source URLs in source map cache were malformed on Windows, affecting code coverage reports (#1769, #1771)
- fixed
Fixed #1778: typechecker was erronously resolving imports from ESM files as if they were from CJS files (#1778, #1782)
- fixed
- new
Added support for
module=NodeNext,module=Node16,.mts,.cts,.mjs, and.cjsfile extensions (#1414, #1694, #1744, #1745, #1727, #1717, #1753, #1757) - new
Adds
diagnosticsproperty toTSError, with array of TypeScript diagnostic objects from the compiler (API docs) (#1705, #1706) - new
Performance: Optimize filesystem stat calls in ESM loader and new CommonJS resolver (#1758, #1759)
- new
Add common ESM errors to Troubleshooting page
- new
12 other lines we could not sort, mostly version bumps
- 10.9.1
Workaround nodejs bug introduced in 18.6.0
- 10.9.0
--projectaccepts path to a directory containing atsconfig.json(#1829, #1830) - 10.8.2
Revert "Use file URL for source map paths"
- 10.8.0
Renames option
experimentalResolverFeaturestoexperimentalResolver(docs) - 10.8.0
Internal change to ESM loader for compatibility with forthcoming node versions: returns
shortCircuit: true(#1714, #1715) - 10.8.0
Performance, maintenance: Upgrade source-mapper dependency "@cspotcode/source-map-support"
- 10.8.0
Correctly suppress "Custom ESM Loaders" warning on newer node versions where the warning's prose changed
- 10.8.0
REPL treats unparenthesized object literals as objects, instead of as block scopes (#1697, #1699)
- 10.8.0
Many docs improvements
- 10.8.0
Options page: each option its own linkable header w/usage example