Packages

ts-morph

28.0.0 · 12 Apr 2026MIT46.3M / weekRepositoryHomepagenpmAtom feed

Upgrading ts-morph From 4.0.1 to 4.3.3

7 releases in betweennotes for 6

Reading releases, release notes and advisories…

Other targets from 4.0.1Latest28.0.0
?
changes to make
0
advisories fixed
10+
new
7+
fixes

Counted from 6 of 7 release notes. Advisories are counted from the advisory database, in full.

Release by release

  1. 4.3.3

    7 Nov 20191 fix
    • Fixed

      Restrict 4.3 version of library to TS < 3.7

  2. 4.3.2

    22 Oct 20191 fix
    • Fixed

      Inserting a member when a comment was the last member would throw.

  3. 4.3.1no release note

  4. 4.3.0

    17 Oct 20191 new · 1 fix
    • New

      Add Node#getWidth(true) for including js docs in the width (similar to Node#getStart(true) in the compiler api).

    • Fixed

      An unwrappable node would throw an error on unwrap if it had a leading comment.

  5. 4.2.0

    5 Oct 20197 new · 2 fixes
    • New

      ExpressionNode - Add getExpressionIfKind methods.

    • New

      Add useTrailingCommas manipulation setting option.

    • New

      Add getParentIf and getParentIfOrThrow (9e037b6) (@HoldYourWaffle)

    • New

      Update forgetNodesCreatedInBlock to allow returning a value.

  6. 4.1.1

    1 Oct 20192 fixes
    • Fixed

      getNonWhitespaceStart() should not include the previous node's trailing comment.

    • Fixed

      Removing an IfStatement with a preceding else keyword will no longer error.

  7. 4.1.0

    28 Sep 20192 new
    • New

      Check and display syntax diagnostics when a manipulation error occurs.

    • New

      Expand TypeGuards.is implementation to include all node kinds. (ae82879) (@lazarljubenovic)

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.