Skip to content

Commit dc5a548

Browse files
committed
fix: added note to README about breaking change in v12.0.0
1 parent 3ff204e commit dc5a548

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ Create, [preview][preview-email] (browser/iOS Simulator), and send custom email
3636
* [Optimized Pug Stylesheet Loading](#optimized-pug-stylesheet-loading)
3737
* [Plugins](#plugins)
3838
* [Breaking Changes](#breaking-changes)
39+
* [v12.0.0](#v1200)
3940
* [v11.0.0](#v1100)
4041
* [v10.0.0](#v1000)
4142
* [v9.0.0](#v900)
@@ -52,12 +53,12 @@ Create, [preview][preview-email] (browser/iOS Simulator), and send custom email
5253

5354
## Install
5455

55-
> By default we recommend [pug][] for your template engine, but you can use [any template engine][supported-engines].
56+
> By default we recommend [pug][] for your template engine, but you can use [any template engine][supported-engines]. Note that [preview-email][] is an optional dependency and is extremely helpful for rendering development previews of your emails automatically in your browser.
5657
5758
[npm][]:
5859

5960
```sh
60-
npm install email-templates pug
61+
npm install email-templates preview-email pug
6162
```
6263

6364

@@ -842,6 +843,10 @@ const email = new Email({
842843

843844
See the [Releases](https://github.com/forwardemail/email-templates/releases) page for an up to date changelog.
844845

846+
### v12.0.0
847+
848+
The `preview-email` dependency is now an optional dependency. You will need to `npm install preview-email` or set `preview: false`, otherwise an error will be thrown in non-production environments and `console.error` in production environments if `preview` option is a truthy value. The default value for `preview` is `preview: process.NODE_ENV === 'development'`.
849+
845850
### v11.0.0
846851

847852
This package no longer inlines stylesheets by default and preserves `<style>` tags in the `<head>` (see [Options](#options)).

0 commit comments

Comments
 (0)