What's Changed
Major Changes
-
f9483ec: Deprecated
renderAsync
and maderender
itself always asyncWhy
Three reasons:
- Better support of NextJS's latest versions
- Being ready for future React API deprecations
- Support for Suspense which allows for using async inside components
See #1144 for more info.
How to upgrade
If you are using the old
render
, you will need to now treat the Promise
that comes out of it, as it is now async. If you are usingrenderAsync
,
you can replace it withrender
and things should work the same.
Patch Changes
- 3caaf53: Updated peer dependencies to allow for React 19 release candidate and React 19 itself
Full Changelog: https://github.com/resend/react-email/compare/@react-email/render@0.0.17...@react-email/render@1.0.0