Packages

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…

Other targets from 3.1.3Latest28.0.0
  1. 3.1.3yours
  2. 4.0.0target

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

  1. 4.0.0

    Migration needed3 Sep 20196 new · 2 fixes
    • Breaking

      DiagnosticMessageChain#getNext() now returns an array to match TS 3.6.

    • Breaking

      SourceFile#getReferencedFiles() is now getPathReferenceDirectives().

    • Breaking

      CodeBlockWriter#indentBlock is now indent. withHangingIndentation is now hangingIndent. withHangingIndentationUnlessBlock is now hangingIndentUnlessBlock.

    • Breaking

      DirectoryEmitResult#getEmitSkipped() was removed. Check the output file paths and skipped file paths instead as that's more accurate.

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.