ts-morph
28.0.0 · 12 Apr 2026MIT46.3M / weekRepositoryHomepagenpmAtom feed
Upgrading ts-morph From 3.1.3 to 4.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- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
Release by release
- Breaking
DiagnosticMessageChain#getNext()now returns an array to match TS 3.6. - Breaking
SourceFile#getReferencedFiles()is nowgetPathReferenceDirectives(). - Breaking
CodeBlockWriter#indentBlockis nowindent.withHangingIndentationis nowhangingIndent.withHangingIndentationUnlessBlockis nowhangingIndentUnlessBlock. - Breaking
DirectoryEmitResult#getEmitSkipped()was removed. Check the output file paths and skipped file paths instead as that's more accurate.
- Breaking
4 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.