Skip to content

fetch-proxy v0.9.0

Choose a tag to compare

@github-actions github-actions released this 28 Sep 21:45
c9c8939

Minor Changes

  • BREAKING CHANGE: Return upstream redirects to proxy clients by default so redirect responses retain their status, Location, and headers such as Set-Cookie. The new redirect option supports following redirects internally, and a defined per-call init.redirect takes 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 incoming Content-Length before forwarding. The outgoing fetch now determines framing for the forwarded body, including when a custom fetch is provided.

  • Declare package modules as side-effect-free.

  • Bumped @remix-run/* dependencies: