Releases: fluture-js/fluture-node
Releases · fluture-js/fluture-node
Version 4.0.3
Adds Proxy-Authorization to the headers considered confidential during cross-domain redirection
Changes: v4.0.2...v4.0.3
Version 4.0.2
Version 4.0.1
Version 4.0.0
NOTE: These changes may not affect you if you were only using the higher level
functions exposed from this library, which is quite a common scenario.
- #11 The
requestfunction has been removed in favour ofRequestand
sendRequest. - #11 The return value from
retrieve,sendJson, andsendFormwas changed
from a Future of an IncommingMessage to a Future of the newResponsetype.
If you were usingbufferResponseorautoBufferResponse, then you don't
have to change your code, because: - #11 The
bufferResponseandautoBufferResponsenow take aResponse
instead of anIncomingMessage.
✨ New Features
- #11 A new
sendRequestfunction has taken the place of therequestfunction.
This function takes its request options as a single argument. - #11 A new
Requesttype (and constructor) was added. This is used to
represent an HTTP request in a pure way. Values of this type are used as input
for thesendRequestfunction. - #11 A new
Responsetype (and constructor) was added. This is used to
represent a request/response pair. - #11 A
matchStatusfunction was added for matching against aResponsebased
on the response status code. - #11 Various utility functions for building automatic redirection chains were
added. These areredirectAnyRequest,redirectIfGetMethod,
redirectUsingGetMethod,retryWithoutCondition,defaultRedirectionPolicy,
aggressiveRedirectionPolicy,followRedirectsWith, andfollowRedirects. - #11 New functions were added to complement the existing response-consumption
functions likebufferResponseandautoBufferResponsewith versions that
take an IncomingMessage directly. These arebufferMessageand
autoBufferMessagerespectively.
Version 3.0.0
import it from 'fluture-node' in Node 14 now throws an error.
✨ Importing named imports from 'fluture-node' now works (in Node 14).
✨ Expands the supported version range of Fluture to include version 13.x.