When @ethersproject will be updated ? #4079
Replies: 3 comments 4 replies
-
Looks like the source code is no longer a mono-repo form so it appears that there won't be any individual packages any more for v6 I did not find a roadmap or announcement thing so I don't know why the decision is made, but I would think v5's structure is better: my project does not use any cryptography algorithm in JS and mainly using ethers' orther parts (bytes, conversions, big number), so ethers v5 helps me find out that I did not include any of them by mistake |
Beta Was this translation helpful? Give feedback.
-
I use a monorepo, but none of my packages need more than 2 or 3 ethers.js packages. However, all of them can be installed separately and it doesn't make sense for my case have to install ethers.js umbrella on all of them. @ricmoo I would very much appreciate you to give a position on this issue. Is the current architecture change permanent? |
Beta Was this translation helpful? Give feedback.
-
There is little need with modern tools to break the package apart into myriad packages as was done in v5, since with proper organization of files (which v6 does), tree-shaking performs much better than monorepos at producing smaller code footprints. A monorepo requires a lot more package management overhead (which slows down development and turn around on features and bug fixes; as I am one person, the less time I spend on administrative tasks, the more time I can spend on coding ;)) and monorepos results in larger bundles anyways. :) The versioning with a monorepo also lead to a lot of dependency confusion and mismanagement by dependants, which often resulted in multiple versions of the same package being installed, further inflating the size of a project’s footprint. I wrote (and spent a lot of time on) reticulate for the purpose of managing the monorepo, but after experimenting with tree-shaking and building a few projects on both versions of v6, it was obvious that the monorepo pattern is no longer necessary and has far more downsides. Does that help explain the decision? Feel free to inquire more. :) |
Beta Was this translation helpful? Give feedback.
-
Hello!
I saw in @ethersproject's individual packages a possible solution to reduce the size of my bundles.
But I noticed that the project is not as up to date as the umbrella package.
Beta Was this translation helpful? Give feedback.
All reactions