-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
1.4.0 is backwards incompatible and causing karma to fail #2368
Comments
👍 I'm seeing this also |
I can also confirm that v1.3.7 works fine with karma. |
Yes I am seeing this in Feathers. It looks like example: var socketio = require('socket.io');
var io = socketio.listen();
// Now returns an object whereas v1.3.7 returned an array
console.log(io.sockets.sockets); If this is a necessary breaking change then it should probably be a major release? 😄 |
Looks like it is this commit b73d9be. I've fixed it in our lib by just wrapping our call to get the socket clients in |
what a strange commit...no reason listed just "here, arrays are now objects" Wonder what decision led to that. |
An odd change, but it does seem to make the code a little easier to read (in my opinion) which I guess is what led to the change. I ended up fixing my issue by wrapping the call like this |
@rauchg responded to me on twitter that it had huge performance improvements. I'm not surprised there. |
Please can you unpublish v1.4.0 and re-release as v2.0.0? Like others above this caused breaking changes with karma, and whilst we can work around it, it would avoid others having to do the same. Thanks :-) |
socket.io released backwards incompatible API changes in a minor version update, causing failures during our ui-tests travis run. See: socketio/socket.io#2368 However the latest version of Karma has added support for it: karma-runner/karma#1782
I'm also having an issue with Karma failing since this morning, same forEach error 👍 |
Same here. Replaced with _.values(io.sockets.sockets) |
Please unpublish v1.4.0 and re-release as v2.0.0. Breaking changes in a minor version are really disconcerting. |
Hi! I totally understand the concerns here, and I let @rauchg be the judge on whether unpublishing 1.4.0, but... isn't |
@darrachequesne We are actually using that method. I just used |
I encountered a similar Array > Object problem with |
In case it helps, here is a quick rundown of what we had to address before updating Sails yesterday: balderdashy/sails-hook-sockets@95b2506 To be fair, we were using undocumented features. |
👍 |
None-the-less breaking changes should be released in a new major version. http://semver.org/ |
I'm also encountering this too.
|
I think this also might break [email protected] Am I wrong? |
v1.4.0 issues breaking changes socketio/socket.io#2368
This is fixed in the latest version of karma. It was due to karma using socket.io internals. |
NAVER - http://www.naver.com/[email protected] 님께 보내신 메일 <Re: [socket.io] 1.4.0 is backwards incompatible and causing karma to fail (#2368)> 이 다음과 같은 이유로 전송 실패했습니다. 받는 사람이 회원님의 메일을 수신차단 하였습니다. |
I encountered the same issue as @milesingrams when checking whether given However, seeing that there are 5 |
1.4.0 caused a change that is making karma fail.
See karma-runner/karma#1782 for more context
The text was updated successfully, but these errors were encountered: