deps: upgrade typescript to 5.5.3#16091
Merged
connorjclark merged 10 commits intomainfrom Jul 3, 2024
Merged
Conversation
connorjclark
commented
Jun 27, 2024
connorjclark
commented
Jun 27, 2024
| HtmlAndSvgElementTagNameMap[TagNames[number]] : | ||
| TagNames extends string ? | ||
| HtmlAndSvgElementTagNameMap[TagNames] : | ||
| Element: // Fall back for queries typed-query-selector fails to parse, e.g. `'[alt], [aria-label]'`. |
Collaborator
Author
There was a problem hiding this comment.
the query selector type library broke in a 5.x, and in upgrading I found that their API changed from an array of tags to just a union.
Collaborator
Author
|
process issue: the clearTimeout issue: we were using an older interface - NodeJS.Timer - which is no longer getting updates. Such as adding the remaining: |
Collaborator
Author
|
I ran a bisect over typescript looks very related: microsoft/TypeScript@615a97b |
d2b5fde to
365c065
Compare
connorjclark
commented
Jul 1, 2024
| /** | ||
| * This needs to be in the constructor. | ||
| * https://github.com/GoogleChrome/lighthouse/issues/12134 | ||
| * @type {LH.Gatherer.GathererMeta<'DevtoolsLog'>} |
Collaborator
Author
There was a problem hiding this comment.
this was true for browserify
adamraine
reviewed
Jul 2, 2024
| function coerceOutput(values) { | ||
| const outputTypes = ['json', 'html', 'csv']; | ||
| const errorHint = `Argument 'output' must be an array from choices "${outputTypes.join('", "')}"`; | ||
| if (!values.every(/** @return {item is string} */ item => typeof item === 'string')) { |
adamraine
approved these changes
Jul 3, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upgrades typescript from 5.0.4 to 5.52
....or rather, tries to. I found that 5.1 has introduced errors that I cannot resolve:
summarizing above:
setTimeoutseems to be using the browser definition instead of the Node one, so it doesn't like us giving it NodeJS.Timeoutanyso many cascading errors from that in cliLH.Gatherer.GathererMeta