Skip to content

Releases: dsherret/ts-morph

21.0.0

02 Dec 21:23
fe18369

Choose a tag to compare

What's Changed

  • feat: ProjectOptions::defaultCompilerOptions by @wojpawlik in #1460
  • feat: TypeScript 5.3 #1476
  • feat: add interface and type literal getters & setters by @ajvincent in #1473
  • feat: add wrapped method for getShorthandAssignmentValueSymbol to TypeChecker. add convenience method for getting the value symbol on ShorthandPropertyAssignment. by @kronodeus in #1456
  • perf: use path.exists functions that don't throw internally when not exists #1478

Breaking Changes

  • Upgraded to TS 5.3
  • Underlying @ts-morph/common file system methods return undefined instead of throwing when not exists (for perf).
  • Private fields are actually private (default build requires private fields).

New Contributors

Full Changelog: 20.0.0...21.0.0

20.0.0

21 Sep 22:39
a90dc91

Choose a tag to compare

What's Changed

  • feat: upgrade to TypeScript 5.2 by @dsherret in #1450
  • fix: support dynamic type imports in getReferencedSourceFiles() by @lo1tuma in #1436

New Contributors

Full Changelog: 19.0.0...20.0.0

19.0.0

15 Jun 00:44

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 18.0.0...19.0.0

18.0.0

28 Mar 20:59

Choose a tag to compare

What's Changed

BREAKING CHANGE: Upgraded to TypeScript 5.0.2

New Contributors

Full Changelog: 17.0.1...18.0.0

17.0.1

22 Nov 00:02
48b797d

Choose a tag to compare

  • fix: revert rollup from v3 to v2 to fix build (esModuleInterop: true had no effect) #1358

17.0.0

20 Nov 00:24
a583f58

Choose a tag to compare

Bug Fixes

  • getOverloads for a class method should take into account if static (#1337) (f927d01), closes #1298
  • ImportEqualsDeclaration should be exportable (#1336) (7680bae)
  • named import/export specifier structures were missing isTypeOnly (#1347) (6b88a0b)

Features

BREAKING CHANGES

  • Upgraded to TS 4.9

16.0.0

03 Sep 01:48

Choose a tag to compare

Features

BREAKING CHANGES

  • Upgraded to TS 4.8
  • Decorators are now modifiers due to TS 4.8
  • ts.createX functions seem almost completely deprecated in TS 4.8, so make sure to update your code to use the traversal.context.createX functions instead
  • Type#isArray() returns true for readonly arrays

15.1.0

03 Jun 22:17

Choose a tag to compare

Bug Fixes

  • DocumentSpan should attempt to load the source file if it's not loaded yet (#1291) (1eda69c)
  • Included symlinked directories when reading a directory (#1290) (f1b4ea2)

Features

15.0.0

24 May 22:42

Choose a tag to compare

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 (#1275) (452cff3)
  • transform should take into account the node changing kinds (75c4a75), closes #1248

Features

  • add Node#isKind(kind) type guard (#1271) (79ab80f)
  • add factory property to traversal control (d4c5a35)
  • add helper properties on TemplateLiteralTypeNode. (1a8de49), closes #1266
  • upgrade to TypeScript 4.7 (#1281) (ae797d8)

BREAKING CHANGES

  • transform now returns a Node instead of this because the returned node could be the replaced node.
  • Upgraded to TS 4.7. Please review changes to typescript.d.ts in #1281.

14.0.0

03 Mar 19:40

Choose a tag to compare

  • Upgraded to TS 4.6
  • To align with the ts compiler:
    • AssertEntry#getValue now returns an expression instead of a string literal.
    • AssertEntryStructure#value now represents an expression instead of a string literal.