ts-morph
28.0.0 · 12 Apr 2026MIT46.3M / weekRepositoryHomepagenpmAtom feed
Upgrading ts-morph From 4.1.1 to 4.3.3
5 releases in betweennotes for 4
Reading releases, release notes and advisories…
Release by release
- Fixed
Restrict 4.3 version of library to TS < 3.7
- Fixed
- Fixed
Inserting a member when a comment was the last member would throw.
- Fixed
4.3.1no release note
- New
Add
Node#getWidth(true)for including js docs in the width (similar toNode#getStart(true)in the compiler api). - Fixed
An unwrappable node would throw an error on unwrap if it had a leading comment.
- New
- New
ExpressionNode - Add
getExpressionIfKindmethods. - New
Add
useTrailingCommasmanipulation setting option. - New
Add getParentIf and getParentIfOrThrow (9e037b6) (@HoldYourWaffle)
- New
Update
forgetNodesCreatedInBlockto allow returning a value.
- New
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.