react-email 6.0.0-canary.1 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +43 -0
- package/dev/CHANGELOG.md +2 -0
- package/dev/package.json +1 -1
- package/dist/cli/index.mjs +753 -619
- package/dist/index.cjs +3837 -3206
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +3818 -3188
- package/package.json +7 -7
- package/src/components/body/__snapshots__/body.spec.tsx.snap +11 -11
- package/src/components/body/body.spec.tsx +1 -1
- package/src/components/head/head.spec.tsx +3 -3
- package/src/components/html/html.spec.tsx +1 -1
- package/src/components/tailwind/e2e/nextjs/package.json +1 -1
- package/src/components/tailwind/tailwind.spec.tsx +19 -21
- package/tsdown.config.ts +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,48 @@
|
|
|
1
1
|
# react-email
|
|
2
2
|
|
|
3
|
+
## 6.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- d0a7a52: Move all components and utilities into the `react-email` package
|
|
8
|
+
|
|
9
|
+
All components (previously in `@react-email/components` or individual packages like `@react-email/button`) and rendering utilities (previously in `@react-email/render`) are now exported directly from `react-email`. This unifies the install and import experience into a single package.
|
|
10
|
+
|
|
11
|
+
We're going to deprecate all packages except `@react-email/render` and `@react-email/preview-server`, and they will not be updated anymore.
|
|
12
|
+
|
|
13
|
+
### Breaking change
|
|
14
|
+
|
|
15
|
+
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/render` and `@react-email/editor`, and `render` will remain exported from `react-email`. Consumers should import everything from `react-email`.
|
|
16
|
+
|
|
17
|
+
### Why
|
|
18
|
+
|
|
19
|
+
Having separate packages for components (`@react-email/components`), and the CLI (`react-email`) created unnecessary confusion, and a maintenance burden for us.
|
|
20
|
+
|
|
21
|
+
### How to migrate
|
|
22
|
+
1. **Update your dependencies** -- remove `@react-email/components`, keep `react-email`:
|
|
23
|
+
|
|
24
|
+
```diff
|
|
25
|
+
- npm install @react-email/components react-email @react-email/preview-server
|
|
26
|
+
+ npm install react-email @react-email/preview-server
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
2. **Update your imports**:
|
|
30
|
+
|
|
31
|
+
```diff
|
|
32
|
+
- import { Button, Html, Head, render } from "@react-email/components";
|
|
33
|
+
+ import { Button, Html, Head, render } from "react-email";
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
3. The `@react-email/preview-server` and `@react-email/editor` packages are not included in `react-email`
|
|
37
|
+
|
|
38
|
+
### Patch Changes
|
|
39
|
+
|
|
40
|
+
- a3a15ea: replace deprecated `url.parse()` with WHATWG URL API in the preview dev server.
|
|
41
|
+
- Updated dependencies [7fc539d]
|
|
42
|
+
- @react-email/render@2.0.7
|
|
43
|
+
|
|
44
|
+
## 6.0.0-canary.2
|
|
45
|
+
|
|
3
46
|
## 6.0.0-canary.1
|
|
4
47
|
|
|
5
48
|
### Patch Changes
|
package/dev/CHANGELOG.md
CHANGED