diff options
author | Elmer Thomas <elmer@thinkingserious.com> | 2016-08-02 13:14:03 -0700 |
---|---|---|
committer | Elmer Thomas <elmer@thinkingserious.com> | 2016-08-02 13:14:03 -0700 |
commit | b318ff3a5a3af054a43045fde506794001f568ee (patch) | |
tree | 4dea1570584203e25fa127ab434cf3c85510b5c9 | |
parent | 93763a74a85969382d59fcb3708d22051498f998 (diff) | |
download | sendgrid-nodejs-b318ff3a5a3af054a43045fde506794001f568ee.zip sendgrid-nodejs-b318ff3a5a3af054a43045fde506794001f568ee.tar.gz sendgrid-nodejs-b318ff3a5a3af054a43045fde506794001f568ee.tar.bz2 |
Version Bump v4.0.0: Pull #261, proper callback function signaturev4.0.0
-rw-r--r-- | CHANGELOG.md | 17 | ||||
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | package.json | 2 |
3 files changed, 20 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index f906270..6703c8c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,23 @@ # Change Log All notable changes to this project will be documented in this file. +## [4.0.0] - 2016-08-02 ## +### Breaking Change +- Pull request [#261](https://github.com/sendgrid/sendgrid-nodejs/pull/261) +- BIG THANKS to [Adam Buczynski](https://github.com/adambuczynski)!!! +### Fixed +- Issue [#240](https://github.com/sendgrid/sendgrid-nodejs/issues/240) +- Issue [#246](https://github.com/sendgrid/sendgrid-nodejs/issues/246) +- Issue [#206](https://github.com/sendgrid/sendgrid-nodejs/issues/206) +### Added +- Extracted some logic into helpers +- Using a getEmptyRequest helper to avoid code duplication +- emtpyRequest now accepts an object with data to extend the empty request with, this will allow simpler syntax for initializing requests. +- Callback function now receives two parameters as per Node conventions (error, response) +- If no callback provided, the method will return a promise instead. +- Implemented promise API when not passing a callback function +- Using native Promise by default if present, but allow users to override this with any other implementation by setting Sendgrid.Promise to any value, e.g. Sendgrid.Promise = require('bluebird') + ## [3.0.11] - 2016-07-26 ## ### Added - [Troubleshooting](https://github.com/sendgrid/sendgrid-python/blob/master/TROUBLESHOOTING.md) section @@ -2,7 +2,7 @@ **This library allows you to quickly and easily use the SendGrid Web API v3 via Node.js.** -Version 3.X.X of this library provides full support for all SendGrid [Web API v3](https://sendgrid.com/docs/API_Reference/Web_API_v3/index.html) endpoints, including the new [v3 /mail/send](https://sendgrid.com/blog/introducing-v3mailsend-sendgrids-new-mail-endpoint). +Version 3.X.X+ of this library provides full support for all SendGrid [Web API v3](https://sendgrid.com/docs/API_Reference/Web_API_v3/index.html) endpoints, including the new [v3 /mail/send](https://sendgrid.com/blog/introducing-v3mailsend-sendgrids-new-mail-endpoint). This library represents the beginning of a new path for SendGrid. We want this library to be community driven and SendGrid led. We need your help to realize this goal. To help make sure we are building the right things in the right order, we ask that you create [issues](https://github.com/sendgrid/sendgrid-nodejs/issues) and [pull requests](https://github.com/sendgrid/sendgrid-nodejs/blob/master/CONTRIBUTING.md) or simply upvote or comment on existing issues or pull requests. @@ -38,7 +38,7 @@ Add the following to your `package.json` file: ... "dependencies": { ... - "sendgrid": "^3.0.11" + "sendgrid": "^4.0.0" } } ``` diff --git a/package.json b/package.json index 4c6727d..22180b7 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ ], "name": "sendgrid", "description": "Official SendGrid NodeJS library.", - "version": "3.0.11", + "version": "4.0.0", "homepage": "https://sendgrid.com", "repository": { "type": "git", |