Skip to content

Commit b318ff3

Browse files
Version Bump v4.0.0: Pull #261, proper callback function signature
1 parent 93763a7 commit b318ff3

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
11
# Change Log
22
All notable changes to this project will be documented in this file.
33

4+
## [4.0.0] - 2016-08-02 ##
5+
### Breaking Change
6+
- Pull request [#261](https://github.com/sendgrid/sendgrid-nodejs/pull/261)
7+
- BIG THANKS to [Adam Buczynski](https://github.com/adambuczynski)!!!
8+
### Fixed
9+
- Issue [#240](https://github.com/sendgrid/sendgrid-nodejs/issues/240)
10+
- Issue [#246](https://github.com/sendgrid/sendgrid-nodejs/issues/246)
11+
- Issue [#206](https://github.com/sendgrid/sendgrid-nodejs/issues/206)
12+
### Added
13+
- Extracted some logic into helpers
14+
- Using a getEmptyRequest helper to avoid code duplication
15+
- emtpyRequest now accepts an object with data to extend the empty request with, this will allow simpler syntax for initializing requests.
16+
- Callback function now receives two parameters as per Node conventions (error, response)
17+
- If no callback provided, the method will return a promise instead.
18+
- Implemented promise API when not passing a callback function
19+
- 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')
20+
421
## [3.0.11] - 2016-07-26 ##
522
### Added
623
- [Troubleshooting](https://github.com/sendgrid/sendgrid-python/blob/master/TROUBLESHOOTING.md) section

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
**This library allows you to quickly and easily use the SendGrid Web API v3 via Node.js.**
44

5-
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).
5+
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).
66

77
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.
88

@@ -38,7 +38,7 @@ Add the following to your `package.json` file:
3838
...
3939
"dependencies": {
4040
...
41-
"sendgrid": "^3.0.11"
41+
"sendgrid": "^4.0.0"
4242
}
4343
}
4444
```

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
],
1313
"name": "sendgrid",
1414
"description": "Official SendGrid NodeJS library.",
15-
"version": "3.0.11",
15+
"version": "4.0.0",
1616
"homepage": "https://sendgrid.com",
1717
"repository": {
1818
"type": "git",

0 commit comments

Comments
 (0)