Releases: serviejs/popsicle
Releases · serviejs/popsicle
Remove Promise Error
Fixed
- Using
native-or-promise
, no need for a custom error message when promise is undefined
Native Or Bluebird
Changed
- Using
native-or-bluebird
for transparent promise support
Expose the transport object
Changed
- Expose
transport
object for live-replacements inside of plugins (use
will not be updated, but you can effecttransport.open
andtransport.abort
)
XHR responseType
Added
- Support XHR
responseType
property
Changed
- Default exports are just
defaults
used with internal transports - Header parsing provided by
get-headers
module
Removed
- No more
XMLHttpRequest
fallbacks, Popsicle is unlikely to work with old IE anyway
Major Release 1.0
Popsicle 1.0 is out and in TypeScript!
Changed
- Promise starts resolving on
nextTick
- Separated browser and node scripts for smaller builds and better environment detection (E.g. Node Webkit, Atom)
- Moved environment options into a dedicated
options
setting - Added
use
config option to override default plugins - Exposed default plugins
- Errors no longer use properties and instead use
err.type
string
Added
- Transport layer override (could support JSONP soon)
- Request method short-hands
- Defaults function for creating Popsicle instances
- Dedicated
options
object for environments and transportation layer to use
Redirects
Fixed
- Following redirects with non-GET requests
Changed
- Storing
referrer
andreferer
underreferer
header name (official typo)
Added
- Option to disable following redirects under node