Major Changes
-
d0a7a52: Move all components and utilities into the
react-emailpackageAll components (previously in
@react-email/componentsor individual packages like@react-email/button) and rendering utilities (previously in@react-email/render) are now exported directly fromreact-email. This unifies the install and import experience into a single package.We're going to deprecate all packages except
@react-email/renderand@react-email/preview-server, and they will not be updated anymore.Breaking change
Imports from
@react-email/components,@react-email/render, or individual component packages (e.g.@react-email/button) are no longer the recommended path and they will all be deprecated with the exception of@react-email/renderand@react-email/editor, andrenderwill remain exported fromreact-email. Consumers should import everything fromreact-email.Why
Having separate packages for components (
@react-email/components), and the CLI (react-email) created unnecessary confusion, and a maintenance burden for us.How to migrate
-
Update your dependencies -- remove
@react-email/components, keepreact-email:- npm install @react-email/components react-email @react-email/preview-server + npm install react-email @react-email/preview-server
-
Update your imports:
- import { Button, Html, Head, render } from "@react-email/components"; + import { Button, Html, Head, render } from "react-email";
-
The
@react-email/preview-serverand@react-email/editorpackages are not included inreact-email
-
Patch Changes
- a3a15ea: replace deprecated
url.parse()with WHATWG URL API in the preview dev server.