chore: Modernize, update dependencies #9
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great, much cleaner! ✨
Am I correct in thinking that we'll have to upgrade the email-queue service to node 8 as part of this?
const Promise = require('bluebird') | ||
const path = require('path') | ||
const _ = require('lodash') | ||
const fs = require('fs') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✨
if (!path) return P.cast(null); | ||
|
||
return new P(function(resolve, reject) { | ||
fs.readFile(path, 'utf-8', function(err, source) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Oh odd, I did not know that node supported utf-8
in addition to utf8
.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hot damn! nice
Not initially. This will be used directly by wubwub. If/when we upgrade email-queue to use this version as well, we will also have to upgrade it to node 8. This module is effectively a mustache and monocle atop SES, so there's little harm in keeping around an old version. |
We still get a warning about a deprecated
node-uuid
throughhandlebars-async
, but that project hasn't been touched in 4 years...