tslint-consistent-codestyle
tslint-consistent-codestyle copied to clipboard
Update tsutils to the latest version π
Version 3.0.0 of tsutils was just published.
Dependency | tsutils |
---|---|
Current Version | 2.29.0 |
Type | dependency |
The version 3.0.0 is not covered by your current version range.
If you donβt accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.
It might be worth looking into these changes and trying to get this project onto the latest version of tsutils.
If you have a solid test suite and good coverage, a passing build is a strong indicator that you can take advantage of these changes directly by merging the proposed change into your project. If the build fails or you donβt have such unconditional trust in your tests, this branch is a great starting point for you to work on the update.
Release Notes
v3.0.0- Dropped support for
typescript@<2.8.0
- Dropped support for Node.js 4
- Removed deprecated APIs:
getIdentifierText
,isJsxFramgment
,ImportOptions
- deprected overloads of
isModifierFlagSet
,findImports
andgetControlFlowEnd
- control flow related symbols can no longer be imported from
'tsutils/util/util'
, import directly from'tsutils/util/control-flow'
or'tsutils/util'
isFunctionScopeBoundary
andisBlockScopeBoundary
now return a enum member ofScopeBoundary
instead of a booleanisFunctionScopeBoundary
no longer returns a truthy value forInterfaceDeclaration
,TypeAliasDeclaration
Features:
- added utility
isTypeScopeBoundary
returningScopeBoundary.Type
orScopeBoundary.ConditionalType
- added enum
ScopeBoundarySelector
whose members can be used to determine if a declaration belongs to a givenScopeBoundary
by using bitwise AND
Bugfixes:
collectVariableUsage
now correctly handlesinfer T
nested inside function signatures or mapped typesisCompilerOptionEnabled
correctly handlesskipDefaultLibCHeck
andsuppressImplicitAnyIndexErrors
Commits
The new version differs by 12 commits.
4099ae6
v3.0.0
0f03549
add node version requirement to package.json
566e353
isCompilerOptionEnabled: add contraint of suppressImplicitAnyIndexErrors
ea59b1c
require [email protected]
359bf07
usage: InferType is correctly assiciated with ConditionalType
f4af733
use Array.prototype.includes
9636689
remove deprecated stuff
e49a4f7
Merge branch 'master' into next
a84ccaa
Add ScopeBoundary.ConditionalType
752c47c
isCompilerOptionEnabled: add relationship of skip(Default)LibCheck
5cc7276
add isTypeScopeBoundary
bd5c223
breaking changes
See the full diff
FAQ and help
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper bot :palm_tree:
Friendly ping π
@ahanriat why is this important to you? there is only one small bug fix that is relevant for rules in this package.
Thanks @ajafff π€
We are moving to Typescript 3.0.1
and it looks like we had issues due to tsutils
dependency π
Should Fix #90
- The
dependency
tsutils was updated from2.29.0
to3.1.0
.
Update to this version instead π
Release Notes for v3.1.0
Features:
- added utilities:
isKeywordKind
andisValidJsxIdentifier
- exposes typeguards for [email protected] by default
Commits
The new version differs by 8 commits.
ba6c83b
v3.1.0
ab31d24
update to [email protected]
e649ea1
add isValidJsxIdentifier utility
e631f6a
add isKeywordKind utility
a4fb5ad
usage: add test for extends clause of class
33dcfca
usage: add test for reference to parameter in function header
442597c
usage: add test for reference to parameter in function header
4e95d94
expose latest typeguards for [email protected]
See the full diff
- The
dependency
tsutils was updated from2.29.0
to3.2.0
.
Update to this version instead π
Release Notes for v3.2.0
Features:
- added utility
findImportLikeNodes
that works similar tofindImports
but returns the import statement or expression instead of the module specifier and doesn't filter non-string module specifiers
- The
dependency
tsutils was updated from2.29.0
to3.3.0
.
Update to this version instead π
Release Notes for v3.3.0
Features:
isCompilerOptionEnabled
: recognizesstrictBindCallApply
getTokenAtPosition
: optionally includes JSDoc during lookup
Bugfixes:
isCompilerOptionEnabled
: correctly implements logic forallowSyntheticDefaultImports
findImportLikeNodes
: correctly finds imports in namespacesfindImportLikeNodes
/findImports
: finds import types in JSDoc of JS files
Commits
The new version differs by 6 commits.
7551f24
isCompilerOptionEnabled: implement allowSyntheticDefaultImports default
d30acb4
isCompilerOptionEnabled: recognize strictBindCallApply
42cf6a9
usage: additional tests with for-loop edge cases
5e6d4a0
remove useless condition
f20e5e2
findImports: refactoring and bugfixing
6f27729
getTokenAtPosition can optionally get tokens in JSDoc
See the full diff
- The
dependency
tsutils was updated from2.29.0
to3.3.1
.
Update to this version instead π
Release Notes for v3.3.1
Bugfixes:
findImports
: fixed handling of ImportEqualsDeclaration
- The
dependency
tsutils was updated from2.29.0
to3.4.0
.
Update to this version instead π
Release Notes for v3.4.0
Features:
- added utility
commentText
to get the actual text content of a comment excluding the characters needed to start and end the comment
- The
dependency
tsutils was updated from2.29.0
to3.5.0
.
Update to this version instead π
Release Notes for v3.5.0
Features:
- correctly handle BigInt literals
- added typeguard
isBigIntLiteral
isLiteralType
recognises BigIntgetPropertyName
adds special handling for BigInt
- added typeguard
- The
dependency
tsutils was updated from2.29.0
to3.5.1
.
Update to this version instead π
Release Notes for v3.5.1
Bugfixes:
isThenableType
allowsNode
instead ofExpression
as parameterisBlockScopeBoundary
andisScopeBoundary
considerWithStatement
as scope boundary
- The
dependency
tsutils was updated from2.29.0
to3.5.2
.
Update to this version instead π
Release Notes for v3.5.2
Bugfixes:
- Published declaration files no longer contain
const enum
. They are now declared as regular enums instead.
- The
dependency
tsutils was updated from2.29.0
to3.6.0
.
Update to this version instead π
Release Notes for v3.6.0
Features:
- added
getCheckJsDirective
utility to parse// @ts-check
and// @ts-nocheck
pragmas
- The
dependency
tsutils was updated from2.29.0
to3.9.0
.
Update to this version instead π
Release Notes for v3.9.0
Features:
- added typeguards:
isNullLiteral
andisBooleanLiteral
Commits
The new version differs by 12 commits.
f6e941f
v3.9.0
d0dfe05
sort exports
e17f246
Add isNullLiteral and isBooleanLiteral utility functions (#97)
a8c6da5
getLineRanges: add tests (#95)
90b97fb
v3.8.0
17fd9e0
add JSDoc comment
9583128
add isInConstContext
a945f61
add isConstAssertion
776ba6b
expose typeguards for [email protected] by default
76abb41
v3.7.0
a2bd03e
add isInSingleStatementContext
0200380
add isBlockScopedDeclarationStatement
See the full diff
- The
dependency
tsutils was updated from2.29.0
to3.9.1
.
Update to this version instead π
Release Notes for v3.9.1
Bugfixes:
- reverted invalid deprecation of
canHaveJsdoc
- fixed condition in
parseJsdocOfNode
- The
dependency
tsutils was updated from2.29.0
to3.10.0
.
Update to this version instead π
Release Notes for v3.10.0
Features:
isCompilerOptionEnabled
:incremental
is implicitly enabled bycomposite
Bugfixes:
collectVariableUsage
/getUsageDomain
: no longer treatas const
as type usage
- The
dependency
tsutils was updated from2.29.0
to3.11.0
.
Update to this version instead π
Release Notes for v3.11.0
Features:
- typeguards:
isNumericOrStringLikeLiteral
,isTupleTypeReference
intersectionTypeParts
as counterpart tounionTypeParts
someTypePart
to execute a callback for each union or intersection constituent until the callback returns truegetPropertyOfType
looks up a property by its escaped nameisPropertyReadonlyInType
determines whether a property in a given type cannot be written tosymbolHasReadonlyDeclaration
determines if a Symbol has any readonly or constant declarationisNumericPropertyName
determines whether a property name would match an index signatureisBindableObjectDefinePropertyCall
returns true for statically analyzable forms ofObject.defineProperty(o, 'p', {value, writable})
isReadonlyAssignmentDeclaration
determines whether anObject.defineProperty
call is known to result in a readonly propertygetLateBoundPropertyNames
returns all known property names of an expressiongetPropertyNameFromType
extracts the property name of literal typesisWellKnownSymbolLiterally
to recognize expressions in the form ofSymbol.<name>
getPropertyNameOfWellKnownSymbol
returns the escaped name for a well known symbol literalunwrapParentheses
returns the first child expression that is not aParenthesizedExpression
Commits
The new version differs by 12 commits.
4c186be
v3.11.0
e091463
micro optimization
966ea76
cleanup utilities
198367e
add missing file
cfcd2d6
rename imported module
cab93db
remove leftover debugger statement
c43a690
update typescript
6c01ac5
tests + handle index signatures in union types + enum members
7275f72
export function
f637851
detect readonly symbols
4526bcd
add isBooleanLiteralType utility
49d0d31
allow [email protected] nightly builds
See the full diff