v3.0.0
- Dropped support for
typescript@<2.8.0
- Dropped support for Node.js 4
- Removed deprecated APIs:
getIdentifierText
,isJsxFramgment
,ImportOptions
- deprected overloads of
isModifierFlagSet
,findImports
andgetControlFlowEnd
- control flow related symbols can no longer be imported from
'tsutils/util/util'
, import directly from'tsutils/util/control-flow'
or'tsutils/util'
isFunctionScopeBoundary
andisBlockScopeBoundary
now return a enum member ofScopeBoundary
instead of a booleanisFunctionScopeBoundary
no longer returns a truthy value forInterfaceDeclaration
,TypeAliasDeclaration
Features:
- added utility
isTypeScopeBoundary
returningScopeBoundary.Type
orScopeBoundary.ConditionalType
- added enum
ScopeBoundarySelector
whose members can be used to determine if a declaration belongs to a givenScopeBoundary
by using bitwise AND
Bugfixes:
collectVariableUsage
now correctly handlesinfer T
nested inside function signatures or mapped typesisCompilerOptionEnabled
correctly handlesskipDefaultLibCHeck
andsuppressImplicitAnyIndexErrors