Update tsutils to the latest version π
Version 3.0.0 of tsutils was just published.
| Dependency | tsutils |
|---|---|
| Current Version | 2.29.0 |
| Type | devDependency |
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,findImportsandgetControlFlowEnd
- control flow related symbols can no longer be imported from
'tsutils/util/util', import directly from'tsutils/util/control-flow'or'tsutils/util' isFunctionScopeBoundaryandisBlockScopeBoundarynow return a enum member ofScopeBoundaryinstead of a booleanisFunctionScopeBoundaryno longer returns a truthy value forInterfaceDeclaration,TypeAliasDeclaration
Features:
- added utility
isTypeScopeBoundaryreturningScopeBoundary.TypeorScopeBoundary.ConditionalType - added enum
ScopeBoundarySelectorwhose members can be used to determine if a declaration belongs to a givenScopeBoundaryby using bitwise AND
Bugfixes:
collectVariableUsagenow correctly handlesinfer Tnested inside function signatures or mapped typesisCompilerOptionEnabledcorrectly handlesskipDefaultLibCHeckandsuppressImplicitAnyIndexErrors
Commits
The new version differs by 12 commits.
4099ae6v3.0.00f03549add node version requirement to package.json566e353isCompilerOptionEnabled: add contraint of suppressImplicitAnyIndexErrorsea59b1crequire [email protected]359bf07usage: InferType is correctly assiciated with ConditionalTypef4af733use Array.prototype.includes9636689remove deprecated stuffe49a4f7Merge branch 'master' into nexta84ccaaAdd ScopeBoundary.ConditionalType752c47cisCompilerOptionEnabled: add relationship of skip(Default)LibCheck5cc7276add isTypeScopeBoundarybd5c223breaking 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:
- The
devDependencytsutils was updated from2.29.0to3.1.0.
Update to this version instead π
Release Notes for v3.1.0
Features:
- added utilities:
isKeywordKindandisValidJsxIdentifier - exposes typeguards for [email protected] by default
Commits
The new version differs by 8 commits.
ba6c83bv3.1.0ab31d24update to [email protected]e649ea1add isValidJsxIdentifier utilitye631f6aadd isKeywordKind utilitya4fb5adusage: add test for extends clause of class33dcfcausage: add test for reference to parameter in function header442597cusage: add test for reference to parameter in function header4e95d94expose latest typeguards for [email protected]
See the full diff
- The
devDependencytsutils was updated from2.29.0to3.2.0.
Update to this version instead π
Release Notes for v3.2.0
Features:
- added utility
findImportLikeNodesthat works similar tofindImportsbut returns the import statement or expression instead of the module specifier and doesn't filter non-string module specifiers
- The
devDependencytsutils was updated from2.29.0to3.3.0.
Update to this version instead π
Release Notes for v3.3.0
Features:
isCompilerOptionEnabled: recognizesstrictBindCallApplygetTokenAtPosition: optionally includes JSDoc during lookup
Bugfixes:
isCompilerOptionEnabled: correctly implements logic forallowSyntheticDefaultImportsfindImportLikeNodes: correctly finds imports in namespacesfindImportLikeNodes/findImports: finds import types in JSDoc of JS files
Commits
The new version differs by 6 commits.
7551f24isCompilerOptionEnabled: implement allowSyntheticDefaultImports defaultd30acb4isCompilerOptionEnabled: recognize strictBindCallApply42cf6a9usage: additional tests with for-loop edge cases5e6d4a0remove useless conditionf20e5e2findImports: refactoring and bugfixing6f27729getTokenAtPosition can optionally get tokens in JSDoc
See the full diff
- The
devDependencytsutils was updated from2.29.0to3.3.1.
Update to this version instead π
Release Notes for v3.3.1
Bugfixes:
findImports: fixed handling of ImportEqualsDeclaration
- The
devDependencytsutils was updated from2.29.0to3.4.0.
Update to this version instead π
Release Notes for v3.4.0
Features:
- added utility
commentTextto get the actual text content of a comment excluding the characters needed to start and end the comment
- The
devDependencytsutils was updated from2.29.0to3.5.0.
Update to this version instead π
Release Notes for v3.5.0
Features:
- correctly handle BigInt literals
- added typeguard
isBigIntLiteral isLiteralTyperecognises BigIntgetPropertyNameadds special handling for BigInt
- added typeguard
- The
devDependencytsutils was updated from2.29.0to3.5.1.
Update to this version instead π
Release Notes for v3.5.1
Bugfixes:
isThenableTypeallowsNodeinstead ofExpressionas parameterisBlockScopeBoundaryandisScopeBoundaryconsiderWithStatementas scope boundary
- The
devDependencytsutils was updated from2.29.0to3.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
devDependencytsutils was updated from2.29.0to3.6.0.
Update to this version instead π
Release Notes for v3.6.0
Features:
- added
getCheckJsDirectiveutility to parse// @ts-checkand// @ts-nocheckpragmas
- The
devDependencytsutils was updated from2.29.0to3.9.0.
Update to this version instead π
Release Notes for v3.9.0
Features:
- added typeguards:
isNullLiteralandisBooleanLiteral
Commits
The new version differs by 12 commits.
f6e941fv3.9.0d0dfe05sort exportse17f246Add isNullLiteral and isBooleanLiteral utility functions (#97)a8c6da5getLineRanges: add tests (#95)90b97fbv3.8.017fd9e0add JSDoc comment9583128add isInConstContexta945f61add isConstAssertion776ba6bexpose typeguards for [email protected] by default76abb41v3.7.0a2bd03eadd isInSingleStatementContext0200380add isBlockScopedDeclarationStatement
See the full diff
- The
devDependencytsutils was updated from2.29.0to3.9.1.
Update to this version instead π
Release Notes for v3.9.1
Bugfixes:
- reverted invalid deprecation of
canHaveJsdoc - fixed condition in
parseJsdocOfNode
- The
devDependencytsutils was updated from2.29.0to3.10.0.
Update to this version instead π
Release Notes for v3.10.0
Features:
isCompilerOptionEnabled:incrementalis implicitly enabled bycomposite
Bugfixes:
collectVariableUsage/getUsageDomain: no longer treatas constas type usage
- The
devDependencytsutils was updated from2.29.0to3.11.0.
Update to this version instead π
Release Notes for v3.11.0
Features:
- typeguards:
isNumericOrStringLikeLiteral,isTupleTypeReference intersectionTypePartsas counterpart tounionTypePartssomeTypePartto execute a callback for each union or intersection constituent until the callback returns truegetPropertyOfTypelooks up a property by its escaped nameisPropertyReadonlyInTypedetermines whether a property in a given type cannot be written tosymbolHasReadonlyDeclarationdetermines if a Symbol has any readonly or constant declarationisNumericPropertyNamedetermines whether a property name would match an index signatureisBindableObjectDefinePropertyCallreturns true for statically analyzable forms ofObject.defineProperty(o, 'p', {value, writable})isReadonlyAssignmentDeclarationdetermines whether anObject.definePropertycall is known to result in a readonly propertygetLateBoundPropertyNamesreturns all known property names of an expressiongetPropertyNameFromTypeextracts the property name of literal typesisWellKnownSymbolLiterallyto recognize expressions in the form ofSymbol.<name>getPropertyNameOfWellKnownSymbolreturns the escaped name for a well known symbol literalunwrapParenthesesreturns the first child expression that is not aParenthesizedExpression
Commits
The new version differs by 12 commits.
4c186bev3.11.0e091463micro optimization966ea76cleanup utilities198367eadd missing filecfcd2d6rename imported modulecab93dbremove leftover debugger statementc43a690update typescript6c01ac5tests + handle index signatures in union types + enum members7275f72export functionf637851detect readonly symbols4526bcdadd isBooleanLiteralType utility49d0d31allow [email protected] nightly builds
See the full diff