v20.61.0
·
192 commits
to binaries
since this release
10 years of uWS
If you are interested, there is a more detailed retrospect release post in the main repo. For Node.js we have the following changes:
- getRemoteAddress(), getRemoteAddressAsText() calls are now zero cost. This is a major performance boost for apps using these in hot paths.
- onDataV2 is a superior alternative to onData, explained in the linked retrospect release.
- collectBody is a helper function making optimal use of the new onDataV2. It allows efficient and easy collection of smallish HTTP posts into RAM, returned as one whole buffer.
- We now build AddressSanitizer binaries, available in branch
binaries-asan. These can be very useful for debugging or filing bug reports related to crashes and segfaults. To run the ASAN binaries, your Node.js invocation needs to be prefixed with LD_PRELOAD like so:LD_PRELOAD=$(gcc -print-file-name=libasan.so) node server.js - DeclarativeResponse can now do writeStatus as well as end with binary, not just text.
- Many documentation fixes.
- Support for symbol-keyed properties in WebSocket UserData.
- getRemotePort, getProxiedRemotePort.
