wire-web-packages
wire-web-packages copied to clipboard
chore(deps): Bump ws from 7.5.3 to 8.0.0
⚠️ Dependabot is rebasing this PR ⚠️
If you make any changes to it yourself then they will take precedence over the rebase.
Bumps ws from 7.5.3 to 8.0.0.
Release notes
Sourced from ws's releases.
8.0.0
Breaking changes
The
WebSocketconstructor now throws aSyntaxErrorif any of the subprotocol names are invalid or duplicated (0aecf0c9).The server now aborts the opening handshake if an invalid
Sec-WebSocket-Protocolheader field value is received (1877ddeb).The
protocolsargument ofhandleProtocolshook is no longer anArraybut aSet(1877ddeb).The opening handshake is now aborted if the
Sec-WebSocket-Extensionsheader field value begins or ends with a white space (e814110e).Dropped support for Node.js < 10.0.0 (552b5067).
The
WebSocketconstructor now throws aSyntaxErrorif the connection URL contains a fragment identifier or if the URL's protocol is not one of'ws:','wss:', or'ws+unix:'(ebea038f).Text messages and close reasons are no longer decoded to strings. They are passed as
Buffers to the listeners of their respective events. The listeners of the'message'event now take a boolean argument specifying whether or not the message is binary (e173423c).Existing code can be migrated by decoding the buffer explicitly.
websocket.on('message', function message(data, isBinary) { const message = isBinary ? data : data.toString(); // Continue as before. });websocket.on('close', function close(code, data) { const reason = data.toString(); // Continue as before. });
The package now uses an ES module wrapper (78adf5f7).
WebSocketServer.prototype.close()no longer closes existing connections (df7de574).Existing code can be migrated by closing the connections manually.
websocketServer.close(); for (const ws of websocketServer.clients) { ws.terminate(); }The callback of
WebSocketServer.prototype.close()is now called with an error if the server is already closed (abde9cfc).
Websocket.prototype.addEventListener()is now a noop if thetypeargument
... (truncated)
Commits
bba3351[dist] 8.0.0c4394c3[major] Overhaul event classes94a80cc[minor] Fix nits45790db[fix] Returnnullif the event handler is not set0b21c03[fix] Make listeners added via event handler properties independent1bd93f0[major] Ignore listeners not added withWebsocket#addEventListener()a421eb5[major] MakeWebsocket#addEventListener()ignore non standard events77a675c[minor] Remove unneeded setters64b3c71[pkg] Update mocha to version 8.4.0abde9cf[major] Call the callback with an error if the server is closed- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)@dependabot use these labelswill set the current labels as the default for future PRs for this repo and language@dependabot use these reviewerswill set the current reviewers as the default for future PRs for this repo and language@dependabot use these assigneeswill set the current assignees as the default for future PRs for this repo and language@dependabot use this milestonewill set the current milestone as the default for future PRs for this repo and language@dependabot badge mewill comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot dashboard:
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)