Skip to content

@nestjs-modules/mailer@2.3.10

Choose a tag to compare

@github-actions github-actions released this 04 Oct 03:28
· 10 commits to main since this release
200b1bf

Patch Changes

  • #1324 6328e30 Thanks @juandav! - Fix several error-handling bugs found while bringing unit test coverage to 100%:

    • HandlebarsAdapter no longer throws a TypeError after reporting a missing template, and skips unreadable partials
    • EjsAdapter, HandlebarsAdapter and PugAdapter no 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
    • EjsAdapter resolves nested templates from template.dirs correctly
    • LiquidAdapter now forwards its whole config (globals, strictVariables, ...) to Liquid
    • MjmlAdapter('') no longer crashes and completes the send when no engine is configured; synchronous mjml v4 errors reach the callback
    • verifyAllTransporters() (and the health indicator) work when only named transports are configured
    • rateLimit.maxMessages below 1 is treated as 1
  • #1324 6328e30 Thanks @juandav! - Restore the @nestjs-modules/mailer/dist/* deep import paths (e.g. @nestjs-modules/mailer/dist/adapters/handlebars.adapter) that stopped resolving after the exports map was introduced in a minor release. Both the legacy and the current adapters/* paths now resolve at runtime and in TypeScript (node10, node16 and bundler resolution), with or without a .js extension.