Skip to content

Releases: fluture-js/fluture-node

Version 4.0.3

24 Mar 14:33
v4.0.3
f30d8f0
Compare
Choose a tag to compare

Adds Proxy-Authorization to the headers considered confidential during cross-domain redirection

Changes: v4.0.2...v4.0.3

Version 4.0.2

01 Mar 14:20
d3ed6ff
Compare
Choose a tag to compare

⚠️ #15 The security patch applied in 4.0.1 was incomplete. This release completes it.

Version 4.0.1

01 Mar 10:42
2a5c6f4
Compare
Choose a tag to compare

⚠️ #13 Fixes a potential security vulnerability: #12

Version 4.0.0

06 Apr 10:04
23813ce
Compare
Choose a tag to compare

⚠️ Breaking Changes

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 of Request and
    sendRequest.
  • #11 The return value from retrieve, sendJson, and sendForm was changed
    from a Future of an IncommingMessage to a Future of the new Response type.
    If you were using bufferResponse or autoBufferResponse, then you don't
    have to change your code, because:
  • #11 The bufferResponse and autoBufferResponse now take a Response
    instead of an IncomingMessage.

New Features

  • #11 A new sendRequest function has taken the place of the request 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 the sendRequest 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 a Response based
    on the response status code.
  • #11 Various utility functions for building automatic redirection chains were
    added. These are redirectAnyRequest, redirectIfGetMethod,
    redirectUsingGetMethod, retryWithoutCondition, defaultRedirectionPolicy,
    aggressiveRedirectionPolicy, followRedirectsWith, and followRedirects.
  • #11 New functions were added to complement the existing response-consumption
    functions like bufferResponse and autoBufferResponse with versions that
    take an IncomingMessage directly. These are bufferMessage and
    autoBufferMessage respectively.

Version 3.0.0

08 Sep 13:58
c1c74d0
Compare
Choose a tag to compare

⚠️ Using 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.