supabase / postgrest-js

Isomorphic JavaScript client for PostgREST.
https://supabase.com
MIT License
965 stars 129 forks source link

fix: use `null` if `return=minimal` #395

Closed soedirgo closed 1 year ago

soedirgo commented 1 year ago

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

If return=minimal (i.e. insert/update/upsert/delete w/o returning modified rows) data is typed as undefined instead of null.

What is the new behavior?

data is typed as null on return=minimal.

github-actions[bot] commented 1 year ago

:tada: This PR is included in version 1.3.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket: