Packages

ts-morph

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

Upgrading ts-morph From 2.3.0 to 3.0.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 2.3.0Latest28.0.0
  1. 2.3.0yours
  2. 3.0.0target

Before you upgrade

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

Release by release

  1. 3.0.0

    Migration needed29 Jun 201918 new · 7 fixes
    • Breaking

      renameNode and renameLocations are removed from the language service. To be consistent, the language service should not have methods that manipulate nodes.

    • Breaking

      SourceFile#getTypeReferenceDirectives() and #getReferencedFiles() now return the objects similar to what the compiler api returns.

    • Breaking

      Node#forEachChild is now aligned with the compiler API (same with forEachDescendant). These methods now stop when a value is returned in a callback and they will return the returned value.

    • Breaking

      The ObjectLiteralElementMemberStructures alias is now called ObjectLiteralExpressionPropertyStructures. This is a more correct name as an object literal expression has "properties" rather than "members" in the compiler api.

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