Upgrade yarn version#1211
Conversation
Since we're not in a hurry most of the time, I think it's ok to use "7d", it should be enough to prevent most of the supply chain attacks. And use npmPreapprovedPackages for |
We also have to think about the opposite side of this. When you want to update to a safer version currently released (nextjs / react recently). I guess you just need to add temporarily to Also, for our |
I think yes, I don't see other solutions
Yes, wanted to say it too but forgot |
|
Hey guys thanks for the discussion! So been researching as well, and I think:
yeah I dont see a better solution either, but for now I have added (our maintainer packages + react, next patch versions) since those are main ones. We can can also think of allowing (hardhat patch version) their. And for some excpetional cases we follow the flow of adding packages on-demand and then removing them.
Ohh yes! We shall add them 🙌 |
|
I think we need to remove react/next from preapproved packages. For last react/next CVE's it works (when patch versions added the fixes), but probably it's better to update them that way just in case?
|
Ohh man :( I seee yup and agree, the more I think and read it just makes sense to only have our packages (which are controled by us) to have in |
|
This is ready to be merged I feel 🙌 |
|
Was having a meeting with Carlos earlier and he flagged a concern, since we have Digging a bit, Also tried running a small verification of both behaviors locally with yarn 4.10.3: Setup: fresh project on yarn 4.10.3 with
sidquest:I went to check how scaffold-ui is actually built, because I kept wondering if maybe the deps are bundled into the dist and the consumer never resolves them. Turns out no. All three packages (hooks, components, debug-contracts) just run So this is safe to merge 🙌 and yup the behvaour doesn't change for create-eth since while doing yarn install only while creating the yarn.lock it follows all this rules |
|
Thanks for the research, Shiv! <3 |
|
Merging this 🙌 |
Description
Ran:
The #1184 seems way too old. Also, I'm not sure what commands they used to migrate because there are some files that need to be added which were not present.
TODO:
npmMinimalAgeGateand see whats the best and standard people are using and add it (check Upgrade yarn version #1211 (comment))