Packages

ts-morph

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

Upgrading ts-morph From 21.0.1 to 22.0.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 21.0.1Latest28.0.0
  1. 21.0.1yours
  2. 22.0.0target
2
changes to make
0
advisories fixed
3
new
1
fix

Before you upgrade

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

Release by release

  1. 22.0.0

    Migration needed10 Mar 20243 new · 1 fix
    • Breaking

      BREAKING: Upgrade to TypeScript 5.4

    • Breaking

      BREAKING: Node.prototype.forgetDescendants() no longer returns self

    • New

      Type.prototype.isAssignableTo

    • New

      TypeChecker.prototype.resolveName

    • New

      ClassDeclarationStructure - support static blocks

    • Fixed

      MethodDeclarationStructure should write an asterisk isGenerator = true

2 other lines we could not sort, mostly version bumps
  • .quote() - should include newline on newline (#47)

    22.0.0
  • .quote() - escape characters were not always being escaped (#46)

    22.0.0

1 internal line (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.