timdaub pfp
timdaub
@timdaub.eth
Kiwi News bundle.js. It's sadly 2MB big and I'd like to reduce its size. But I don't see any obvious optimizations.
9 replies
1 recast
2 reactions

Joe Toledano pfp
Joe Toledano
@joetoledano
Can you migrate from Ethers to Viem?
1 reply
0 recast
0 reaction

timdaub pfp
timdaub
@timdaub.eth
I‘m open to it but what are the consequences and what do I gain?
1 reply
0 recast
0 reaction

Joe Toledano pfp
Joe Toledano
@joetoledano
Outside of the time to migrate, would check to see if there's any gaps in coverage for how you currently use Ethers (migration guide: https://viem.sh/docs/ethers-migration.html) but you'd likely see some benefits from a bundle size & performance standpoint: https://viem.sh/docs/introduction.html#bundle-size
1 reply
0 recast
1 reaction

timdaub pfp
timdaub
@timdaub.eth
I feel a bit sad for @ricmoo also: Why migrate from ethers, it's a good lib no?
2 replies
0 recast
1 reaction

RicMoo.eth pfp
RicMoo.eth
@ricmoo
I’d be curious to hear from real-world users what they prefer from one or the other. I personally use ethers (obviously) and am used to it, so maybe there are features missing? I’m always open to discussions though, if so. :)
2 replies
0 recast
0 reaction

timdaub pfp
timdaub
@timdaub.eth
na I don't have any obvious features missing, it's all good. One issue was definitely that in-between versions the EIP712 method name changed or something (I remember darkly). But I just looked at the viem bundler size savings and they aren't significant enough to switch.
1 reply
0 recast
0 reaction

RicMoo.eth pfp
RicMoo.eth
@ricmoo
I’m curious if they support ENS? Because just the minimal normalize implementation for ENS is 27kb itself… Ethers is pretty lean, and only includes essentials, so not sure what they trim. The EIP-712 method changed from ._signTypedData to .signTypedData because it’s no longer experimental. :)
0 reply
0 recast
1 reaction