Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

Releases: fastify/fast-proxy

v2.2.0

16 Nov 07:59
9ef68a1
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.1.0...v2.2.0

Adding typescript support

19 Sep 08:26
Compare
Choose a tag to compare

Changes:

  • Adding typescript support.
  • Updating dependencies.

Big applause to @jsmylnycky for supporting this release!!!

undici v3 + adding :authority header support for http2

28 Feb 12:35
Compare
Choose a tag to compare

Changes:

Fixing SSRF security issue

09 Dec 21:16
Compare
Choose a tag to compare

Changes:

  • Fixing a potential SSRF security issue related to URLs handling during proxying. Thanks @KaixinChen0512 for reporting!
    (Issue: #42, PR: #44)
  • Refactoring performance benchmarks.
  • Adding new undici demo with required headers rewrite example.
  • Prior versions to v1.8.0 will be marked as deprecated.

Add support to application/x-www-form-urlencoded content-type

19 Jul 19:29
Compare
Choose a tag to compare

Changes:

  • Add support to application/x-www-form-urlencoded content-type. PR: #37
  • Supporting undici timeout err.code. PR: #34
  • Fixing content-length header sanitation for GET/HEAD requests.

Big applause to @yohayg, our release hero!!!

preset origin response code before hooks

04 Jul 05:47
Compare
Choose a tag to compare

Changes:

  • Origin response code is preset before calling the onResponse hook if defined. This will simplify custom implementations, in the same way introduces the expected convention.

    Issue ref: #30, many thanks to @yohay-ma for supporting this fix.

  • Dependencies were update to latest versions.
  • Minor update in README.md badges header.

Allowing to overwrite default http/https clients

17 Apr 09:38
Compare
Choose a tag to compare

Changes:

  • Dependencies are updated to latest versions.

  • By using optional requests.http and requests.https configurations we allow to overwrite the internal http and https client agents implementation. Defaults: http and https.

    For example, this could be used to add support for following redirects, like so:

    ...
      requests: {
        http: require('follow-redirects/http'),
        https: require('follow-redirects/https')
      }
    ...

    If using undici or http2 this settings are ignored!

Fixing proxy headers generation

11 Apr 13:45
Compare
Choose a tag to compare

Changes:

  • Fix for Host header generation when default ports

Supporting rewriteRequestHeaders hook

09 Apr 21:00
Compare
Choose a tag to compare

Changes:

  • Caching of URL objects can be now optionally disabled.
  • Supporting new rewriteRequestHeaders hook.
  • Dependencies were updated to latest versions.

Allow base parameter overwrite at request proxy level

03 Mar 09:43
Compare
Choose a tag to compare

Added:

  • In this release we optionally enable users to overwrite the base global parameter at request proxy level.

    Example:

     ...
     proxy(req, res, req.url, {
        base: 'your custom request base value'
     })
     ...

PRs: