ts-morph
28.0.0 · 12 Apr 2026MIT46.3M / weekRepositoryHomepagenpmAtom feed
13.0.3 is the newest release of 13.x.
In short
5 breaking1 removed7 new1 fixed1 internal
- Breaking
Node.isXNode(node)-like static type guard methods are nowNode.isX(node)to reduce verbosity. - Breaking
Targeting ES2018 instead of ES2015
- Breaking
Upgraded to TS 4.5
- Breaking
Removed already deprecated
WriterFunctionsandTypeGuardsexports. UseWritersandNodeinstead. - Breaking
readDirSyncnow returns directory entries. - Removed
Remove already deprecated
WriterFunctionsandTypeGuardsexports.
Release note
Bug Fixes
Code Refactoring
- Removed
Remove already deprecated
WriterFunctionsandTypeGuardsexports.
Features
Add
AssertClauseandAssertEntryAdd
Node.hasStructuretype guard.Change
readDirSyncto return directory entries instead of file pathsMake
Structure.isXfunction more flexible (a54dd69), closes #1219Type only methods for
ImportSpecifierandExportSpecifierTypeScript 4.5 support
Wrap more JS doc nodes
Breaking changes
- Breaking
Node.isXNode(node)-like static type guard methods are nowNode.isX(node)to reduce verbosity. - Breaking
Targeting ES2018 instead of ES2015
- Breaking
Upgraded to TS 4.5
- Breaking
Removed already deprecated
WriterFunctionsandTypeGuardsexports. UseWritersandNodeinstead. - Breaking
readDirSyncnow returns directory entries.
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.