Repository navigation
chore(release): version packages - #1354
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@nestjs-modules/mailer@4.0.0
Major Changes
#1353
c8c0423Thanks @juandav! - v4: everything the official@nestjs/mailoffers and more, without dropping anything v3 supports. Every capability is optional: use nodemailer, the built-in HTTP providers or@nestjs/mail's transports; send directly, through BullMQ or through@nestjs/outbox; callsendMail, mail classes or the officialMailerover this module.Breaking changes (see the migration guide):
retry: falserestores v3. A timeout or a dropped connection while the message was being handed over is retried only when the email has a stable Message-ID (idempotencyKey), so nothing is sent twice.sendTimeoutapplies per attempt.MailerSmtpError,MailerTimeoutError, … allMailerError), keeping nodemailer's fields and the original ascause;wrapErrors: falserestores v3.textFromHtml: falseto opt out), and messages are validated before sending (validate: falseto opt out).MailerTestModuledelivers to aTestMailbox(no stream transport;info.messageuses CRLF line endings) and defaultsretrytofalse.MailerPreviewModuleis on by default only whenNODE_ENVisdevelopmentortest.attempt,permanent,transporterNameanddurationMs;MailerEventServicetakes its emitter throughMAILER_EVENT_EMITTER, andEventEmitter2is found automatically (in v3 it was never injected).MailableContext.tois{ name?, address }[], the same shape as@nestjs/mail.New
mailerService.send(WelcomeMail, { to, data })) compatible with@nestjs/mail's, with dependencies resolved from the whole app, andrender()to render without sending.AbortSignal,idempotencyKey, and graceful shutdown that waits for sends in flight (shutdownTimeout).htmltagged template (unsafeHtml()for trusted markup),htmlToText()and message validation.intercept(redirect recipients in staging),suppress(suppression lists) and one-clickunsubscribe(RFC 8058).TestMailboxwith assertions,FileTransportandLogTransport(with a warning when used in production) andMailerPreviewModuleto preview emails in the browser.events$,node:diagnostics_channelpublishing (credentials redacted), andRETRY,FAILOVERandSUPPRESSEDevents.schedule()andconcurrency.@nestjs-modules/mailer/nestjs-mail:NodemailerMailTransport,MailerServiceTransportandTemplateAdapterEnginefor@nestjs/mail.@nestjs-modules/mailer/outbox: transactional sending with@nestjs/outbox.es-CO→es) and searches every template directory.Fixed
interceptandsuppresscover the whole custom envelope (to,ccandbcc).