Skip to content

Commit b9ee8b7

Browse files
committed
chore: bump oxc
1 parent 8d42ae0 commit b9ee8b7

11 files changed

Lines changed: 275 additions & 247 deletions

File tree

backend/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@
8080
"@vitest/coverage-v8": "4.0.15",
8181
"concurrently": "8.2.2",
8282
"openapi3-ts": "2.0.2",
83-
"oxlint": "1.36.0",
84-
"oxlint-tsgolint": "0.10.0",
83+
"oxlint": "1.38.0",
84+
"oxlint-tsgolint": "0.10.1",
8585
"readline-sync": "1.4.10",
8686
"supertest": "7.1.4",
8787
"testcontainers": "11.10.0",

frontend/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@
8383
"madge": "8.0.0",
8484
"magic-string": "0.30.17",
8585
"normalize.css": "8.0.1",
86-
"oxlint": "1.36.0",
87-
"oxlint-tsgolint": "0.10.0",
86+
"oxlint": "1.38.0",
87+
"oxlint-tsgolint": "0.10.1",
8888
"postcss": "8.4.31",
8989
"sass": "1.70.0",
9090
"subset-font": "2.3.0",

frontend/src/email-handler.html

Lines changed: 110 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -199,15 +199,19 @@
199199
.then((resp) => {
200200
// Email address has been verified.
201201

202-
qs("main .preloader .icon")?.setHtml(`<i class="fas fa-fw fa-check"></i>`);
202+
qs("main .preloader .icon")?.setHtml(
203+
`<i class="fas fa-fw fa-check"></i>`,
204+
);
203205
qs("main .preloader .text")?.setText(
204206
`Your email address has been verified`,
205207
);
206208
qs("main .preloader .subText")?.setText(`You can now close this tab`);
207209
})
208210
.catch((error) => {
209211
console.error(error);
210-
qs("main .preloader .icon")?.setHtml(`<i class="fas fa-fw fa-times"></i>`);
212+
qs("main .preloader .icon")?.setHtml(
213+
`<i class="fas fa-fw fa-times"></i>`,
214+
);
211215
qs("main .preloader .text")?.setText(
212216
`Fatal error: ${error.message}. If this issue persists, please report it.`,
213217
);
@@ -234,8 +238,12 @@
234238
.then((email) => {
235239
var accountEmail = email;
236240

237-
var newPassword = qs<HTMLInputElement>("main .resetPassword .pwd")?.getValue();
238-
var newPasswordConfirm = qs<HTMLInputElement>("main .resetPassword .pwd-confirm")?.getValue();
241+
var newPassword =
242+
qs < HTMLInputElement > "main .resetPassword .pwd"?.getValue();
243+
var newPasswordConfirm =
244+
qs <
245+
HTMLInputElement >
246+
"main .resetPassword .pwd-confirm"?.getValue();
239247

240248
if (newPassword !== newPasswordConfirm) {
241249
alert("Passwords do not match");
@@ -258,8 +266,12 @@
258266
qs("main .preloader .icon")?.setHtml(
259267
`<i class="fas fa-fw fa-check"></i>`,
260268
);
261-
qs("main .preloader .text")?.setText(`Your password has been changed`);
262-
qs("main .preloader .subText")?.setText(`You can now close this tab`);
269+
qs("main .preloader .text")?.setText(
270+
`Your password has been changed`,
271+
);
272+
qs("main .preloader .subText")?.setText(
273+
`You can now close this tab`,
274+
);
263275

264276
signInWithEmailAndPassword(Auth, accountEmail, newPassword);
265277
})
@@ -277,7 +289,9 @@
277289
})
278290
.catch((error) => {
279291
console.error(error);
280-
qs("main .preloader .icon")?.setHtml(`<i class="fas fa-fw fa-times"></i>`);
292+
qs("main .preloader .icon")?.setHtml(
293+
`<i class="fas fa-fw fa-times"></i>`,
294+
);
281295
qs("main .preloader .text")?.setText(
282296
`Fatal error: ${error.message}. If this issue persists, please report it.`,
283297
);
@@ -303,8 +317,12 @@
303317
return applyActionCode(Auth, actionCode);
304318
})
305319
.then(() => {
306-
qs("main .preloader .icon")?.setHtml(`<i class="fas fa-fw fa-check"></i>`);
307-
qs("main .preloader .text")?.setText(`Your account email was reverted.`);
320+
qs("main .preloader .icon")?.setHtml(
321+
`<i class="fas fa-fw fa-check"></i>`,
322+
);
323+
qs("main .preloader .text")?.setText(
324+
`Your account email was reverted.`,
325+
);
308326
qs("main .preloader .subText")?.setText(``);
309327

310328
qs("main .preloader")?.appendHtml(`
@@ -325,21 +343,27 @@
325343
})
326344
.catch((error) => {
327345
console.error(error);
328-
qs("main .preloader .icon")?.setHtml(`<i class="fas fa-fw fa-times"></i>`);
346+
qs("main .preloader .icon")?.setHtml(
347+
`<i class="fas fa-fw fa-times"></i>`,
348+
);
329349
qs("main .preloader .text")?.setText(error.message);
330350
});
331351
}
332352

333353
function sendPasswordReset(email) {
334354
sendPasswordResetEmail(Auth, email)
335355
.then(() => {
336-
qs("main .preloader .icon")?.setHtml(`<i class="fas fa-fw fa-check"></i>`);
356+
qs("main .preloader .icon")?.setHtml(
357+
`<i class="fas fa-fw fa-check"></i>`,
358+
);
337359
qs("main .preloader .text")?.setText(`Password reset email sent`);
338360
qs("main .preloader .subText")?.setText(`Please check your inbox`);
339361
})
340362
.catch((error) => {
341363
console.error(error);
342-
qs("main .preloader .icon")?.setHtml(`<i class="fas fa-fw fa-times"></i>`);
364+
qs("main .preloader .icon")?.setHtml(
365+
`<i class="fas fa-fw fa-times"></i>`,
366+
);
343367
qs("main .preloader .text")?.setText(error.message);
344368
});
345369
}
@@ -354,82 +378,86 @@
354378
}
355379

356380
onDOMReady(() => {
357-
try {
358-
// Get the action to complete.
359-
var mode = getParameterByName("mode");
360-
// Get the one-time code from the query parameter.
361-
var actionCode = getParameterByName("oobCode");
362-
// (Optional) Get the continue URL from the query parameter if available.
363-
var continueUrl = getParameterByName("continueUrl");
364-
// (Optional) Get the language code if available.
365-
var lang = getParameterByName("lang") || "en";
366-
367-
// Configure the Firebase SDK.
368-
// // This is the minimum configuration required for the API to be used.
369-
// var config = {
370-
// 'apiKey': "YOU_API_KEY" // Copy this key from the web initialization
371-
// // snippet found in the Firebase console.
372-
// };
373-
// var app = firebase.initializeApp(config);
374-
// var auth = firebase.auth();
375-
376-
if (!mode) {
377-
qs("main .preloader .icon")?.setHtml(
378-
`<i class="fas fa-fw fa-times"></i>`,
379-
);
380-
qs("main .preloader .text")?.setText(`Mode parameter not found`);
381-
return;
382-
}
381+
try {
382+
// Get the action to complete.
383+
var mode = getParameterByName("mode");
384+
// Get the one-time code from the query parameter.
385+
var actionCode = getParameterByName("oobCode");
386+
// (Optional) Get the continue URL from the query parameter if available.
387+
var continueUrl = getParameterByName("continueUrl");
388+
// (Optional) Get the language code if available.
389+
var lang = getParameterByName("lang") || "en";
390+
391+
// Configure the Firebase SDK.
392+
// // This is the minimum configuration required for the API to be used.
393+
// var config = {
394+
// 'apiKey': "YOU_API_KEY" // Copy this key from the web initialization
395+
// // snippet found in the Firebase console.
396+
// };
397+
// var app = firebase.initializeApp(config);
398+
// var auth = firebase.auth();
399+
400+
if (!mode) {
401+
qs("main .preloader .icon")?.setHtml(
402+
`<i class="fas fa-fw fa-times"></i>`,
403+
);
404+
qs("main .preloader .text")?.setText(`Mode parameter not found`);
405+
return;
406+
}
407+
408+
if (!actionCode) {
409+
qs("main .preloader .icon")?.setHtml(
410+
`<i class="fas fa-fw fa-times"></i>`,
411+
);
412+
qs("main .preloader .text")?.setText(
413+
`Action code parameter not found`,
414+
);
415+
return;
416+
}
383417

384-
if (!actionCode) {
418+
// Handle the user management action.
419+
switch (mode) {
420+
case "resetPassword":
421+
// Display reset password handler and UI.
422+
qs("#logo .text span")?.setText("Reset Password");
423+
document.title = "Reset Password | Monkeytype";
424+
showResetPassword();
425+
break;
426+
case "recoverEmail":
427+
// Display email recovery handler and UI.
428+
handleRecoverEmail(actionCode);
429+
break;
430+
case "verifyEmail":
431+
qs("#logo .text span")?.setText("Verify Email");
432+
document.title = "Verify Email | Monkeytype";
433+
// Display email verification handler and UI.
434+
handleVerifyEmail(actionCode, continueUrl);
435+
break;
436+
default:
385437
qs("main .preloader .icon")?.setHtml(
386438
`<i class="fas fa-fw fa-times"></i>`,
387439
);
388-
qs("main .preloader .text")?.setText(`Action code parameter not found`);
389-
return;
390-
}
391-
392-
// Handle the user management action.
393-
switch (mode) {
394-
case "resetPassword":
395-
// Display reset password handler and UI.
396-
qs("#logo .text span")?.setText("Reset Password");
397-
document.title = "Reset Password | Monkeytype";
398-
showResetPassword();
399-
break;
400-
case "recoverEmail":
401-
// Display email recovery handler and UI.
402-
handleRecoverEmail(actionCode);
403-
break;
404-
case "verifyEmail":
405-
qs("#logo .text span")?.setText("Verify Email");
406-
document.title = "Verify Email | Monkeytype";
407-
// Display email verification handler and UI.
408-
handleVerifyEmail(actionCode, continueUrl);
409-
break;
410-
default:
411-
qs("main .preloader .icon")?.setHtml(
412-
`<i class="fas fa-fw fa-times"></i>`,
413-
);
414-
qs("main .preloader .text")?.setText(`Invalid mode`);
415-
console.error("no mode found");
416-
// Error: invalid mode.
417-
}
440+
qs("main .preloader .text")?.setText(`Invalid mode`);
441+
console.error("no mode found");
442+
// Error: invalid mode.
443+
}
418444

419-
qs("main .resetPassword .button")?.on("click", () => {
420-
handleResetPassword(actionCode, continueUrl);
421-
});
445+
qs("main .resetPassword .button")?.on("click", () => {
446+
handleResetPassword(actionCode, continueUrl);
447+
});
422448

423-
qs("main .resetPassword input")?.on("keypress", (e) => {
424-
if (e.key === "Enter") handleResetPassword(actionCode, continueUrl);
425-
});
426-
} catch (e) {
427-
qs("main .preloader .icon")?.setHtml(`<i class="fas fa-fw fa-times"></i>`);
428-
qs("main .preloader .text")?.setText(
429-
`Fatal error: ${e.message}. If this issue persists, please report it.`,
430-
);
431-
}
432-
});
449+
qs("main .resetPassword input")?.on("keypress", (e) => {
450+
if (e.key === "Enter") handleResetPassword(actionCode, continueUrl);
451+
});
452+
} catch (e) {
453+
qs("main .preloader .icon")?.setHtml(
454+
`<i class="fas fa-fw fa-times"></i>`,
455+
);
456+
qs("main .preloader .text")?.setText(
457+
`Fatal error: ${e.message}. If this issue persists, please report it.`,
458+
);
459+
}
460+
});
433461

434462
qs("header")?.on("click", () => {
435463
window.location = "/";

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@
6565
"knip": "2.19.2",
6666
"lint-staged": "13.2.3",
6767
"only-allow": "1.2.1",
68-
"oxfmt": "0.21.0",
69-
"oxlint": "1.36.0",
70-
"oxlint-tsgolint": "0.10.0",
68+
"oxfmt": "0.23.0",
69+
"oxlint": "1.38.0",
70+
"oxlint-tsgolint": "0.10.1",
7171
"prettier": "3.7.1",
7272
"turbo": "2.5.6",
7373
"vitest": "4.0.15"

packages/contracts/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
"@monkeytype/tsup-config": "workspace:*",
3030
"@monkeytype/typescript-config": "workspace:*",
3131
"madge": "8.0.0",
32-
"oxlint": "1.36.0",
33-
"oxlint-tsgolint": "0.10.0",
32+
"oxlint": "1.38.0",
33+
"oxlint-tsgolint": "0.10.1",
3434
"tsup": "8.4.0",
3535
"typescript": "5.9.3",
3636
"vitest": "4.0.15"

packages/funbox/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
"@monkeytype/tsup-config": "workspace:*",
2626
"@monkeytype/typescript-config": "workspace:*",
2727
"madge": "8.0.0",
28-
"oxlint": "1.36.0",
29-
"oxlint-tsgolint": "0.10.0",
28+
"oxlint": "1.38.0",
29+
"oxlint-tsgolint": "0.10.1",
3030
"tsup": "8.4.0",
3131
"typescript": "5.9.3",
3232
"vitest": "4.0.15"

packages/release/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
},
2121
"devDependencies": {
2222
"nodemon": "3.1.4",
23-
"oxlint": "1.36.0",
24-
"oxlint-tsgolint": "0.10.0"
23+
"oxlint": "1.38.0",
24+
"oxlint-tsgolint": "0.10.1"
2525
}
2626
}

packages/schemas/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
"@monkeytype/tsup-config": "workspace:*",
2727
"@monkeytype/typescript-config": "workspace:*",
2828
"madge": "8.0.0",
29-
"oxlint": "1.36.0",
30-
"oxlint-tsgolint": "0.10.0",
29+
"oxlint": "1.38.0",
30+
"oxlint-tsgolint": "0.10.1",
3131
"tsup": "8.4.0",
3232
"typescript": "5.9.3",
3333
"vitest": "4.0.15"

packages/tsup-config/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
},
1818
"devDependencies": {
1919
"@monkeytype/typescript-config": "workspace:*",
20-
"oxlint": "1.36.0",
21-
"oxlint-tsgolint": "0.10.0",
20+
"oxlint": "1.38.0",
21+
"oxlint-tsgolint": "0.10.1",
2222
"typescript": "5.9.3"
2323
},
2424
"peerDependencies": {

packages/util/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
"@monkeytype/tsup-config": "workspace:*",
2121
"@monkeytype/typescript-config": "workspace:*",
2222
"madge": "8.0.0",
23-
"oxlint": "1.36.0",
24-
"oxlint-tsgolint": "0.10.0",
23+
"oxlint": "1.38.0",
24+
"oxlint-tsgolint": "0.10.1",
2525
"tsup": "8.4.0",
2626
"typescript": "5.9.3",
2727
"vitest": "4.0.15",

0 commit comments

Comments
 (0)