v3.18.0
Features:
- Source maps for easier debugging
- JSDoc is preserved in declaration files
- Comments are presered in transpiled code
- Everything you need to handle the control flow changes of [email protected]
callExpressionAffectsControlFlow
to determine whether a CallExpression affects control flow by returningnever
orasserts
hasExhaustiveCaseClauses
to determine whether a SwitchStatement's CaseClauses handle every possible valueendsControlFlow
andgetControlFlowEnd
take an optionalchecker
parameter to recognize exhaustive SwitchStatements and control flow effects of CallExpressions
formatPseudoBigInt
converts TypeScript's representation of a BigInt to its literal representation as you would write it in your source codegetAstNodeAtPosition
similar togetTokenAtPosition
, but only operates on AST NodesremoveOptionalChainingUndefinedMarkerType
andisOptionalChainingUndefinedMarkerType
to handle types originating in an optional chainfindImports
andfindImportLikeNodes
: prepare for import assertionsgetTsCheckDirective
as new name forgetCheckJsDirective
getCheckJsDirective
is now deprecated
Bugfixes:
getUsageDomain
: handles NamespaceExport and NamedTupleMembergetPropertyName
: handles parentheses and negative numeric literals, excludes RegExp literals and private identifiersgetSingleLateBoundPropertyNameOfPropertyName
andgetLateBoundPropertyNamesOfPropertyName
: handles private identifiershasAccessModifier
: handles JSDoc access modifierhasSideEffects
: correctly determines side effects of (static) property initializersisExpressionValueUsed
: handle nullish coalescing and conditional assignment operatorscanHaveJsDoc
: aligned with upstream changes in TypeScriptisCompilerOptionEnabled
:noUncheckedIndexedAccess
requiresstrictNullChecks
checkJs
impliesallowJs
emitDeclarationOnly
requiresdeclaration
isInConstContext
: handle template string interpolations- excluded unnecessary files from npm package