[dist] Update dependency ws to v8 - abandoned #1555
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.
This PR contains the following updates:
^3.0.0
->^8.0.0
Release Notes
websockets/ws
v8.13.0
Compare Source
Features
finishRequest
option to support late addition of headers (#2123).v8.12.1
Compare Source
Bug fixes
browser
condition to package.json (#2118).v8.12.0
Compare Source
Features
utf-8-validate@6
(ff63bba
).Other notable changes
buffer.isUtf8()
][buffer.isUtf8()] is now used instead ofutf-8-validate
if available(
42d79f6
).v8.11.0
Compare Source
Features
WebSocket.prototype.addEventListener()
now supports an event listenerspecified as an object with a
handleEvent()
method. (9ab743a
).Bug fixes
WebSocket.prototype.addEventListener()
now adds an event listener only if itis not already in the list of the event listeners for the specified event type
(
1cec17d
).v8.10.0
Compare Source
Features
211d5d3
).v8.9.0
Compare Source
Features
v8.8.1
Compare Source
Bug fixes
Authorization
andCookie
headers are no longer sent if the originalrequest for the opening handshake is sent to an IPC server and the client is
redirected to another IPC server (
bc8bd34
).v8.8.0
Compare Source
Features
WS_NO_BUFFER_UTIL
andWS_NO_UTF_8_VALIDATE
environmentvariables (
becf237
).v8.7.0
Compare Source
Features
them with a custom HTTP response. (
6e5a5ce
).Bug fixes
Upgrade
header field value in the HTTPresponse is not a case-insensitive match for the value "websocket" (
0fdcc0a
).Authorization
andCookie
headers are no longer sent when following aninsecure redirect (wss: to ws:) to the same host (
d68ba9e
).v8.6.0
Compare Source
Features
v8.5.0
Compare Source
Features
WebSocket
class on the server (#2007).Bug fixes
Authorization
andCookie
headers are nolonger sent if the redirect host is different from the original host (#2013).
v8.4.2
Compare Source
Bug fixes
v8.4.1
Compare Source
Notable changes
websocket.ping()
,websocket.pong()
, andwebsocket.send()
are no longer converted toBuffer
s if the data does not need to be masked (#2000).v8.4.0
Compare Source
Features
v8.3.0
Compare Source
Features
WebSocket
(0a8c7a9
).Bug fixes
using the stream API (
ed2b803
).redirect URL is invalid (#1980).
v8.2.3
Compare Source
Bug fixes
is below the value of the
perMessageDeflate.threshold
option (41ae563
).v8.2.2
Compare Source
Bug fixes
ec9377c
).v8.2.1
Compare Source
Bug fixes
from being closed cleanly (
869c989
).v8.2.0
Compare Source
Features
WebSocket.WebSocket
as an alias forWebSocket
andWebSocket.WebSocketServer
as an alias forWebSocket.Server
to fix nameconsistency and improve interoperability with the ES module wrapper (#1935).
v8.1.0
Compare Source
Features
Bug fixes
6a72da3
).c95e695
).v8.0.0
Compare Source
Breaking changes
The
WebSocket
constructor now throws aSyntaxError
if any of thesubprotocol names are invalid or duplicated (
0aecf0c
).The server now aborts the opening handshake if an invalid
Sec-WebSocket-Protocol
header field value is received (1877dde
).The
protocols
argument ofhandleProtocols
hook is no longer anArray
buta
Set
(1877dde
).The opening handshake is now aborted if the
Sec-WebSocket-Extensions
headerfield value is empty or it begins or ends with a white space (
e814110
).Dropped support for Node.js < 10.0.0 (
552b506
).The
WebSocket
constructor now throws aSyntaxError
if the connection URLcontains a fragment identifier or if the URL's protocol is not one of
'ws:'
,'wss:'
, or'ws+unix:'
(ebea038
).Text messages and close reasons are no longer decoded to strings. They are
passed as
Buffer
s to the listeners of their respective events. The listenersof the
'message'
event now take a boolean argument specifying whether or notthe message is binary (
e173423
).Existing code can be migrated by decoding the buffer explicitly.
The package now uses an ES module wrapper (
78adf5f
).WebSocketServer.prototype.close()
no longer closes existing connections(
df7de57
).Existing code can be migrated by closing the connections manually.
The callback of
WebSocketServer.prototype.close()
is now called with anerror if the server is already closed (
abde9cf
).WebSocket.prototype.addEventListener()
is now a noop if thetype
argumentis not one of
'close'
,'error'
,'message'
, or'open'
(9558ed1
).WebSocket.prototype.removeEventListener()
now only removes listeners addedwith
WebSocket.prototype.addEventListener()
and only one at time (ea95d9c
).The value of the
onclose
,onerror
,onmessage
, andonopen
properties isnow
null
if the respective event handler is not set (6756cf5
).The
OpenEvent
class has been removed (21e6500
).Bug fixes
event listeners added with
WebSocket.prototype.addEventListener()
(
0b21c03
).v7.5.9
Compare Source
Bug fixes
bc8bd34
to the 7.x release line (0435e6e
).v7.5.8
Compare Source
Bug fixes
0fdcc0a
to the 7.x release line (2758ed3
).d68ba9e
to the 7.x release line (dc1781b
).v7.5.7
Compare Source
Bug fixes
6946f5f
to the 7.x release line (1f72e2e
).v7.5.6
Compare Source
Bug fixes
b8186dd
to the 7.x release line (73dec34
).ed2b803
to the 7.x release line (22a26af
).v7.5.5
Compare Source
Bug fixes
ec9377c
to the 7.x release line (0e274ac
).v7.5.4
Compare Source
Bug fixes
6a72da3
to the 7.x release line (76087fb
).869c989
to the 7.x release line (2799793
).v7.5.3
Compare Source
Bug fixes
WebSocketServer
constructor now throws an error if more than one of thenoServer
,server
, andport
options are specefied (66e58d2
).'close'
event was emitted by aWebSocketServer
beforethe internal HTTP/S server was actually closed (
5a58730
).WebSocketServer.prototype.close()
was called (772236a
).v7.5.2
Compare Source
Bug fixes
Sec-WebSocket-Extensions
header but no extension was requested or if theserver indicates an extension not requested by the client (
aca94c8
).v7.5.1
Compare Source
Bug fixes
error occurred simultaneously on both peers (
b434b9f
).v7.5.0
Compare Source
Features
code
property describing the specific type of errorthat has occurred (#1901).
Bug fixes
framing error) occurs (
8806aa9
).connection is closed due to an error (
8806aa9
).v7.4.6
Compare Source
Bug fixes
00c425e
).A specially crafted value of the
Sec-Websocket-Protocol
header could be usedto significantly slow down a ws server.
The vulnerability was responsibly disclosed along with a fix in private by
Robert McLaughlin from University of California, Santa Barbara.
In vulnerable versions of ws, the issue can be mitigated by reducing the maximum
allowed length of the request headers using the
--max-http-header-size=size
and/or the
maxHeaderSize
options.v7.4.5
Compare Source
Bug fixes
utf-8-validate
is not installed(
23ba6b2
).websocket.close()
andwebsocket.terminate()
didnot close the connection (
67e25ff
).v7.4.4
Compare Source
Bug fixes
permessage-deflate extension (
9277437
).v7.4.3
Compare Source
Bug fixes
takeover is disabled (#1840).
v7.4.2
Compare Source
Bug fixes
a2c0d44
).v7.4.1
Compare Source
Bug fixes
'error'
event bug in Node.js < 13 whichcaused an uncaught error during the WebSocket handshake (
38d6ab3
).v7.4.0
Compare Source
Features
WebSocketServer.prototype.handleUpgrade()
now takes theclient HTTP GET request as second argument (
7d39f19
).Bug fixes
eabed8f
).CONNECTING
,OPEN
,CLOSING
,CLOSED
,binaryType
,bufferedAmount
,extensions
,onclose
,onerror
,onmessage
,onopen
,protocol
,readyState
, andurl
properties are now enumerable (2069e68
).v7.3.1
Compare Source
Bug fixes
websocket.bufferedAmount
accuracy (e1349c0
,a162942
).v7.3.0
Compare Source
Features
WebSocket.prototype.addEventListener()
now supports theonce
option (#1754).v7.2.5
Compare Source
Bug fixes
651d662
).v7.2.3
Compare Source
Bug fixes
WebSocket#{p{i,o}ng,close}()
now thow an error if the data to send is toolarge to fit in a control frame (
e54f08d
).v7.2.2
Compare Source
Bug fixes
webSocketStream.end()
could cause the processto crash (
9535702
).or a masked frame is received on the client (#1681).
v7.2.1
Compare Source
Bug fixes
bufferutil
andutf-8-validate
as peer dependencies (#1626).v7.2.0
Compare Source
Features
readableObjectMode
option when usingWebSocket.createWebSocketStream()
(#1647).v7.1.2
Compare Source
Bug fixes
(#1618).
v7.1.1
Compare Source
Bug fixes
WebSocket
server constructor is usedincorrectly (
3641266
).v7.1.0
Compare Source
Features
WebSocket
in aDuplex
stream (#1589).Bug fixes
if
statement" (dbacf58
, #1591).v7.0.1
Compare Source
Bug fixes
v7.0.0
Compare Source
Breaking changes
1e6999b
).url.Url
instances in theWebSocket
constructor(
692d7b4
).WebSocket#{p{i,o}ng,send}()
has changed when thereadyState
attribute is notOPEN
(#1532)CONNECTING
, an exception is thrown.CLOSING
orCLOSED
bufferedAmount
attribute is increased by the length of thedata
argument in bytes.
callback
function is called with an error.callback
function is not provided.v6.2.2
Compare Source
Bug fixes
00c425e
to the 6.x release line (78c676d
).v6.2.1
Compare Source
Bug fixes
being set (
aa1dcd5
).v6.2.0
Compare Source
Features
Bug fixes
Sec-WebSocket-Key
header fieldvalue is invalid (
160af45
).v6.1.4
Compare Source
Bug fixes
Host
header to always include a port (#1510).v6.1.3
Compare Source
Bug fixes
being parsed (#1494).
v6.1.2
Compare Source
Bug fixes
26436e0
).v6.1.1
Compare Source
Bug fixes
and the socket closes prematurely (#1464, #1471).
v6.1.0
Compare Source
Features
'close'
event when the servercloses (#1453).
v6.0.0
Compare Source
Breaking changes
d73885c
).browser (#1345).
maxPayload
option on the client. Defaults to 100 MiB (#1402).memLevel
andlevel
options. UsezlibDeflateOptions
instead. (80e2002
).v5.2.3
Compare Source
Bug fixes
00c425e
to the 5.x release line (76d47c1
).v5.2.2
Compare Source
Bug fixes
6046a28
(8aba871
).v5.2.1
Compare Source
Bug fixes
certain circumstances (
6046a28
).v5.2.0
Compare Source
Features
v5.1.1
Compare Source
Bug fixes
9e152f9
(#1347).v5.1.0
Compare Source
Features
address
argument of theWebSocket
constructor can now be a [URL
][URL]instance (#1329).
options
argument of theWebSocket
constructor now accepts any TLSoption that is also accepted by [
https.request()
][https.request()] (#1332).v5.0.0
Compare Source
Breaking changes
the client's requested subprotocols (#1312).
net.Socket
errors are no longer re-emitted (a4050db
).Features
(#1302).
v4.1.0
Compare Source
Features
WebSocketServer.prototype.address()
(#1294).zlib{Deflate,Inflate}Options
options (#1306).v4.0.0
Compare Source
Breaking changes
no status code (
a31b1f6
).695c5ea
).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 (
30c9f71
...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
).Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.