Skip to content

Releases: andrewrk/swig-email-templates

7.0.0

03 Jul 10:08
Compare
Choose a tag to compare
  • Provide async version of main render method
  • Depend on yargs rather than minimist, removing dependency on an unmaintained package
  • Upgrade dependencies: html-to-text 6 -> 8, juice 7 -> 8
  • Support only Node 14, 16, 18
  • Internal refactoring to a more modern code style

6.0.0

23 Nov 21:52
Compare
Choose a tag to compare

Update dependencies.

5.0.0

28 Jun 02:27
Compare
Choose a tag to compare

Update to latest juice and html-to-text. Fixes #31. There are no API changes, but behaviour might change since I think one of these is using a different HTML parser from before.

4.0.1

28 Jun 01:53
Compare
Choose a tag to compare

Update to using swig-templates instead of swig as it is a more updated package.

4.0.0

17 Sep 23:57
Compare
Choose a tag to compare
  • Warning: swig is no longer maintained. Use this package at your
    own risk. You may wish to switch to nunjucks and for emails, use
    email-templates.
  • Upgrade to Juice 3. This brings changes from its dependency
    web-resource-inliner.
  • Add support for email subject.

3.0.0

11 Jun 18:28
Compare
Choose a tag to compare
  • Upgrade to Juice 2. This changes various defaults for inlining styles.
    See the list of changes in Juice for more information. These
    are mostly changes around preserving @font-face and @media, and
    applying widths/heights to tables.
  • Fix Outlook-breaking cheerio config (issue #34)
  • Update README for command-line utility

2.1.0

29 Apr 10:20
Compare
Choose a tag to compare
  • Add new option: 'rewrite'
    • This allows you to read and alter the rendered HTML in whatever way
      wish before inling resources or generating text alternatives
  • Update dependencies

2.0.0

09 Dec 04:16
Compare
Choose a tag to compare
  • Support for Node 4+ as well as 0.10 & 0.12
  • Switch to Cheerio instead of JSDom for compatibility with a wider range of
    Node versions
    • this means that the HTML you provide in your template will be closer to
      the output of swig-email-templates. JSDom added in html, body, tbody tags
      where Cheerio doesn't
  • Switch back to the the original 'juice' which is now more actively maintained
    • this version of juice also inlines images using data: URLs
    • be mindful that juice will fetch external resources for inlining, which can
      take some time
  • At the same time it made sense to refactor the API a bit:
    • the library presents itself as a class with a constructor method
    • rewriteUrl is now an option on EmailTemplates instead of an extra argument
      to render()
    • commandline tool no longer takes 'render' as a parameter
  • Add support for setting filters on the swig instance
  • Much more comprehensive documentation