Version 2.0.0 Release
Note: This release contains breaking changes
With this major release, we streamlined and simplified the library making it more of a thin wrapper, adding sugar methods when needed. Parameters are no longer abstracted and are passed directly to the API as laid out in the official documentation. Please see the updated resource docs and examples. The high level changes have been listed below.
Added
- Support for Promises and Callbacks. See Async Handling.
- Debug option on initialization attaches debug information on response
Changed
- Methods return the response body instead of the full response.
- Standardized methods on all API wrappers. See Issue #175.
- Transmissions
send
method now takes an object of transmission attributes as the first parameter. Any other options, such asnum_rcpt_errors
has been moved to a second optionaloptions
parameter. - Removed the
toApiFormat
method, parameters are passed directly to the API as snake_case. - Now using ESLint with SparkPost config instead of JSLint
- Now using NPM scripts instead of grunt
Fixed
Removed
- No longer supporting Node.js versions 0.10 & 0.12. We will be following the LTS Schedule going forward.
- Removed SendGrid Compatibility layer.
View the full changelog