superagent 8.0.3 → 8.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -12
- package/dist/superagent.js +2 -162
- package/lib/client.js +1 -1
- package/lib/node/http2wrapper.js +4 -2
- package/lib/node/index.js +3 -3
- package/lib/request-base.js +5 -4
- package/lib/response-base.js +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# superagent
|
|
2
2
|
|
|
3
|
-
[](https://travis-ci.org/ladjs/superagent)
|
|
4
|
+
[](https://codecov.io/gh/ladjs/superagent)
|
|
5
5
|
[](https://github.com/sindresorhus/xo)
|
|
6
6
|
[](https://github.com/prettier/prettier)
|
|
7
7
|
[](https://lass.js.org)
|
|
8
|
-
[](LICENSE)
|
|
9
9
|
|
|
10
|
-
> Small progressive client-side HTTP request library, and Node.js module with the same API, supporting many high-level HTTP client features
|
|
10
|
+
> Small progressive client-side HTTP request library, and Node.js module with the same API, supporting many high-level HTTP client features. Maintained for [Forward Email](https://github.com/forwardemail) and [Lad](https://github.com/ladjs).
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
## Table of Contents
|
|
@@ -204,34 +204,34 @@ Existing plugins:
|
|
|
204
204
|
|
|
205
205
|
Please prefix your plugin with `superagent-*` so that it can easily be found by others.
|
|
206
206
|
|
|
207
|
-
For SuperAgent extensions such as couchdb and oauth visit the [wiki](https://github.com/
|
|
207
|
+
For SuperAgent extensions such as couchdb and oauth visit the [wiki](https://github.com/ladjs/superagent/wiki).
|
|
208
208
|
|
|
209
209
|
|
|
210
210
|
## Upgrading from previous versions
|
|
211
211
|
|
|
212
|
-
Please see [GitHub releases page](https://github.com/
|
|
212
|
+
Please see [GitHub releases page](https://github.com/ladjs/superagent/releases) for the current changelog.
|
|
213
213
|
|
|
214
214
|
Our breaking changes are mostly in rarely used functionality and from stricter error handling.
|
|
215
215
|
|
|
216
|
-
* [6.0 to 6.1](https://github.com/
|
|
216
|
+
* [6.0 to 6.1](https://github.com/ladjs/superagent/releases/tag/v6.1.0)
|
|
217
217
|
* Browser behaviour changed to match Node when serializing `application/x-www-form-urlencoded`, using `arrayFormat: 'indices'` semantics of `qs` library. (See: <https://www.npmjs.com/package/qs#stringifying>)
|
|
218
|
-
* [5.x to 6.x](https://github.com/
|
|
218
|
+
* [5.x to 6.x](https://github.com/ladjs/superagent/releases/tag/v6.0.0):
|
|
219
219
|
* Retry behavior is still opt-in, however we now have a more fine-grained list of status codes and error codes that we retry against (see updated docs)
|
|
220
220
|
* A specific issue with Content-Type matching not being case-insensitive is fixed
|
|
221
221
|
* Set is now required for IE 9, see [Required Browser Features](#required-browser-features) for more insight
|
|
222
|
-
* [4.x to 5.x](https://github.com/
|
|
222
|
+
* [4.x to 5.x](https://github.com/ladjs/superagent/releases/tag/v5.0.0):
|
|
223
223
|
* We've implemented the build setup of [Lass](https://lass.js.org) to simplify our stack and linting
|
|
224
224
|
* Unminified browserified build size has been reduced from 48KB to 20KB (via `tinyify` and the latest version of Babel using `@babel/preset-env` and `.browserslistrc`)
|
|
225
225
|
* Linting support has been added using `caniuse-lite` and `eslint-plugin-compat`
|
|
226
226
|
* We can now target what versions of Node we wish to support more easily using `.babelrc`
|
|
227
|
-
* [3.x to 4.x](https://github.com/
|
|
227
|
+
* [3.x to 4.x](https://github.com/ladjs/superagent/releases/tag/v4.0.0-alpha.1):
|
|
228
228
|
* Ensure you're running Node 6 or later. We've dropped support for Node 4.
|
|
229
229
|
* We've started using ES6 and for compatibility with Internet Explorer you may need to use Babel.
|
|
230
230
|
* We suggest migrating from `.end()` callbacks to `.then()` or `await`.
|
|
231
|
-
* [2.x to 3.x](https://github.com/
|
|
231
|
+
* [2.x to 3.x](https://github.com/ladjs/superagent/releases/tag/v3.0.0):
|
|
232
232
|
* Ensure you're running Node 4 or later. We've dropped support for Node 0.x.
|
|
233
233
|
* Test code that calls `.send()` multiple times. Invalid calls to `.send()` will now throw instead of sending garbage.
|
|
234
|
-
* [1.x to 2.x](https://github.com/
|
|
234
|
+
* [1.x to 2.x](https://github.com/ladjs/superagent/releases/tag/v2.0.0):
|
|
235
235
|
* If you use `.parse()` in the *browser* version, rename it to `.serialize()`.
|
|
236
236
|
* If you rely on `undefined` in query-string values being sent literally as the text "undefined", switch to checking for missing value instead. `?key=undefined` is now `?key` (without a value).
|
|
237
237
|
* If you use `.then()` in Internet Explorer, ensure that you have a polyfill that adds a global `Promise` object.
|