-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated sendmail.js to ES2015 | Updated Readme.md to ES2015 | Updated… #27
Conversation
… engines "node" to >=6.0.0 for ES2015
Related to #25 |
I am gonna bump this to version 2.0.0 because for the people still on older versions of node this will break it for them. This is mainly for the enterprise users out there. |
No problem, just remember that more code changes could lead to this commit / PR being worthless, since it'll need to be done all-over again ;) |
Are you saying that because people will want 1.1.0 upgraded too? |
What I meant is that if another thing like the DKIM implementation is added, this PR will no longer be conflict free and it's possible what I did needs to be re-done. For example: Original:
PR:
Added module in between
It's a bit random what I did in the last part, but I wanted to make clear that the PR doesn't add up with the original anymore if there is a new module (or something else) added in between, e.g. for testing purposes. |
Also, small comment: when a package is published as a certain version number, it's impossible with NPM to publish something else with the same version number. |
Yea get what your saying - following Semantic Versioning though deems that we need to bump it pass 1.x to 2.x because we will stop support Node To the point of your PR ill get it in tonight or in the morning so that its not worthless |
You're 100% right on the Semantic Versioning part, that's also why I marked it as a breaking change in the initial PR comment and the comment I made about #26. Thank you for checking out my PR! |
I was working with the code a little tonight cause if were going es6 we might as well analyze the code a little more and see what we can make more efficient in es6. It did make me think .... that it would be smarter if i take one step back and write some baseline test cases while we know everything is working great #28 . Im gonna get started on it tomorrow unless you have something already in mind @Geex-Renzo |
Going to respond to #28 in a bit, gimme a sec |
@GreenPioneer Have you seen my comment at #28 ? |
Yea @Geex-Renzo i saw. With it being the holiday ill try to get to it asap |
Updated to ES2015
Description
All
var
statements are updated toconst
andlet
.Semicolons(
;
) have been added to all lines, since it's easier for the Javascript parser to work with.I have not updated callback functions to arrow functions, since it could change the
this
context and it could possibly break the project. This should be done after tests are written, to make sure it's all still working.This is a "breaking" change, since a pre
ES2015
env would crash on theconst
andlet
usage.How Has This Been Tested?
Uploaded code to own server and send mails to myself.
Types of changes
Checklist: