Skip to content

Commit 164ccd5

Browse files
committed
build(deps): adopt yarn 4.14.1 with further software supply chain hardening
this version adopts a default posture of disallowing package scripts to run unless specifically configured to do so we've followed that default posture here, and just allowed the specific packages we expect to run scripts to do so in addition the 2 separate sub-workspaces are now pointing to a single yarn install in the root workspace, for easier upgrades in the future (or at least, it won't be possible to upgrade them separately as the binary will disappear and the sub-workspaces will error, highlighting the need to update their .yarnrc.yml yarnPath entry and make sure they work)
1 parent db4537b commit 164ccd5

11 files changed

Lines changed: 1018 additions & 948 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
yarnPath: ../../../.yarn/releases/yarn-4.14.1.cjs

.github/scripts/compare-types/package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,11 @@
1111
"devDependencies": {
1212
"tsx": "^4.21.0",
1313
"typescript": "^6.0.3"
14+
},
15+
"packageManager": "yarn@4.14.1",
16+
"dependenciesMeta": {
17+
"esbuild": {
18+
"built": true
19+
}
1420
}
1521
}

.github/scripts/compare-types/yarn.lock

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Manual changes might be lost - proceed with caution!
33

44
__metadata:
5-
version: 8
5+
version: 9
66
cacheKey: 10
77

88
"@esbuild/aix-ppc64@npm:0.27.3":
@@ -317,6 +317,9 @@ __metadata:
317317
ts-morph: "npm:^28.0.0"
318318
tsx: "npm:^4.21.0"
319319
typescript: "npm:^6.0.3"
320+
dependenciesMeta:
321+
esbuild:
322+
built: true
320323
languageName: unknown
321324
linkType: soft
322325

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
yarnPath: ../../../../.yarn/releases/yarn-4.14.1.cjs

.github/workflows/scripts/functions/package.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,16 @@
2222
"typescript": "^6.0.3"
2323
},
2424
"private": true,
25-
"packageManager": "yarn@4.12.0"
25+
"packageManager": "yarn@4.14.1",
26+
"dependenciesMeta": {
27+
"@firebase/util": {
28+
"built": true
29+
},
30+
"protobufjs": {
31+
"built": true
32+
},
33+
"re2": {
34+
"built": true
35+
}
36+
}
2637
}

.github/workflows/scripts/functions/yarn.lock

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Manual changes might be lost - proceed with caution!
33

44
__metadata:
5-
version: 8
5+
version: 9
66
cacheKey: 10
77

88
"@apidevtools/json-schema-ref-parser@npm:^9.0.3":
@@ -3147,6 +3147,13 @@ __metadata:
31473147
firebase-functions-test: "npm:^3.4.1"
31483148
firebase-tools: "npm:^15.16.0"
31493149
typescript: "npm:^6.0.3"
3150+
dependenciesMeta:
3151+
"@firebase/util":
3152+
built: true
3153+
protobufjs:
3154+
built: true
3155+
re2:
3156+
built: true
31503157
languageName: unknown
31513158
linkType: soft
31523159

.yarn/releases/yarn-4.12.0.cjs

Lines changed: 0 additions & 942 deletions
This file was deleted.

.yarn/releases/yarn-4.14.1.cjs

Lines changed: 940 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ plugins:
1111
path: .yarn/plugins/@yarnpkg/plugin-postinstall-dev.cjs
1212
spec: "https://raw.githubusercontent.com/sachinraja/yarn-plugin-postinstall-dev/main/bundles/%40yarnpkg/plugin-postinstall-dev.js"
1313

14-
yarnPath: .yarn/releases/yarn-4.12.0.cjs
14+
yarnPath: .yarn/releases/yarn-4.14.1.cjs

package.json

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,5 +124,31 @@
124124
"tests"
125125
]
126126
},
127-
"packageManager": "yarn@4.12.0"
127+
"packageManager": "yarn@4.14.1",
128+
"dependenciesMeta": {
129+
"@firebase/util": {
130+
"built": true
131+
},
132+
"detox": {
133+
"built": true
134+
},
135+
"dtrace-provider": {
136+
"built": true
137+
},
138+
"nx": {
139+
"built": true
140+
},
141+
"postinstall-postinstall": {
142+
"built": true
143+
},
144+
"protobufjs": {
145+
"built": true
146+
},
147+
"re2": {
148+
"built": true
149+
},
150+
"unrs-resolver": {
151+
"built": true
152+
}
153+
}
128154
}

0 commit comments

Comments
 (0)