This repository has been archived by the owner on Feb 2, 2024. It is now read-only.
Releases: fastify/fast-proxy
Releases · fastify/fast-proxy
v2.2.0
What's Changed
- ci!: replace travis-ci with github actions by @Fdawgs in #58
- Bump standard from 16.0.4 to 17.0.0 by @dependabot in #62
- Bump undici from 3.3.6 to 5.4.0 by @dependabot in #61
- chore(.gitignore): use updated skeleton template by @Fdawgs in #63
- Bump tiny-lru from 7.0.6 to 8.0.2 by @dependabot in #60
- Bump mocha from 8.4.0 to 10.0.0 by @dependabot in #59
- ci: enable license checking by @Fdawgs in #64
- Bump tiny-lru from 8.0.2 to 9.0.2 by @dependabot in #67
- perf: replace querystring with fast-querystring by @anonrig in #65
- Bump tiny-lru from 9.0.3 to 10.0.1 by @dependabot in #70
- fix unit tests, replace pem with self-cert by @Uzlopak in #72
- nodenext compatibility by @Uzlopak in #71
- chore(.gitignore): add clinic by @Fdawgs in #73
- chore(.gitignore): add bun lockfile by @Fdawgs in #78
- Bump tsd from 0.25.0 to 0.27.0 by @dependabot in #81
- chore: fix undici option type by @nickfla1 in #75
- Bump tsd from 0.27.0 to 0.28.1 by @dependabot in #85
- Bump tiny-lru from 10.4.1 to 11.0.0 by @dependabot in #87
- ci: only trigger on pushes to main branches by @Fdawgs in #89
- Bump @types/node from 18.16.6 to 20.1.1 by @dependabot in #90
- fix: strip leading slashes only by @q0rban in #77
- fix: check for flushed response headers during proxy request errors by @jcbain in #88
New Contributors
- @anonrig made their first contribution in #65
- @Uzlopak made their first contribution in #72
- @nickfla1 made their first contribution in #75
- @q0rban made their first contribution in #77
- @jcbain made their first contribution in #88
Full Changelog: v2.1.0...v2.2.0
Adding typescript support
Changes:
- Adding typescript support.
- Updating dependencies.
Big applause to @jsmylnycky for supporting this release!!!
undici v3 + adding :authority header support for http2
Changes:
- Updating
undici
dependency tov3.x
- Supporting
:authority
header for HTTP2 (https://nodejs.org/api/http2.html#http2_note_on_authority_and_host)
Fixing SSRF security issue
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
preset origin response code before hooks
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
Changes:
-
Dependencies are updated to latest versions.
-
By using optional
requests.http
andrequests.https
configurations we allow to overwrite the internalhttp
andhttps
client agents implementation. Defaults:http
andhttps
.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
orhttp2
this settings are ignored!
Fixing proxy headers generation
Changes:
- Fix for
Host
header generation when default ports
Supporting rewriteRequestHeaders hook
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
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: