Packages

ts-morph

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

Your version

15.0.0

major24 May 2022Where it was published

15.1.0 is the newest release of 15.x.

In short

2 breaking4 new5 fixed

  • Breaking

    transform now returns a Node instead of this because the returned node could be the replaced node.

  • Breaking

    Upgraded to TS 4.7. Please review changes to typescript.d.ts in #1281.

Release note

Bug Fixes

  • transform() - ensure comments on nodes with only added synthetic leading comments show up in output (abc840d), closes #1273

  • Ensure leading and trailing trivia for overloads ends up in output (0d043b5), closes #1244

  • common: deleting directories didn't work on Node (163de40), closes #1249

  • Handle undefined in comment node type guards

  • Transform should take into account the node changing kinds (75c4a75), closes #1248

Features

  • Add Node#isKind(kind) type guard

  • Add factory property to traversal control

  • Add helper properties on TemplateLiteralTypeNode. (1a8de49), closes #1266

  • Upgrade to TypeScript 4.7

Breaking changes

  • Breaking

    transform now returns a Node instead of this because the returned node could be the replaced node.

  • Breaking

    Upgraded to TS 4.7. Please review changes to typescript.d.ts in #1281.

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.