All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
- Security patches to dev-dependencies #237 by @jgzamora
- Events API functionality by @sstaley-sparkpost
- Example for searching the events/message API by @sstaley-sparkpost.
- Template preview draft option bug by @jgzamora
- Updated example for retrieving a recipient list by @WanderingBrooks.
- Example for sending a transmission with an inline image by @aydrian.
2.1.2 - 2017-01-20
- Callbacks are no longer being called twice in some methods by @avrahamgoldman. See Issue 203.
2.1.1 - 2017-01-11
- Removed our addition to the native Promise prototype in favor of a bluebird-inspired callback-wrapping function. See Issue #199. Thanks @danieljuhl.
- Empty CC sugar method no longer triggers an API error by @avrahamgoldman.
2.1.0 - 2016-12-20
- You can now add recipients to CC and BCC using sugar methods by @avrahamgoldman. See the updated transmissions documentation and CC/BCC examples.
- Updated the following npm packages: coveralls, eslint, eslint-config-sparkpost, mocha, lodash, and request by @aydrian.
- Resolved new linting issues from eslint-config-sparkpost update by @avrahamgoldman.
- The options parameter on the
transmissions.send()
method is now optional if you're using a callback function by @avrahamgoldman. - The options parameter on the
templates.get()
method is now optional if you're using a callback function by @avrahamgoldman.
2.0.1 - 2016-11-10
- Node.js version is now tracked using the User-Agent header by @ewandennis.
- An optional "stack identifier" that can be set during initialization so we can track libraries that use node-sparkpost via the User-Agent header by @ewandennis.
2.0.0 - 2016-11-04 - breaking
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.
- Support for Promises and Callbacks. See Async Handling.
- Debug option on initialization attaches debug information on response
- 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
- Responses for
GET
requests are now properly parsed as JSON by @aydrian. Closes #111
- No longer supporting Node.js versions 0.10 & 0.12. We will be following the LTS Schedule going forward.
- Removed SendGrid Compatibility layer.
1.3.8 - 2016-08-26
- #165 Updated webhook update method to not send id in request (@aydrian)
1.3.7 - 2016-07-28
- #150 Upgrade lodash version to 4 (@rnzo)
1.3.6 - 2016-07-14
- #148 Preserve array/object structure of API data (@gpittarelli)
1.3.5 - 2016-05-13
- #146 Single recipient suppression list upserts now use the bulk update endpoint (@jgzamora)
1.3.4 - 2016-05-10
- #144 Updated bulk suppression list upsert payload (@aydrian)
1.3.3 - 2016-04-25
- #142 Upgrade request to 2.72.0 and fix affected test (@artlogic)
1.3.2 - 2016-04-13
- #139 Make Gruntfile.js cross-platform friendly (@coldacid)
- #137 Fix missing
subaccounts
property in SparkPost class (@coldacid) - #134 Let inboundDomains.create() use a domain name as per the docs (@orval)
- #132 Some docs erroneously refer to recipient lists (@orval)
1.3.1 - 2016-04-01
- #130 Refactored toApiFormat.js to use json-pointer (@orval)
1.3.0 - 2016-04-01
- #129 Added support for subaccounts (@coldacid)
- #126 body might be undefined (@mstdokumaci)
- #121 Added support for Relay Webhooks (@aydrian)
- #119 Added support for inbound domains (@aydrian)
- #118 Added support for deleting a sending domain (@aydrian)
- #115 ReadMe "Hello World" Example (@JimTheMan)
1.2.0 - 2016-03-14
- #109 README updates (@aydrian)
- #108 removes from and subject from transmission stored template send example (@colestrode)
- #106 correcting send_transmission_all_fields.js example (@lfreneda)
- #104 Added a mocha test task to the default grunt task (@ewandennis)
- #101 Added gzipped response support (@ewandennis)
- #100 Added message events wrapper (@ewandennis)
- #97 Add nodejs versions to TravisCI (@richleland)
1.1.0 - 2015-08-13
- #92 Added Coveralls.io (@aydrian)
- #91 Added Recipient List Update method, Docs, and Examples (@aydrian)
- #85 Added getDocumentation and getSamples functions to Webhooks resource (@aydrian)
1.0.1 - 2015-08-06
- #88 Modified toApiFormat spec test file to fit standard naming convention. Added tests for code coverage. (@aydrian)
- #87 Removed dependency for snake-case (@aydrian)
- #83 Make sure to support sending with a stored recipient list or template, while also leaving headers and substitution data alone. (@bdeanindy)
- #80 Updated transmission docs and examples. (@aydrian)
- #78 Update Sending Domains docs and examples. (@aydrian)
- #70 Update examples for newly added toApiFormat (@bdeanindy)
1.0.0 - 2015-06-06 - breaking
- #68 Added keywords for searching in npm (@nornholdj)
- #67 Created a change log as CHANGELOG.md (@aydrian)
- #66 Issue #51 Modify the base object to handle non 2XX status and simplify second callback param (@aydrian)
- #56 Issue #46 Updates to Transmissions library (@aydrian)
- #55 Fix doc about using process.env.SPARKPOST_API_KEY (@bizob2828)
- #54 fixed link to transmissions in readme (@bizob2828)
- #45 Issue #45 Accept camelCase or native API format seamlessly (@bdeanindy)
0.9.0 - 2015-05-12 - breaking
- #49 Issue #48 Add Grunt Bump (@aydrian)
- #47 Issue #44 Create docs and examples for new APIs (@aydrian)
- #43 Issue #42 Modified sendingDomains.verify and updated the unit tests and examples.(@aydrian)
- #41 Issue #40 sparkpost.js test cleanup (@aydrian)
- #39 Issue #38 Updated Sending Domains unit tests. Added error checking. (@aydrian)
- #34 Issue #33 made transmission unit tests more unity (@colestrode)
- #32 Issue #10 Webhooks API (@aydrian)
- #31 Issue #6 Templates SDK (@aydrian)
- #30 Issue #20 Suppression List SDK (@aydrian)
- #29 Issue #7 Recipient Lists SDK (@aydrian)
- #27 Issue #16 Adding a base object (@aydrian)
0.1.6 - 2015-04-16
- #26 removed defaulting open/click tracking to true (@jmartin4563)
0.1.5 - 2015-04-02
0.1.4 - 2015-02-24
- Sending Domains Functionality and Transmissions Sandbox Option
0.1.3 - 2015-01-08
- Open & Click Tracking Disabling Bug Fix
0.1.2 - 2014-12-10
- Added SendGrid compatibility layer
0.1.1 - 2014-12-10
- Added SendGrid compatibility layer
- First Release!