Releases: ajafff/tsutils
Releases · ajafff/tsutils
v2.18.0
Features:
getControlFlowEnd
accepts BlockLike as argument
Bugfixes:
getControlFlowEnd
andendsControlFlow
: correctly handle nested LabeledStatementsendsControlFlow
removed erroneous special case when an IterationStatement is passed as argument whose parent is a LabeledStatement.- if you want labels of an IterationStatement (or SwitchStatement) to be handled, you need to pass the LabeledStatement as argument.
⚠️ this fix may change the returned value if you relied on the buggy behavior
Deprecations:
- deprecated overload of
getControlFlowEnd
that contains thelabel
parameter. This parameter is no longer used and should no longer be passed to the function.
v2.17.1
v2.17.0
v2.16.0
v2.15.0
v2.14.0
v2.13.1
v2.13.0
Features:
- added support for
JsxFragment
introduced in [email protected] - added corresponding typeguard functions