Packages

ts-morph

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

Upgrading ts-morph From 1.2.0 to 28.0.0

83 releases in betweennotes for 76

Reading releases, release notes and advisories…

Other targets from 1.2.0Newest 1.x1.3.5
  1. 1.2.0yours
  2. 6 releases
  3. 2.0.0major
  4. 6 releases
  5. 3.0.0major
  6. 4 releases
  7. 4.0.0major
  8. 8 releases
  9. 5.0.0major
  10. 6.0.0major
  11. 3 releases
  12. 7.0.0major
  13. 9 releases
  14. 8.0.0major
  15. 4 releases
  16. 9.0.0major
  17. 1 release
  18. 10.0.0major
  19. 3 releases
  20. 11.0.0major
  21. 2 releases
  22. 12.0.0major
  23. 2 releases
  24. 13.0.0major
  25. 3 releases
  26. 14.0.0major
  27. 15.0.0major
  28. 1 release
  29. 16.0.0major
  30. 17.0.0major
  31. 1 release
  32. 18.0.0major
  33. 19.0.0major
  34. 20.0.0major
  35. 21.0.0major
  36. 1 release
  37. 22.0.0major
  38. 23.0.0major
  39. 24.0.0major
  40. 25.0.0major
  41. 1 release
  42. 26.0.0major
  43. 27.0.0major
  44. 1 release
  45. 28.0.0target
80+
changes to make
0
advisories fixed
173+
new
104+
fixes

Counted from 76 of 83 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Breaking28.0.0
  • Breaking28.0.0
  • Breaking22.0.0
  • Breaking22.0.0
  • Breaking21.0.0
  • Breaking21.0.0
  • Breaking21.0.0
  • Breaking18.0.0
  • Breaking17.0.0
  • Breaking16.0.0

Release by release

  1. 28.0.0

    Migration needed12 Apr 20261 new · 1 fix
    • Breaking

      BREAKING: TypeScript 6.0

    • Breaking

      Note there are some breaking changes due to TypeScript 6.0.

    • New

      Standalone printStructure function

    • Fixed

      InvalidOperationError in addTypeArgument

  2. 27.0.2

    12 Oct 20251 fix
    • Fixed

      Fixes the npm publish in order to get the fixes in from 27.0.1

  3. 27.0.0

    7 Sep 20256 new · 2 fixes
    • New

      Switch to tinyglobby

    • New

      TypeChecker - add getAwaitedType

    • New

      TypeScript 5.9

    • New

      Wrap OptionalTypeNode

  4. 26.0.0

    19 May 20252 new · 2 fixes
    • New

      TypeScript 5.8 #1628

    • New

      npm publish with provenance #1634

    • Fixed

      Improve comma appending logic to handle nested template literals correctly

    • Fixed

      bootstrap: Ignore dist-deno folder for npm publish #1610

  5. 25.0.1

    5 Feb 20251 fix
    • Fixed

      Update browser field to include fs/promises

  6. 25.0.0

    30 Dec 20241 new · 4 fixes
    • New

      TypeScript 5.7.2 #1594

    • Fixed

      Switch back to fast-glob for stability #1595

    • Fixed

      Properly insert async keyword in arrow function #1597

    • Fixed

      Throw descriptive error when inserting variable statement with no declarations #1598

    • Fixed

      Removing last named import/export should not remove or change declaration #1599

  7. 24.0.0

    6 Oct 20243 new · 2 fixes
    • New

      Remove mkdirp dependency

    • New

      Switch to tinyglobby to drop 15 dependencies

    • New

      TypeScript 5.6

    • Fixed

      getDerivedClasses() isn't correct in some cases

    • Fixed

      getBodyText() doesn't work as would be expected

  8. 23.0.0

    23 Jun 20242 new · 1 fix
    • New

      Ts 5.5

    • New

      Type.prototype.isBigInt and isBigIntLiteral

    • Fixed

      Handle removeDefaultImport with type only import

7 other lines we could not sort, mostly version bumps
  • .quote() - should include newline on newline (#47)

    22.0.0
  • .quote() - escape characters were not always being escaped (#46)

    22.0.0
  • Upgraded to TS 4.6

    14.0.0
  • AssertEntry#getValue now returns an expression instead of a string literal.

    14.0.0
  • AssertEntryStructure#value now represents an expression instead of a string literal.

    14.0.0
  • Reduce dependencies.

    10.0.2
  • Target ES2015.

    2.0.0

25 internal lines (docs, tests, tooling) left out.

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.