The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
add postgrest v11 breaking changes
steve-chavez59fa7a2fd666
diff --git a/apps/www/_blog/2023-07-12-postgrest-11-1-release.mdx b/apps/www/_blog/2023-07-12-postgrest-11-1-release.mdxindex d9d1de7fd54..b1ae988daef 100644--- a/apps/www/_blog/2023-07-12-postgrest-11-1-release.mdx+++ b/apps/www/_blog/2023-07-12-postgrest-11-1-release.mdx@@ -216,6 +216,20 @@ where username like ANY('{%supa%,%kiwi%}');For completeness, the `all` modifier is also included.+## Minimal Breaking Changes from v10++If you only use PostgREST through Supabase client libraries(like ``supabase-js``) then it's safe to upgrade to v11. If you use PostgREST with other HTTP clients(like `curl`), consider the breaking changes for this version:++- The `Range` header is now only considered on GET requests and is ignored for any other method. Previously PostgREST responded with an error but [RFC 9110](https://www.rfc-editor.org/rfc/rfc9110.html#name-range) dictates that we should ignore the `Range` header instead.+- RPC requests no longer consider the `Prefer: params=multiple-objects` header. This header was already deprecated on [v10.1.0](https://github.com/PostgREST/postgrest/releases/tag/v10.1.0).++By making use of [Logflare](https://logflare.app/), we detected that out of 20 thousands of projects:++- Only 7 projects used `Range` for HTTP methods other than GET. In these cases all responses were errors so in fact this breaking change is a fix for those requests.+- None were using `Prefer: params=multiple-objects`.++So overall the breaking changes are minimal.+## Closing upThere you have it, now you can make your API more secure with role settings and use higher isolation levels without resorting to direct PostgreSQL connections.