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…
- 13
- changes to make
- 0
- advisories fixed
- 21
- new
- 3
- fixes
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
- Breaking
JSDoc#setComment(...)and#getComment(...)are nowsetDescription(...)andgetDescription(). They also work according to #764. - Breaking
StructureTypeGuardsis nowStructure. - Breaking
PropertyDeclarationDeclaration and PropertyDeclarationStructure now can have a
declarekeyword (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.
- Breaking
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.