Releases: dsherret/ts-morph
Releases · dsherret/ts-morph
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
OrThrow
methods (#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.createX
functions seem almost completely deprecated in TS 4.8, so make sure to update your code to use thetraversal.context.createX
functions 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
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.