Skip to content

v0.10.0

Choose a tag to compare

@pi0 pi0 released this 30 Dec 13:32
· 108 commits to main since this release

compare changes

Important

This release updates the Node.js adapter to avoid doing any global patches by default.

As a result, in some use-cases like new Request(req), you might see an error like Cannot read private member #state....

You can explicitly opt-in to previous behavior like this:

import { patchGlobalRequest } from "srvx/node";

// Fix compatibility issues with Node.js Request
patchGlobalRequest();

Please refer to the docs for more info.

🩹 Fixes

  • types: Split HTTP1 and HTTP2 handler types (#154)
  • node: Avoid patching global request by default (#155)

❤️ Contributors