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

fix all biome errors #815

Merged
merged 4 commits into from
Dec 12, 2024
Merged

fix all biome errors #815

merged 4 commits into from
Dec 12, 2024

Conversation

dirtycajunrice
Copy link
Contributor

@dirtycajunrice dirtycajunrice commented Dec 12, 2024

Changes

How this PR will be tested

  • Open the dashboard and click X. Result: A modal should appear.
  • Call the /foo/bar API. Result: Returns 200 with "baz" in the response body.

Output

(Example: Screenshot/GIF for UI changes, cURL output for API changes)


PR-Codex overview

This PR focuses on updating error handling, type safety, and configuration settings across various files, as well as upgrading dependencies to newer versions.

Detailed summary

  • Updated .github/workflows to use ubuntu-24.04.
  • Changed error handling to use unknown type instead of any.
  • Updated type assertions using as syntax.
  • Improved cache handling in src/shared/lib/cache/swr.ts.
  • Enhanced code readability in several utility files.
  • Added new dependency viem version ^2.21.54.

The following files were skipped due to too many changes: yarn.lock

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link
Contributor Author

dirtycajunrice commented Dec 12, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

@dirtycajunrice dirtycajunrice mentioned this pull request Dec 12, 2024
2 tasks
Copy link

socket-security bot commented Dec 12, 2024

👍 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.

View full report↗︎

@dirtycajunrice dirtycajunrice force-pushed the 12-11-fix_all_biome_errors branch 3 times, most recently from 2ba9f41 to 2c294a9 Compare December 12, 2024 02:39
@dirtycajunrice dirtycajunrice changed the base branch from 12-11-bump_yarn_to_berry to 12-11-update_workflow_action_versions December 12, 2024 02:47
@dirtycajunrice dirtycajunrice force-pushed the 12-11-fix_all_biome_errors branch from 2c294a9 to 498a9b3 Compare December 12, 2024 03:04
@dirtycajunrice dirtycajunrice changed the base branch from 12-11-update_workflow_action_versions to main December 12, 2024 03:04
@dirtycajunrice dirtycajunrice force-pushed the 12-11-fix_all_biome_errors branch 2 times, most recently from 589cf6f to 2c11dea Compare December 12, 2024 03:16
@dirtycajunrice dirtycajunrice force-pushed the 12-11-fix_all_biome_errors branch from 2c11dea to a9a2068 Compare December 12, 2024 03:18
@@ -14,7 +14,7 @@ jobs:
matrix:
include:
- platform: linux/amd64
runner: ubuntu-latest
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure the implication of this one. cc @d4mr

package.json Outdated
Comment on lines 95 to 98
"@thirdweb-dev/auth/**/axios": ">=1.7.8",
"@thirdweb-dev/auth/**/web3-utils": ">=4.2.1",
"ethers-gcp-kms-signer/**/protobufjs": ">=7.2.5",
"fastify/**/find-my-way": ">=8.2.2",
Copy link
Contributor

Choose a reason for hiding this comment

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

These are needed to pin versions that don't have reported vulnerabilities. synk test on this branch brings back these vulns if we remove this:

✗ Cross-site Request Forgery (CSRF) [High Severity][https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459] in [email protected]
✗ Regular Expression Denial of Service (ReDoS) [Medium Severity][https://security.snyk.io/vuln/SNYK-JS-AXIOS-6124857] in [email protected]
✗ Cross-site Scripting (XSS) [Medium Severity][https://security.snyk.io/vuln/SNYK-JS-AXIOS-6671926] in [email protected]
✗ Prototype Pollution [High Severity][https://security.snyk.io/vuln/SNYK-JS-WEB3UTILS-6229337] in [email protected]

Copy link
Contributor

Choose a reason for hiding this comment

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

Some of these may be removable since I only see the first two deps in this vuln report list.

Comment on lines 119 to 121
(
await userOpRes.json()
) as RpcResponse;
Copy link
Contributor

Choose a reason for hiding this comment

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

Did biome format this? This seems weird and lower redability.

Copy link
Contributor

Choose a reason for hiding this comment

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

My biome corrects this back

Copy link

Report too large to display inline

View full report↗︎

@arcoraven arcoraven merged commit d982be9 into main Dec 12, 2024
7 checks passed
@arcoraven arcoraven deleted the 12-11-fix_all_biome_errors branch December 12, 2024 04:45
nischitpra pushed a commit that referenced this pull request Dec 12, 2024
* bump yarn to berry

* fix all biome errors

* bring back pinned resolved deps, fix whitepsace

---------

Co-authored-by: Phillip Ho <[email protected]>
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