Skip to content

Releases: ajafff/tsutils

v2.28.0

17 Jul 20:41
Compare
Choose a tag to compare

Typeguards are now split into multiple submodules for each version of TypeScript (starting with 2.8.0).
That means you can now import directly from "tsutils/typeguard/2.8" to get compatible declaraton files for [email protected].
For more information please read the relevant section in README.md.

Features:

  • added typeguards: isTupleType, isOptionalTypeNode, isRestTypeNode, isSyntheticExpression (currently available from "tsutils/typeguard/3.0")
  • added utility isStrictCompilerOptionEnabled

v2.27.2

03 Jul 18:09
Compare
Choose a tag to compare

Avoid crash caused by removed function in [email protected].

v2.27.1

18 May 16:00
Compare
Choose a tag to compare

Added support for [email protected] nightly builds.

v2.27.0

12 May 17:49
Compare
Choose a tag to compare

Features:

  • added getIIFE utility

v2.26.2

26 Apr 06:29
Compare
Choose a tag to compare

Bugfixes:

  • forEachComment and forEachTokenWithTrivia no longer duplicate comments around missing nodes

v2.26.1

05 Apr 20:27
Compare
Choose a tag to compare

Bugfixes:

  • fixed crash in hasSideEffects with tagged template literal without substitution: tag`template`

v2.26.0

03 Apr 20:22
Compare
Choose a tag to compare

Features:

  • added typeguard isLiteralTypeNode
  • added support for type imports (type T = import('foo')) to findImports via ImportKind.ImportType

v2.25.1

01 Apr 21:49
Compare
Choose a tag to compare

Bugfixes:

v2.25.0

28 Mar 19:27
Compare
Choose a tag to compare

Features:

  • added utilities: isStatementInAmbientContext and isAmbientModuleBlock

v2.24.0

27 Mar 18:00
Compare
Choose a tag to compare

Features:

  • added typeguards for [email protected]: isConditionalTypeNode, isInferTypeNode, isConditionalType, isInstantiableType, isSubstitutionType