Skip to content

fix(deps): update dependency @react-email/render to v2.2.0 [security] - #1188

Merged
dielduarte merged 1 commit into
canaryfrom
fix/deps-react-email-render-2.2.0
Nov 4, 2026
Merged

dielduarte merged 1 commit into
canaryfrom
fix/deps-react-email-render-2.2.0

Conversation

@dielduarte

@dielduarte dielduarte commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Lockfile-only bump of @react-email/render from 2.0.0 to 2.2.0. It's an optional peer (*) that pnpm auto-installs for our tests, so package.json is unchanged. Version 2.2.0 uses html-to-text 10, which replaced deepmerge with deepmerge-ts, so deepmerge leaves the lockfile. deepmerge itself has no patched release.

Resolves Dependabot alert #150 (low).

This doesn't affect what SDK users get: they install their own @react-email/render.

Test fixture change

Four tests passed a hand-made { type: 'div', props: { children: 'Hi' } } object, cast to React.ReactElement, as the react email. It lacks React's $$typeof marker, so it was never a real element. render 2.0.0 happened to accept it, but 2.2.0 passes it to React, which throws Objects are not valid as a React child. The tests now use createElement('div', null, 'Hi'), and the casts are gone. Real elements render fine on 2.2.0.

  • src/emails/emails.spec.ts
  • src/broadcasts/broadcasts.spec.ts
  • src/batch/batch.spec.ts (2 tests)

Verified locally: pnpm install --frozen-lockfile, pnpm lint, pnpm typecheck, pnpm build and pnpm test pass. The e2e job (Next.js and esbuild app builds) runs in CI.


Summary by cubic

Resolves a low-severity dependency alert by upgrading the lockfile-only @react-email/render from 2.0.0 to 2.2.0. SDK users are unaffected because they install their own @react-email/render.

Test fixture changes

  • Replaces hand-made { type: 'div', props: ... } mocks with real React elements via createElement, since render 2.2.0 rejects objects lacking React's $$typeof marker.

Written for commit 7e1b8ec. Summary will update on new commits.

View guided diff

@pkg-pr-new

pkg-pr-new Bot commented Nov 4, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/resend@1188

commit: 7e1b8ec

@klotty klotty left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 4 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Auto-approved: Lockfile-only security bump of @react-email/render to 2.2.0, with test fixtures switched from hand-made object mocks to real React elements; SDK consumers are unaffected and lint/typecheck/build/tests pass.

View guided diff | Re-trigger cubic

@dielduarte
dielduarte marked this pull request as ready for review November 4, 2026 17:18
@dielduarte
dielduarte requested a review from a team as a code owner November 4, 2026 17:18
@dielduarte
dielduarte requested a review from mwoss November 4, 2026 17:18
@dielduarte
dielduarte merged commit 8f86c7c into canary Nov 4, 2026
13 checks passed
@dielduarte
dielduarte deleted the fix/deps-react-email-render-2.2.0 branch November 4, 2026 17:18
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