.trustLocalhost() option for allowing broken HTTPS on localhost
.abort() used with promises rejects the promise.
4.0.0 (2018-11-17)
Breaking changes
Node.js v4 has reached it's end of life, so we no longer support it. It's v6+ or later. We recommend Node.js 10.
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.
.end(…) returns undefined instead of the request. If you need the request object after calling .end() (and you probably don't), save it in a variable and call request.end(…). Consider not using .end() at all, and migrating to promises by calling .then() instead.
In Node, responses with unknown MIME type are buffered by default. To get old behavior, if you use custom unbuffered parsers, add .buffer(false) to requests or set superagent.buffer[yourMimeType] = false.
Invalid uses of .pipe() throw.
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)
This version was pushed to npm by titanism, a new releaser for superagent since your current version.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps superagent from 3.8.3 to 7.1.3.
Release notes
Sourced from superagent's releases.
... (truncated)
Changelog
Sourced from superagent's changelog.
Commits
0b5bbf2
v7.1.32c18890
chore: fixed lintingbc25a87
Merge pull request #1717 from yunnysunny/feature/github-action-improvec4e8c6e
chore: bump deps907d14b
Merge pull request #1720 from bultkrantz/feature/custom-encoder04fc158
use custom encoder if it is sent in option object508b9fb
Merge pull request #1716 from yunnysunny/feature/fix-node14-pipe16c88c5
test: only enlarge the timeout for pipe testb2b330b
ci: use secret env to hide the sauce configb83fae3
ci: trigger ci on push and pull requestMaintainer changes
This version was pushed to npm by titanism, a new releaser for superagent since your current version.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)