Skip to content

Bump foundation deps (2025.03)#17526

Merged
Lemonexe merged 5 commits intodevelopfrom
bump-foundation-deps-2025.03
Mar 11, 2025
Merged

Bump foundation deps (2025.03)#17526
Lemonexe merged 5 commits intodevelopfrom
bump-foundation-deps-2025.03

Conversation

@Lemonexe
Copy link
Copy Markdown
Contributor

@Lemonexe Lemonexe commented Mar 10, 2025

Description

Update most Foundation-related dependencies.

major version:

  • electron
  • @hookform/resolvers

minor version:

  • uuid
  • @eslint/js
  • eslint
  • eslint-plugin-mdx
  • eslint-plugin-react-hooks
  • typescript-eslint

patch version:
none

not updated:

  • tiny-secp256k1 TODO in #12261
  • electron-store blocked by #14482

ℹ️ For reference, last bump foundation deps PR was #16880
👁️ I skimmed through all code changes except eslint-related packages and electron; found nothing suspicious ✅

Related Issue

Resolve #17495

QA

👁️ Besides CI checks, I have tested locally:

  • suite dev desktop
    • app builds & runs
    • tor works
    • sign & verify form validation works (invalid address or message too long or empty)
  • suite lite dev
    • any form validation works, for example you can't enter empty passphrase
  • suite desktop build linux:
    • app builds & runs
    • app update works

@coderabbitai ignore

@socket-security
Copy link
Copy Markdown

socket-security Bot commented Mar 10, 2025

👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

Ignoring: npm/@standard-schema/utils@0.3.0, npm/@eslint/config-helpers@0.1.0

View full report↗︎

Next steps

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/foo@1.0.0 or ignore all packages with @SocketSecurity ignore-all

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 10, 2025

🚀 Expo preview is ready!

  • Project → trezor-suite-preview
  • Platforms → android, ios
  • Scheme → trezorsuitelite
  • Runtime Version → 26
  • More info

Learn more about 𝝠 Expo Github Action

@Lemonexe
Copy link
Copy Markdown
Contributor Author

Lemonexe commented Mar 10, 2025

@SocketSecurity ignore npm/@standard-schema/utils@0.3.0
We don't even use this part of @hookform/resolvers, which offers many many schema validators, but we use only yup
@SocketSecurity ignore npm/@eslint/config-helpers@0.1.0
Ok, it's a newly published package by eslint as part of their monorepo

@Lemonexe Lemonexe force-pushed the bump-foundation-deps-2025.03 branch 2 times, most recently from bd0cec0 to fed8b39 Compare March 11, 2025 10:28
@Lemonexe Lemonexe marked this pull request as ready for review March 11, 2025 10:49
Comment thread packages/suite-desktop-core/src/libs/app-utils.ts Outdated
},
"dependencies": {
"@hookform/resolvers": "3.10.0",
"@hookform/resolvers": "^4.1.3",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👀

Copy link
Copy Markdown
Contributor

@peter-sanderson peter-sanderson Mar 11, 2025

Choose a reason for hiding this comment

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

I went through changelog as it is a mojor version upgrade and ti seems ok

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.

Thanks, I used yarn up and did not notice. It usually upholds the range specifier (it does with electron).
Ofc I can lock it to patch, though mayb we don't have to 🤔
It's just wrapper for Yup for form validation, so I don't believe that to be critical from security or maintenance perspetive, what do you think?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

wait wait there is BC for "ajv" and to my suprose we somehow use it: "ajv": "^8.17.1",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

BUt it seems we only use it in suite-common/token-definitions/scripts/utils/validate.ts so it shall not be affected by the possible incompatibility of the formhok stuff

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.

Well that seems ok. We have ajv installed directly and import it directly.
If @hookform/resolvers just changed its wrapper for ajv, than we are fine with that, because we don't use ajv through @hookform/resolvers

Comment thread yarn.lock
languageName: node
linkType: hard

"ignore@npm:^6.0.0":
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

☝️ this is sus, dedupe wont solve it?

This may be legit if those version are incompatible and we have 2 dependencies who needs different versions. But its sus.

Copy link
Copy Markdown
Contributor Author

@Lemonexe Lemonexe Mar 11, 2025

Choose a reason for hiding this comment

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

It won't; I always run yarn dedupe for each commit when bumping deps.
I don't consider it sus. We already had ignore@5 and ignore@7. It is required by multiple libs; one of them is unified-engine which went from 5 to 6, so now we have 5,6,7 🤷
Dedupe always considers major version incompatible, which seems reasonable to me?
This particular version ends up only as dev dependency btw, because unified-engine is required by eslint-mdx.

Copy link
Copy Markdown
Contributor

@marekrjpolak marekrjpolak left a comment

Choose a reason for hiding this comment

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

State patch feature LGTM.

@Lemonexe Lemonexe force-pushed the bump-foundation-deps-2025.03 branch from fed8b39 to d346559 Compare March 11, 2025 12:55
@Lemonexe
Copy link
Copy Markdown
Contributor Author

Ad failing [Test] suite-desktop e2e: only those assertions fail the test, so I'm merging:
New Firmware was released but it was not yet adopted by our test CIs. Please contact @testautomationhelp in #tech_qa

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.03)

3 participants