Packages

@remix-run/node-fetch-server

1.0.1 · 19 Nov 2026MIT5.4M / weekRepositoryHomepagenpmAtom feed

Your version

15 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 1.x · latest line
  2. 1.0.1

    19 Nov 2026
    • createRequest() and createRequestListener() now validate the request host for every handler, including handlers that take no arguments. The effective host, whether it comes from the host option, a trusted Forwarded or X-Forwarded-Host header, HTTP/2 :authority, or Host, must be a hostname or bracketed IPv6 address with an optional port. Values with a path, query, fragment, userinfo, whitespace, or control characters, such as example.com/../admin or user@example.com, make createRequest() throw. createRequestListener() passes the error to onError and responds with 400 Bad Request unless onError returns a response. An invalid trusted X-Forwarded-Host is rejected instead of falling back to Host.

  3. 1.0.0

    1 Oct 2026
    • Breaking

      First stable release.

  4. 0.14.x
  5. 0.14.2

    28 Sep 2026
    • Use HTTP/2 :authority before Host when constructing request URLs. Requests whose Host and :authority identify different hosts now receive a 400 response by default from createRequestListener(), with custom responses supported through onError. Equivalent hostnames and default ports remain accepted.

    • createRequestListener() now accepts request-only handlers separately from handlers that read client address information, so handlers such as router.fetch can be passed directly.

    • Declare package modules as side-effect-free.

  6. 0.14.1

    14 Aug 2026
    • Request handlers now receive native Request instances instead of lazy request objects that emulated native requests. This fixes compatibility with standard APIs like new Request(request, init) that rely on native Request internals.

  7. 0.14.0

    1 Jul 2026
    • Added a trustProxy option to createRequestListener() and createRequest() so apps behind trusted reverse proxies can construct request.url from Forwarded, X-Forwarded-Host, and X-Forwarded-Proto headers. createRequestListener() also uses trusted Forwarded and X-Forwarded-For values for handler client address information (see #10874).

    • Reject request body reads when clients abort uploads, and avoid writing fallback error responses after streaming response headers are already committed (see #11533 and #11534).

  8. 0.13.x
  9. 0.13.3

    20 May 2026
    • Cancel unfinished streaming response bodies when the client connection closes before the response completes so user-provided ReadableStream.cancel() hooks run for aborted requests (see #11432).

    • Drop handler responses when the client has already disconnected, and do not forward request abort errors from handlers or response streams to onError or write them to a closed socket (see #11431).

  10. 0.13.2

    20 May 2026
    • Start writing the first response stream chunk immediately instead of waiting for another chunk. Streaming responses with a delayed second chunk now flush their initial data without unnecessary blocking.

  11. 0.13.1

    30 Apr 2026
    • Improve request throughput so node-fetch-server is now on par with native node:http performance in the request-inspection benchmark, while preserving Fetch API request handlers. The main optimizations lazily materialize Request and Headers objects, specialize handlers by declared arity, avoid unnecessary client/request work on hot paths, and send single-chunk response bodies with less Web stream overhead. See the node-fetch-server benchmarks for current results.

  12. 0.13.0

    18 Dec 2025
    • Use the :authority header to set the URL of http/2 requests.

  13. 0.12.x
  14. 0.12.0

    4 Nov 2025
    • Use tsc directly instead of esbuild to build the package. This means modules in the dist directory now mirror the layout of modules in the src directory.

  15. 0.11.x
  16. 0.11.0

    22 Oct 2025
    • Breaking

      Removed CommonJS build. This package is now ESM-only. If you need to use this package in a CommonJS project, you will need to use dynamic import().

  17. 0.10.x
  18. 0.10.0

    4 Oct 2025
    • Fire close and finish listeners only once

  19. 0.9.x
  20. 0.9.0

    16 Sep 2025
    • Support statusText in HTTP/1 responses

  21. 0.8.x
  22. 0.8.1

    11 Sep 2025
    • Only abort request.signal when the connection closes before the response completes (see #10726)

  23. 0.8.0

    24 Jul 2025

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.