chore: bump version to 2.21.17 and update dependencies (#431)

* chore: bump version to 2.21.17 and update dependencies
This commit is contained in:
Giancarlo Buomprisco
2025-12-21 09:58:10 +01:00
committed by GitHub
parent 26184ed082
commit c4a961e93d
23 changed files with 891 additions and 854 deletions

View File

@@ -8,12 +8,12 @@
"format": "prettier --check --write \"**/*.{ts,tsx}\" --ignore-path=\"../../.prettierignore\""
},
"dependencies": {
"@ai-sdk/openai": "^2.0.80",
"@ai-sdk/openai": "^2.0.88",
"@faker-js/faker": "^10.1.0",
"@hookform/resolvers": "^5.2.2",
"@tanstack/react-query": "catalog:",
"ai": "5.0.108",
"lucide-react": "^0.561.0",
"ai": "5.0.116",
"lucide-react": "^0.562.0",
"next": "catalog:",
"nodemailer": "^7.0.11",
"react": "catalog:",
@@ -36,7 +36,7 @@
"@types/react-dom": "catalog:",
"babel-plugin-react-compiler": "1.0.0",
"pino-pretty": "13.0.0",
"react-hook-form": "^7.68.0",
"react-hook-form": "catalog:",
"recharts": "2.15.3",
"tailwindcss": "catalog:",
"tailwindcss-animate": "^1.0.7",

View File

@@ -7,37 +7,48 @@ const newPassword = (Math.random() * 10000).toString();
test.describe('Password Reset Flow', () => {
test('will reset the password and sign in with new one', async ({ page }) => {
const auth = new AuthPageObject(page);
const email = auth.createRandomEmail();
let email = '';
await auth.bootstrapUser({
email,
password: 'password',
name: 'Test User',
});
await page.goto('/auth/password-reset');
await page.waitForTimeout(200);
const emailLocator = page.locator('[name=email]');
await expect(emailLocator).toBeEnabled();
await emailLocator.fill(email);
await expect(async () => {
email = auth.createRandomEmail();
const button = page.locator('button[type="submit"]');
auth.bootstrapUser({
email,
password: 'password',
name: 'Test User',
});
await expect(button).toBeEnabled();
await page.goto('/auth/password-reset');
await page.fill('[name="email"]', email);
await page.click('[type="submit"]');
await auth.visitConfirmEmailLink(email, {
deleteAfter: true,
subject: 'Reset your password',
});
await page.waitForURL(new RegExp('/update-password?.*'));
await auth.updatePassword(newPassword);
await page.waitForURL('/home');
return Promise.all([
button.click(),
page.waitForResponse((resp) => resp.request().method() === 'POST'),
]);
}).toPass();
await auth.visitConfirmEmailLink(email, {
deleteAfter: true,
});
await page.waitForURL(new RegExp('/update-password?.*'), {
timeout: 2000,
});
await auth.updatePassword(newPassword);
await page.waitForURL('/home');
await page.context().clearCookies();
await page.reload();
await page.goto('/auth/sign-in');
await auth.loginAsUser({

View File

@@ -71,7 +71,9 @@ export class Mailbox {
});
if (email !== json.To[0]!.Address) {
throw new Error(`Email address mismatch. Expected ${email}, got ${json.To[0]!.Address}`);
throw new Error(
`Email address mismatch. Expected ${email}, got ${json.To[0]!.Address}`,
);
}
const el = parse(json.HTML);
@@ -110,7 +112,9 @@ export class Mailbox {
}
if (email !== json.To[0]!.Address) {
throw new Error(`Email address mismatch. Expected ${email}, got ${json.To[0]!.Address}`);
throw new Error(
`Email address mismatch. Expected ${email}, got ${json.To[0]!.Address}`,
);
}
const text = json.HTML.match(
@@ -151,8 +155,8 @@ export class Mailbox {
const message = params.subject
? (() => {
const filtered = messagesResponse.messages.filter(
(item) => item.Subject.includes(params.subject!),
const filtered = messagesResponse.messages.filter((item) =>
item.Subject.includes(params.subject!),
);
console.log(
@@ -238,4 +242,4 @@ export class Mailbox {
Attachments: Array<any>;
}>;
}
}
}

View File

@@ -60,14 +60,14 @@
"@tanstack/react-query": "catalog:",
"@tanstack/react-table": "^8.21.3",
"date-fns": "^4.1.0",
"lucide-react": "^0.561.0",
"lucide-react": "^0.562.0",
"next": "catalog:",
"next-sitemap": "^4.2.3",
"next-themes": "0.4.6",
"react": "catalog:",
"react-dom": "catalog:",
"react-hook-form": "^7.68.0",
"react-i18next": "^16.5.0",
"react-hook-form": "catalog:",
"react-i18next": "catalog:",
"recharts": "2.15.3",
"tailwind-merge": "^3.4.0",
"tw-animate-css": "catalog:",