Socket
Socket
Sign inDemoInstall

tsutils

Package Overview
Dependencies
2
Maintainers
1
Versions
94
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1
46
10Next

2.23.0

Diff

Changelog

Source

2.23.0

Features:

  • added typeguard isForInOrOfStatement

Bugfixes:

  • correctly handle comments in generic JSX elements: <MyComponent<string>/*comment*/></MyComponent>
  • fixed a bug with false positive trailing comments at the end of JSX self closing element: <div><br/>/*no comment*/</div>
ajaff
published 2.22.2 •

Changelog

Source

2.22.2

Bugfixes:

  • collectVariableUsage: handle ConditionalTypes and infer T, which will be introduced in TypeScript@2.8.0 and are already available in nightly builds
  • isLiteralType no longer returns true for ts.TypeFlags.BooleanLiteral as this is not a ts.LiteralType
ajaff
published 2.22.1 •

Changelog

Source

2.22.1

Bugfixes:

  • endsControlFlow:
    • handle loops that might not even run a single iteration
    • handle constant boolean conditions in loops and if
ajaff
published 2.22.0 •

Changelog

Source

2.22.0

Features:

  • added isFalsyType utility
ajaff
published 2.21.2 •

Changelog

Source

2.21.2

Bugfixes:

  • fixed compile error with typescript@2.8.0-dev
ajaff
published 2.21.1 •

Changelog

Source

2.21.1

Bugfixes:

  • isReassignmentTarget: handle type assertions and non-null assertion
ajaff
published 2.21.0 •

Changelog

Source

2.21.0

Bugfixes:

  • forEachDeclaredVariable uses a more precise type for the callback parameter to make it useable again with typescript@2.7.1

Features:

  • added isUniqueESSymbolType typeguard
ajaff
published 2.20.0 •

Changelog

Source

2.20.0

Features:

  • added isThenableType utility
  • added unionTypeParts utility
ajaff
published 2.19.1 •

Changelog

Source

2.19.1

Bugfixes:

  • forEachComment, getCommentAtPosition and isPositionInComment: skip shebang (#! something) to not miss following comments at the start of the file
ajaff
published 2.19.0 •

Changelog

Source

2.19.0

Features:

  • added WrappedAst interface that models the type of a wrapped SourceFile more accurate
  • added getWrappedNodeAtPosition utiltiy that takes a NodeWrap and returns the most deeply nested NodeWrap that contains the given position
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc