Packages

ts-morph

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

Upgrading ts-morph From 20.0.0 to 21.0.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 20.0.0Latest28.0.0
  1. 20.0.0yours
  2. 21.0.0target
3
changes to make
0
advisories fixed
5
new
0
fixes

Before you upgrade

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

Release by release

  1. 21.0.0

    Migration needed2 Dec 20235 new
    • Breaking

      Upgraded to TS 5.3

    • Breaking

      Underlying @ts-morph/common file system methods return undefined instead of throwing when not exists (for perf).

    • Breaking

      Private fields are actually private (default build requires private fields).

    • New

      ProjectOptions::defaultCompilerOptions

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.