Skip to content

Commit be9fc34

Browse files
authored
Merge pull request #18768 from mozilla/fix-nightly-ci-node-gyp
reinstall yarn.lock and fix or pin resulting dependency issues - upgrade and migrate to husky v9 - add ip undefined fallback to gql-customs to maintain type String - fix keys for settings pdf - fix anonymous-default-export - fix session-token.strategy test - fix integration test sinon ESM Jest transform - add "compression" resolution to fix "content encoding error" in Playwright test - pin stripe, typescript, flat, babel, storybook, sentry, class-validator, and twilio
2 parents 6991aed + bd4ced4 commit be9fc34

26 files changed

Lines changed: 11783 additions & 25244 deletions

File tree

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ commands:
315315
steps:
316316
- run:
317317
name: Pre building shared libraries
318-
command: NODE_OPTIONS="--max-old-space-size=7168" npx nx run-many -t build --projects=tag:scope:shared:lib --parallel=2
318+
command: NODE_OPTIONS="--max-old-space-size=7168" npx nx run-many -t build --projects=tag:scope:shared:lib --parallel=2 --verbose
319319
environment:
320320
NODE_ENV: test
321321
- run:

.husky/post-checkout

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_scripts/git-checkout-hook.sh

.husky/post-merge

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_scripts/git-merge-hook.sh

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lint-staged

package.json

Lines changed: 32 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"legal:clone": "_scripts/clone-legal-docs.sh",
2626
"gql:allowlist": "nx run-many -t gql-extract && nx run-many -t gql-copy",
2727
"check:mysql": "_scripts/check-mysql.sh",
28-
"check:url": "_scripts/check-url.sh"
28+
"check:url": "_scripts/check-url.sh",
29+
"prepare": "husky"
2930
},
3031
"homepage": "https://github.com/mozilla/fxa",
3132
"bugs": {
@@ -71,11 +72,11 @@
7172
"@paypal/react-paypal-js": "^8.7.0",
7273
"@radix-ui/react-form": "^0.1.0",
7374
"@radix-ui/react-tooltip": "^1.1.2",
74-
"@sentry/browser": "^8.42.0",
75-
"@sentry/nestjs": "^8.42.0",
76-
"@sentry/nextjs": "^8.42.0",
77-
"@sentry/node": "^8.42.0",
78-
"@sentry/opentelemetry": "^8.42.0",
75+
"@sentry/browser": "8.42.0",
76+
"@sentry/nestjs": "8.42.0",
77+
"@sentry/nextjs": "8.42.0",
78+
"@sentry/node": "8.42.0",
79+
"@sentry/opentelemetry": "8.42.0",
7980
"@stripe/react-stripe-js": "^2.7.1",
8081
"@stripe/stripe-js": "^4.9.0",
8182
"@swc/helpers": "0.5.11",
@@ -88,14 +89,13 @@
8889
"base64url": "^3.0.1",
8990
"bn.js": "^5.2.1",
9091
"class-transformer": "^0.5.1",
91-
"class-validator": "^0.14.1",
92+
"class-validator": "0.14.1",
9293
"clsx": "^2.1.1",
9394
"diffparser": "^2.0.1",
9495
"dotenv": "^16.4.5",
9596
"graphql": "^16.10.0",
9697
"graphql-request": "^6.1.0",
9798
"hot-shots": "^10.2.1",
98-
"husky": "^4.2.5",
9999
"i18n-iso-countries": "^7.14.0",
100100
"jose": "^5.9.6",
101101
"jsdom": "^26.0.0",
@@ -128,24 +128,17 @@
128128
"semver": "^7.7.1",
129129
"set-value": "^4.1.0",
130130
"sms-segments-calculator": "^1.2.0",
131-
"stripe": "^17.4.0",
131+
"stripe": "17.4.0",
132132
"superagent": "^10.2.0",
133133
"tslib": "^2.8.1",
134-
"twilio": "^5.3.5",
134+
"twilio": "5.3.5",
135135
"typedi": "^0.8.0",
136136
"uuid": "^10.0.0",
137137
"winston": "^3.17.0"
138138
},
139139
"engines": {
140140
"node": "^22.14.0"
141141
},
142-
"husky": {
143-
"hooks": {
144-
"pre-commit": "lint-staged",
145-
"post-checkout": "_scripts/git-checkout-hook.sh",
146-
"post-merge": "_scripts/git-merge-hook.sh"
147-
}
148-
},
149142
"lint-staged": {
150143
"packages/!(fxa-payments-server)/**/*.js": [
151144
"prettier --config _dev/.prettierrc --write",
@@ -168,8 +161,8 @@
168161
]
169162
},
170163
"devDependencies": {
171-
"@babel/core": "^7.26.0",
172-
"@babel/preset-react": "^7.25.7",
164+
"@babel/core": "7.25.7",
165+
"@babel/preset-react": "7.25.7",
173166
"@graphql-codegen/cli": "5.0.0",
174167
"@graphql-codegen/client-preset": "^4.3.2",
175168
"@graphql-codegen/typescript": "^4.0.1",
@@ -186,21 +179,21 @@
186179
"@nx/storybook": "20.7.1",
187180
"@nx/workspace": "20.6.2",
188181
"@opentelemetry/semantic-conventions": "^1.30.0",
189-
"@storybook/addon-essentials": "^7.6.15",
190-
"@storybook/addon-styling": "^1.3.7",
191-
"@storybook/core-common": "^7.4.5",
192-
"@storybook/core-server": "^7.6.17",
193-
"@storybook/html-webpack5": "^7.6.13",
194-
"@storybook/nextjs": "^7.6.14",
195-
"@storybook/react-webpack5": "^7.4.5",
182+
"@storybook/addon-essentials": "7.6.15",
183+
"@storybook/addon-styling": "1.3.7",
184+
"@storybook/core-common": "7.4.5",
185+
"@storybook/core-server": "7.6.17",
186+
"@storybook/html-webpack5": "7.6.13",
187+
"@storybook/nextjs": "7.6.14",
188+
"@storybook/react-webpack5": "7.5.3",
196189
"@swc-node/register": "1.10.9",
197190
"@swc/cli": "0.6.0",
198191
"@swc/core": "1.11.11",
199192
"@swc/jest": "^0.2.36",
200193
"@testing-library/react": "15.0.6",
201194
"@types/babel__core": "^7",
202195
"@types/bn.js": "^5",
203-
"@types/jest": "^29.5.1",
196+
"@types/jest": "29.5.1",
204197
"@types/jsdom": "^21",
205198
"@types/module-alias": "^2",
206199
"@types/mysql": "^2",
@@ -236,6 +229,7 @@
236229
"grunt-contrib-copy": "^1.0.0",
237230
"grunt-contrib-watch": "^1.1.0",
238231
"grunt-http": "^2.3.3",
232+
"husky": "^9.1.7",
239233
"jest": "^29.5.0",
240234
"jest-environment-jsdom": "^29.5.0",
241235
"jest-environment-node": "^29.7.0",
@@ -257,27 +251,31 @@
257251
"ts-node": "^10.9.2",
258252
"tsc-alias": "^1.8.8",
259253
"tsconfig-paths-webpack-plugin": "^4.2.0",
260-
"typescript": "^5.5.3"
254+
"typescript": "5.5.3"
261255
},
262256
"workspaces": [
263257
"packages/*"
264258
],
265259
"resolutions": {
266-
"@babel/core": "^7.22.5",
267-
"@babel/helper-module-imports": "^7.22.5",
268-
"@babel/types": "^7.22.5",
260+
"@babel/core": "7.25.7",
261+
"@babel/helper-create-class-features-plugin": "7.25.7",
262+
"@babel/helper-module-imports": "7.25.7",
263+
"@babel/plugin-transform-function-name": "7.25.7",
264+
"@babel/traverse": "7.25.7",
265+
"@babel/types": "7.25.7",
269266
"@graphql-typed-document-node/core": "3.2.0",
270267
"@svgr/webpack": "^8.0.1",
271268
"@types/node": "^20.11.1",
272-
"@types/react": "^18",
269+
"@types/react": "18.2.14",
273270
"asn1.js": ">=5.4.1",
274271
"bn.js": "^5.2.1",
275272
"browserid-crypto": "https://github.com/mozilla-fxa/browserid-crypto.git#5979544d13eeb15a02d0b9a6a7a08a698d54d37d",
276273
"css-minimizer-webpack-plugin": ">=4 <5",
274+
"compression": "1.7.4",
277275
"elliptic": ">=6.5.4",
278276
"eslint-plugin-import": "^2.25.2",
279277
"fbjs/isomorphic-fetch": "^3.0.0",
280-
"flat": ">=5.0.2",
278+
"flat": "5.0.2",
281279
"gobbledygook": "https://github.com/mozilla-fxa/gobbledygook.git#354042684056e57ca77f036989e907707a36cff2",
282280
"http-proxy": "^1.18.1",
283281
"minimist": "^1.2.6",
@@ -290,6 +288,7 @@
290288
"tap/typescript": "^4.5.2",
291289
"terser:>4.0.0 <5": ">=4.8.1",
292290
"terser:>5 <6": ">=5.14.2",
291+
"typescript": "5.5.3",
293292
"underscore": ">=1.13.2"
294293
},
295294
"packageManager": "[email protected]",

packages/functional-tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"fxa-settings": "workspace:*",
2626
"jsqr": "^1.4.0",
2727
"pdf-parse": "^1.1.1",
28-
"typescript": "^5.5.3",
28+
"typescript": "5.5.3",
2929
"upng-js": "^2.1.0"
3030
},
3131
"nx": {

packages/fxa-admin-panel/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"serve-static": "^1.16.0"
5454
},
5555
"devDependencies": {
56-
"@babel/core": "^7.26.0",
56+
"@babel/core": "7.25.7",
5757
"@rescripts/cli": "0.0.16",
5858
"@testing-library/jest-dom": "^5.16.5",
5959
"@types/chance": "^1.1.2",
@@ -84,7 +84,7 @@
8484
"supertest": "^7.0.0",
8585
"tailwindcss": "3.4.3",
8686
"tailwindcss-textshadow": "^2.1.3",
87-
"typescript": "^5.5.3",
87+
"typescript": "5.5.3",
8888
"webpack": "^5.97.0"
8989
},
9090
"nx": {

packages/fxa-admin-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"supertest": "^7.0.0",
7575
"tailwindcss": "3.4.3",
7676
"ts-jest": "^29.2.5",
77-
"typescript": "^5.5.3",
77+
"typescript": "5.5.3",
7878
"yargs": "^17.0.1"
7979
},
8080
"nx": {

packages/fxa-auth-client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"fast-text-encoding": "^1.0.4",
6464
"mocha": "^10.4.0",
6565
"prettier": "^3.5.3",
66-
"typescript": "^5.5.3",
66+
"typescript": "5.5.3",
6767
"webcrypto-liner": "^1.4.0"
6868
},
6969
"mocha": {

packages/fxa-auth-server/package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
"ioredis": "^4.28.2",
9999
"joi": "^17.13.3",
100100
"jose": "^5.9.6",
101-
"jsonwebtoken": "^9.0.0",
101+
"jsonwebtoken": "^9.0.2",
102102
"jwks-rsa": "^3.1.0",
103103
"keyv": "5.2.1",
104104
"lodash": "^4.17.21",
@@ -123,15 +123,15 @@
123123
"web-push": "3.4.4"
124124
},
125125
"devDependencies": {
126-
"@babel/core": "^7.26.0",
127-
"@babel/preset-env": "^7.22.9",
128-
"@babel/preset-react": "^7.25.7",
129-
"@babel/preset-typescript": "^7.25.7",
130-
"@storybook/addon-controls": "^7.4.6",
131-
"@storybook/addon-docs": "^7.6.12",
132-
"@storybook/addon-toolbars": "^7.0.23",
133-
"@storybook/html": "^7.6.17",
134-
"@storybook/html-webpack5": "^7.6.13",
126+
"@babel/core": "7.25.7",
127+
"@babel/preset-env": "7.25.7",
128+
"@babel/preset-react": "7.25.7",
129+
"@babel/preset-typescript": "7.25.7",
130+
"@storybook/addon-controls": "7.4.6",
131+
"@storybook/addon-docs": "7.6.12",
132+
"@storybook/addon-toolbars": "7.0.23",
133+
"@storybook/html": "7.6.17",
134+
"@storybook/html-webpack5": "7.6.13",
135135
"@types/async-retry": "^1",
136136
"@types/babel__core": "7.20.5",
137137
"@types/babel__preset-env": "^7",
@@ -140,7 +140,7 @@
140140
"@types/dedent": "^0",
141141
"@types/hapi__hapi": "^20.0.10",
142142
"@types/ioredis": "^4.26.4",
143-
"@types/jsonwebtoken": "^8.5.1",
143+
"@types/jsonwebtoken": "8.5.1",
144144
"@types/jws": "^3.2.3",
145145
"@types/lodash": "^4",
146146
"@types/luxon": "^3",
@@ -197,7 +197,7 @@
197197
"through": "2.3.8",
198198
"tsc-alias": "^1.8.8",
199199
"type-fest": "^4.38.0",
200-
"typescript": "^5.5.3",
200+
"typescript": "5.5.3",
201201
"webpack": "^5.97.0",
202202
"webpack-watch-files-plugin": "^1.2.1",
203203
"ws": "^8.17.1"

0 commit comments

Comments
 (0)