Packages

ts-morph

28.0.0 · 12 Apr 2026MIT46.3M / weekRepositoryHomepagenpmAtom feed

Upgrading ts-morph From 4.3.3 to 5.0.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 4.3.3Latest28.0.0
  1. 4.3.3yours
  2. 5.0.0target
3
changes to make
0
advisories fixed
4
new
0
fixes

Before you upgrade

Tick each one off as you go
  • Breaking5.0.0
  • Breaking5.0.0
  • Breaking5.0.0

Release by release

  1. 5.0.0

    Migration needed8 Nov 20194 new
    • Breaking

      TypePredicateNode#getTypeNode() now possible returns undefined.

    • Breaking

      Recommended to use the new Project#addSourceFileAtPath(path) methods instead of the ones like Project#addExistingSourceFile(path). The old way will be deprecated in Version 6.

    • Breaking

      TypeScript 3.7.x support only.

    • New

      Soft rename addExistingSourceFile-like methods to addSourceFileAtPath-like.

    • New

      Support TypeScript 3.7.

    • New

      TS 3.7 - Add TypeChecker#getTypeArguments and use that in Type#getTypeArguments.

    • New

      Update implementation for #733.

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.