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

+2 -2
View File
@@ -41,7 +41,7 @@
"dist"
],
"devDependencies": {
"@playwright/test": "^1.45.3",
"@playwright/test": "^1.55.1",
"@tailwindcss/cli": "^4.0.0",
"@tailwindcss/postcss": "^4.0.0",
"@vitejs/plugin-basic-ssl": "^1.1.0",
@@ -50,7 +50,7 @@
"postcss": "8.5.6",
"tailwindcss": "4.1.17",
"typescript": "5.9.2",
"vite": "4.5.3",
"vite": "4.5.14",
"vite-plugin-environment": "^1.1.3"
}
}
@@ -18,7 +18,7 @@ test.describe("Inline Iframe", () => {
await embeds.gotoPlayground({ calNamespace: "", url: "/?only=ns:default" });
const calNamespace = "";
const embedIframe = await ensureEmbedIframe({ calNamespace, page, pathname: "/pro" });
expect(embedIframe).toBeEmbedCalLink(calNamespace, embeds.getActionFiredDetails, {
await expect(embedIframe).toBeEmbedCalLink(calNamespace, embeds.getActionFiredDetails, {
searchParams: {
theme: "dark",
},
@@ -57,7 +57,7 @@ test.describe("Inline Iframe", () => {
await embeds.gotoPlayground({ calNamespace, url: `?only=ns:autoScrollTest` });
const calLink = `${user.username}/multiple-duration`;
await page.goto(`/?only=ns:autoScrollTest&cal-link=${calLink}`);
const embedIframe = await ensureEmbedIframe({ calNamespace, page, pathname: `/${calLink}` });
await ensureEmbedIframe({ calNamespace, page, pathname: `/${calLink}` });
const finalScrollPosition = await page.evaluate(() => window.scrollY);
expect(finalScrollPosition).toBe(0);
});
@@ -1,6 +1,6 @@
import { expect } from "@playwright/test";
// eslint-disable-next-line no-restricted-imports
import { test } from "@calcom/web/playwright/lib/fixtures";
import { getEmbedIframe } from "../lib/testUtils";
@@ -12,7 +12,7 @@ test.describe("Namespacing", () => {
await embeds.gotoPlayground({ calNamespace, url: "/" });
await page.click("#add-inline-embed-in-a-new-namespace-without-reload-button");
const embedIframe = await getEmbedIframe({ calNamespace, page, pathname: "/pro" });
expect(embedIframe).toBeEmbedCalLink(calNamespace, embeds.getActionFiredDetails, {
await expect(embedIframe).toBeEmbedCalLink(calNamespace, embeds.getActionFiredDetails, {
pathname: "/pro",
searchParams: {
case: "addInlineEmbedInANewNamespaceWithoutReload",
@@ -25,7 +25,7 @@ test.describe("Namespacing", () => {
await embeds.gotoPlayground({ calNamespace, url: "/" });
await page.click("#double-install-snippet-with-inline-embed-non-default-namespace-button");
const embedIframe = await getEmbedIframe({ calNamespace, page, pathname: "/pro" });
expect(embedIframe).toBeEmbedCalLink(calNamespace, embeds.getActionFiredDetails, {
await expect(embedIframe).toBeEmbedCalLink(calNamespace, embeds.getActionFiredDetails, {
pathname: "/pro",
searchParams: {
case: "doubleInstallSnippetWithInlineEmbedWithNonDefaultNamespace",
@@ -42,7 +42,7 @@ test.describe("Namespacing", () => {
await embeds.gotoPlayground({ calNamespace, url: "/" });
await page.click("#double-install-snippet-with-inline-embed-default-namespace-button");
const embedIframe = await getEmbedIframe({ calNamespace, page, pathname: "/pro" });
expect(embedIframe).toBeEmbedCalLink(calNamespace, embeds.getActionFiredDetails, {
await expect(embedIframe).toBeEmbedCalLink(calNamespace, embeds.getActionFiredDetails, {
pathname: "/pro",
searchParams: {
case: "doubleInstallSnippetWithInlineEmbed",
+2 -2
View File
@@ -45,13 +45,13 @@
},
"devDependencies": {
"@calcom/eslint-config": "workspace:*",
"@playwright/test": "^1.45.3",
"@playwright/test": "^1.55.1",
"@types/react": "18.0.26",
"@types/react-dom": "^18.0.9",
"@vitejs/plugin-react": "^2.2.0",
"npm-run-all": "^4.1.5",
"typescript": "5.9.2",
"vite": "^4.5.2"
"vite": "^4.5.14"
},
"dependencies": {
"@calcom/embed-core": "workspace:*",
@@ -1,7 +1,7 @@
import { expect } from "@playwright/test";
import { getEmbedIframe } from "@calcom/embed-core/playwright/lib/testUtils";
// eslint-disable-next-line no-restricted-imports
import { test } from "@calcom/web/playwright/lib/fixtures";
test.describe("React Embed", () => {
@@ -13,7 +13,7 @@ test.describe("React Embed", () => {
const calNamespace = "inline";
await embeds.gotoPlayground({ url: "/inline.html", calNamespace });
const embedIframe = await getEmbedIframe({ calNamespace, page, pathname: "/pro" });
expect(embedIframe).toBeEmbedCalLink("", embeds.getActionFiredDetails, {
await expect(embedIframe).toBeEmbedCalLink(calNamespace, embeds.getActionFiredDetails, {
pathname: "/pro",
searchParams: {
theme: "dark",
@@ -35,7 +35,7 @@ test.describe("React Embed", () => {
await page.click("text=Book my Cal");
const embedIframe = await getEmbedIframe({ calNamespace, page, pathname: "/pro" });
expect(embedIframe).toBeEmbedCalLink(calNamespace, embeds.getActionFiredDetails, {
await expect(embedIframe).toBeEmbedCalLink(calNamespace, embeds.getActionFiredDetails, {
pathname: "/pro",
searchParams: {
theme: "dark",
@@ -45,7 +45,6 @@ test.describe("React Embed", () => {
});
// TODO: This test is extremely flaky and has been failing a lot, blocking many PRs. Fix this.
// eslint-disable-next-line playwright/no-skipped-test
test.describe.skip("Element Click Popup", () => {
test("should verify that the iframe got created with correct URL - namespaced", async ({
page,
@@ -57,7 +56,7 @@ test.describe("React Embed", () => {
await page.click("text=Click me");
const embedIframe = await getEmbedIframe({ calNamespace, page, pathname: "/pro" });
expect(embedIframe).toBeEmbedCalLink(calNamespace, embeds.getActionFiredDetails, {
await expect(embedIframe).toBeEmbedCalLink(calNamespace, embeds.getActionFiredDetails, {
pathname: "/pro",
searchParams: {
theme: "dark",
+1 -1
View File
@@ -27,7 +27,7 @@
"devDependencies": {
"@calcom/eslint-config": "workspace:*",
"typescript": "5.9.2",
"vite": "4.5.3"
"vite": "4.5.14"
},
"dependencies": {
"@calcom/embed-core": "workspace:*"
@@ -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"
}
}
+1 -1
View File
@@ -37,7 +37,7 @@
"postcss-prefixwrap": "1.46.0",
"ts-jest": "^29.1.2",
"typescript": "5.9.2",
"vite": "5.4.6",
"vite": "5.4.21",
"vite-plugin-dts": "^3.7.3",
"vite-plugin-inspect": "^0.8.4"
},
+1 -1
View File
@@ -22,7 +22,7 @@
},
"devDependencies": {
"@calcom/eslint-config": "workspace:*",
"@playwright/test": "^1.45.3",
"@playwright/test": "^1.55.1",
"@tailwindcss/postcss": "^4.0.0",
"@types/node": "^20.3.1",
"@types/react": "^18",
+1 -1
View File
@@ -24,7 +24,7 @@
"@types/node": "^20.3.1",
"@vitejs/plugin-react": "^4.2.1",
"typescript": "5.9.2",
"vite": "^5.0.12",
"vite": "^5.4.21",
"vite-plugin-dts": "3.7.3",
"vite-plugin-environment": "^1.1.3"
},
+1 -1
View File
@@ -14,7 +14,7 @@
"@calcom/platform-constants": "workspace:*",
"@calcom/platform-enums": "workspace:*",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.0"
"class-validator": "^0.14.3"
},
"devDependencies": {
"@types/express": "4.17.21"