Skip to content

Releases: dsherret/ts-morph

22.0.0

10 Mar 17:25
886ad69
Compare
Choose a tag to compare

What's Changed

  • feat(BREAKING): upgrade to TypeScript 5.4 by @dsherret in #1516
  • fix(BREAKING): Node.prototype.forgetDescendants() no longer returns self by @dsherret in #1515
  • feat: Type.prototype.isAssignableTo by @dsherret in #1517
  • feat: TypeChecker.prototype.resolveName by @dsherret in #1518
  • fix: MethodDeclarationStructure should write an asterisk isGenerator = true by @ajvincent in #1502
  • docs: fix typo in adding-source-files.md by @ilirbeqirii in #1490
  • feat: ClassDeclarationStructure - support static blocks by @dsherret in #1520

CodeBlockWriter 13.0.1

People may have been working around these bugs in the past:

New Contributors

Full Changelog: 21.0.1...22.0.0

21.0.1

02 Dec 21:41
Compare
Choose a tag to compare

I forgot to run a code generation script to update some code for the 21.0.0 release and only realized after. This release fixes that and also reduces the chance of that happening in the future.

For 21.0.0 release notes, see https://github.com/dsherret/ts-morph/releases/tag/21.0.0

Full Changelog: 21.0.0...21.0.1

21.0.0

02 Dec 21:23
fe18369
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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