-
Notifications
You must be signed in to change notification settings - Fork 340
Conversation
What's the status of this? No one able to review it? @DxCx |
@edvinerikson there is still issue with |
Alright, I see. Do you know what the dependency is inside of graphql-subscriptions? I pinged @stubailo on Slack with the link to my PR and mentioned the low activity. I have not get any reply yet though (20min ago or something). I really need this change because of the async subscribe function. |
only subscription manager interface which i think needs to be just moved inside this package until deprecated or just be deprecated as soon as possible. |
I agree. I just migrated away from it when I upgraded. Not sure in which version it got deprecated but making a major bump and removing it shouldn't be too hard(?). |
I think @NeoPhi will also take a look soon, let's try to get some next steps before the end of the week. |
@stubailo anything I can do to help get this out quicker? I was stuck for a long time today until finding this haha |
I'm in favor of merging this in and having the needed changes to |
Something I would like to have fixed too is the error handling. Not in this
PR though. I spent quite a few hours trying to debug why it didn't work and
it turns out the library catches its own errors and sends straight to the
client without any way of interception on the sever. E.g. Only thing I had
to go on was "cannot read property .then of undefined" without stack trace.
I didn't even know if it was a server or client error. ¯\_(ツ)_/¯ What's
your thoughts about this?
…On Fri, 8 Sep 2017 at 04:13, Daniel Rinehart ***@***.***> wrote:
I'm in favor of merging this in and having the needed changes to
graphql-subscriptions made. There has been a lot of confusion about the
deprecation warning so adding 0.11 support as part of a version bump on
this project and the other one feels like the right next steps.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#261 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADtdjKcv-86mpezRWjQBioWXxspqIxRbks5sgKLlgaJpZM4PG7Cw>
.
|
@NeoPhi whats the reason for wanting to keep this as a dependnacy? |
@DxCx Sorry if my comment was unclear. I'm not advocating that |
Oh, that is absolutely correct. :) |
will need a new version of |
@DxCx |
package.json
Outdated
"@types/lodash": "^4.14.68", | ||
"@types/mocha": "^2.2.41", | ||
"@types/node": "^8.0.8", | ||
"@types/sinon": "^2.3.0", | ||
"@types/ws": "^3.0.0", | ||
"chai": "^4.0.2", | ||
"graphql": "^0.10.1", | ||
"graphql": "^0.11.3", | ||
"graphql-subscriptions": "^0.4.4", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DxCx update to latest :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah i was working at that since there was a typing still depended.. now it's pushed =)
@@ -1,110 +0,0 @@ | |||
import { SubscriptionManager } from 'graphql-subscriptions'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 🎉 🎉 🎉 🎉 🎉 🎉 🎉
@DxCx looks great. just need to update |
we don't need to remove it but i think we can remove all deprecated code.. |
As this is a breaking change release, I'd be in favor of removing the deprecated code. |
so do we want to remove all the legacy API and keep the protocol legacy layer for the time being? |
That would be my recommendation. |
@stubailo @Urigo @mistic @dotansimha @martijnwalraven would be great to get some advice in here.. |
I agree with both of you! Let's go ahead and do it. |
@DxCx Do you have a preference on next steps? My thinking is that the changes to remove the deprecated API are simple and mirror what is happening with the removal of SubscriptionManager. We can then do a breaking change release of subscriptions-transport-ws that gets this package working with 0.11.x. Then as part of the switch to the new package name the old protocol can be removed. |
Yeah lets merge this and wait with releasing ill open another PR cleaning
all deprecated api keeping the legacy protocol support
…On Wed, 13 Sep 2017 at 21:44 Daniel Rinehart ***@***.***> wrote:
@DxCx <https://github.com/dxcx> Do you have a preference on next steps?
My thinking is that the changes to remove the deprecated API are simple and
mirror what is happening with the removal of SubscriptionManager. We can
then do a breaking change release of subscriptions-transport-ws that gets
this package working with 0.11.x. Then as part of the switch to the new
package name the old protocol can be removed.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#261 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABB8W4nJcQbYY4QqNw1ui7Tu4IHNEZ7Kks5siCKagaJpZM4PG7Cw>
.
|
@DxCx @NeoPhi I agree with you! In my opinion we should release now a breaking change version without the |
Hmm, why not release the breaking change as the new package right away? |
I think releasing the new package with Apollo 2 support would make it easier for people to understanding the breaking protocol changes. |
Both ways are valid. However I think that releasing the breaking changes (of things already marked as deprecated for 4 months) in the |
@NeoPhi @mistic after that we can continue "grow" the new |
@DxCx wasn't this the same I suggest? :D In order to allow everyone understand and no doubts remaining what we are suggesting is:
What do u think @DxCx @NeoPhi @dotansimha ? |
Agreed. |
yeah @DxCx it can be 👍 As soon as the others write their thoughts I can proceed with the agreed changes 😄 |
@mistic Sounds good. Let me know if you'd like me to handle any of that. |
Whatever are you doing, please add some notes or guides to upgrade... I wasted a few hours because there's a lot of conflict between documentation of Apollo and this package. Thank you for the great work here. |
This PR adds support for GraphQL ^0.11.0
^0.10.0 will still work.
BREAKING CHANGE: Remove support for
SubscriptionManager
Related to:
apollographql/graphql-subscriptions#104
TODO:
Closes #259