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:
co-authored by
Claude Opus 5.5
parent
54fb57b7a9
commit
007a0a3ae6
@@ -67,6 +67,7 @@ plugin development.
|
||||
|
||||
`nodemailer`, `lucide-react`, `slugify` and `server-only` are regular
|
||||
`dependencies` of the plugin — they install with it; don't add them yourself.
|
||||
The plugin's `nodemailer` 10 needs **Node.js 20 or later**.
|
||||
|
||||
What you provide are the **peer dependencies** — packages the plugin shares with
|
||||
your project — in a version matching your Payload:
|
||||
@@ -86,7 +87,10 @@ pnpm add @payloadcms/[email protected] # only with R2 media
|
||||
```
|
||||
|
||||
Keep every `@payloadcms/*` at exactly the same version as `payload`
|
||||
(`pnpm.overrides` — see PROGRAMISTA.md §1). Upload optimization and image
|
||||
(`pnpm.overrides` — see PROGRAMISTA.md §1). Then run `pnpm audit --prod`: with
|
||||
`payload` 3.90.x, Payload's own tree pins a vulnerable `undici` and `dompurify` —
|
||||
add the two overrides from [AGENT.md §4 item 12](./docs/agent/AGENT.md) (recommended, not
|
||||
required by the plugin). Upload optimization and image
|
||||
placeholders also use the `sharp` you pass to `buildConfig({ sharp })`
|
||||
(standard in a `create-payload-app` project).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user