Skip to content

chore: update all app node dependencies #2488

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

Merged
merged 18 commits into from
Mar 16, 2025

Conversation

cprussin
Copy link
Collaborator

@cprussin cprussin commented Mar 16, 2025

DEAR REVIEWER: please note I've painstakingly split this PR into commits that are logically separated. It should be fairly easy to review if you look through commit-by-commit -- many of the commits are just the same mechanical change applied to the whole monorepo....

Summary

This PR moves all of our web apps to using exclusively catalog dependencies and upgrades all catalog dependencies to latest verisons.

While doing this, this PR also includes fixes (mostly automated) for newly enforced eslint rules, stricter typechecking introduced by the upgraded typescript version, and improved prettier formatting in some places. This PR also migrates some code to remove deprecated API usage and take advantage of newer lib features in a few of our libs where appropriate.

Rationale

There are a number of reasons to get this upgrade done:

  • We were starting to lag behind on some of our libs and were missing out on latest & greatest features, for instance we were missing some great new eslint rules, typechecking capabilities, and react-aria components.
  • I have upgraded my @cprussin tool configs and the newer version resolves a few dependency pinning issues that we'd been working around
  • The newer versions of nextjs & react should pave the way for some performance improvement work I plan to get to in the insights hub soon
  • We had a mounting pile of hacks for things that have been fixed upstream and we simply hadn't upgraded and removed the hacks, this was growing and getting concerning

Also fixes UI-25

How has this been tested?

  • Current tests cover my changes
  • Added new tests
  • Manually tested the code

cprussin added 15 commits March 15, 2025 22:54
This commit migrates all apps to using exclusively catalog dependencies, and
upgrades all catalog dependencies.
This PR separates type imports from value imports, in compliance with a newly
enforced eslint rule from the new @cprussin configs.

This rule is important as it helps prevent cases where tree shaking is less
effective due to modules getting included in the runtime build which are in fact
only used for type imports.
The main disable here is disabling unicorn/prefer-math-min-max where it would
downcast bigints to numbers.
There were a few @ts-expect-error and eslint-disable lines caused by typings
which have been now fixed in the underlying libraries and so we can now remove
those annotatinos.
The upgraded react-aria library comes with much upgraded Toast apis, so this
commit moves us to take advantage of those
This commit fixes places where we were using deprecated APIs or misusing types
which can now be caught with our upgraded typescript parser.
@cprussin cprussin requested a review from keyvankhademi March 16, 2025 06:28
@cprussin cprussin requested a review from a team as a code owner March 16, 2025 06:28
Copy link

linear bot commented Mar 16, 2025

Copy link

vercel bot commented Mar 16, 2025

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

Name Status Preview Comments Updated (UTC)
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 16, 2025 4:32pm
5 Skipped Deployments
Name Status Preview Comments Updated (UTC)
api-reference ⬜️ Ignored (Inspect) Visit Preview Mar 16, 2025 4:32pm
component-library ⬜️ Ignored (Inspect) Visit Preview Mar 16, 2025 4:32pm
entropy-debugger ⬜️ Ignored (Inspect) Visit Preview Mar 16, 2025 4:32pm
insights ⬜️ Ignored (Inspect) Visit Preview Mar 16, 2025 4:32pm
proposals ⬜️ Ignored (Inspect) Visit Preview Mar 16, 2025 4:32pm

Copy link

linear bot commented Mar 16, 2025

UI-25 Fix storybook

@cprussin cprussin changed the title Update all app node dependencies chore: update all app node dependencies Mar 16, 2025
This breaks `turbo-ignore`'s ability to detect the turbo version and results in
Vercel being unable to skip unneeded builds.

See vercel/turborepo#10048
Copy link

@guiyumin guiyumin left a comment

Choose a reason for hiding this comment

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

Lots of work. Thanks

@cprussin cprussin merged commit c905fbe into main Mar 16, 2025
12 checks passed
@cprussin cprussin deleted the cprussin/ui-24-update-dependencies branch March 16, 2025 22:34
@cprussin cprussin mentioned this pull request Mar 17, 2025
3 tasks
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.

2 participants