Closed greenkeeper[bot] closed 6 years ago
Update to this version instead π
This release contains some under the hood improvements to better align itself with the spec. It also includes a typescript definition file, and bug fixes.
API breaking change:
const mockServer = new Server('ws://localhost:8080');
mockServer.on('connection', socket => {
// the first argument is now a socket reference instead of the server instance.
// this now allows you to send directly to the individual socket that connected.
socket.send('test message 1');
});
The new version differs by 21 commits.
3a8dfec
[CHORE] Version bump to 8.0.0 (#218)
ca61855
Return this from the socket methods for chaining (#210)
f013570
[IMPR] Change travis node versions to 6, 8, 10 (#217)
d5d4eeb
[FEAT #177] Add typescript definition file (#216)
98e9d68
[BUG #72, #209] Change server callback argument to socket (#214)
732a075
[BUG #212] Send data should be serialized to String (#213)
a3e6fb5
[IMPR] Expose readystate
constants on WS instances (#204)
367c578
Passing protocol through instantiation code (#202)
2af5cc1
[BUG #143] Reassigning listeners on MockSocket (#198)
70daf49
[IMPR] Update the node versions to use in CI (#200)
d702961
[FEAT] New close the WebSocket algorithm (#197)
43c16ff
[IMPR] Update badges and install instructions
6e75d4b
[IMPR] Use getters and setters over defineProperties (#195)
8135769
[FEAT] Spec compliant verification of constructor args (#194)
5c7b9c6
Add JSDOM test example (#191)
There are 21 commits in total.
See the full diff
Update to this version instead π
Version 7.0.0 of mock-socket just got published.
The version 7.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 mock-socket. 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.
Commits
The new version differs by 4 commits.
4d7f782
Version bump to 7.0.0
f6ebb62
Fix #172 Could not import on Angular 4/ES6 (#173)
026a34d
Add the off method to client socket. (#171)
0d51979
Fix bug in 'Server.close()' where clients were notified before server was removed (#167)
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: