Skip to content

Releases

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 17 Nov 16:52
Immutable release. Only release title and notes can be modified.
v0.3.0
e1cef8f

Upgrading to 0.3.0

Behaviour changes

  • The optional vitest peer dependency is now ^4.1.12 || >=5.0.5 (was >=3). It matters if your project has vitest installed, whether or not you use testMailer. With an older vitest, npm 7 or later stops with ERESOLVE and 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/mocker redirect mock
  • GHSA-qxg6-89mg-rqv8 (medium): in @vitest/mocker before 4.1.12, and 5.0.0 to 5.0.2
  • GHSA-xp26-3454-mjgp (medium): in @vitest/mocker 4.1.11, and 5.0.0 to 5.0.2. vitest pins @vitest/mocker to 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 or api); 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

Choose a tag to compare

@github-actions github-actions released this 23 Oct 19:50
Immutable release. Only release title and notes can be modified.
v0.2.0
fbdb758

Behaviour changes

  • memoryMailer rejects reserved headers. From, To, Cc, Bcc, Reply-To, Subject, Date, Message-ID, MIME-Version, Content-Type, Content-Transfer-Encoding, Return-Path and Sender (any case) in headers now throw a PermanentMailError and record nothing, as the real adapters do. 0.1.1 only rejected malformed headers, so a test that passed one to memoryMailer now fails. Put the reply address in replyTo.
  • AWS_IGNORE_CONFIGURED_ENDPOINT_URLS=true is honoured. wrapsMailer and sesMailer keep messageId when it is set, since the AWS SDK then ignores AWS_ENDPOINT_URL*. Only the exact string true counts. A code-set endpoint still omits messageId. The SDK reads the variable only from @smithy/core 3.29.6 (July 2026) on; with an older SDK, update it before setting the variable.
  • @wraps.dev/email >=0.15.1 is now the peer range. Before 0.15.1 the SDK wrote a non-ASCII subject as raw 8-bit text whenever headers were set (a threaded reply's In-Reply-To and References). 0.15.1 (wraps-team/wraps-js#53) encodes it as an RFC 2047 encoded-word.

Internal

  • PermanentMailError and isPermanentMailError moved to src/errors.ts, which ends the import cycle between index.ts and headers.ts. Exports and the Symbol.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

Choose a tag to compare

@github-actions github-actions released this 21 Oct 19:15
Immutable release. Only release title and notes can be modified.
v0.1.1
3fc9912

Behaviour changes

  • Header validation in every mailer. wrapsMailer, sesMailer, emailSdkMailer and memoryMailer now throw a PermanentMailError before 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; with emailSdkMailer, non-ASCII header values that some providers used to accept now fail.
  • testMailer has 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.
  • wrapsMailer no longer throws after SES accepted a send without an id. It returns { id: "ses:<uuid>" } without messageId, like sesMailer, so the caller doesn't retry and send twice.
  • messageId is left out when an endpoint comes from the environment: AWS_ENDPOINT_URL, AWS_ENDPOINT_URL_SES or AWS_ENDPOINT_URL_SESV2 for wrapsMailer; AWS_ENDPOINT_URL or AWS_ENDPOINT_URL_SESV2 for sesMailer (LocalStack setups no longer get a made-up SES Message-ID).
  • from display 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.

Fixes #1, #2, #3, #4, #5, #6.

Full Changelog: v0.1.0...v0.1.1

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 21 Oct 17:44
Immutable release. Only release title and notes can be modified.
v0.1.0
e214c18