Packages

ts-morph

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

Your version

22.0.0

major10 Mar 2024Where it was published

In short

2 breaking3 new1 fixed2 changed1 internal

  • Breaking

    BREAKING: Upgrade to TypeScript 5.4

  • Breaking

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

Release note

What's Changed

  • Breaking

    BREAKING: Upgrade to TypeScript 5.4

  • Breaking

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

  • Type.prototype.isAssignableTo

  • TypeChecker.prototype.resolveName

  • MethodDeclarationStructure should write an asterisk isGenerator = true

  • ClassDeclarationStructure - support static blocks

CodeBlockWriter 13.0.1

People may have been working around these bugs in the past:

  • .quote() - should include newline on newline (#47)

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

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.