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

feat: add methods.{include|exclude} on transport options #3238

Merged
merged 4 commits into from
Jan 19, 2025

Conversation

jxom
Copy link
Member

@jxom jxom commented Jan 19, 2025

No description provided.

Copy link

changeset-bot bot commented Jan 19, 2025

🦋 Changeset detected

Latest commit: 384bce0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
viem Patch

Not sure what this means? Click here to learn what changesets are.

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

Copy link

vercel bot commented Jan 19, 2025

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

Name Status Preview Updated (UTC)
viem ✅ Ready (Inspect) Visit Preview Jan 19, 2025 8:19am

@jxom jxom marked this pull request as ready for review January 19, 2025 07:55
Copy link

codecov bot commented Jan 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.61%. Comparing base (d7efab3) to head (384bce0).
Report is 6 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff            @@
##             main    #3238    +/-   ##
========================================
  Coverage   99.61%   99.61%            
========================================
  Files         918      920     +2     
  Lines       73491    73607   +116     
  Branches     3206     3211     +5     
========================================
+ Hits        73207    73326   +119     
+ Misses        264      263     -1     
+ Partials       20       18     -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

github-actions bot commented Jan 19, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
import * from 'viem' (esm) 64.04 KB (+0.19% 🔺) 1.3 s (+0.19% 🔺) 17.3 s (+191.94% 🔺) 18.6 s
const viem = require('viem') (cjs) 75.87 KB (+0.11% 🔺) 1.6 s (+0.11% 🔺) 25.6 s (+48.85% 🔺) 27.1 s
import { createClient, http } from 'viem' 6.4 KB (+1.15% 🔺) 128 ms (+1.15% 🔺) 1.9 s (+66.57% 🔺) 2 s
import * from 'viem/account-abstraction' 47.61 KB (-0.05% 🔽) 953 ms (-0.05% 🔽) 10.5 s (-33.28% 🔽) 11.5 s
import { toCoinbaseSmartAccount } from 'viem/account-abstraction' 36.12 KB (+0.02% 🔺) 723 ms (+0.02% 🔺) 12.3 s (+52.39% 🔺) 13 s
import * from 'viem/accounts' 82.48 KB (0%) 1.7 s (0%) 9.1 s (-16.4% 🔽) 10.7 s
import { privateKeyToAccount } from 'viem/accounts' 21.06 KB (0%) 422 ms (0%) 4.7 s (+44.25% 🔺) 5.1 s
import { mnemonicToAccount } from 'viem/accounts' 27.36 KB (0%) 548 ms (0%) 3.9 s (-17.29% 🔽) 4.4 s
import * from 'viem/actions' 49.06 KB (+0.15% 🔺) 982 ms (+0.15% 🔺) 12.9 s (+59.48% 🔺) 13.9 s
import { getBlockNumber } from 'viem/actions' 318 B (0%) 10 ms (0%) 36 ms (+14.52% 🔺) 46 ms
import * from 'viem/chains' 42.3 KB (0%) 847 ms (0%) 9.4 s (-45.42% 🔽) 10.3 s
import { mainnet } from 'viem/chains' 325 B (0%) 10 ms (0%) 43 ms (-57.4% 🔽) 53 ms
import * from 'viem/chains/utils' 1.08 KB (0%) 22 ms (0%) 61 ms (-83.79% 🔽) 82 ms
import * from 'viem/ens' 46.15 KB (+0.06% 🔺) 924 ms (+0.06% 🔺) 8.7 s (-11.32% 🔽) 9.7 s
import { getEnsAvatar } from 'viem/ens' 22.43 KB (-0.02% 🔽) 449 ms (-0.02% 🔽) 4.8 s (-19.11% 🔽) 5.3 s
import * from 'viem/siwe' 31.46 KB (0%) 630 ms (0%) 10 s (-14.73% 🔽) 10.6 s
import { verifySiweMessage } from 'viem/siwe' 30.4 KB (0%) 609 ms (0%) 9.8 s (-16.42% 🔽) 10.4 s

@jxom jxom merged commit 28ff809 into main Jan 19, 2025
30 of 36 checks passed
@jxom jxom deleted the transport-includelist branch January 19, 2025 10:38
@github-actions github-actions bot mentioned this pull request Jan 19, 2025
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.

1 participant