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

chore: Update packages #1119

Merged
merged 36 commits into from Oct 10, 2023
Merged

chore: Update packages #1119

merged 36 commits into from Oct 10, 2023

Conversation

bprusinowski
Copy link
Collaborator

@bprusinowski bprusinowski commented Aug 15, 2023

Closes #1048.

This PR is the first step towards updating the apps' packages to recent versions. This might be necessary, as some of the versions we use are four years old, and we need to update them to e.g. make sure our Vercel deployments still run (Node 18).

It might also bring us some performance improvements, assuming that the packages we use were also optimised along the way.

For more information, see the internal migration plan.

  • Update Node.js from v16 to v18
  • Update Next.js from v11 to v13
  • Update React from v17 to v18
  • Update next-auth from v4.10 to v4.23
  • Update apollo-server-micro from v2 to v3
  • Update several smaller packages.

React 18 changed the way the functional components are typed – now it's necessary to explicitly type children prop. As some of the libraries we use (e.g. react-beautiful-dnd) have not upgraded the type definitions to update types, we could either:

  • add the older React types to resolution in package.json and keep the new types in devDependencies (which results in an error when installing the dependencies with --frozen-lockfile),
  • use older React types (17.0.2) in devDependencies,
  • replace the libraries with alternatives that officially support React 18.

After looking at the breaking type updates, I think we could stick to older types for the time being, and potentially replace unsupported libraries over the time.

@vercel
Copy link

vercel bot commented Aug 15, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
visualization-tool ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 9, 2023 10:37am

…ng React 18 to still work

...mostly by allowing FC components to accept children prop.
@bprusinowski bprusinowski merged commit 1775052 into main Oct 10, 2023
4 of 6 checks passed
@bprusinowski bprusinowski deleted the perf/general-optimizations branch October 10, 2023 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update Node to v18
2 participants