chore: update direct dependencies (#26172)

Updates:
- vite: 4.5.3→4.5.14, 5.4.6→5.4.21
- nodemailer: 6.7.8→7.0.11
- @playwright/test: 1.45.3→1.55.1
- next-auth: 4.22.1→4.24.13
- class-validator: 0.14.0→0.14.3
- dompurify: 3.2.3→3.3.1

Includes type fixes for next-auth adapter compatibility
This commit is contained in:
Pedro Castro authored and GitHub committed 2025-12-23 23:42:55 -03:00
1 parent 054a0fa7db
commit 99b82c55d5
17 files changed
+175 -101

No files matched your search

@@ -61,7 +61,7 @@ const getAccountWhere = (provider: string, providerAccountId: string) => ({
export default function CalComAdapter(prismaClient: PrismaClient): Adapter {
return {
createUser: async (data) => {
createUser: async (data: Omit<AdapterUser, "id">) => {
const user = await prismaClient.user.create({ data: createUserData(data) });
return toAdapterUser(user);
},
@@ -124,14 +124,14 @@ export default function CalComAdapter(prismaClient: PrismaClient): Adapter {
createVerificationToken: async (data) => {
const token = await prismaClient.verificationToken.create({ data });
const { id, ...verificationToken } = token;
const { id: _id, ...verificationToken } = token;
return verificationToken;
},
useVerificationToken: async (identifier_token) => {
try {
const token = await prismaClient.verificationToken.delete({ where: { identifier_token } });
const { id, ...verificationToken } = token;
const { id: _id, ...verificationToken } = token;
return verificationToken;
} catch (error) {
// If token already used/deleted, just return null
@@ -143,12 +143,12 @@ export default function CalComAdapter(prismaClient: PrismaClient): Adapter {
}
},
linkAccount: async (account) => {
linkAccount: async (account: AdapterAccount) => {
const createdAccount = await prismaClient.account.create({ data: createAccountData(account) });
return toAdapterAccount(createdAccount);
},
unlinkAccount: async (providerAccountId) => {
unlinkAccount: async (providerAccountId: Pick<AdapterAccount, "provider" | "providerAccountId">) => {
const deletedAccount = await prismaClient.account.delete({
where: getAccountWhere(providerAccountId.provider, providerAccountId.providerAccountId),
});
+2 -2
View File
@@ -17,8 +17,8 @@
"handlebars": "^4.7.7",
"jose": "^4.13.1",
"lru-cache": "^9.0.3",
"next-auth": "^4.22.1",
"nodemailer": "^6.7.8",
"next-auth": "^4.24.13",
"nodemailer": "^7.0.11",
"otplib": "^12.0.1"
}
}