ts-morph
28.0.0 · 12 Apr 2026MIT46.3M / weekRepositoryHomepagenpmAtom feed
4.3.3 is the newest release of 4.x.
In short
6 new1 faster2 fixed
Release note
The section about ts-morph of a note shared by several packages.
Bug Fixes
Fix abstract keyword accidentally being printed before scope.
Fix message for Type#getDefaultOrThrow()
Features
ExpressionNode - Add
getExpressionIfKindmethods.Add
useTrailingCommasmanipulation setting option.Add getParentIf and getParentIfOrThrow (9e037b6) (@HoldYourWaffle)
Update
forgetNodesCreatedInBlockto allow returning a value.Wrap TypePredicateNode.
Add
Node#forEachDescendantAsArray
Performance Improvements
insertOverloads should only print.
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.