web icon indicating copy to clipboard operation
web copied to clipboard

Upgrade TypeScript to 4.7.4

Open justinfagnani opened this issue 1 year ago • 1 comments

Also upgrades related ESLint plugins

What I did

  1. yarn install -D typescript@latest -W
  2. Set version constraint to use ~ since TypeScript doesn't follow semver
  3. Fix new errors a. Most were cause by catch parameters (error) being unknown. I cast these to specific Error types when possible. b. One set of errors was around very dynamic console patching that wasn't very type safe to begin with.
  4. Upgrade the TypeScript ESLint parser and plugin

I'm unsure whether the upgraded tsc will cause .d.ts changes that are backwards incompatible. This should be checked before merging. It's possible, because I needed to upgrade TypeScript to be able to upgrade parse5, since parse5 7.0 uses type imports that TypeScript 4.1 can't parse.

justinfagnani avatar Aug 25 '22 01:08 justinfagnani

🦋 Changeset detected

Latest commit: 6201a609f5b51f5539c93fc798a3e6f9a2a38935

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

changeset-bot[bot] avatar Aug 25 '22 01:08 changeset-bot[bot]