diff --git a/package.json b/package.json index 5a5ffdeb..0c6a0a2d 100644 --- a/package.json +++ b/package.json @@ -68,7 +68,7 @@ "next-auth": "5.0.0-beta.32", "next-intl": "^4.13.3", "next-view-transitions": "^0.3.5", - "nodemailer": "^9.0.0", + "nodemailer": "^8.0.0", "otplib": "^13.4.1", "pino": "^10.3.1", "react": "^19.2.8", @@ -94,7 +94,7 @@ "@tailwindcss/typography": "^0.5.20", "@types/bcrypt": "^6.0.0", "@types/node": "^26.1.1", - "@types/nodemailer": "^8.0.0", + "@types/nodemailer": "^7.0.12", "@types/react": "^19.2.17", "@types/react-dom": "^19.2.3", "@types/sanitize-html": "^2.16.1", @@ -108,7 +108,7 @@ "prisma": "^7.9.0", "tailwindcss": "^4.3.3", "tsx": "^4.23.1", - "typescript": "^7.0.0", + "typescript": "^5.9.3", "typescript-eslint": "^8.65.0", "vite": "^8.1.5", "vitest": "^4.1.10" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 70de946f..96bb25d7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -93,7 +93,7 @@ importers: version: 16.2.11(@babel/core@7.29.7)(@opentelemetry/api@1.9.1)(@playwright/test@1.61.1)(babel-plugin-react-compiler@1.0.0)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) next-auth: specifier: 5.0.0-beta.32 - version: 5.0.0-beta.32(next@16.2.11(@babel/core@7.29.7)(@opentelemetry/api@1.9.1)(@playwright/test@1.61.1)(babel-plugin-react-compiler@1.0.0)(react-dom@19.2.8(react@19.2.8))(react@19.2.8))(nodemailer@7.0.13)(react@19.2.8) + version: 5.0.0-beta.32(next@16.2.11(@babel/core@7.29.7)(@opentelemetry/api@1.9.1)(@playwright/test@1.61.1)(babel-plugin-react-compiler@1.0.0)(react-dom@19.2.8(react@19.2.8))(react@19.2.8))(nodemailer@8.0.11)(react@19.2.8) next-intl: specifier: ^4.13.3 version: 4.13.3(next@16.2.11(@babel/core@7.29.7)(@opentelemetry/api@1.9.1)(@playwright/test@1.61.1)(babel-plugin-react-compiler@1.0.0)(react-dom@19.2.8(react@19.2.8))(react@19.2.8))(react@19.2.8)(typescript@5.9.3) @@ -101,8 +101,8 @@ importers: specifier: ^0.3.5 version: 0.3.5(next@16.2.11(@babel/core@7.29.7)(@opentelemetry/api@1.9.1)(@playwright/test@1.61.1)(babel-plugin-react-compiler@1.0.0)(react-dom@19.2.8(react@19.2.8))(react@19.2.8))(react-dom@19.2.8(react@19.2.8))(react@19.2.8) nodemailer: - specifier: ^7.0.13 - version: 7.0.13 + specifier: ^8.0.0 + version: 8.0.11 otplib: specifier: ^13.4.1 version: 13.4.1 @@ -185,12 +185,9 @@ importers: '@types/sanitize-html': specifier: ^2.16.1 version: 2.16.1 - babel-plugin-react-compiler: - specifier: ^1.0.0 - version: 1.0.0 dotenv: - specifier: ^16.4.0 - version: 16.6.1 + specifier: ^17.0.0 + version: 17.4.2 eslint: specifier: ^10.7.0 version: 10.7.0(jiti@2.7.0) @@ -2583,9 +2580,6 @@ packages: '@types/lodash@4.17.24': resolution: {integrity: sha512-gIW7lQLZbue7lRSWEFql49QJJWThrTFFeIMJdp3eH4tKoxm1OvEPg02rm4wCCSHS0cL3/Fizimb35b7k8atwsQ==} - '@types/node@22.20.0': - resolution: {integrity: sha512-QWlFW2wf3nTjC13/DqRnBpR4ZO36VJH/JVBkA/vcnmbTBNQIlnObqyqZE1tUR7+Ni23Lda8R1BxMfbXRpCUx5g==} - '@types/node@24.13.2': resolution: {integrity: sha512-fRa09kZTgu8o71KFcDjUFuc7F+dEbZYZmkI0mg5YBTRs0yMKjYHsq/c0urDKeDb+D5qVgXOdFcuu+DZPKOITwA==} @@ -4453,8 +4447,8 @@ packages: resolution: {integrity: sha512-wRNIrw4DmVLKQlbgOMdkMx27Wrpzes2hh5Jtbi2bjPd+4wJstWIqP5A+lscnqbm0xxmT5Bpg8Lec5ItEBwx6BQ==} engines: {node: '>=18'} - nodemailer@7.0.13: - resolution: {integrity: sha512-PNDFSJdP+KFgdsG3ZzMXCgquO7I6McjY2vlqILjtJd0hy8wEvtugS9xKRF2NWlPNGxvLCXlTNIae4serI7dinw==} + nodemailer@8.0.11: + resolution: {integrity: sha512-nrO/pDAUKl+wXX+lx16tDLbnm0fW6sK/x8mgohaCpg+CdCEl482bD4tCuAZk2DyliruiNTIZxRCoWkDqJEnAiA==} engines: {node: '>=6.0.0'} oauth4webapi@3.8.6: @@ -5271,9 +5265,6 @@ packages: resolution: {integrity: sha512-3cudTErfToSc4Ggv8XGXVNVli/xHKUtUZvaY5UVwhOcUPbQGz7PeaEnT/SAVgNziZtX67KEN9swMUYkLghxA1w==} engines: {node: '>=14'} - undici-types@6.21.0: - resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==} - undici-types@7.18.2: resolution: {integrity: sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==} @@ -5614,7 +5605,7 @@ snapshots: transitivePeerDependencies: - supports-color - '@auth/core@0.41.3(nodemailer@7.0.13)': + '@auth/core@0.41.3(nodemailer@8.0.11)': dependencies: '@panva/hkdf': 1.2.1 jose: 6.2.3 @@ -5622,7 +5613,7 @@ snapshots: preact: 10.24.3 preact-render-to-string: 6.5.11(preact@10.24.3) optionalDependencies: - nodemailer: 7.0.13 + nodemailer: 8.0.11 '@babel/code-frame@7.29.7': dependencies: @@ -7548,10 +7539,6 @@ snapshots: '@types/lodash@4.17.24': {} - '@types/node@22.20.0': - dependencies: - undici-types: 6.21.0 - '@types/node@24.13.2': dependencies: undici-types: 7.18.2 @@ -7562,7 +7549,7 @@ snapshots: '@types/nodemailer@7.0.12': dependencies: - '@types/node': 22.20.0 + '@types/node': 26.1.1 '@types/react-dom@19.2.3(@types/react@19.2.17)': dependencies: @@ -7967,6 +7954,7 @@ snapshots: babel-plugin-react-compiler@1.0.0: dependencies: '@babel/types': 7.29.7 + optional: true balanced-match@1.0.2: {} @@ -9417,13 +9405,13 @@ snapshots: netmask@2.1.1: {} - next-auth@5.0.0-beta.32(next@16.2.11(@babel/core@7.29.7)(@opentelemetry/api@1.9.1)(@playwright/test@1.61.1)(babel-plugin-react-compiler@1.0.0)(react-dom@19.2.8(react@19.2.8))(react@19.2.8))(nodemailer@7.0.13)(react@19.2.8): + next-auth@5.0.0-beta.32(next@16.2.11(@babel/core@7.29.7)(@opentelemetry/api@1.9.1)(@playwright/test@1.61.1)(babel-plugin-react-compiler@1.0.0)(react-dom@19.2.8(react@19.2.8))(react@19.2.8))(nodemailer@8.0.11)(react@19.2.8): dependencies: - '@auth/core': 0.41.3(nodemailer@7.0.13) + '@auth/core': 0.41.3(nodemailer@8.0.11) next: 16.2.11(@babel/core@7.29.7)(@opentelemetry/api@1.9.1)(@playwright/test@1.61.1)(babel-plugin-react-compiler@1.0.0)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) react: 19.2.8 optionalDependencies: - nodemailer: 7.0.13 + nodemailer: 8.0.11 next-intl-swc-plugin-extractor@4.13.3: {} @@ -9489,7 +9477,7 @@ snapshots: node-releases@2.0.51: {} - nodemailer@7.0.13: {} + nodemailer@8.0.11: {} oauth4webapi@3.8.6: {} @@ -10460,8 +10448,6 @@ snapshots: unbash@4.0.3: {} - undici-types@6.21.0: {} - undici-types@7.18.2: {} undici-types@8.3.0: {} diff --git a/src/lib/auth/password.test.ts b/src/lib/auth/password.test.ts index bc5ecc35..bf71dd1e 100644 --- a/src/lib/auth/password.test.ts +++ b/src/lib/auth/password.test.ts @@ -2,7 +2,7 @@ import { hash as bcryptHash } from "bcrypt"; import { describe, expect, it, vi } from "vitest"; const mockEnv = vi.hoisted(() => ({ - PASSWORD_HASH: undefined, + PASSWORD_HASH: undefined as string | undefined, ARGON2_PARALLELISM: 1, ARGON2_ITERATIONS: 4, ARGON2_MEMORY_SIZE: 65536,