supabase / postgrest-js

Isomorphic JavaScript client for PostgREST.
https://supabase.com
MIT License
1.03k stars 133 forks source link

fix: explain() always returning an error #506

Closed laurenceisla closed 10 months ago

laurenceisla commented 10 months ago

What kind of change does this PR introduce?

Bug fix. Closes #504

What is the current behavior?

Sends "undefined" media type when requesting explain plan, making the explain() method fail.

What is the new behavior?

Sends "application/json" as media type.

Additional context

Tests weren't failing because they were using PostgREST v11.0.0 instead of v11.2.2

github-actions[bot] commented 10 months ago

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

The release is available on:

Your semantic-release bot :package::rocket: