From 295dfcdacedd45e43a22d250bcaac6bf3d0a9229 Mon Sep 17 00:00:00 2001 From: Kornel Date: Sun, 29 Apr 2018 17:16:48 +0100 Subject: [PATCH 1/2] Bump --- History.md | 8 ++++++++ package.json | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/History.md b/History.md index d7e1e00b3..2c7601b22 100644 --- a/History.md +++ b/History.md @@ -1,3 +1,11 @@ + +# 3.8.3 (2018-04-29) + + * Add flags for 201 & 422 responses (Nikhil Fadnis) + * Emit progress event while uploading Node `Buffer` via send method (Sergey Akhalkov) + * Fixed setting correct cookies for redirects (Damien Clark) + * Replace .catch with ['catch'] for IE9 Support (Miguel Stevens) + # 3.8.2 (2017-12-09) * Fixed handling of exceptions thrown from callbacks diff --git a/package.json b/package.json index 618d378f4..28b1f3bd6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "superagent", - "version": "3.8.2", + "version": "3.8.3", "description": "elegant & feature rich browser / node HTTP with a fluent API", "scripts": { "prepare": "make all", From ec4b28d83ef6d22deca08250e5fcfd67ae0da9ef Mon Sep 17 00:00:00 2001 From: Kornel Date: Sun, 29 Apr 2018 17:24:53 +0100 Subject: [PATCH 2/2] Changelog --- History.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/History.md b/History.md index 2c7601b22..8cdbe69d4 100644 --- a/History.md +++ b/History.md @@ -1,3 +1,21 @@ +# 4.0.0 + +## Breaking changes + + * Node.js v4 has reached it's end of life, so we no longer support it. It's v6+ or later. + * We now use ES6 in the browser code, too. + * If you're using Browserify or Webpack to package code for Internet Explorer, you will also have to use Babel. + * The pre-built node_modules/superagent.js is still ES5-compatible. + +## Minor changes + + * Throw if `req.abort().end()` is called + * Throw if using unsupported mix of send and field + * Reject `.end()` promise on all error events (Kornel Lesiński) + * Set `https.servername` from the `Host` header (Kornel Lesiński) + * Leave backticks unencoded in query strings where possible (Ethan Resnick) + * Update node-mime to 2.x (Alexey Kucherenko) + * Allow default buffer settings based on response-type (shrey) # 3.8.3 (2018-04-29)