Releases: dsherret/ts-morph
Releases · dsherret/ts-morph
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
transform
now returns aNode
instead ofthis
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
13.0.1
13.0.0
Bug Fixes
Code Refactoring
Node.isXNode(node)
static type guard methods are nowNode.isX(node)
(e5bcba9), closes #1166- Remove already deprecated
WriterFunctions
andTypeGuards
exports. (be87373)
Features
- Add
AssertClause
andAssertEntry
(#1224) (bcf694f) - Add
Node.hasStructure
type guard. (0f7d9be) - Change
readDirSync
to return directory entries instead of file paths (f22a50d) - Make
Structure.isX
function more flexible (a54dd69), closes #1219 - Type only methods for
ImportSpecifier
andExportSpecifier
(e93c96e) - TypeScript 4.5 support (#1220) (526e0dd)
- Wrap more JS doc nodes (5107999)
BREAKING CHANGES
Node.isXNode(node)
-like static type guard methods are nowNode.isX(node)
to reduce verbosity.- Targeting ES2018 instead of ES2015
- Upgraded to TS 4.5
- Removed already deprecated
WriterFunctions
andTypeGuards
exports. UseWriters
andNode
instead. readDirSync
now returns directory entries.