Skip to content

Bump foundation deps 2025.10#22314

Merged
Lemonexe merged 4 commits intodevelopfrom
bump_foundation_deps_2025.10
Oct 10, 2025
Merged

Bump foundation deps 2025.10#22314
Lemonexe merged 4 commits intodevelopfrom
bump_foundation_deps_2025.10

Conversation

@Lemonexe
Copy link
Copy Markdown
Contributor

@Lemonexe Lemonexe commented Oct 8, 2025

Description

Update most Foundation-related dependencies.

major version:

  • eslint-plugin-react-hooks
    • updated loading of default config

minor version:

  • typescript-eslint
  • @eslint/js
  • eslint
  • react-router
  • globals
  • react-hook-form
  • tar

patch version:

  • @hookform/resolvers

not updated:

  • temporary electron because of bug in latest version, see #22188
  • new uuid TODO in #22316 new major version is ESM only, but blocked by playwright, not by electron-main
  • electron-store + chalk TODO in #14482
    • @noble/hashes new major version is ESM only, adding to this list. But even if it wasn't, not worth upgrading: direct code usage in trezor-suite is minimal, mostly it's a subdep of other deps, and those still pin 1.8.0. In such a case I think it's best to use the same version as required by our deps.
  • tiny-secp256k1 TODO in #12261
  • nx TODO in #18812
  • electron-builder TODO in #18919

ℹ️ For reference, last bump foundation deps PR was #21285

Related Issue

Resolve #22187

Dev QA

👁️ Besides CI checks and the QA instructions in issue, I have tested locally:

  • tar: tried locally yarn tsx ./scripts/ci/connect-bump-versions.ts but early returning before git push, works well

🔍🖥️ Suite web test results: View in Currents

🔍🖥️ Suite desktop test results: View in Currents

🔍🖥️ Suite native android test results: View in Currents

@Lemonexe Lemonexe force-pushed the bump_foundation_deps_2025.10 branch from 58605b1 to bc857c0 Compare October 8, 2025 11:59
stream-browserify
swr
tailwindcss
tar
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this is only used in script connect-bump-versions.ts so I'm reassigning this to connect team

@Lemonexe Lemonexe force-pushed the bump_foundation_deps_2025.10 branch from bc857c0 to f55891a Compare October 8, 2025 13:01
@trezor-bot
Copy link
Copy Markdown
Contributor

trezor-bot Bot commented Oct 8, 2025

✅ Previously successful run of [Test] PR Suite Web e2e tests workflow has been found.
⏭️ Skipping tests for this run.
💡 If you are unsure about your latest changes, please rerun the workflow manually. (Use the Re-run all jobs option)

FormValues extends BuyFormValues | ExchangeFormValues | SellFormValues,
type BottomSheetControls = ReturnType<typeof useBottomSheetControls>;
type FormUnion = BuyFormValues | ExchangeFormValues | SellFormValues;
// explicit return type declaration, because typescript reaches its limits when trying to infer type
Copy link
Copy Markdown
Contributor Author

@Lemonexe Lemonexe Oct 8, 2025

Choose a reason for hiding this comment

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

after bumping react-hook-form, TS blew on me at useSheetControls:

TS5088: The inferred type of 'useSheetControls' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary.
TS7056: The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed.

Consultation with GPT-5 told me I should explicitly define return type, as TS can no longer handle the complexity of the inferred type. After a bit of tinkering, this satisfies TS. But I cannot say I understand these types, the labyrinth of generic types in the react-hook-form library confuses the hell out of me 😆

@Lemonexe Lemonexe marked this pull request as ready for review October 8, 2025 13:04
@Lemonexe Lemonexe requested review from a team and karliatto as code owners October 8, 2025 13:04
@Lemonexe Lemonexe force-pushed the bump_foundation_deps_2025.10 branch from f55891a to 54182db Compare October 8, 2025 13:10
@Lemonexe
Copy link
Copy Markdown
Contributor Author

Lemonexe commented Oct 8, 2025

Will merge despite failing onboarding/t1b1/t1b1-create-wallet.test.ts which is confirmed broken

@Lemonexe
Copy link
Copy Markdown
Contributor Author

Lemonexe commented Oct 9, 2025

/rebase

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Oct 9, 2025

@trezor-bot trezor-bot Bot force-pushed the bump_foundation_deps_2025.10 branch from 54182db to e42c624 Compare October 9, 2025 06:25
Copy link
Copy Markdown
Contributor

@OriginalEveres OriginalEveres left a comment

Choose a reason for hiding this comment

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

code LGTM and briefly tested, approving

@Lemonexe Lemonexe merged commit 21795df into develop Oct 10, 2025
47 of 48 checks passed
@Lemonexe Lemonexe deleted the bump_foundation_deps_2025.10 branch October 10, 2025 11:03
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.

Bump foundation deps (2025.10)

2 participants