Skip to content

Commit

Permalink
chore(docs): Add changelog for February 22, 2024 (#1345)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmfern authored and bukinoshita committed Mar 18, 2024
1 parent 199ee0f commit 57f8808
Showing 1 changed file with 50 additions and 15 deletions.
65 changes: 50 additions & 15 deletions apps/docs/changelog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,52 @@ description: "New features, bug fixes, and improvements made to each package."
icon: "list-check"
---

## Feb 22, 2024

**React Email `2.1.0`**

- Fixes `email build` not working with a custom emails directory
- Now automatically adds `sharp` as a dependency inside `.react-email` when running `email build`
- File extensions are now no longer forced on the slugs of the URL (i.e. `/preview/codepen-challengers.tsx` is just `/preview/codepen-challengers.tsx`)
- For subdirectories, email slugs are no longer encoded in the URL, so `/preview/newsletters%2Fcodepen-challengers` is now `/preview/newsletters/codepen-challengers`
- Fixes an issue with static files when using custom directories
- Issue that would happen when using Node versions that were not >= 20
- Fixes `email export` not rendering files form subdirectories properly
- Fixes the tooltip on the sidebar's toggle rendering bellow the sidebar
- Make the iframe inside the preview white by default
- Fixes missing suspense boundaries which could cause issues with `email build` sometimes
- Upgrade preview app to use NextJS `14.1.0`
- Fixes missing preloaded node modules for the email VM
- Fixes no emails being detected on the sidebar if a project parent directory was prefixed with `_`
- Fixes Hot reloading not working with a custom emails directory
- Fixes some minor typos (Thanks [Byrne Hollander](https://github.com/byrnehollander))
- Fixes duplication of static files after running `email export` multiple times
- Fixes Windows issue where the location for the CLI's package could not be found
- Fixes ESM issue with `email export`

**Code block `0.0.3`**

- Fixes certain PrismJS tokens not being rendered at all

**Create Email `0.0.23`**

- Template having the static directory at the root of the `react-email-starter` instead of inside `emails`
- Fixes missing obligatory dependencies on the template as of `react-email` `2.0`

**Button `0.0.14`**

- Fixes our styles not being overwritten by the user's

## Jan 19, 2024

**React-Email `2.0.0`**

Breaking changes:

- Static files for the preview server are now kept under `./emails/static` or
inside your specified emails directory.
inside your specified emails directory.
- The preview app is not downloaded anymore and it now comes alongside the CLI
- Monorepos are now fully supported because of this
- Monorepos are now fully supported because of this
- Emails are built instead of copied

Misc changes:
Expand All @@ -24,7 +60,7 @@ Misc changes:
- Added a view to see how your email is going to look on mobile
- Error overlay specific to your emails
- Sub-folders are now supported, allowing for certain ones to be ignored by
the preview app if prefixed with `_` (ex: `_components`)
the preview app if prefixed with `_` (ex: `_components`)
- Improved filtering for showing emails on the sidebar that only shows them if they have an export default somewhere inside. This is a bit of a heuristic and can still be improved though.

**Components `0.0.14`**
Expand Down Expand Up @@ -60,16 +96,16 @@ Template Changes:
- Replace unmaintained `pretty` package for `js-beautify` (thanks [Bastien Robert](https://github.com/bastienrobert))
- Remove link brackets surrounding links on plain text rendering (thanks [Marcus Stenbeck](https://github.com/marcusstenbeck))
- Fix functions called from `react-dom/server` to avoid them being called and
causing issues on NextJS on the edge
causing issues on NextJS on the edge
- Add an option for the `render` and `renderAsync` functions to customize the
[htmlToText](https://www.npmjs.com/package/html-to-text) options
[htmlToText](https://www.npmjs.com/package/html-to-text) options

**Tailwind `0.0.14`**

- Fix an error for a hack that is used on Tailwind to detect a deprecated
dependency that fails when it is being bundled on NextJS
dependency that fails when it is being bundled on NextJS
- Fix issues that were being caused by calling `renderToStaticMarkup` by doing
a very archaic rendering of the JSX to just run Tailwind on it
a very archaic rendering of the JSX to just run Tailwind on it

**Components `0.0.13`**

Expand All @@ -79,8 +115,7 @@ a very archaic rendering of the JSX to just run Tailwind on it
**react-email `1.10.1`**

- Fix error thrown by Next on the preview because of `@react-email/render` by adding it into
the [serverComponentsExternalPackages](https://nextjs.org/docs/app/api-reference/next-config-js/serverComponentsExternalPackages) option
- See https://github.com/resend/react-email/issues/1041
the [serverComponentsExternalPackages](https://nextjs.org/docs/app/api-reference/next-config-js/serverComponentsExternalPackages) option - See https://github.com/resend/react-email/issues/1041
- Ignore test files when generating email previews (Thanks [Jonathan Warykowski](https://github.com/jwarykowski))

**create-email `0.0.21`**
Expand All @@ -99,15 +134,15 @@ the [serverComponentsExternalPackages](https://nextjs.org/docs/app/api-reference
**react-email `1.10.0`**

- Use `tree-cli` instead of `tree-node-cli` which fixes problems with using it
behind a corporate proxy
behind a corporate proxy
- Fix problems with `jsx: 'preserve'` when trying to export emails by using a
specific tsconfig for bundling the code for the emails before rendering
specific tsconfig for bundling the code for the emails before rendering
- Improve error messages to avoid shallow feedback to users

**create-email `0.0.19`**

- Use `tree-cli` instead of `tree-node-cli` which fixes problems with
using it behind a corporate proxy
using it behind a corporate proxy
- Update `react-email` on the automatic setup to the latest

**Tailwind `0.0.13`**
Expand All @@ -121,16 +156,16 @@ element or Head component.
- Fix media queries not being loaded properly
- Fix Safari problems due to lookbehind expressions on regexes
- Make the Head obligatorily a direct element to Tailwind instead of HTml
followed by Head
followed by Head
- Fixed component not working with custom components that did not have
children
children

**Code-block `0.0.1`**

- Add code-block component
- Use modified version of [prismjs](https://prismjs.com/)
- Default themes from [prismjs
themes](https://github.com/PrismJS/prism-themes) exported [here](https://github.com/resend/react-email/blob/canary/packages/code-block/src/themes.ts)
themes](https://github.com/PrismJS/prism-themes) exported [here](https://github.com/resend/react-email/blob/canary/packages/code-block/src/themes.ts)

**Components `0.0.13`**

Expand Down

0 comments on commit 57f8808

Please sign in to comment.