Repository navigation
Fixes
send()andsendRaw()resolve withTSentMessageInfoinstead ofany: nodemailer'sSMTPSentMessageInfofor thesmtptransport,TStubSentMessageInfo(envelope,messageId,responseas aBuffer) forstub. Both types are exported fromtypes.d.ts.- The published types now use the types nodemailer 10 ships. They were read from
@types/nodemailerv8, a devDependency, so in a project without it the SMTP settings inEmailConfigwereany. EmailConfig.transports.stubis typed asTStubTransportOptions(error,keepBcc).
Dependencies
- Removed the devDependencies
@types/nodemailer(nodemailer 10 ships its own types) and@types/nodemailer-stub-transport(it pulled in@types/nodemailerv3). No runtime changes.
Verified in a strict TypeScript consumer with only @types/node installed, where the send() result is fully typed, and in the example project (types, lint, tests 9/9).
Known issue: npm audit reports a low-severity deepmerge advisory (GHSA-gcqx-w48m-w2h4), the same as in 2.1.1. The module only merges the app's own mail config with its defaults.