Patch Changes
-
#1324
6328e30Thanks @juandav! - Fix several error-handling bugs found while bringing unit test coverage to 100%:HandlebarsAdapterno longer throws aTypeErrorafter reporting a missing template, and skips unreadable partialsEjsAdapter,HandlebarsAdapterandPugAdapterno longer call the callback twice when CSS inlining fails- Render-time errors (and EJS async rejections) are now passed to the callback instead of being thrown or left unhandled
EjsAdapterresolves nested templates fromtemplate.dirscorrectlyLiquidAdapternow forwards its whole config (globals,strictVariables, ...) to LiquidMjmlAdapter('')no longer crashes and completes the send when no engine is configured; synchronous mjml v4 errors reach the callbackverifyAllTransporters()(and the health indicator) work when only namedtransportsare configuredrateLimit.maxMessagesbelow 1 is treated as 1
-
#1324
6328e30Thanks @juandav! - Restore the@nestjs-modules/mailer/dist/*deep import paths (e.g.@nestjs-modules/mailer/dist/adapters/handlebars.adapter) that stopped resolving after theexportsmap was introduced in a minor release. Both the legacy and the currentadapters/*paths now resolve at runtime and in TypeScript (node10,node16andbundlerresolution), with or without a.jsextension.