fetch-proxy v0.9.0
Minor Changes
-
BREAKING CHANGE: Return upstream redirects to proxy clients by default so redirect responses retain their status,
Location, and headers such asSet-Cookie. The newredirectoption supports following redirects internally, and a defined per-callinit.redirecttakes precedence over that option.To preserve the previous behavior and keep following redirects inside the proxy:
-let proxy = createFetchProxy('https://remix.run') +let proxy = createFetchProxy('https://remix.run', { redirect: 'follow' })
Patch Changes
-
Remove connection-specific request headers, fields named by
Connection, and incomingContent-Lengthbefore forwarding. The outgoingfetchnow determines framing for the forwarded body, including when a customfetchis provided. -
Declare package modules as side-effect-free.
-
Bumped
@remix-run/*dependencies: