Skip to content

Releases: ajafff/tsutils

v3.5.2

02 Dec 21:26
Compare
Choose a tag to compare

Bugfixes:

  • Published declaration files no longer contain const enum. They are now declared as regular enums instead.

v3.5.1

23 Nov 09:36
Compare
Choose a tag to compare

Bugfixes:

  • isThenableType allows Node instead of Expression as parameter
  • isBlockScopeBoundary and isScopeBoundary consider WithStatement as scope boundary

v3.5.0

12 Nov 16:39
Compare
Choose a tag to compare

Features:

  • correctly handle BigInt literals
    • added typeguard isBigIntLiteral
    • isLiteralType recognises BigInt
    • getPropertyName adds special handling for BigInt

v3.4.0

08 Nov 22:50
Compare
Choose a tag to compare

Features:

  • added utility commentText to get the actual text content of a comment excluding the characters needed to start and end the comment

v3.3.1

05 Nov 10:02
Compare
Choose a tag to compare

Bugfixes:

  • findImports: fixed handling of ImportEqualsDeclaration

v3.3.0

03 Nov 21:47
Compare
Choose a tag to compare

Features:

  • isCompilerOptionEnabled: recognizes strictBindCallApply
  • getTokenAtPosition: optionally includes JSDoc during lookup

Bugfixes:

  • isCompilerOptionEnabled: correctly implements logic for allowSyntheticDefaultImports
  • findImportLikeNodes: correctly finds imports in namespaces
  • findImportLikeNodes / findImports: finds import types in JSDoc of JS files

v3.2.0

22 Oct 18:44
Compare
Choose a tag to compare

Features:

  • added utility findImportLikeNodes that works similar to findImports but returns the import statement or expression instead of the module specifier and doesn't filter non-string module specifiers

v3.1.0

14 Oct 18:20
Compare
Choose a tag to compare

Features:

  • added utilities: isKeywordKind and isValidJsxIdentifier
  • exposes typeguards for typescript@3.0 by default

v3.0.0

29 Jul 10:13
Compare
Choose a tag to compare

⚠️ Breaking Changes:

  • Dropped support for typescript@<2.8.0
  • Dropped support for Node.js 4
  • Removed deprecated APIs:
    • getIdentifierText, isJsxFramgment, ImportOptions
    • deprected overloads of isModifierFlagSet, findImports and getControlFlowEnd
  • control flow related symbols can no longer be imported from 'tsutils/util/util', import directly from 'tsutils/util/control-flow' or 'tsutils/util'
  • isFunctionScopeBoundary and isBlockScopeBoundary now return a enum member of ScopeBoundary instead of a boolean
  • isFunctionScopeBoundary no longer returns a truthy value for InterfaceDeclaration, TypeAliasDeclaration

Features:

  • added utility isTypeScopeBoundary returning ScopeBoundary.Type or ScopeBoundary.ConditionalType
  • added enum ScopeBoundarySelector whose members can be used to determine if a declaration belongs to a given ScopeBoundary by using bitwise AND

Bugfixes:

  • collectVariableUsage now correctly handles infer T nested inside function signatures or mapped types
  • isCompilerOptionEnabled correctly handles skipDefaultLibCHeck and suppressImplicitAnyIndexErrors

v2.29.0

24 Jul 17:11
Compare
Choose a tag to compare

Features:

  • added utility isCompilerOptionEnabled