Skip to content

ix(postgrest): filter out undefined values in match method#2169

Merged
mandarini merged 1 commit intosupabase:masterfrom
MichaelDeBoey:patch-1
Mar 17, 2026
Merged

ix(postgrest): filter out undefined values in match method#2169
mandarini merged 1 commit intosupabase:masterfrom
MichaelDeBoey:patch-1

Conversation

@MichaelDeBoey
Copy link
Copy Markdown
Contributor

@MichaelDeBoey MichaelDeBoey commented Mar 16, 2026

🔍 Description

What changed?

Filter out undefined values from the query

Why was this change needed?

Closes #2167

🔄 Breaking changes

  • This PR contains no breaking changes

📋 Checklist

  • I have read the Contributing Guidelines
  • My PR title follows the conventional commit format: <type>(<scope>): <description>
  • I have run npx nx format to ensure consistent code formatting
  • I have added tests for new functionality (if applicable)
  • [N/A] I have updated documentation (if applicable)

Edit from @mandarini:

Note on behavior change

Previously, passing undefined values in the match() query object would result in the literal string eq.undefined being appended as a query parameter (e.g., ?column=eq.undefined). This was never valid PostgREST syntax and would produce errors or unexpected results.

With this change, undefined values are silently filtered out, matching the existing behavior in PostgrestClient.rpc(). While technically a behavior change, the previous behavior was broken and no one should be relying on eq.undefined being sent as a filter. So I am categorizing this as a fix.

@MichaelDeBoey MichaelDeBoey requested review from a team as code owners March 16, 2026 11:58
@mandarini mandarini changed the title feat(postgrest-js): support undefined values in match method feat(postgrest): support undefined values in match method Mar 17, 2026
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Mar 17, 2026

Open in StackBlitz

@supabase/auth-js

npm i https://pkg.pr.new/@supabase/auth-js@2169

@supabase/functions-js

npm i https://pkg.pr.new/@supabase/functions-js@2169

@supabase/postgrest-js

npm i https://pkg.pr.new/@supabase/postgrest-js@2169

@supabase/realtime-js

npm i https://pkg.pr.new/@supabase/realtime-js@2169

@supabase/storage-js

npm i https://pkg.pr.new/@supabase/storage-js@2169

@supabase/supabase-js

npm i https://pkg.pr.new/@supabase/supabase-js@2169

commit: 94b3f95

@mandarini mandarini changed the title feat(postgrest): support undefined values in match method ix(postgrest): filter out undefined values in match method Mar 17, 2026
@mandarini mandarini merged commit 31bd086 into supabase:master Mar 17, 2026
22 checks passed
@MichaelDeBoey MichaelDeBoey deleted the patch-1 branch March 17, 2026 10:05
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.

[postgrest-js] support undefined values in match method

2 participants