Skip to content
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

fix: Upgrade web_socket_channel for supporting web: ^1.0.0 and therefore WASM compilation on web #992

Merged
merged 8 commits into from
Jul 30, 2024

Conversation

geoextra
Copy link
Contributor

What kind of change does this PR introduce?

Upgrade the web_socket_channel to ^3.0.1 which mostly serves as an upgrade path for the transitive web dependency which otherwise causes web_socket_channel to downgrade and prevent WASM support on the web platform.

What is the current behavior?

When having supabase or supabase_flutter as a project dependeny while relying on web: ^1.0.0 the web_socket_channel dependeny would downgrade and WASM compilation isn't possible anymore.

What is the new behavior?

This behavior seems to be migrated.

Additional context

The breaking changes don't affect the codebase. Tests passed locally. Additionally, one linting error got fixed.

@geoextra geoextra changed the title Upgrade web_socket_channel for supporting web: ^1.0.0 and therefore WASM compilation on web fix: Upgrade web_socket_channel for supporting web: ^1.0.0 and therefore WASM compilation on web Jul 29, 2024
Copy link
Member

@dshukertjr dshukertjr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this PR!

Can we update the web_socket_channel dependencies to '>=2.3.0 <4.0.0' so that this doesn't become a breaking change?

@geoextra
Copy link
Contributor Author

Seems like I was a bit too fast with upgrading the linting dependecy which are not compatible with Dart version < 3.1 and fails tests, I will adjust to a non-breaking version.

@geoextra geoextra requested a review from dshukertjr July 29, 2024 17:23
Copy link
Member

@dshukertjr dshukertjr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this update! This will be included in the next release in a few days!

@dshukertjr dshukertjr merged commit 7da6856 into supabase:main Jul 30, 2024
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants