Dependency advisories: nodemailer 10, overrides for Payload's pinned deps

- nodemailer ^8.0.1 -> ^10.2.1 (advisories up to 10.1.3); drop @types/nodemailer,
  nodemailer 10 ships its own types. Node engines >=20.9.0 (nodemailer 10 needs 20+).
- pnpm.overrides (repo only, not passed to projects) for packages in payload 3.90.2's
  tree: undici and dompurify are exact-pinned upstream; fast-uri, js-yaml,
  browserslist, source-map-js, fast-copy, baseline-browser-mapping raised to fixed
  minimums. pnpm audit --prod: 19 high / 35 moderate / 11 low -> 0.
- Tests: SMTP over a local SMTP socket with real nodemailer (panelSmtpAdapter,
  sendEmail, unreachable server status), Microsoft Graph and Graph->SMTP fallback
  via mailAdapter; real payloadTotp through ipalKit, plus a check that payload-2fa
  resolves the project's payload.
- Docs: email.md, AGENT.md §4 item 12, ipal-setup, ipal-upgrade, README.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-10-27 16:42:05 +01:00
co-authored by Claude Opus 5.5
parent 54fb57b7a9
commit 007a0a3ae6
9 changed files with 372 additions and 74 deletions
+13 -4
View File
@@ -90,7 +90,7 @@
},
"dependencies": {
"lucide-react": "^0.400.0",
"nodemailer": "^8.0.1",
"nodemailer": "^10.2.1",
"server-only": "^0.0.1",
"slugify": "^1.6.6"
},
@@ -120,7 +120,6 @@
"@swc-node/register": "1.10.9",
"@swc/cli": "0.6.0",
"@types/node": "22.20.5",
"@types/nodemailer": "^8.0.1",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"copyfiles": "2.4.1",
@@ -143,7 +142,7 @@
"vitest": "5.0.4"
},
"engines": {
"node": "^18.20.2 || >=20.9.0",
"node": ">=20.9.0",
"pnpm": "^9 || ^10 || ^11"
},
"publishConfig": {
@@ -154,7 +153,17 @@
"sharp",
"esbuild",
"unrs-resolver"
]
],
"overrides": {
"baseline-browser-mapping@<2.11.0": "^2.11.0",
"browserslist@<4.28.7": "^4.28.7",
"dompurify@<3.4.17": "^3.4.17",
"fast-copy@<3.1.0": "^3.1.0",
"fast-uri@<3.1.9": "^3.1.9",
"js-yaml@>=4 <4.3.2": "^4.3.2",
"source-map-js@<1.2.2": "^1.2.2",
"undici@>=7 <7.30.1": "^7.30.1"
}
},
"peerDependenciesMeta": {
"@clocklimited/payload-2fa": {