Repository navigation
fix(auth): remove Prettify wrapper from exported types for TypeDoc expansion - #2250
Merged
Merged
Conversation
@supabase/auth-js
@supabase/functions-js
@supabase/postgrest-js
@supabase/realtime-js
@supabase/storage-js
@supabase/supabase-js
commit: |
grdsdev
approved these changes
Apr 15, 2026
mandarini
pushed a commit
to supabase/supabase
that referenced
this pull request
Apr 16, 2026
This PR updates @supabase/*-js libraries to version 2.103.2. **Source**: supabase-js-stable-release **Changes**: - Updated @supabase/supabase-js to 2.103.2 - Updated @supabase/auth-js to 2.103.2 - Updated @supabase/realtime-js to 2.103.2 - Updated @supabase/postgest-js to 2.103.2 - Refreshed pnpm-lock.yaml --- ## Release Notes ## v2.103.2 ## 2.103.2 (2026-04-15) ### 🩹 Fixes - **auth:** include Cloudflare error codes in NETWORK_ERROR_CODES ([#2239](supabase/supabase-js#2239)) - **auth:** remove Prettify wrapper from exported types for TypeDoc expansion ([#2250](supabase/supabase-js#2250)) - **misc:** add explicit return types to toJSON methods for JSR compat ([#2252](supabase/supabase-js#2252)) - **storage:** remove client-side signed URL render endpoint normalization ([#2249](supabase/supabase-js#2249)) ### ❤️ Thank You - Katerina Skroumpelou @mandarini - Vansh Sharma @Vansh1811 ## v2.103.1 ## 2.103.1 (2026-04-15) ### 🩹 Fixes - **auth:** add toJSON to AuthError for correct JSON serialization ([#2238](supabase/supabase-js#2238)) - **postgrest:** handle bigint rpc ([#2245](supabase/supabase-js#2245)) - **storage:** add toJSON to StorageError for correct JSON serialization ([#2246](supabase/supabase-js#2246)) - **storage:** apply empty transform check to download and getPublicUrl ([#2219](supabase/supabase-js#2219)) ### ❤️ Thank You - oniani1 - Vaibhav @7ttp This PR was created automatically. Co-authored-by: supabase-workflow-trigger[bot] <266661614+supabase-workflow-trigger[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
What changed?
Removed the
Prettify<...>wrapper from 19 exported type aliases inpackages/core/auth-js/src/lib/types.ts. The types now use bare intersections (A & B) instead ofPrettify<A & B>.Affected types include
SignUpWithPasswordCredentials, all MFA Verify/Challenge/Enroll param types (TOTP, Phone, WebAuthn), their corresponding response types, and inlinePrettify<Factor>usages inAuthMFAListFactorsResponse.The
Prettifytype definition itself and its internal usages inGoTrueClient.ts(private methods, local type annotations) are left unchanged.Why was this change needed?
TypeDoc 0.27.9 serializes
Prettify<A & B>as a reference to thePrettifyutility type rather than expanding the resulting object properties. This causes the generatedspec.json(used by Supabase documentation) to show these types as opaque "nameOnly" entries with no visible properties, while non-Prettify intersection types likeSignInWithPasswordCredentialsexpand correctly.Prettify<T>andTare structurally identical in TypeScript -- removing the wrapper has zero impact on type compatibility for consumers. The wrapper only affected IDE hover display.Breaking changes
Checklist
<type>(<scope>): <description>npx nx formatto ensure consistent code formattingAdditional notes
Verified the fix by regenerating
spec.json-- all previously affected types (SignUpWithPasswordCredentials,MFAVerifyTOTPParams,MFAEnrollTOTPParams, etc.) now serialize asintersectiontype nodes instead ofreferencetoPrettify. Build and type checks pass with no changes needed elsewhere.