Fix botched 3.0.1 release.
Revert broken attempt to switch to switch to JSOn parsing in 3.0.0
Internally we switched from requesting XML to requesting JSON from AWS.
While the JavaScript API we provide remains the same, there are places where we
used to return errors with a Code
property set to XmlError
. In these cases
the error will be set to JsonError
instead. If your use depended on this
behavior it will need to be changed to explect the new error type instead.
Switching from XML to JSON to allows us to drop the XML dependencies we had,
reducing exposure to potential XML vulnerablities. Since JSON is faster to
parse than XML, performance may improve as well.
- Fix signature signing for eu-central-1 region (#60)
- Bump lodash, aws4, request deps
[INTERNALS]
- TypeScript types added (#56)
[NEW FEATURES]
- Add support for setting the configuration set during sending (#53)
[INTERNALS]
- Bumped dependencies
- Dropped support for Node.js < 6. (Although it may still work)
[NEW FEATURES]
- Allow setting key and secret from the environment. Helps support AWS Lambda. (#49)
[BUG FIXES]
- sendEmail 'key' option now properly overrides 'key' option given to create() (#43)
[INTERNALS]
- Add error checking for another case that could cause exceptions to be thrown when AWS has problems. (#42)
[BUG FIXES]
- Really release fix from 2.0.2 (@lyuzashi)
[BUG FIXES]
- Fix syntax issue which could break builds in some cases (@otech47)
No code changes.
[INTERNALS]
- Link to new node-ses-any-promise package, a fork with promise-based API.
There's a major version bump because the internals changed signficantly as part of switching to version 4 authentication signatures with AWS. The upgrade is backwards compatible with 1.2 for normal use.
[NEW FEATURES]
- Add webpack compatibility (cspeer)
[INTERNALS]
- Switched from using "version 2" AWS authentication signatures to "version 4" for future-proofing. (markstos)
- Processing the response from AWS has been moved to it's own function. Automated test coverage for it has been added and there's now the potential to override how response handling works. For now the function remains undocumented. (markstos)
[BREAKING CHANGES]
- 'algorithm' property is no longer exported and the option to change it is removed. If you are using an alternate algorithm to sign version 4 Authentication signatures, a pull request is welcome to restore this feature. (markstos)
[DOCUMENTATION]
- More detail on the structure of errors that might be returned was added. See new Error Handling heading in the README (markstos)
[INTERNALS]
- Internal errrors are now returned in the same format as AWS errors for consistency. This changes the structure of the error returned for the edge cases where the HTTP request to AWS failed or we failed to parse the XML of the response. (markstos)
[BUG FIXES]
- Documented default value of Amazon end point was wrong (#21, #25, imatveev, DelvarWorld)
[NEW FEATURES]
- Start supporting sendRawEmail method. (#20, brozeph)
[INTERNALS]
- Fixed typo in source code (#24, DelvarWorld)
[DOCUMENTATION]
- Improved debugging documentation
[INTERNALS]
- Bump dependencies
- Increase test time-out
[BUG FIXES]
- We now allow the
cc
orbcc
fields to be used instead ofto
, mirroring the SES API. (#11, Cellule)
[DOCUMENTATION]
- Explicitly document format for SES endpoints and clarify that not all AWS regions support SES. (#13, rickwaugh1)
- We now document that we expect input to be UTF-8 encoded.
[INTERNALS]
- xml2json dependency with replaced with smaller xml2js dependency. cromestant and markstos (#15)
- Bump dependencies
[THINGS THAT MIGHT BREAK YOUR CODE]
- The format of SES errors has changed from XML to JavaScript objects. This should fit in more naturally with Node.js code, but is not backward compatible if you happened to be parsing the errors before. robludwig
[DOCUMENTATION]
- docs were updated to clarify what the
data
andres
return values are markstos (#6)
- fixed; fail gracefully when not connected to the network jessetane (#3)
- docs
- add missing dependency - #1
- initial release