Repository navigation
Releases
Releases · byo-oss/mailer
v0.3.0
Immutable
release. Only release title and notes can be modified.
Upgrading to 0.3.0
Behaviour changes
- The optional
vitestpeer dependency is now^4.1.12 || >=5.0.5(was>=3). It matters if your project has vitest installed, whether or not you usetestMailer. With an older vitest, npm 7 or later stops withERESOLVEand other package managers warn. Upgrade vitest to 4.1.12 or newer on the 4.x line, or 5.0.5 or newer.
Nothing else changed. The sender interface, the adapters and their peer ranges are the same as 0.2.0.
Security
The old range admitted vitest versions affected by these advisories. None of them is a bug in @byo-oss/mailer:
- GHSA-9crc-q9x8-hgqq (critical): remote code execution from a malicious website while the Vitest API server is listening
- GHSA-5xrq-8626-4rwp (critical): arbitrary file read and execution while the Vitest UI server is listening
- GHSA-8gvc-j273-4wm5 (medium): browser mode serves arbitrary files
- GHSA-82fw-gwwq-j7x9 (medium): path traversal through a
@vitest/mockerredirect mock - GHSA-qxg6-89mg-rqv8 (medium): in
@vitest/mockerbefore 4.1.12, and 5.0.0 to 5.0.2 - GHSA-xp26-3454-mjgp (medium): in
@vitest/mocker4.1.11, and 5.0.0 to 5.0.2. vitest pins@vitest/mockerto its own version, so both follow the vitest version - GHSA-p458-7748-mcp3 (medium): vitest 5.0.0 to 5.0.4 when Vitest runs an HTTP server (
--ui, browser mode orapi); fixed in 5.0.5
What's Changed
- site: wait 5 minutes after a release before rebuilding byo.dev by @stewartjarod in #9
- Normalize repository.url in package.json by @stewartjarod in #10
- Raise the optional vitest peer to ^4.1.12 || >=5.0.5 (0.3.0) by @stewartjarod in #11
Full Changelog: v0.2.0...v0.3.0
v0.2.0
Immutable
release. Only release title and notes can be modified.
Behaviour changes
memoryMailerrejects reserved headers.From,To,Cc,Bcc,Reply-To,Subject,Date,Message-ID,MIME-Version,Content-Type,Content-Transfer-Encoding,Return-PathandSender(any case) inheadersnow throw aPermanentMailErrorand record nothing, as the real adapters do. 0.1.1 only rejected malformed headers, so a test that passed one tomemoryMailernow fails. Put the reply address inreplyTo.AWS_IGNORE_CONFIGURED_ENDPOINT_URLS=trueis honoured.wrapsMailerandsesMailerkeepmessageIdwhen it is set, since the AWS SDK then ignoresAWS_ENDPOINT_URL*. Only the exact stringtruecounts. A code-setendpointstill omitsmessageId. The SDK reads the variable only from@smithy/core3.29.6 (July 2026) on; with an older SDK, update it before setting the variable.@wraps.dev/email>=0.15.1is now the peer range. Before 0.15.1 the SDK wrote a non-ASCIIsubjectas raw 8-bit text wheneverheaderswere set (a threaded reply'sIn-Reply-ToandReferences). 0.15.1 (wraps-team/wraps-js#53) encodes it as an RFC 2047 encoded-word.
Internal
PermanentMailErrorandisPermanentMailErrormoved tosrc/errors.ts, which ends the import cycle betweenindex.tsandheaders.ts. Exports and theSymbol.for("@byo-oss/mailer/permanent")brand are unchanged.- The docs drop the
<Next>tags on the 0.1.1 text.
Full Changelog: v0.1.1...v0.2.0
v0.1.1
Immutable
release. Only release title and notes can be modified.
Behaviour changes
- Header validation in every mailer.
wrapsMailer,sesMailer,emailSdkMailerandmemoryMailernow throw aPermanentMailErrorbefore sending when a header name isn't printable ASCII without:or a value contains CR, LF, another control character or a non-ASCII character (RFC 2047-encode those first). SES already refused these, just later; withemailSdkMailer, non-ASCII header values that some providers used to accept now fail. testMailerhas 9 new cases for header names and line-break/control characters in values. A custom adapter that passed 0.1.0's suite may need to validate headers too.wrapsMailerno longer throws after SES accepted a send without an id. It returns{ id: "ses:<uuid>" }withoutmessageId, likesesMailer, so the caller doesn't retry and send twice.messageIdis left out when an endpoint comes from the environment:AWS_ENDPOINT_URL,AWS_ENDPOINT_URL_SESorAWS_ENDPOINT_URL_SESV2forwrapsMailer;AWS_ENDPOINT_URLorAWS_ENDPOINT_URL_SESV2forsesMailer(LocalStack setups no longer get a made-up SES Message-ID).fromdisplay names on the wire: non-ASCII names are sent as RFC 2047 encoded-words and ASCII names that need it are quoted. Names already encoded, or written as a phrase, go out unchanged.
Also: sesMailer's messageId and In-Reply-To/References are confirmed with a real SES v2 send in us-east-1; README notes on email-sdk telemetry and when to use sesMailer.
Full Changelog: v0.1.0...v0.1.1
v0.1.0
Immutable
release. Only release title and notes can be modified.
Full Changelog: https://github.com/byo-oss/mailer/commits/v0.1.0