@react-email/render@1.0.0
版本发布时间: 2024-08-22 23:18:15
resend/react-email最新发布版本:create-email@0.0.34(2024-09-03 00:00:52)
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 https://github.com/resend/react-email/discussions/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