Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Typescript to 5.x and related dependencies #1545

Merged
merged 22 commits into from
Mar 6, 2024
Merged

Conversation

jonathonherbert
Copy link
Contributor

@jonathonherbert jonathonherbert commented Feb 27, 2024

What's changed?

Bumps Typescript and Jest, in preparation for Vite.

As a result of changes in types, this means bumping a few other packages and/or their types, including eslint, react, redux and their bindings, and styled-components.

Because the linting style of eslint and its typescript plugin has changed, we must also include a large lint --fix as part of this PR. I've isolated that to a single commit to make it easier to tell apart the linting no-op from other changes.

Implementation notes

This is a large PR! I've tried to make sure the commits tell the story. Happy to pair to review.

There are very few runtime changes outside of those versions – I've kept them scoped to 662fd39 to make them easier to identify in case of problems.

Worth noting that we have good integration tests on this project for card rendering, drag and drop, etc. that should give us some confidence things are working as expected.

Checklist

General

  • 🤖 Relevant tests added
  • ✅ CI checks / tests run locally
  • 🔍 Checked on CODE

Client

  • 🚫 No obvious console errors on the client (i.e. React dev mode errors)
  • 🎛️ No regressions with existing user interactions (i.e. all existing buttons, inputs etc. work)
  • 📷 Screenshots / GIFs of relevant UI changes included

@jonathonherbert jonathonherbert force-pushed the jsh/bump-deps branch 2 times, most recently from c7ebca8 to e025d89 Compare March 1, 2024 11:24
import path from 'path';
import common from './webpack.config.common.js';
const path = require('path');
const common = require('./webpack.config.common.js');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should not be mixing and matching import styles here, so I've moved all webpack config to CommonJS.

To thread the needle between puppeteer (16+) and webpack 4 (<18)
…causing crashes

hopefully we can catch these errors and treat them as special cases
@jonathonherbert jonathonherbert marked this pull request as ready for review March 1, 2024 12:47
@jonathonherbert jonathonherbert requested a review from a team as a code owner March 1, 2024 12:47
@jonathonherbert jonathonherbert merged commit e75742d into main Mar 6, 2024
1 check passed
@jonathonherbert jonathonherbert deleted the jsh/bump-deps branch March 6, 2024 09:48
@prout-bot
Copy link

Seen on PROD (merged by @jonathonherbert 11 minutes and 35 seconds ago) Please check your changes!

jonathonherbert added a commit that referenced this pull request Mar 6, 2024
@jonathonherbert jonathonherbert mentioned this pull request Mar 6, 2024
6 tasks
jonathonherbert added a commit that referenced this pull request Mar 6, 2024
jonathonherbert added a commit that referenced this pull request Mar 20, 2024
jonathonherbert added a commit that referenced this pull request May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants