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
request
function has been removed in favour ofRequest
and
sendRequest
. - #11 The return value from
retrieve
,sendJson
, andsendForm
was changed
from a Future of an IncommingMessage to a Future of the newResponse
type.
If you were usingbufferResponse
orautoBufferResponse
, then you don't
have to change your code, because: - #11 The
bufferResponse
andautoBufferResponse
now take aResponse
instead of anIncomingMessage
.
✨ New Features
- #11 A new
sendRequest
function has taken the place of therequest
function.
This function takes its request options as a single argument. - #11 A new
Request
type (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 thesendRequest
function. - #11 A new
Response
type (and constructor) was added. This is used to
represent a request/response pair. - #11 A
matchStatus
function was added for matching against aResponse
based
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 likebufferResponse
andautoBufferResponse
with versions that
take an IncomingMessage directly. These arebufferMessage
and
autoBufferMessage
respectively.
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.