Update ws to the latest version 🚀 #4485
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Version 4.0.0 of ws was just published.
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.0Breaking changes
no status code (a31b1f6).
onerror
event handler now receives anErrorEvent
instead of JavaScripterror (63e275e).
WebSocket.prototype.ping()
andWebSocket.prototype.pong()
is no longer a boolean but an optional callback(30c9f71).
protocolVersion
andbytesReceived
attributes have beenremoved (7f8ebc6...ee9b5f3).
extensions
attribute is no longer an object but a string representingthe extensions selected by the server (fdec524).
'headers'
event on the client has been renamed to'upgrade'
. Listenersof this event now receive only the
response
argument (1c783c2).WebSocket.prototype.pause()
andWebSocket.prototype.resume()
methodshave 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()
andWebSocket#resume()
1c783c2
[major] Rename the 'headers' event to 'upgrade'
9bbc978
[test] Reorganize tests
fdec524
[fix] Fix
extentions
property type46461a9
[minor] Refactor server client initialization
ee9b5f3
[major] Remove non-standard
bytesReceived
attribute7f8ebc6
[major] Remove non-standard
protocolVersion
attribute30c9f71
[major] Make
WebSocket#p{i,o}ng()
accept an optional callback63e275e
[fix] Pass an
ErrorEvent
to theonerror
event handler3936f3a
[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 🌴