ts-morph
28.0.0 · 12 Apr 2026MIT46.3M / weekRepositoryHomepagenpmAtom feed
Upgrading ts-morph From 4.1.0 to 4.3.3
6 releases in betweennotes for 5
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
- Fixed
getNonWhitespaceStart()should not include the previous node's trailing comment. - Fixed
Removing an IfStatement with a preceding else keyword will no longer error.
- Fixed
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.