Skip to content
This repository was archived by the owner on Oct 9, 2025. It is now read-only.

Conversation

kjrocker
Copy link
Contributor

@kjrocker kjrocker commented Feb 7, 2023

What kind of change does this PR introduce?

Type change. Discussion here: supabase/supabase#12228

What is the current behavior?

Only the top-level PostgrestResponse types are exported.

What is the new behavior?

Export the sub-types that go into PostgrestResponse for type-union/guard-clause purposes.

Additional context

I noticed the plan is to rename PostgrestSingleResponse and deprecate the current PostgrestResponse, so instead of exporting PostgrestSingleResponseSuccess under its current name I went with PostgrestResponseSuccess.

This might mean holding the change back until v3, but since its to a (formely) internal type we should be okay.

@kjrocker kjrocker force-pushed the export-response-types branch from cafe145 to 8f1232d Compare February 7, 2023 16:57
@kjrocker kjrocker marked this pull request as ready for review February 7, 2023 16:58
@kjrocker kjrocker force-pushed the export-response-types branch from 8f1232d to 6bd4b04 Compare February 7, 2023 21:16
@mqp
Copy link
Contributor

mqp commented Feb 8, 2023

This would be convenient for me too.

Copy link
Member

@soedirgo soedirgo left a comment

Choose a reason for hiding this comment

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

Sgtm, thanks!

@soedirgo soedirgo merged commit 8ce5da4 into supabase:master Feb 8, 2023
@github-actions
Copy link

github-actions bot commented Feb 8, 2023

🎉 This PR is included in version 1.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants