- Use the
Buffer.alloc()
andBuffer.from()
functions instead of the unsafeBuffer()
constructor - Change license from MIT to Apache 2.0
- Use
9
instead of8
as thewindowBits
parameter to zlib, to deal with restrictions introduced in zlib v1.2.9
- Catch errors thrown by
close()
on zlib streams
- The server does not send
server_max_window_bits
if the client does not ask for it; this works around an issue in Firefox.
- Fix a race condition causing some fragments of deflate output to be dropped
- Make sure to emit minimal output on all Node versions
- Don't allow configure() to be called with unrecognized options
- Fix race condition when using context takeover, where adjacent messages have data listeners bound at the same time and end up duplicating output
- Use
DeflateRaw.flush()
correctly on v0.10 so that optimal compression is achieved
- Initial release