dart-lang / web_socket_channel

StreamChannel wrappers for WebSockets.
https://pub.dev/packages/web_socket_channel
BSD 3-Clause "New" or "Revised" License
411 stars 107 forks source link

Unable to add dependency 2.4.1 #305

Closed cjcj125125 closed 6 months ago

cjcj125125 commented 7 months ago

Because every version of flutter_test from sdk depends on web 0.3.0 and web_socket_channel >=2.4.1 depends on web ^0.4.0, flutter_test from sdk is incompatible with web_socket_channel >=2.4.1. So, because clean_mobile depends on both web_socket_channel ^2.4.1 and flutter_test from sdk, version solving failed.

How can I fix it?

NotTsunami commented 7 months ago

There's no fixes/feature included in 2.4.1, only some documentation/example improvements and a move to package:web to support WebAssembly compilation, so you're not missing any mission critical changes by any means.

The fix would be for this package to allow a wider range of version for package:web as mentioned in this comment. Since commenting, I've sent in a pull request for this. A breaking change in API actually makes this incompatible and the PR erroneously allowed backwards compatibility when it shouldn't have.