email-templates
Advanced tools
Comparing version 1.1.2 to 1.2.0
@@ -13,7 +13,14 @@ [antoinepairet]: https://github.com/antoinepairet | ||
[anotherjazz]: https://github.com/anotherjazz | ||
[jeduan]: https://github.com/jeduan | ||
## 1.2.0 (2015-02-17) | ||
* enhancement: [@jeduan][jeduan] Migrates back to Juice to support Node.js 0.12 | ||
* enhancement: [@jeduan][jeduan] Uses consolidate.js | ||
* enhancement: [@gierschv][gierschv] Uses node-sass 2.0 | ||
* | ||
## 1.1.0 (2014-07-05) | ||
* enhancement: [@DesignByOnyx][DesignByOnyx]: Add support for filename prefix | ||
* enhancement: [@skimmmer][skimmmer]: Add dust-linkedin template engine | ||
* enhancement: [@anotherjazz][anotherjazz]: Add emblem template engine | ||
* enhancement: [@anotherjazz][anotherjazz]: Add emblem template engine | ||
* development: [@jksdua][jksdua]: Update node-sass version | ||
@@ -20,0 +27,0 @@ |
@@ -16,3 +16,3 @@ // node-email-templates | ||
, async = require('async') | ||
, juice = require('juice2') | ||
, juice = require('juice') | ||
, glob = require('glob') | ||
@@ -79,3 +79,3 @@ , zlib = require('zlib') | ||
// Inject available styles into HTML. | ||
html = (stylesheet) ? juice(html, stylesheet) : html | ||
html = (stylesheet) ? juice(html, {extraCss: stylesheet}) : html | ||
@@ -82,0 +82,0 @@ // Return a compressed buffer if needed. |
@@ -84,3 +84,3 @@ /** | ||
function errorHandler(err) { cb(err) } | ||
function successHandler(css) { cb(null, css)} | ||
function successHandler(data) { cb(null, data.css)} | ||
@@ -87,0 +87,0 @@ locals.data = source |
{ | ||
"name": "email-templates", | ||
"description": "Node.js module for rendering beautiful emails with ejs, jade, swig, hbs, or handlebars templates and email-friendly inline CSS using juice.", | ||
"version": "1.1.2", | ||
"version": "1.2.0", | ||
"author": "Nick Baugh <niftylettuce@gmail.com>", | ||
@@ -59,4 +59,4 @@ "contributors": [ | ||
"dependencies": { | ||
"juice2": "^0.6.0", | ||
"consolidate": "^0.10.0", | ||
"juice": "^1.0.0", | ||
"consolidate": "^0.11.0", | ||
"async": "^0.9.0", | ||
@@ -69,4 +69,4 @@ "underscore": "^1.6.0", | ||
"postmark": "^0.1.8", | ||
"mocha": "^1.19.0", | ||
"chai": "^1.9.1", | ||
"mocha": "^2.1.0", | ||
"chai": "^2.0.0", | ||
"mkdirp": "^0.3.5", | ||
@@ -83,5 +83,5 @@ "rimraf": "^2.2.8", | ||
"styl": "^0.2.7", | ||
"node-sass": "^0.9.3", | ||
"node-sass": "^2.0.1", | ||
"sinon": "^1.10.2", | ||
"sinon-chai": "^2.5.0", | ||
"sinon-chai": "^2.7.0", | ||
"istanbul": "^0.3.2" | ||
@@ -88,0 +88,0 @@ }, |
@@ -8,2 +8,3 @@ | ||
[![Test Coverage][coveralls-image]][coveralls-url] | ||
[![Static Analysis][codeclimate-image]][codeclimate-url] | ||
[![MIT License][license-image]][license-url] | ||
@@ -27,3 +28,2 @@ [![Gitter][gitter-image]][gitter-url] | ||
* [Postmark](#postmark) | ||
* [Lazyweb Requests](#lazyweb-requests) | ||
* [Changelog](#changelog) | ||
@@ -92,9 +92,14 @@ * [Contributors](#contributors) | ||
2. Install the template engine you intend to use: | ||
- `ejs` | ||
- `jade` | ||
- `swig` | ||
- `handlebars` | ||
- `emblem ` | ||
- `dust-linkedin` | ||
- `ejs@^1.0.0` | ||
- `jade@^1.3.1` | ||
- `swig@^1.3.2` | ||
- `handlebars@^1.3.0` | ||
- `emblem@~0.3.16` | ||
- `dust-linkedin@^2.4.0` | ||
- `less@^1.7.0` | ||
- `stylus@^^0.45.1` | ||
- `styl@^0.2.7` | ||
- `node-sass@^0.9.3` | ||
```bash | ||
@@ -193,3 +198,3 @@ npm install -S <engine> | ||
this.batch = function(batch) { | ||
batch(this.locals, this.send); | ||
batch(this.locals, templatesDir, this.send); | ||
}; | ||
@@ -500,3 +505,3 @@ }; | ||
[ejs]: https://github.com/visionmedia/ejs | ||
[juice]: https://github.com/LearnBoost/juice | ||
[juice]: https://github.com/Automattic/juice | ||
[nodemailer]: https://github.com/andris9/Nodemailer | ||
@@ -525,2 +530,4 @@ [postmark]: http://postmarkapp.com/ | ||
[travis-image]: http://img.shields.io/travis/niftylettuce/node-email-templates.svg?style=flat | ||
[codeclimate-image]: http://img.shields.io/codeclimate/github/niftylettuce/node-email-templates.svg?style=flat | ||
[codeclimate-url]: https://codeclimate.com/github/niftylettuce/node-email-templates?branch=master | ||
[coveralls-image]: https://img.shields.io/coveralls/niftylettuce/node-email-templates.svg?style=flat | ||
@@ -527,0 +534,0 @@ [coveralls-url]: https://coveralls.io/r/niftylettuce/node-email-templates?branch=master |
@@ -97,3 +97,3 @@ var emailTemplates = require('../lib/main') | ||
expect(html).to.equal( | ||
'<html><body><h4 style=\"color: #ccc;\">test</h4></body></html>') | ||
'<h4 style=\"color: #ccc;\">test</h4>') | ||
done() | ||
@@ -117,3 +117,3 @@ }) | ||
expect(html).to.equal( | ||
'<html><body><h4 style=\"color: #ccc;\">test</h4></body></html>') | ||
'<h4 style=\"color: #ccc;\">test</h4>') | ||
done() | ||
@@ -140,3 +140,3 @@ }) | ||
expect(html).to.equal( | ||
'<html><body><h4 style=\"color: #ccc;\">test</h4></body></html>') | ||
'<h4 style=\"color: #ccc;\">test</h4>') | ||
done() | ||
@@ -143,0 +143,0 @@ }) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
58849
22
535
1
+ Addedjuice@^1.0.0
+ Addedalign-text@0.1.4(transitive)
+ Addedboolbase@1.0.0(transitive)
+ Addedcamelcase@1.2.1(transitive)
+ Addedcenter-align@0.1.3(transitive)
+ Addedcheerio@0.19.0(transitive)
+ Addedclean-css@1.1.7(transitive)
+ Addedcli-color@0.3.3(transitive)
+ Addedcliui@2.1.0(transitive)
+ Addedcommander@2.0.02.9.0(transitive)
+ Addedconsolidate@0.11.0(transitive)
+ Addedcore-util-is@1.0.3(transitive)
+ Addedcross-spawn-async@2.2.5(transitive)
+ Addedcss-select@1.0.0(transitive)
+ Addedcss-what@1.0.0(transitive)
+ Addedcssom@0.3.0(transitive)
+ Addedd@0.1.11.0.2(transitive)
+ Addeddatauri@0.2.1(transitive)
+ Addeddecamelize@1.2.0(transitive)
+ Addeddeep-extend@0.4.2(transitive)
+ Addeddom-serializer@0.1.1(transitive)
+ Addeddomhandler@2.3.0(transitive)
+ Addeddomutils@1.4.31.5.1(transitive)
+ Addedentities@1.0.0(transitive)
+ Addedes5-ext@0.10.64(transitive)
+ Addedes6-iterator@0.1.32.0.3(transitive)
+ Addedes6-symbol@2.0.13.1.4(transitive)
+ Addedes6-weak-map@0.1.4(transitive)
+ Addedesniff@2.0.1(transitive)
+ Addedevent-emitter@0.3.5(transitive)
+ Addedext@1.7.0(transitive)
+ Addedgraceful-readlink@1.0.1(transitive)
+ Addedhtmlparser2@3.8.3(transitive)
+ Addedis-buffer@1.1.6(transitive)
+ Addedisarray@0.0.1(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedjuice@1.11.0(transitive)
+ Addedkind-of@3.2.2(transitive)
+ Addedlazy-cache@1.0.4(transitive)
+ Addedlodash@3.10.1(transitive)
+ Addedlongest@1.0.1(transitive)
+ Addedlru-cache@4.1.5(transitive)
+ Addedlru-queue@0.1.0(transitive)
+ Addedmemoizee@0.3.10(transitive)
+ Addedmimer@2.0.2(transitive)
+ Addednext-tick@0.2.21.1.0(transitive)
+ Addednth-check@1.0.2(transitive)
+ Addedpseudomap@1.0.2(transitive)
+ Addedreadable-stream@1.1.14(transitive)
+ Addedrepeat-string@1.6.1(transitive)
+ Addedright-align@0.1.3(transitive)
+ Addedsource-map@0.5.7(transitive)
+ Addedstring_decoder@0.10.31(transitive)
+ Addedtemplayed@0.2.3(transitive)
+ Addedtimers-ext@0.1.8(transitive)
+ Addedtype@2.7.3(transitive)
+ Addeduglify-js@2.8.29(transitive)
+ Addeduglify-to-browserify@1.0.2(transitive)
+ Addedweb-resource-inliner@1.2.1(transitive)
+ Addedwhich@1.3.1(transitive)
+ Addedwindow-size@0.1.0(transitive)
+ Addedwordwrap@0.0.2(transitive)
+ Addedxtend@4.0.2(transitive)
+ Addedyallist@2.1.2(transitive)
+ Addedyargs@3.10.0(transitive)
- Removedjuice2@^0.6.0
- Removedbindings@1.5.0(transitive)
- Removedcommander@2.20.3(transitive)
- Removedconsolidate@0.10.0(transitive)
- Removedcontextify@0.1.15(transitive)
- Removedcookiejar@1.3.0(transitive)
- Removedcssom@0.3.8(transitive)
- Removedcssstyle@0.2.37(transitive)
- Removeddebug@0.7.4(transitive)
- Removeddom-serializer@0.2.2(transitive)
- Removeddomelementtype@2.3.0(transitive)
- Removeddomhandler@2.4.2(transitive)
- Removeddomutils@1.7.0(transitive)
- Removedemitter-component@1.0.0(transitive)
- Removedentities@2.2.0(transitive)
- Removedextend@1.2.1(transitive)
- Removedfile-uri-to-path@1.0.0(transitive)
- Removedformidable@1.0.14(transitive)
- Removedhtmlparser2@3.10.1(transitive)
- Removedjsdom@0.10.6(transitive)
- Removedjuice2@0.6.0(transitive)
- Removedmethods@0.0.1(transitive)
- Removedmime@1.2.5(transitive)
- Removednan@2.20.0(transitive)
- Removednwmatcher@1.3.9(transitive)
- Removedqs@0.6.5(transitive)
- Removedreadable-stream@3.6.2(transitive)
- Removedreduce-component@1.0.1(transitive)
- Removedstring_decoder@1.3.0(transitive)
- Removedsuperagent@0.17.0(transitive)
- Removedxmlhttprequest@1.8.0(transitive)
Updatedconsolidate@^0.11.0