v2.0.0
Breaking changes
Breaking changes are in rarely used functionality, so we hope upgrade will be smooth for most users.
- Browser: The
.parse()method has been renamed to.serialize()to avoid inconsistency with NodeJS version (v1.8.3 supports.serialize()too) - Browser: Query string keys without a value used to be parsed as
'undefined', now their value is''(empty string) (shura, Kornel Lesiński). - NodeJS: The
redirectevent is called after new query string and headers have been set and is allowed to override the request URL (Kornel Lesiński) .then()returns a realPromise. Note that use of superagent with promises now requires a globalPromiseobject.
If you target Internet Explorer or Node 0.10, you'll needrequire('es6-promise').polyfill()or similar.- Upgraded all dependencies (Peter Lyons)
- Renamed properties documented as
@api privateto have_prefixednames (Kornel Lesiński)
Probably not breaking changes:
- Extracted common functions to request-base (Peter Lyons)
- Fixed race condition in pipe tests (Peter Lyons)
- Handle
FormDataerror events (scriptype) - Fixed wrong jsdoc of Request#attach (George Chung)
- Updated and improved tests (Peter Lyons)