Chatie / server

Cloud Management Service for Chatie
https://www.chatie.io
Apache License 2.0
3 stars 2 forks source link

Update ws to the latest version 🚀 #19

Closed greenkeeper[bot] closed 7 years ago

greenkeeper[bot] commented 7 years ago

Version 2.0.0 of ws just got published.

Dependency ws
Current Version 1.1.1
Type dependency

The version 2.0.0 is not covered by your current version range.

Without accepting this pull request your project will work just like it did before. There might be a bunch of new features, fixes and perf improvements that the maintainers worked on for you though.

I recommend you look into these changes and try to get onto the latest version of ws. Given that you have a decent test suite, a passing build is a strong indicator that you can take advantage of these changes by merging the proposed change into your project. Otherwise this branch is a great starting point for you to work on the update.


Release Notes 2.0.0

Breaking changes

  • Dropped support for Node.js < 4.
  • The new operator is now required to create all instances as we moved to ES6 classes.
  • Error messages have been simplified.
  • The clients property of the WebSocketServer is no longer an Array but a Set and is only set if the clientTracking option is truthy (#806).
  • The default HTTP status message is now used when handshake fails (41e7cae).
  • Removed support for the Hixie-76 version of the protocol (#871).
  • Removed ability to specify different paths for multiple WebSocketServers when binding them to the same underlying HTTP/s server (#885).
  • Removed WebSocket.prototype.stream() and ability to pass a readable stream to WebSocket.prototype.send() (#875).
  • Removed callback argument from handleProtocols handler (#890).
  • Removed supports property from WebSocket (#918).
  • Removed WebSocket.createServer(), WebSocket.createConnection(), and WebSocket.connect() factory functions (#926).
  • The second argument of WebSocket.prototype.ping() and WebSocket.prototype.pong() is no longer an options object but a boolean (#951).
  • An error is emitted if WebSocket.prototype.close() is called before the connection is established (#956).

The following breaking changes only apply if you required the mentioned classes
directly.

  • Removed Sender inheritance from EventEmitter (#861).
  • Removed BufferPool class (73ab370).
  • Made extensions a required argument for the Receiver constructor (5f53194).
  • receiver.onbinary and receiver.ontext have been merged into receiver.onmessage (#939).

Features

  • Added ability to set TCP backlog for WebSocketServer (#795).
  • Added checkServerIdentity option to WebSocket (#701).
  • Added a threshold option for permessage-deflate to only compress messages whose size is bigger than threshold (6b3904b).
  • Added shouldHandle method to WebSocketServer to see if a request should be accepted or rejected. This method can be overridden by the user if a custom logic is desired (6472425).
  • Added removeEventListener method to WebSocket (078e96a).
  • Added family option to WebSocket (#962).

Bug fixes

  • Fixed an issue that prevented permessage-deflate options from being correctly handled (#744).
  • All error events are now emitted with a proper Error instance (#789).
  • Fixed an issue that could cause a stack overflow crash (#810).
  • Added 1012 and 1013 to the list of allowed close codes (b58f688).
  • Fixed an issue that prevented the connection from being closed when path validation failed (#534).
  • Fixed an issue where the fin option of WebSocket.prototype.send() was unconditionally set to true (ea50be7).
  • Fixed an issue that prevented the total length of a fragmented message from being correctly calculated (545635d).
  • Fixed an issue where zlib.flush() was called with a wrong flush level (#733).
  • The callback of WebSocketServer.prototype.close() is now invoked when the close event is emitted by the underlying HTTP/s server (#892).
  • Fixed an issue that prevented the server from listening on IPv6 addresses with default settings (dcdc652).
  • Fixed an issue where the connection event was emitted even if the client closed the connection during the handshake process (04530ad).
  • The masking key is now generated using crypto.randomBytes() instead of Math.random() (7253f06).
  • Fixed an issue that, under particular circumstances, caused data to be discarded (#945).
  • Fixed an issue that prevented clients from being removed from the clients set (#955).
  • WebSocket.prototype.close() now works as expected if called on the client before the connection is established (#956).
  • WebSocket.prototype.send() no longer mutates the options object (#968).
  • The bufferedAmount getter now takes into account the data queued in the sender (#971).
Commits

The new version differs by 266 commits (ahead by 266, behind by 2).

  • cb50a29 [dist] 2.0.0
  • 236ea22 [dist] 2.0.0-beta.2
  • d74a32e [fix] Take into account the data queued in the sender (#971)
  • bc35fa4 chore(package): update eslint to version 3.14.0 (#974)
  • 7fb84ba Merge pull request #965 from websockets/remove/outdated-link
  • 42f364e [doc] Remove outdated link and rephrase sentence accordingly
  • 24f0903 Merge pull request #966 from websockets/add/permessage-deflate-section
  • e62b9ba [dist] 2.0.0-beta.1
  • ac2dade [fix] Prevent WebSocket#close() from triggering an infinite loop (#969)
  • bd41a05 [fix] Use Object.assign() for send() options (#968)
  • 4d92092 [doc] Add WebSocket compression section
  • 7bec220 [doc] Modernize examples
  • fd910f1 [feature] Accept hostname lookup family option (#962)
  • 19ce183 [dist] 2.0.0-beta.0
  • 772a814 [fix] Abort the request if close is called while connecting (#956)

There are 250 commits in total. See the full diff.

Not sure how things should work exactly? There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html) and of course you may always [ask my humans](https://github.com/greenkeeperio/greenkeeper/issues/new).

Your Greenkeeper Bot :palm_tree:

greenkeeper[bot] commented 7 years ago

Version 2.0.1 just got published.

Update to this version instead 🚀

Commits

The new version differs by 4 commits .

  • a8d21d4 [dist] 2.0.1
  • 6a49182 [doc] Update URLs based on HTTP redirects
  • 715c1da [test] Remove unused fixture
  • d856dcb [fix] Save the value of the compress flag

See the full diff.

greenkeeper[bot] commented 7 years ago

Version 2.0.2 just got published.

Update to this version instead 🚀

Commits

The new version differs by 2 commits .

  • f0d03cc [dist] 2.0.2
  • 466e210 [minor] Add support for bufferutil@2 and utf-8-validate@3

See the full diff.

greenkeeper[bot] commented 7 years ago

Version 2.0.3 just got published.

Update to this version instead 🚀

Release Notes 2.0.3

Bug fixes

  • Fixed an issue that caused a stack overflow when parsing a buffer with thousands of frames (#992).
  • Restored support for default port numbers (f043b52).
Commits

The new version differs by 9 commits .

  • 3918e11 [dist] 2.0.3
  • d90f481 [fix] Prevent the parser from triggering a stack overflow (#992)
  • 5f83ae8 Merge tag '1.1.1'
  • f043b52 Restore support for default port numbers
  • 66917d0 chore(package): update eslint to version 3.15.0 (#988)
  • ed18a8f chore(package): update utf-8-validate to version 3.0.0 (#987)
  • 04f9ebc chore(package): update bufferutil to version 2.0.0 (#986)
  • c7bb730 [dist] 1.1.1
  • 0328a8f [fix] Default to a sane value

See the full diff.

greenkeeper[bot] commented 7 years ago

Version 2.1.0 just got published.

Update to this version instead 🚀

Commits

The new version differs by 9 commits .

  • 5bccfe5 [dist] 2.1.0
  • 060b275 [feature] Allow path to be specified with UNIX domain sockets
  • 3b9f4ca [perf] Enqueue send operations only when strictly necessary
  • 8ead18d [perf] Write to the socket as soon as possible
  • 6695bd4 [fix] Fix parser crash on synchronous socket error
  • ac8fcce [test] Do not override Receiver#error()
  • 72cf8be [example] Add Express session parsing example
  • 92d8696 [fix] Accept only GET requests
  • e86d284 [minor] Remove unnecessary if statement

See the full diff.

greenkeeper[bot] commented 7 years ago

Version 2.2.0 just got published.

Update to this version instead 🚀

Release Notes 2.2.0

Features

  • Added "fragments" as possible value for the binaryType attribute (#1018).

Bug fixes

  • A random masking key is now also used for zero-length frames (5edb460).
Commits

The new version differs by 11 commits .

  • ae42166 [dist] 2.2.0
  • 625e9bf [perf] Optimize for cases where buffer is not a subarray
  • 6a734ae [minor] Fix nits
  • 30eccee [feature] Add "fragments" as possible value for binaryType (#1018)
  • af8f003 [feature] Make Sender#frameAndSend() a static method (#1016)
  • eed0814 [minor] Remove no longer needed if statements
  • 5edb460 [fix] Use a random masking key also for zero-length frames
  • 8127ebc [minor] Move shared constants into lib/Constants.js
  • e94a6ab [minor] Inline {BufferUtil,Validation}.fallback.js into parent modules
  • bfa5755 chore(package): update eslint to version 3.16.0 (#1012)
  • ca4a622 [minor] Avoid using deprecated APIs

See the full diff.