Packages

ts-morph

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

Upgrading ts-morph From 9.1.0 to 10.0.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 9.1.0Latest28.0.0
  1. 9.1.0yours
  2. 10.0.0target

Before you upgrade

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

Release by release

  1. 10.0.0

    Migration needed24 Feb 20216 new · 2 fixes
    • Breaking

      Upgraded to TS 4.2 (see TypeScript blog for breaking changes).

    • Breaking

      ts-morph did not properly support some ambient and all shorthand ambient module declarations. Now NamespaceDeclaration is ModuleDeclaration. You will need to rename anything that references "Namespace" and change it to "Module".

    • Breaking

      The ExportedDeclarations union type now properly includes SourceFile. It previously could have done that anyway and your code might not have handled it.

    • Breaking

      TypeScript is now bundled with ts-morph. You may still access TypeScript via import { ts } from "ts-morph" as you should have been doing anyway.

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.