ts-morph
28.0.0 · 12 Apr 2026MIT46.3M / weekRepositoryHomepagenpmAtom feed
Upgrading ts-morph From 9.1.0 to 10.0.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 5
- changes to make
- 0
- advisories fixed
- 6
- new
- 2
- fixes
Before you upgrade
Tick each one off as you go- Breaking10.0.0
- Breaking10.0.0
- Breaking10.0.0
- Breaking10.0.0
- Breaking10.0.0
Release by release
- Breaking
Upgraded to TS 4.2 (see TypeScript blog for breaking changes).
- Breaking
ts-morph did not properly support some ambient and all shorthand ambient module declarations. Now
NamespaceDeclarationisModuleDeclaration. You will need to rename anything that references "Namespace" and change it to "Module". - Breaking
The
ExportedDeclarationsunion type now properly includesSourceFile. It previously could have done that anyway and your code might not have handled it. - Breaking
TypeScript is now bundled with ts-morph. You may still access TypeScript via
import { ts } from "ts-morph"as you should have been doing anyway.
- Breaking
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.