Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ws to the latest version 🚀 #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

greenkeeper[bot]
Copy link

@greenkeeper greenkeeper bot commented Jan 5, 2018

Version 4.0.0 of ws was just published.

Dependency ws
Current Version 3.3.3
Type dependency

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

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.

It might be worth looking into these changes and trying to get this project onto the latest version of ws.

If you have a solid test suite and good coverage, a passing build is a strong indicator that you can take advantage of these changes directly by merging the proposed change into your project. If the build fails or you don’t have such unconditional trust in your tests, this branch is a great starting point for you to work on the update.


Release Notes 4.0.0

Breaking changes

  • The close status code is now set to 1005 if the received close frame contains
    no status code (a31b1f6).
  • Error messages and types have been updated (695c5ea).
  • The onerror event handler now receives an ErrorEvent instead of JavaScript
    error (63e275e).
  • The third argument of WebSocket.prototype.ping() and
    WebSocket.prototype.pong() is no longer a boolean but an optional callback
    (30c9f71).
  • The non-standard protocolVersion and bytesReceived attributes have been
    removed (7f8ebc6...ee9b5f3).
  • The extensions attribute is no longer an object but a string representing
    the extensions selected by the server (fdec524).
  • The 'headers' event on the client has been renamed to 'upgrade'. Listeners
    of this event now receive only the response argument (1c783c2).
  • The WebSocket.prototype.pause() and WebSocket.prototype.resume() methods
    have been removed to prevent the user from interfering with the state of the
    underlying net.Socket stream (a206e98).
Commits

The new version differs by 19 commits.

  • a04d985 [dist] 4.0.0
  • d03ada2 [minor] Rename some variables for clarity
  • a206e98 [major] Remove WebSocket#pause() and WebSocket#resume()
  • 1c783c2 [major] Rename the 'headers' event to 'upgrade'
  • 9bbc978 [test] Reorganize tests
  • fdec524 [fix] Fix extentions property type
  • 46461a9 [minor] Refactor server client initialization
  • ee9b5f3 [major] Remove non-standard bytesReceived attribute
  • 7f8ebc6 [major] Remove non-standard protocolVersion attribute
  • 30c9f71 [major] Make WebSocket#p{i,o}ng() accept an optional callback
  • 63e275e [fix] Pass an ErrorEvent to the onerror event handler
  • 3936f3a [major] Rename modules files
  • 63ce954 [major] Remove ErrorCodes module
  • 695c5ea [major] Improve error messages and use specific error types
  • a31b1f6 [fix] Use 1005 status code if close frame payload length is 0

There are 19 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper bot 🌴

greenkeeper bot added a commit that referenced this pull request Feb 22, 2018
@greenkeeper
Copy link
Author

greenkeeper bot commented Feb 22, 2018

Version 4.1.0 just got published.

Update to this version instead 🚀

Release Notes 4.1.0

Features

  • Added WebSocketServer.prototype.address() (#1294).
  • Added zlib{Deflate,Inflate}Options options (#1306).
Commits

The new version differs by 30 commits.

  • d390dc5 [dist] 4.1.0
  • a70bd65 [test] Fix typo
  • d8da1b2 [doc] Add missing zlibInflateOptions option
  • 053a322 [minor] Add zlib{Deflate,Inflate}Options options (#1306)
  • f2b5105 chore(package): update eslint-plugin-import to version 2.9.0 (#1309)
  • 84fa837 chore(package): update eslint-config-standard to version 11.0.0 (#1307)
  • 36f249d chore(package): update eslint to version 4.18.0 (#1304)
  • 563edbd [test] Use WebSocketServer#address()
  • 75b6397 [fix] Ensure that the status code is not incorrectly overwritten
  • c8408c0 [doc] Fix docs for onerror listener
  • 9194770 [doc] Fix typo
  • 98d1955 [doc] Add a link to isomorphic-ws (#1298)
  • 8281940 chore(package): update eslint-plugin-node to version 6.0.0 (#1295)
  • 8d61fa0 [api] Add WebSocketServer.prototype.address() (#1294)
  • 66b0d55 [minor] Use do...while in Receiver#startLoop()

There are 30 commits in total.

See the full diff

greenkeeper bot added a commit that referenced this pull request Mar 6, 2018
@greenkeeper
Copy link
Author

greenkeeper bot commented Mar 6, 2018

Version 5.0.0 just got published.

Update to this version instead 🚀

Release Notes 5.0.0

Breaking changes

  • Dropped support for Node.js < 4.5.0 (#1313).
  • The connection is no longer closed if the server does not agree to any of
    the client's requested subprotocols (#1312).
  • net.Socket errors are no longer re-emitted (a4050db).

Features

  • Read backpressure is now properly handled when permessage-deflate is enabled
    (#1302).
Commits

The new version differs by 10 commits.

  • d3af506 [dist] 5.0.0
  • 7abe823 [minor] Rename abortConnection to abortHandshake
  • 7fb82a3 [fix] Rename the 'close' event to 'conclude'
  • fb05059 [test] Fix faulty test
  • 3f80ab7 [major] Drop support for Node.js < 4.5.0 (#1313)
  • 14538db [major] Fix subprotocol handling (#1312)
  • 3913c59 [benchmark] Fix parser benchmark
  • a4050db [major] Do not re-emit net.Socket errors
  • aa2c423 [minor] Do not use Readable.prototype.pipe()
  • 70fff53 [minor] Make Receiver inherit from stream.Writable

See the full diff

greenkeeper bot added a commit that referenced this pull request Mar 19, 2018
@greenkeeper
Copy link
Author

greenkeeper bot commented Mar 19, 2018

Version 5.1.0 just got published.

Update to this version instead 🚀

Release Notes 5.1.0

Features

  • The address argument of the WebSocket constructor can now be a URL
    instance (#1329).
  • The options argument of the WebSocket constructor now accepts any TLS
    option that is also accepted by https.request() (#1332).
Commits

The new version differs by 7 commits.

  • 7c74567 [dist] 5.1.0
  • 9e152f9 [feature] Allow all options accepted by http{,s}.request() (#1332)
  • 938cdde chore(package): update eslint to version 4.19.0 (#1330)
  • 1504d67 [fix] Allow URL instances as URL in WebSocket constructor (#1329)
  • 57d3dbb chore(package): update nyc to version 11.6.0 (#1326)
  • 23f5957 [fix] Remove buffer noAssert argument (#1324)
  • 2a55dda chore(package): update eslint-plugin-promise to version 3.7.0 (#1321)

See the full diff

greenkeeper bot added a commit that referenced this pull request Apr 2, 2018
@greenkeeper
Copy link
Author

greenkeeper bot commented Apr 2, 2018

Version 5.1.1 just got published.

Update to this version instead 🚀

Release Notes 5.1.1

Bug fixes

Commits

The new version differs by 5 commits.

  • 10c92ff [dist] 5.1.1
  • f335d79 [fix] Add default value for servername option (#1347)
  • 2d7bf88 [perf] Use js version of {un,}mask() for very small frames (#1348)
  • f52debe [doc] Explain the behavior of server.close() more precisely (#1342)
  • 83ce534 chore(package): update eslint-plugin-import to version 2.10.0 (#1340)

See the full diff

greenkeeper bot added a commit that referenced this pull request May 21, 2018
@greenkeeper
Copy link
Author

greenkeeper bot commented May 21, 2018

Version 5.2.0 just got published.

Update to this version instead 🚀

Release Notes 5.2.0

Features

  • Added ability to specify custom headers when rejecting the handshake (#1379).
Commits

The new version differs by 14 commits.

  • e4d032c [dist] 5.2.0
  • e7bfe5f chore(package): update mocha to version 5.2.0 (#1385)
  • 6dae94b chore(package): update eslint-plugin-import to version 2.12.0 (#1384)
  • aebda2b chore(package): update nyc to version 11.8.0 (#1382)
  • d871bdf [feature] Add headers argument to verifyClient() callback (#1379)
  • bb9c21c [test] Fix failing test on node 10
  • 6d8f1f4 [ci] Test on node 10
  • 4385c78 [doc] Add request to emit arguments in shared server example (#1372)
  • 690b3f2 [minor] Replace bound function with arrow function
  • 9dc25a3 chore(package): update nyc to version 11.7.1 (#1364)
  • a81e580 chore(package): update mocha to version 5.1.0 (#1362)
  • 3215cf3 chore(package): update eslint-plugin-import to version 2.11.0 (#1361)
  • 0100d82 [doc] Improve FAQ example for X-Forwarded-For header (#1360)
  • c801e99 [doc] Improve docs and examples (#1355)

See the full diff

greenkeeper bot added a commit that referenced this pull request Jun 23, 2018
@greenkeeper
Copy link
Author

greenkeeper bot commented Jun 23, 2018

Version 5.2.1 just got published.

Update to this version instead 🚀

Release Notes 5.2.1

Bug fixes

  • Fixed a bug that could prevent buffered data from being processed under
    certain circumstances (6046a28).
Commits

The new version differs by 5 commits.

  • 175ce46 [dist] 5.2.1
  • 307be7a [fix] Remove the 'data' listener when the receiver emits an error
  • 6046a28 [fix] Do not prematurely remove the listener of the 'data' event
  • bf9b2ec chore(package): update nyc to version 12.0.2 (#1395)
  • bcab531 chore(package): update eslint-plugin-promise to version 3.8.0 (#1389)

See the full diff

greenkeeper bot added a commit that referenced this pull request Jul 11, 2018
@greenkeeper
Copy link
Author

greenkeeper bot commented Jul 11, 2018

Version 5.2.2 just got published.

Update to this version instead 🚀

Release Notes 5.2.2

Bug fixes

Commits

The new version differs by 2 commits.

See the full diff

greenkeeper bot added a commit that referenced this pull request Jul 21, 2018
@greenkeeper
Copy link
Author

greenkeeper bot commented Jul 21, 2018

Version 6.0.0 just got published.

Update to this version instead 🚀

Release Notes 6.0.0

Breaking changes

  • Dropped support for Node.js 4 (d73885c).
  • Added a shim that throws an error when used if the package is bundled for the
    browser (#1345).
  • Added a maxPayload option on the client. Defaults to 100 MiB (#1402).
  • Dropped support for the memLevel and level options. Use
    zlibDeflateOptions instead. (80e2002).
Commits

The new version differs by 15 commits ahead by 15, behind by 2.

  • 1ee42fd [dist] 6.0.0
  • d963003 [example] Update dependencies
  • 38d2e8b chore(package): update eslint-plugin-node to version 7.0.0 (#1420)
  • fc95793 [fix] Fix use after invalidation bug
  • fbd4391 [fix] Fix compatibility with Node.js 6
  • b354cd1 [minor] Remove no longer needed workaround for socketPath option
  • ef5a8f5 [pkg] Update eslint-plugin-standard to version 3.1.0
  • 80e2002 [major] Drop support for the memLevel and level options
  • 92d0a2e [major] Add maxPayload option for the client (#1402)
  • 9f87842 [major] Make bundlers use a browser shim that throws an error (#1345)
  • 72bfbe8 chore(package): update bufferutil to version 4.0.0 (#1413)
  • 5bb29ed chore(package): update utf-8-validate to version 5.0.0 (#1415)
  • 3bc6b96 chore(package): update eslint to version 5.0.0 (#1403)
  • d73885c [major] Drop support for Node.js 4
  • 5d90141 chore(package): update eslint-plugin-import to version 2.13.0 (#1405)

See the full diff

greenkeeper bot added a commit that referenced this pull request Oct 5, 2018
@greenkeeper
Copy link
Author

greenkeeper bot commented Oct 5, 2018

  • The dependency ws was updated from 3.3.3 to 6.1.0.

Update to this version instead 🚀

Release Notes for 6.1.0

Features

  • The WebSocket server now emits a 'close' event when the server
    closes (#1453).
Commits

The new version differs by 11 commits.

  • b9ce38d [dist] 6.1.0
  • 9fe2f33 [test] Fix failing test on Windows
  • 90407bb [feature] Make WebSocketServer#close() emit 'close' (#1453)
  • 6de05e0 [pkg] Update nyc to version 13.0.1
  • 26b65da [pkg] Update eslint to version 5.6.1
  • 7d7ddfd chore(package): update eslint-config-standard to version 12.0.0 (#1440)
  • 19a0225 [lint] Add missing spaces
  • 30335cb chore(package): update eslint-plugin-standard to version 4.0.0 (#1439)
  • 1e78aba [pkg] Update eslint-plugin-import to version 2.14.0
  • 2bb93fb [pkg] Update eslint to version 5.4.0
  • 07d337a chore(package): update eslint-plugin-promise to version 4.0.0 (#1432)

See the full diff

greenkeeper bot added a commit that referenced this pull request Nov 17, 2018
@greenkeeper
Copy link
Author

greenkeeper bot commented Nov 17, 2018

  • The dependency ws was updated from 3.3.3 to 6.1.1.

Update to this version instead 🚀

Release Notes for 6.1.1

Bug fixes

  • Queued messages, when permessage-deflate is enabled, are now discarded if the
    socket closes prematurely (#1464, #1471).
Commits

The new version differs by 15 commits.

  • 029de0c [dist] 6.1.1
  • b213bee [pkg] Update list of published files
  • 95bf991 [pkg] Update dev dependencies
  • f26fac8 [minor] Ignore callbacks when clearing the send queue (#1471)
  • 5914206 [doc] Fix nits
  • 3fa0e03 [doc] Suggest implementation of heartbeat on the client (#1469)
  • 7d51fb9 [fix] Do not waste time compressing when socket is closed (#1464)
  • 1ebff19 [ci] Test on node 11
  • 7e061bc [pkg] Update nyc to version 13.1.0
  • bc0f8ab [pkg] Update eslint to version 5.8.0
  • 45f817b chore(package): update eslint-plugin-node to version 8.0.0 (#1466)
  • cddbcf6 [test] Remove unused variables
  • 0da3fdb [minor] Do not use the legacy URL API
  • d2317b1 [benchmark] Add Unix domain sockets to bench (#1456)
  • 9022a0d [doc] Remove clientMaxWindowBits option from README example (#1454)

See the full diff

greenkeeper bot added a commit that referenced this pull request Nov 17, 2018
@greenkeeper
Copy link
Author

greenkeeper bot commented Nov 17, 2018

  • The dependency ws was updated from 3.3.3 to 6.1.2.

Update to this version instead 🚀

Commits

The new version differs by 6 commits.

  • 14d9088 [dist] 6.1.2
  • cc86d22 [test] Remove no longer needed comment
  • 26436e0 [fix] Restore compatibility with Node.js < 6.13.0
  • 96b638c [pkg] Fix lint script
  • 761b1a4 [doc] Fix formatting in ISSUE_TEMPLATE.md
  • b9fad73 [lint] Use prettier

See the full diff

greenkeeper bot added a commit that referenced this pull request Feb 16, 2019
@greenkeeper
Copy link
Author

greenkeeper bot commented Feb 16, 2019

  • The dependency ws was updated from 3.3.3 to 6.1.4.

Update to this version instead 🚀

Release Notes for 6.1.4

Bug fixes

  • Fixed an issue that caused the Host header to always include a port (#1510).
Commits

The new version differs by 23 commits.

  • dc745cc [dist] 6.1.4
  • 15b0bb3 [test] Remove redundant test
  • 92b0a65 [fix] Use the defaultPort option (#1510)
  • 8b5422e chore(package): update eslint to version 5.14.0 (#1509)
  • 5c82aac chore(package): update nyc to version 13.3.0 (#1506)
  • b45e912 chore(package): update nyc to version 13.2.0 (#1500)
  • 75cd966 chore(package): update eslint to version 5.13.0 (#1497)
  • 460ae81 chore(package): update eslint-config-prettier to version 4.0.0 (#1496)
  • 6fa6b8b [dist] 6.1.3
  • 6d2930a [minor] Fix style nit
  • 3df4809 [fix] Handle close frame which spans multiple packets (#1494)
  • c61218f chore(package): update prettier to version 1.16.1 (#1492)
  • 4f88959 chore(package): update eslint-config-prettier to version 3.6.0 (#1491)
  • f9d4b09 [minor] Use Array.prototype.includes()
  • 63adb73 [minor] Set the handshake timeout via the timeout option

There are 23 commits in total.

See the full diff

greenkeeper bot added a commit that referenced this pull request Mar 6, 2019
@greenkeeper
Copy link
Author

greenkeeper bot commented Mar 6, 2019

  • The dependency ws was updated from 3.3.3 to 6.2.0.

Update to this version instead 🚀

Release Notes for 6.2.0

Features

  • Added ability to follow redirects (#1490).

Bug fixes

  • The opening handshake is now aborted if the Sec-WebSocket-Key header field
    value is invalid (160af45).
Commits

The new version differs by 14 commits.

  • eb6f8b0 [dist] 6.2.0
  • 161f303 [feature] Add ability to follow redirects (#1490)
  • a6e94f4 [minor] Move all buffer conversion functions to the buffer-util module
  • 71ee9ed chore(package): update eslint to version 5.15.0 (#1522)
  • 855494d [test] Fix flaky test
  • 8c21add [codestyle] Add .gitattributes
  • faf9b36 [ci] Let Travis CI handle x64 Windows tests
  • bcb8a98 [ci] Test on macOS
  • 5e238fb [doc] Add logos to badges
  • 295786b chore(package): update eslint-config-prettier to version 4.1.0 (#1518)
  • 160af45 [fix] Abort the handshake if the Sec-WebSocket-Key header is invalid
  • 1d93fb2 [codestyle] Use single quotes in YAML files
  • 6ad4d86 [pkg] Remove prettylint
  • dd5833a chore(package): update mocha to version 6.0.0 (#1511)

See the full diff

greenkeeper bot added a commit that referenced this pull request Mar 27, 2019
@greenkeeper
Copy link
Author

greenkeeper bot commented Mar 27, 2019

  • The dependency ws was updated from 3.3.3 to 6.2.1.

Update to this version instead 🚀

Release Notes for 6.2.1

Bug fixes

  • Fixed a bug that, under certain circumstances, prevented the close timer from
    being set (aa1dcd5).
Commits

The new version differs by 14 commits.

  • d57db27 [dist] 6.2.1
  • 40734d8 [minor] Add missing option in JSDoc comment
  • 0556f31 [doc] Add TOC to ws.md (#1539)
  • aa1dcd5 [fix] Make WebSocket#close() set the close timer immediately
  • 297f56d [minor] Remove unneeded if statement
  • bcab373 [test] Increase code coverage
  • 3a5a20a Revert "[ci] Cache dependencies"
  • 9a89e5d [ci] Cache dependencies
  • 7f5025d [test] Fix flaky test
  • 148c373 [test] Prefer arrow functions
  • 3df8242 [test] Remove comment to disable eslint rule
  • a40e29f [minor] Remove length threshold
  • 6c22584 [minor] Buffer writes if the frame to send is made of multiple chunks
  • 1842197 [test] Remove useless test

See the full diff

greenkeeper bot added a commit that referenced this pull request Apr 30, 2019
@greenkeeper
Copy link
Author

greenkeeper bot commented Apr 30, 2019

  • The dependency ws was updated from 3.3.3 to 7.0.0.

Update to this version instead 🚀

Release Notes for 7.0.0

Breaking changes

  • Dropped support for Node.js 6 (1e6999b).
  • Dropped support for url.Url instances in the WebSocket constructor
    (692d7b4).
  • The behavior of WebSocket#{p{i,o}ng,send}() has changed when the
    readyState attribute is not OPEN (#1532)
    • If the readyState attribute is CONNECTING, an exception is thrown.
    • If the readyState attribute is CLOSING or CLOSED
      • The bufferedAmount attribute is increased by the length of the data
        argument in bytes.
      • If provided, the callback function is called with an error.
      • No exception is thrown even if the callback function is not provided.
Commits

The new version differs by 23 commits.

  • 092a822 [dist] 7.0.0
  • 1b85466 [minor] Use crypto.randomFillSync() to generate the masking key
  • 993b0cd [minor] Make extension.parse() use null-prototype objects
  • aca3858 [example] Clean up examples
  • 4a9a773 [example] Rename serverstats to server-stats
  • 3eff077 [example] Remove unmaintained fileapi example
  • 379def6 [lint] enable no-var rule
  • 01bb91d [ci] Test on node 12
  • 6824e8c [minor] Use Reflect.apply()
  • ddf0aca [minor] Use object spread syntax instead of Object.assign()
  • 692d7b4 [major] Drop support for url.Url in the WebSocket constructor
  • 1e6999b [major] Drop support for Node.js 6
  • 5d751fb [major] Change WebSocket#{p{i,o}ng,send}() behavior (#1532)
  • 5479eae [pkg] Use caret ranges for all dependencies
  • 1a15120 [pkg] Update nyc to version 14.0.0

There are 23 commits in total.

See the full diff

greenkeeper bot added a commit that referenced this pull request Jun 17, 2019
@greenkeeper
Copy link
Author

greenkeeper bot commented Jun 17, 2019

  • The dependency ws was updated from 3.3.3 to 7.0.1.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Jul 8, 2019
@greenkeeper
Copy link
Author

greenkeeper bot commented Jul 8, 2019

  • The dependency ws was updated from 3.3.3 to 7.1.0.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Jul 19, 2019
@greenkeeper
Copy link
Author

greenkeeper bot commented Jul 19, 2019

  • The dependency ws was updated from 3.3.3 to 7.1.1.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Aug 12, 2019
@greenkeeper
Copy link
Author

greenkeeper bot commented Aug 12, 2019

  • The dependency ws was updated from 3.3.3 to 7.1.2.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Oct 19, 2019
@greenkeeper
Copy link
Author

greenkeeper bot commented Oct 19, 2019

  • The dependency ws was updated from 3.3.3 to 7.2.0.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Dec 14, 2019
@greenkeeper
Copy link
Author

greenkeeper bot commented Dec 14, 2019

  • The dependency ws was updated from 3.3.3 to 7.2.1.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Mar 8, 2020
@greenkeeper
Copy link
Author

greenkeeper bot commented Mar 8, 2020

  • The dependency ws was updated from 3.3.3 to 7.2.2.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Mar 9, 2020
@greenkeeper
Copy link
Author

greenkeeper bot commented Mar 9, 2020

  • The dependency ws was updated from 3.3.3 to 7.2.3.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Apr 25, 2020
@greenkeeper
Copy link
Author

greenkeeper bot commented Apr 25, 2020

  • The dependency ws was updated from 3.3.3 to 7.2.5.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request May 10, 2020
@greenkeeper
Copy link
Author

greenkeeper bot commented May 10, 2020


🚨 Reminder! Less than one month left to migrate your repositories over to Snyk before Greenkeeper says goodbye on June 3rd! 💜 🚚💨 💚

Find out how to migrate to Snyk at greenkeeper.io


  • The dependency ws was updated from 3.3.3 to 7.3.0.

Update to this version instead 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants