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

refactor!: create package specific configs #640

Merged
merged 4 commits into from Sep 28, 2023
Merged

Conversation

Vinzent03
Copy link
Collaborator

@Vinzent03 Vinzent03 commented Sep 21, 2023

Breaking Changes

  • create package specific config classes in supabase and supabase_flutter
  • make many fields private
  • mark SupabaseAuth.initialize as internal as I see no reason to manually initialize. It depends on Supabase.instance so it can't be initialized alone either.

This aligns a bit with how supabase-js does this, but I've done the naming a bit different.

Actually, I noticed there is not really a reason for a global SupabaseAuth.instance, because it only provides access to the localstorage used. So I would be open to remove it and instead make it a simple object of the Supabase class in supabase_flutter.

@Vinzent03 Vinzent03 changed the title refactor!: move create package specific configs refactor!: create package specific configs Sep 22, 2023
@Vinzent03 Vinzent03 marked this pull request as ready for review September 22, 2023 09:30
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 the amazing work! I had one little thing about naming conventions, but other than that it looks amazing. On your point about removing SupabaseAuth class, I am with you, and I think we can remove it and migrate all the functinalities to Supabase class!

packages/supabase/lib/src/supabase_client.dart Outdated Show resolved Hide resolved
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.

Looks beautiful!

@Vinzent03 Vinzent03 merged commit 53cd3e0 into next Sep 28, 2023
4 of 5 checks passed
@Vinzent03 Vinzent03 deleted the refactor/supabase branch September 28, 2023 09:07
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.

None yet

2 participants