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…
- 5
- changes to make
- 0
- advisories fixed
- 18
- new
- 7
- fixes
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
- Breaking
renameNodeandrenameLocationsare 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#forEachChildis now aligned with the compiler API (same withforEachDescendant). These methods now stop when a value is returned in a callback and they will return the returned value. - Breaking
The
ObjectLiteralElementMemberStructuresalias is now calledObjectLiteralExpressionPropertyStructures. This is a more correct name as an object literal expression has "properties" rather than "members" in the compiler api.
- Breaking
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.