-
-
Notifications
You must be signed in to change notification settings - Fork 543
Description
I'll release in the morning. Diff of changes in this release:
v8.10.2...master
The tag for 8.10.2 (here) is not in master's history. I can't remember exactly why; I think I made a mistake with 8.10.2 or I thought it would be the start of an 8.x branch of non-breaking changes, distinct from master. The parent commit, v8.10.2~1 is on master, so the diff above is effectively starting there.
Tasks
- publish to npm
- add release notes to GH Release
- send updated schema to schemastore
- reply on affected tickets that 9.0 is out, if it looks like someone commented recently
v9.0.0
*Breaking changes are labelled [BREAKING] below.
Added
- Throw
ERR_REQUIRE_ESM
when a file isrequire()
d which should be loaded as ESM (Implement ERR_REQUIRE_ESM when a file isrequire()
d which should be loaded as ESM #1031) - Re-add
"exports"
declaration to package.json in backwards-compatible way, enablingnode --loader ts-node/esm
without file extension (Re-add "exports" declaration to package.json in backwards-compatible way #1028) - Allow specifying
"require"
option via tsconfig (Allow specifying "require" option via tsconfig #925) - REPL respects node's
NODE_NO_READLINE
environment variable (NODE_NO_READLINE support #1090) - Add a transpile-only entrypoint for ESM loader:
node --loader ts-node/esm/transpile-only
(Added a transpile-only ESM loader (#1101) #1102) @concision
Changed
- [BREAKING] Drops support for node versions < 10 ([BREAKING] Bump minimum supported node version to 10 #1036)
Fixed
- [BREAKING] Re-add
realpath
, which should fix workflows that use symlinks, such aspnpm
, Lerna workspaces, or other mono-repo configurations (OverrideisExternalLibraryImport
as needed; re-addrealpath
#970) - Compile files within
node_modules
when--skip-ignore
or--ignore
options are configured to allow it (OverrideisExternalLibraryImport
as needed; re-addrealpath
#970) - Fix 8.2.0 regression #884 by not adding all referenced files to
getSourceFileNames
/rootNames
(Make #884 regression test repro correctly; also fix the bug #999) - Fix projectVersion not bumped when rootFileNames changes #996: bump
projectVersion
every timegetSourceFileNames
changes, avoiding accidentally outdated typechecking (Fix #996: bump projectVersion every time getSourceFileNames changes #998) - Fix Transformers with transpileOnly #1051: pass transformers object to
ts.transpileModule
(fix: pass transformers object to ts.transpileModule method (Fixes #1051) #1054) @thetutlage - Fix Handle file:/// URLs in source-map-support cache lookup #1060: use source maps for stack traces in ESM modules (Fix #1060 #1087)
- Fix ESM support: can't recognize '--experimental-specifier-resolution' flag passed via NODE_OPTIONS #1072: Respect
--experimental-specifier-resolution
coming fromNODE_OPTIONS
in ESM loader (Fix #1072 #1085) @evg656e - Fix
ignored()
bug: ESM loader will try to compile .cjs, .mjs, and other unexpected file extensions #1098: ESM loader should skip.cjs
,.mjs
, and any unexpected file extensions (Fix #1098:ignored()
bug: ESM loader will try to compile .cjs, .mjs… #1103) @concision
Docs
- Better explain how to compile imports, either CommonJS or using experimental ESM loader. Resolves Update "import" docs to link to experimental ESM support. #1075 (fix #1075 #1086)
Misc
- Fix, re-enable, and add various tests (fix test being erroneously skipped #1044, enable test for react tsx sourcemaps #1088, fix broken tests #1108, Remove duplicated test #1110, Add test coverage #1109, add test for REPL .type command #1115, Fix code coverage so it maps to TS sources #1043, Make #884 regression test repro correctly; also fix the bug #999)
will not include these in the changelog
Project Infrastructure
Update .gitignore (#1045) #1045
Fix coverage reporting when tests fail; also push to codecov (#1047) #1047
ignore vscode config files (#1084) #1084
Add helpful links to "Create issue" page, directing people to Discord, StackOverflow, etc (#1097) #1097
Add mocharc file (#1105) #1105
Add script for adding missing compilerOptions to tsconfig schema (#1107) #1107
Fix coverage and testing badges (#1095) #1095
[OMIT?] move getOutputTranspileOnly back where it used to be (#1056) #1056
Bump lodash from 4.17.15 to 4.17.19 (#1077) #1077
bump to typescript 4.0.2 (#1117) #1117