email-templates
Advanced tools
Comparing version 9.0.0 to 10.0.0
111
package.json
{ | ||
"name": "email-templates", | ||
"description": "Create, preview, and send custom email templates for Node.js. Highly configurable and supports automatic inline CSS, stylesheets, embedded images and fonts, and much more! Made for sending beautiful emails with Lad.", | ||
"version": "9.0.0", | ||
"description": "Create, preview, and send custom email templates for Node.js. Highly configurable and supports automatic inline CSS, stylesheets, embedded images and fonts, and much more! Made for Forward Email and Lad.", | ||
"version": "10.0.0", | ||
"author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com)", | ||
@@ -10,7 +10,2 @@ "bugs": { | ||
}, | ||
"commitlint": { | ||
"extends": [ | ||
"@commitlint/config-conventional" | ||
] | ||
}, | ||
"contributors": [ | ||
@@ -20,50 +15,37 @@ "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com)" | ||
"dependencies": { | ||
"@ladjs/i18n": "^7.2.6", | ||
"@ladjs/i18n": "^8.0.0", | ||
"consolidate": "^0.16.0", | ||
"debug": "^4.3.4", | ||
"get-paths": "^0.0.7", | ||
"html-to-text": "^8.1.0", | ||
"html-to-text": "^8.2.0", | ||
"juice": "^8.0.0", | ||
"lodash": "^4.17.21", | ||
"nodemailer": "^6.7.2", | ||
"nodemailer": "^6.7.6", | ||
"preview-email": "^3.0.5" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.17.6", | ||
"@babel/core": "^7.17.8", | ||
"@babel/preset-env": "^7.16.11", | ||
"@commitlint/cli": "^16.2.3", | ||
"@commitlint/config-conventional": "^16.2.1", | ||
"ava": "^4.1.0", | ||
"cheerio": "^1.0.0-rc.10", | ||
"codecov": "^3.8.3", | ||
"@commitlint/cli": "^17.0.3", | ||
"@commitlint/config-conventional": "^17.0.3", | ||
"ava": "^4.3.0", | ||
"cheerio": "^1.0.0-rc.12", | ||
"cross-env": "^7.0.3", | ||
"ejs": "^3.1.6", | ||
"eslint": "^8.11.0", | ||
"eslint-config-xo-lass": "^1.0.6", | ||
"eslint-plugin-node": "^11.1.0", | ||
"ejs": "^3.1.8", | ||
"eslint": "^8.19.0", | ||
"eslint-config-xo-lass": "^2.0.1", | ||
"fixpack": "^4.0.0", | ||
"husky": "^7.0.4", | ||
"lint-staged": "^12.3.7", | ||
"husky": "^8.0.1", | ||
"lint-staged": "^13.0.3", | ||
"nodemailer-sendgrid": "^1.0.3", | ||
"nyc": "^15.1.0", | ||
"pug": "^3.0.2", | ||
"remark-cli": "^10.0.1", | ||
"remark-preset-github": "^4.0.1", | ||
"xo": "^0.48.0" | ||
"remark-cli": "^11.0.0", | ||
"remark-preset-github": "^4.0.4", | ||
"xo": "^0.50.0" | ||
}, | ||
"engines": { | ||
"node": ">=10.0.0" | ||
"node": ">=14" | ||
}, | ||
"files": [ | ||
"lib", | ||
"locales" | ||
"index.js" | ||
], | ||
"homepage": "https://github.com/forwardemail/email-templates", | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "npm test", | ||
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS" | ||
} | ||
}, | ||
"keywords": [ | ||
@@ -89,29 +71,3 @@ "consolidate", | ||
"license": "MIT", | ||
"lint-staged": { | ||
"linters": { | ||
"*.js": [ | ||
"xo --fix", | ||
"git add" | ||
], | ||
"*.md": [ | ||
"remark . -qfo", | ||
"git add" | ||
], | ||
"package.json": [ | ||
"fixpack", | ||
"git add" | ||
] | ||
} | ||
}, | ||
"main": "lib/index.js", | ||
"prettier": { | ||
"singleQuote": true, | ||
"bracketSpacing": true, | ||
"trailingComma": "none" | ||
}, | ||
"remarkConfig": { | ||
"plugins": [ | ||
"preset-github" | ||
] | ||
}, | ||
"main": "index.js", | ||
"repository": { | ||
@@ -122,26 +78,7 @@ "type": "git", | ||
"scripts": { | ||
"ava": "cross-env NODE_ENV=test ava", | ||
"build": "npm run build:clean && npm run build:lib", | ||
"build:clean": "rimraf lib", | ||
"build:lib": "babel src --out-dir lib", | ||
"coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov", | ||
"lint": "xo && remark . -qfo && eslint lib", | ||
"nyc": "cross-env NODE_ENV=test nyc ava", | ||
"test": "npm run build && npm run lint && npm run ava", | ||
"test-coverage": "npm run build && npm run lint && npm run nyc" | ||
}, | ||
"xo": { | ||
"prettier": true, | ||
"space": true, | ||
"extends": [ | ||
"xo-lass" | ||
], | ||
"ignores": [ | ||
"config.js" | ||
], | ||
"rules": { | ||
"unicorn/prevent-abbreviations": "off", | ||
"unicorn/prefer-module": "off" | ||
} | ||
"lint": "xo --fix && remark . -qfo && fixpack", | ||
"prepare": "husky install", | ||
"pretest": "npm run lint", | ||
"test": "cross-env NODE_ENV=test nyc ava" | ||
} | ||
} |
# [**Email Templates**](https://github.com/forwardemail/email-templates) | ||
[![build status](https://travis-ci.com/forwardemail/email-templates.svg)](https://travis-ci.com/forwardemail/email-templates) | ||
[![code coverage](https://img.shields.io/codecov/c/github/forwardemail/email-templates.svg)](https://codecov.io/gh/forwardemail/email-templates) | ||
[![build status](https://github.com/forwardemail/email-templates/actions/workflows/ci.yml/badge.svg)](https://github.com/forwardemail/email-templates/actions/workflows/ci.yml) | ||
[![code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo) | ||
@@ -10,7 +9,5 @@ [![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier) | ||
> :heart: Love this project? Support <a href="https://github.com/niftylettuce" target="_blank">@niftylettuce's</a> [FOSS](https://en.wikipedia.org/wiki/Free_and_open-source_software) on <a href="https://patreon.com/niftylettuce" target="_blank">Patreon</a> or <a href="https://paypal.me/niftylettuce">PayPal</a> :unicorn: | ||
Create, [preview][preview-email], and send custom email templates for [Node.js][node]. Highly configurable and supports automatic inline CSS, stylesheets, embedded images and fonts, and much more! Made for [Forward Email][forward-email] and [Lad][]. | ||
Create, [preview][preview-email], and send custom email templates for [Node.js][node]. Highly configurable and supports automatic inline CSS, stylesheets, embedded images and fonts, and much more! Made for sending beautiful emails with [Lad][]. | ||
## Table of Contents | ||
@@ -39,2 +36,3 @@ | ||
* [Breaking Changes](#breaking-changes) | ||
* [v10.0.0](#v1000) | ||
* [v9.0.0](#v900) | ||
@@ -63,9 +61,3 @@ * [v8.0.0](#v800) | ||
[yarn][]: | ||
```sh | ||
yarn add email-templates pug | ||
``` | ||
## Preview | ||
@@ -88,6 +80,6 @@ | ||
If you run into any issues with configuration, files, templates, locals, etc, then you can use the `DEBUG` environment flag: | ||
If you run into any issues with configuration, files, templates, locals, etc, then you can use the `NODE_DEBUG` environment flag: | ||
```sh | ||
DEBUG=email-templates node app.js | ||
NODE_DEBUG=email-templates node app.js | ||
``` | ||
@@ -131,3 +123,3 @@ | ||
message: { | ||
from: 'niftylettuce@gmail.com' | ||
from: 'test@example.com' | ||
}, | ||
@@ -192,3 +184,3 @@ // uncomment below to send emails in development/test env: | ||
message: { | ||
from: 'niftylettuce@gmail.com', | ||
from: 'test@example.com', | ||
attachments: [ | ||
@@ -224,3 +216,3 @@ { | ||
message: { | ||
from: 'niftylettuce@gmail.com' | ||
from: 'test@example.com' | ||
}, | ||
@@ -424,3 +416,3 @@ transport: { | ||
message: { | ||
from: 'niftylettuce@gmail.com' | ||
from: 'test@example.com' | ||
}, | ||
@@ -544,3 +536,3 @@ transport: { | ||
message: { | ||
from: 'niftylettuce@gmail.com' | ||
from: 'test@example.com' | ||
}, | ||
@@ -584,3 +576,3 @@ transport: { | ||
message: { | ||
from: 'niftylettuce@gmail.com' | ||
from: 'test@example.com' | ||
}, | ||
@@ -607,3 +599,3 @@ transport: { | ||
message: { | ||
from: 'niftylettuce@gmail.com' | ||
from: 'test@example.com' | ||
}, | ||
@@ -647,8 +639,2 @@ transport: { | ||
[yarn][]: | ||
```sh | ||
yarn add ejs | ||
``` | ||
2. Set the extension in options and send an email | ||
@@ -661,3 +647,3 @@ | ||
message: { | ||
from: 'niftylettuce@gmail.com' | ||
from: 'test@example.com' | ||
}, | ||
@@ -688,3 +674,3 @@ transport: { | ||
message: { | ||
from: 'niftylettuce@gmail.com', | ||
from: 'test@example.com', | ||
headers: { | ||
@@ -694,3 +680,3 @@ 'X-Some-Custom-Thing': 'Some-Value' | ||
list: { | ||
unsubscribe: 'https://niftylettuce.com/unsubscribe' | ||
unsubscribe: 'https://example.com/unsubscribe' | ||
} | ||
@@ -861,2 +847,6 @@ }, | ||
### v10.0.0 | ||
This package now requires Node v14+. | ||
### v9.0.0 | ||
@@ -890,3 +880,3 @@ | ||
* This package now only supports Node v8.x+ (due to [preview-email][]'s [open][] dependency requiring it). | ||
* Configuration for the `preview` option has slightly changed, which now allows you to [specify a custom template and stylesheets](https://github.com/niftylettuce/preview-email#custom-preview-template-and-stylesheets) for preview rendering. | ||
* Configuration for the `preview` option has slightly changed, which now allows you to [specify a custom template and stylesheets](https://github.com/forwardemail/preview-email#custom-preview-template-and-stylesheets) for preview rendering. | ||
@@ -971,3 +961,2 @@ > If you were using a custom `preview` option before, you will need to change it slightly: | ||
* [forward-email][] - Free, encrypted, and open-source email forwarding service for custom domains | ||
* [lipo][] - Free image manipulation API service built on top of [Sharp][] | ||
@@ -993,4 +982,2 @@ | ||
[yarn]: https://yarnpkg.com/ | ||
[pug]: https://pugjs.org | ||
@@ -1022,3 +1009,3 @@ | ||
[preview-email]: https://github.com/niftylettuce/preview-email | ||
[preview-email]: https://github.com/forwardemail/preview-email | ||
@@ -1033,8 +1020,4 @@ [attachments]: https://nodemailer.com/message/attachments/ | ||
[lipo]: https://lipo.io | ||
[koa]: https://koajs.com/ | ||
[sharp]: http://sharp.dimens.io/ | ||
[express]: https://expressjs.com | ||
@@ -1044,3 +1027,3 @@ | ||
[mandarin]: https://github.com/niftylettuce/mandarin | ||
[mandarin]: https://github.com/ladjs/mandarin | ||
@@ -1047,0 +1030,0 @@ [consolidate]: https://github.com/tj/consolidate.js |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
8
17
310
47115
4
1025
2
+ Added@hapi/boom@10.0.1(transitive)
+ Added@hapi/hoek@11.0.4(transitive)
+ Added@ladjs/country-language@1.0.3(transitive)
+ Added@ladjs/i18n@8.0.3(transitive)
+ Addedi18n@0.15.1(transitive)
- Removeddebug@^4.3.4
- Removed@hapi/boom@9.1.4(transitive)
- Removed@hapi/hoek@9.3.0(transitive)
- Removed@ladjs/i18n@7.2.6(transitive)
- Removedi18n@0.14.2(transitive)
Updated@ladjs/i18n@^8.0.0
Updatedhtml-to-text@^8.2.0
Updatednodemailer@^6.7.6