Repository navigation
feat(postgrest): add stripNulls method for null value stripping - #2189
Merged
Merged
Conversation
@supabase/auth-js
@supabase/functions-js
@supabase/postgrest-js
@supabase/realtime-js
@supabase/storage-js
@supabase/supabase-js
commit: |
Contributor
Author
|
Good idea, will make it throw an error instead. Pushing a fix soon. |
Contributor
Author
|
Updated — |
Contributor
Author
|
CI type tests (tstyche) are failing on TypeScript 6.0.2 (latest) due to missing test runner type definitions (describe/test/expect) — this affects all 17 type test files, not related to this PR's changes. Tests pass on TS 4.7 and 5.5. Runtime tests pass (305/310, 5 infra failures). @steve-chavez Ready for review when you have a chance. Thanks! |
steve-chavez
approved these changes
Apr 8, 2026
mandarini
force-pushed
the
feat/strip-nulls
branch
from
April 9, 2026 06:23
4dc6486 to
f3a00ec
Compare
This was referenced Apr 9, 2026
mandarini
pushed a commit
to supabase/supabase
that referenced
this pull request
Apr 9, 2026
This PR updates @supabase/*-js libraries to version 2.103.0. **Source**: supabase-js-stable-release **Changes**: - Updated @supabase/supabase-js to 2.103.0 - Updated @supabase/auth-js to 2.103.0 - Updated @supabase/realtime-js to 2.103.0 - Updated @supabase/postgest-js to 2.103.0 - Refreshed pnpm-lock.yaml --- ## Release Notes ## v2.103.0 ## 2.103.0 (2026-04-09) ### 🚀 Features - **postgrest:** add stripNulls method for null value stripping ([#2189](supabase/supabase-js#2189)) - **storage:** add cacheNonce parameter for download ([#2234](supabase/supabase-js#2234)) ### 🩹 Fixes - **postgrest:** fix scalar computed column type inference for isNotNullable and SETOF scalar ([#2224](supabase/supabase-js#2224)) ### ❤️ Thank You - Katerina Skroumpelou @mandarini - Seydi Charyyev @TheSeydiCharyyev - Vaibhav @7ttp This PR was created automatically. Co-authored-by: supabase-workflow-trigger[bot] <266661614+supabase-workflow-trigger[bot]@users.noreply.github.com>
mandarini
pushed a commit
to supabase/ssr
that referenced
this pull request
Apr 9, 2026
This PR updates `@supabase/supabase-js` to v2.103.0. **Source**: supabase-js-stable-release --- ## Release Notes ## v2.103.0 ## 2.103.0 (2026-04-09) ### 🚀 Features - **postgrest:** add stripNulls method for null value stripping ([#2189](supabase/supabase-js#2189)) - **storage:** add cacheNonce parameter for download ([#2234](supabase/supabase-js#2234)) ### 🩹 Fixes - **postgrest:** fix scalar computed column type inference for isNotNullable and SETOF scalar ([#2224](supabase/supabase-js#2224)) ### ❤️ Thank You - Katerina Skroumpelou @mandarini - Seydi Charyyev @TheSeydiCharyyev - 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
Adds a
stripNulls()method to the PostgREST query builder, enabling null value stripping from JSON responses via the PostgRESTnulls=strippedmedia type parameter.Related Issue
Resolves supabase/postgrest-js#460
How it works
shouldStripNullsflag toPostgrestBuilderstripNulls()method sets this flag.then(), before fetch, the Accept header is modified:application/vnd.pgrst.array+json;nulls=strippedapplication/vnd.pgrst.object+json;nulls=strippedUsage