Skip to content

Fixes #154 replacing react-email v5 direct deps with just react-email…#155

Merged
damianlegawiec merged 1 commit into
mainfrom
fix/npm-warn-react-email
May 19, 2026
Merged

Fixes #154 replacing react-email v5 direct deps with just react-email…#155
damianlegawiec merged 1 commit into
mainfrom
fix/npm-warn-react-email

Conversation

@damianlegawiec
Copy link
Copy Markdown
Member

@damianlegawiec damianlegawiec commented May 19, 2026

… v6 global package

Summary by CodeRabbit

  • Chores
    • Updated email service dependencies to streamline package configuration. Email templates and sending functionality remain unchanged.

Review Change Stack

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
storefront Ready Ready Preview, Comment May 19, 2026 9:40am

Request Review

@damianlegawiec damianlegawiec merged commit 8b1ec90 into main May 19, 2026
5 checks passed
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 19, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 48cc00a8-dcfc-40d1-8cf7-672c867ae8bc

📥 Commits

Reviewing files that changed from the base of the PR and between 782efaf and 71ae92b.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (7)
  • package.json
  • src/app/dev/emails/[template]/page.tsx
  • src/lib/emails/order-canceled.tsx
  • src/lib/emails/order-confirmation.tsx
  • src/lib/emails/password-reset.tsx
  • src/lib/emails/send.ts
  • src/lib/emails/shipment-shipped.tsx

Walkthrough

This PR consolidates fragmented React Email dependencies into a single unified react-email package. The dependency is updated in package.json, and all import statements across email templates and utilities are redirected to the new package source.

Changes

React Email Package Consolidation

Layer / File(s) Summary
Package dependency swap
package.json
Remove @react-email/components, add react-email to dependencies.
Email template component imports
src/lib/emails/order-canceled.tsx, src/lib/emails/order-confirmation.tsx, src/lib/emails/password-reset.tsx, src/lib/emails/shipment-shipped.tsx
Update component imports from @react-email/components to react-email across all email template files.
Render utility imports
src/lib/emails/send.ts, src/app/dev/emails/[template]/page.tsx
Update render function imports from @react-email/render to react-email in email utilities and dev preview page.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

  • spree/storefront#153: Updates dev email preview to use the unified react-email package instead of @react-email/preview-server.

Poem

🐰 Dependencies consolidated with care,
From scattered shards to one package fair,
React Email unified, imports flow clean—
The tidiest migration we've ever seen! 📧✨

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/npm-warn-react-email

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

1 participant