Commit 68a2b0c
chore: Bump Yarn to
## Explanation
This bumps Yarn to the latest version (`4.10.3`), which includes support
for setting an age gate for NPM packages. It's set to 3 days following
the security recommendations, meaning that packages must be at least 3
days old to be installed.
## References
MetaMask/metamask-module-template#270
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Upgrades Yarn to 4.10.3, adds a 3-day npm age gate with preapproved
packages, and updates related configs and LavaMoat policy references.
>
> - **Build/Config**:
> - **Yarn upgrade**: Set `yarnPath` and root `packageManager` to
`[email protected]` in `.yarnrc.yml`, `package.json`, and `yarn.config.cjs`.
> - **NPM age gate**: Add `npmMinimalAgeGate: 4320` and
`npmPreapprovedPackages` (`@metamask/*`, `@lavamoat/*`) in
`.yarnrc.yml`.
> - **LavaMoat policy**:
> - Update `policy.json` to reference `depcheck>readdirp>picomatch`
instead of `ts-loader>micromatch>picomatch` in relevant entries.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
635d8c1. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
---------
Co-authored-by: MetaMask Bot <[email protected]>4.10.3 and configure NPM age gate (#3691)1 parent 3fda705 commit 68a2b0c
File tree
6 files changed
+957
-930
lines changed- .yarn/releases
- packages/snaps-execution-environments/lavamoat/build-system
6 files changed
+957
-930
lines changedLarge diffs are not rendered by default.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
818 | 818 | | |
819 | 819 | | |
820 | 820 | | |
821 | | - | |
| 821 | + | |
822 | 822 | | |
823 | 823 | | |
824 | 824 | | |
| |||
860 | 860 | | |
861 | 861 | | |
862 | 862 | | |
863 | | - | |
| 863 | + | |
864 | 864 | | |
865 | 865 | | |
866 | 866 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
244 | | - | |
| 244 | + | |
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
| |||
0 commit comments