Skip to content

Update Mailer related dependencies - #1144

Merged
premsgr merged 3 commits into
mainfrom
chore/mailer-dependencies
Jul 28, 2026
Merged

Update Mailer related dependencies#1144
premsgr merged 3 commits into
mainfrom
chore/mailer-dependencies

Conversation

@KabinKhandThakuri

Copy link
Copy Markdown
Contributor
  • Bump nodemailer from 7.0.13 to 9.0.3 — no API changes affecting this plugin (plain SMTP transport)
  • Bump html-to-text from 9.0.5 to 10.0.0 — used indirectly via nodemailer plugin
  • Bump mjml from 4.18.0 to 5.4.0 — major breaking changes required source fixes
  • Bump @types/nodemailer from 6.4.24 to 8.0.1
  • Bump @types/mjml from 4.7.4 to 5.0.0
  • packages/mailer/src/plugin.ts — Added mjmlOptions: { validationLevel: "soft" } to nodemailerMjmlPlugin() call. MJML v5 introduced PostCSS processing that throws CssSyntaxError on mustache {{ }} template syntax in CSS blocks. validationLevel: "soft" allows this syntax to pass through.
  • packages/mailer/src/router.ts — Added await to mjml2html() call. MJML v5 changed mjml2html() from synchronous to async. Without await , the result was a Promise object instead of compiled HTML, causing the test route to send emails with no body.
  • packages/mailer/src/test/registration.test.ts — Updated test expectation to include the new mjmlOptions parameter passed to nodemailerMjmlPlugin .

Comment thread packages/mailer/src/plugin.ts
@premsgr
premsgr merged commit e205109 into main Jul 28, 2026
3 checks passed
@premsgr
premsgr deleted the chore/mailer-dependencies branch July 28, 2026 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants