Releases: dsherret/ts-morph
Releases · dsherret/ts-morph
21.0.0
What's Changed
- feat:
ProjectOptions::defaultCompilerOptionsby @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
getShorthandAssignmentValueSymboltoTypeChecker. add convenience method for getting the value symbol onShorthandPropertyAssignment. 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/commonfile system methods return undefined instead of throwing when not exists (for perf). - Private fields are actually private (default build requires private fields).
New Contributors
- @ajvincent made their first contribution in #1473
Full Changelog: 20.0.0...21.0.0
20.0.0
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
- @lo1tuma made their first contribution in #1436
- @kronodeus made their first contribution in #1455
Full Changelog: 19.0.0...20.0.0
19.0.0
What's Changed
- docs: add deno installation method by @scarf005 in #1411
- feat: improve typing of
Typeby @odiak in #1408 - feat: add IsVoid method to
Typeby @giuseppelt in #1398 - feat: add JSDocable to ExportAssignment by @giuseppelt in #1397
- feat: upgrade to TS 5.1 by @dsherret in #1415
- fix: allow
.tranformto work with Nodes from another parsed source file by @ivanhofer in #1417
New Contributors
- @scarf005 made their first contribution in #1411
- @odiak made their first contribution in #1408
- @giuseppelt made their first contribution in #1398
- @ivanhofer made their first contribution in #1417
Full Changelog: 18.0.0...19.0.0
18.0.0
17.0.1
17.0.0
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
- allow providing custom error messages to
OrThrowmethods (#1327) (05916d3) - Thanks @jantimon! - upgrade to TS 4.9 (#1354) (e334437)
BREAKING CHANGES
- Upgraded to TS 4.9
16.0.0
Features
- add
Type#isNever()(ac0db0d), closes #1303 - add
Type#isReadonlyArray()andType#isArray()also includes readonly arrays (f1d5c43), closes #1306 #1305 - upgrade to TS 4.8 (#1316) (8a87a1b)
BREAKING CHANGES
- Upgraded to TS 4.8
- Decorators are now modifiers due to TS 4.8
ts.createXfunctions seem almost completely deprecated in TS 4.8, so make sure to update your code to use thetraversal.context.createXfunctions insteadType#isArray()returns true for readonly arrays
15.1.0
15.0.0
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
transformnow returns aNodeinstead ofthisbecause the returned node could be the replaced node.- Upgraded to TS 4.7. Please review changes to typescript.d.ts in #1281.