Skip to content

Releases: ajafff/tsutils

v2.18.0

15 Jan 16:08
Compare
Choose a tag to compare

Features:

  • getControlFlowEnd accepts BlockLike as argument

Bugfixes:

  • getControlFlowEnd and endsControlFlow: correctly handle nested LabeledStatements
  • endsControlFlow 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 the label parameter. This parameter is no longer used and should no longer be passed to the function.

v2.17.1

15 Jan 09:35
Compare
Choose a tag to compare

Bugfixes:

  • getControlFlowEnd and endsControlFlow (#22)
    • ThrowStatements inside try are filtered out if there is a catch clause
    • TryStatements with catch only end control flow if try AND catch definitely end control flow

v2.17.0

14 Jan 20:39
Compare
Choose a tag to compare

Features:

  • added kind property to NodeWrap
  • added getControlFlowEnd to public API

v2.16.0

07 Jan 21:54
Compare
Choose a tag to compare

Features:

  • added isDecorator and isCallLikeExpression typeguards

v2.15.0

01 Jan 19:50
Compare
Choose a tag to compare

Features:

  • added convertAst utility to produce a flattened and wrapped version of the AST

v2.14.0

22 Dec 22:43
Compare
Choose a tag to compare

Features:

  • added isDeleteExpression
  • added getLineBreakStyle

v2.13.1

14 Dec 15:42
Compare
Choose a tag to compare

Bugfixes:

  • fixed name of isJsxFragment

v2.13.0

29 Nov 13:31
Compare
Choose a tag to compare

Features:

  • added support for JsxFragment introduced in [email protected]
  • added corresponding typeguard functions