zino-hofmann / graphql-flutter

A GraphQL client for Flutter, bringing all the features from a modern GraphQL client to one easy to use package.
https://zino-hofmann.github.io/graphql-flutter
MIT License
3.25k stars 620 forks source link

Upgrade web_socket_channel to ^3.0.1 #1460

Open Chralu opened 2 weeks ago

request-info[bot] commented 2 weeks ago

We would appreciate it if you could provide us with more info about this issue/pr!

redDwarf03 commented 1 week ago

hello @Chralu, In the meantime, you can use this branch https://github.com/redDwarf03/graphql-flutter/tree/Web_socket_channel_301

Note that I've removed the examples for null safety reasons. I didn't see the point of updating in view of the new version that will be released.

vincenzopalazzo commented 1 week ago

Note that I've removed the examples for null safety reasons. I didn't see the point of updating in view of the new version that will be released.

@redDwarf03 probably because your branch is not in sync with main, I see a lot of conflict inside the PR that you open

redDwarf03 commented 1 week ago

Note that I've removed the examples for null safety reasons. I didn't see the point of updating in view of the new version that will be released.

@redDwarf03 probably because your branch is not in sync with main, I see a lot of conflict inside the PR that you open

I forked 5.1.2 and not 5.2.0 because 5.2.0 is a beta version not available in stable version

vincenzopalazzo commented 1 week ago

I forked 5.1.2 and not 5.2.0 because 5.2.0 is a beta version not available in stable version

What is wrong with the "beta" version? in reality, you should use the 5.2 because the beta is just a staging version

hagen00 commented 4 days ago

A number of packages now require web_socket_channel greater than version 3. web_socket_channel version 3.0.0 was released 5 months ago.

Please update the beta version of graphql-flutter to make use of web_socket_channel 3.0.0 and up! Latest version of web_socket_channel is 3.0.1

vincenzopalazzo commented 3 days ago

Please update the beta version of graphql-flutter to make use of web_socket_channel 3.0.0 and up! Latest version of web_socket_channel is 3.0.1

Currently not have enough time (outside of my free time) to work on this, if you can and want I will be available to review a PR for it.

hagen00 commented 1 day ago

PR is here: https://github.com/zino-hofmann/graphql-flutter/pull/1463

graphql_flutter/pubspec.yaml references graphql: ^5.2.0-beta.8 in the dependencies. This will also have to change on merge.

I have tested with my code base and everything seems to work normally. Unfortunately, flutter test doesn't work for me locally. Not sure if it should? Running on Ubuntu.

I do not use graphql-flutter for subscriptions, so that is untested.

vincenzopalazzo commented 1 day ago

I have tested with my code base and everything seems to work normally. Unfortunately, flutter test doesn't work for me locally. Not sure if it should? Running on Ubuntu.

not sure I usually ran make check.

I do not use graphql-flutter for subscriptions, so that is untested.

Running the CI now, lets see what happens, if it will pass, we will merge it and if there is some problem we will revert the changes