Packages

ts-morph

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

Upgrading ts-morph From 5.0.0 to 6.0.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 5.0.0Latest28.0.0
  1. 5.0.0yours
  2. 6.0.0target

Before you upgrade

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

Release by release

  1. 6.0.0

    Migration needed7 Dec 201921 new · 3 fixes
    • Breaking

      JSDoc#setComment(...) and #getComment(...) are now setDescription(...) and getDescription(). They also work according to #764.

    • Breaking

      StructureTypeGuards is now Structure.

    • Breaking

      PropertyDeclarationDeclaration and PropertyDeclarationStructure now can have a declare keyword (new in TS 3.7).

    • Breaking

      JS docs will be written as a single line unless multi-line or starting with a newline. Additionally, getting a JS doc structure will have a newline at the start if the JS doc description is one line, but the JS doc is multi-line.

2 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.