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

[SDK] Fix: Remove and Prevent console.log #5527

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

gregfromstl
Copy link
Member

@gregfromstl gregfromstl commented Nov 26, 2024

CNCT-2483


PR-Codex overview

This PR focuses on removing console.log statements across various files to clean up the code and improve maintainability. It also adjusts some configurations in the biome.json file related to console logging rules.

Detailed summary

  • Removed console.log statements from multiple test files and utility functions.
  • Updated biome.json to modify rules for console usage, allowing errors and warnings but restricting general logs.
  • Cleaned up the send-eip712-transaction.test.ts, smart-wallet-zksync.test.ts, and others by eliminating debugging outputs.

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

Copy link

linear bot commented Nov 26, 2024

Copy link

vercel bot commented Nov 26, 2024

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

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 26, 2024 10:44pm
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 26, 2024 10:44pm
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 26, 2024 10:44pm
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 26, 2024 10:44pm

Copy link

changeset-bot bot commented Nov 26, 2024

⚠️ No Changeset found

Latest commit: d3139b2

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

graphite-app bot commented Nov 26, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

@github-actions github-actions bot added packages SDK Involves changes to the thirdweb SDK labels Nov 26, 2024
Copy link
Contributor

github-actions bot commented Nov 26, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 47.92 KB (0%) 959 ms (0%) 380 ms (+193.58% 🔺) 1.4 s
thirdweb (cjs) 107.27 KB (0%) 2.2 s (0%) 363 ms (+9.17% 🔺) 2.6 s
thirdweb (minimal + tree-shaking) 5.58 KB (0%) 112 ms (0%) 86 ms (+396.11% 🔺) 198 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 3 ms (-48.71% 🔽) 13 ms
thirdweb/react (minimal + tree-shaking) 18.28 KB (-0.08% 🔽) 366 ms (-0.08% 🔽) 48 ms (+129.28% 🔺) 414 ms

Copy link
Member Author

gregfromstl commented Nov 26, 2024

Merge activity

  • Nov 26, 2:57 PM EST: The merge label 'merge-queue' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Nov 26, 5:32 PM EST: A user added this pull request to the Graphite merge queue.
  • Nov 26, 5:45 PM EST: A user merged this pull request with the Graphite merge queue.

Copy link

codecov bot commented Nov 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 46.20%. Comparing base (cedd9c8) to head (d3139b2).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5527      +/-   ##
==========================================
+ Coverage   46.18%   46.20%   +0.01%     
==========================================
  Files        1083     1080       -3     
  Lines       58683    58569     -114     
  Branches     3936     3929       -7     
==========================================
- Hits        27105    27060      -45     
+ Misses      30895    30826      -69     
  Partials      683      683              
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from cedd9c8
packages 41.75% <100.00%> (+<0.01%) ⬆️

*This pull request uses carry forward flags. Click here to find out more.

Files with missing lines Coverage Δ
...ontract/deployment/zksync/zkDeployDeterministic.ts 19.27% <ø> (+0.67%) ⬆️
...act/web/ui/ConnectWallet/screens/Buy/BuyScreen.tsx 3.96% <ø> (+0.01%) ⬆️
packages/thirdweb/src/wallets/smart/lib/bundler.ts 6.13% <ø> (+0.21%) ⬆️
...ckages/thirdweb/src/wallets/smart/lib/constants.ts 41.02% <ø> (-1.48%) ⬇️
...ckages/thirdweb/src/wallets/smart/lib/paymaster.ts 7.35% <100.00%> (+0.31%) ⬆️

... and 4 files with indirect coverage changes

CNCT-2483

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on removing `console.log` statements from various files to clean up the code and improve maintainability. It also modifies the linter configuration to adjust rules related to console usage.

### Detailed summary
- Removed `console.log` statements from multiple test and implementation files.
- Adjusted linter configuration to allow specific console warnings only.
- Updated `biome.json` to include new linter rules for console usage.
- Cleaned up unused imports related to `DEBUG` constants.

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

<!-- end pr-codex -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge-queue Adds the pull request to Graphite's merge queue. packages SDK Involves changes to the thirdweb SDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants