ts-morph
28.0.0 · 12 Apr 2026MIT46.3M / weekRepositoryHomepagenpmAtom feed
Upgrading ts-morph From 21.0.1 to 28.0.0
9 releases in betweenevery note read
Reading releases, release notes and advisories…
- 4
- changes to make
- 0
- advisories fixed
- 18
- new
- 15
- fixes
Before you upgrade
Tick each one off as you go- Breaking28.0.0
- Breaking28.0.0
- Breaking22.0.0
- Breaking22.0.0
Release by release
- Breaking
BREAKING: TypeScript 6.0
- Breaking
Note there are some breaking changes due to TypeScript 6.0.
- New
Standalone
printStructurefunction - Fixed
InvalidOperationErrorinaddTypeArgument
- Breaking
- Fixed
Fixes the npm publish in order to get the fixes in from 27.0.1
- Fixed
- New
Switch to tinyglobby
- New
TypeChecker- addgetAwaitedType - New
TypeScript 5.9
- New
Wrap OptionalTypeNode
- New
- Fixed
Update browser field to include fs/promises
- Fixed
- New
TypeScript 5.7.2 #1594
- Fixed
Switch back to fast-glob for stability #1595
- Fixed
Properly insert async keyword in arrow function #1597
- Fixed
Throw descriptive error when inserting variable statement with no declarations #1598
- Fixed
Removing last named import/export should not remove or change declaration #1599
- New
- New
Remove mkdirp dependency
- New
Switch to tinyglobby to drop 15 dependencies
- New
TypeScript 5.6
- Fixed
getDerivedClasses() isn't correct in some cases
- Fixed
getBodyText() doesn't work as would be expected
- New
- New
Ts 5.5
- New
Type.prototype.isBigInt and isBigIntLiteral
- Fixed
Handle removeDefaultImport with type only import
- New
2 other lines we could not sort, mostly version bumps
3 internal lines (docs, tests, tooling) left out.
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.