github PostgREST/postgrest v13.0.0

latest releases: devel, v13.0.6, v13.0.5...
4 months ago

Features

API

Authentication

Observability

Errors

  • Improved JWT errors by @taimoorzaeem in #3600, #3926
    • PGRST301 is now returned when Bearer in the Authorization header is sent empty
    • PGRST303 is now returned when decoding JWT claims fails
    • Better diagnostic error messages instead of exposed internals messages
  • Return PGRST125 instead of an empty json, when an invalid URL path is requested by @taimoorzaeem in #3906
  • Return PGRST126 instead of an empty json, when OpenAPI is requested and it's disabled by @taimoorzaeem in #3906

Admin Server

Fixes

  • Prevent spread embedding to allow aggregates when they are disabled by @laurenceisla in #3693
  • A nested spread embedding now correctly groups by the fields of its top parent relationship by @laurenceisla in #3693
  • Fix spread embedding errors when using the count() aggregate without a field by @laurenceisla in #3693
    • Fixed "column reference <col> is ambiguous" error when selecting ?select=...table(col,count())
    • Fixed "column <json_aggregate>.<alias> does not exist" error when selecting ?select=...table(aias:count())
  • Clarify listener logs by @steve-chavez in #3727
  • Clarify Accept: vnd.pgrst.object error message by @steve-chavez in #3795
  • Handle queries on non-existing table gracefully by @taimoorzaeem in #3697, #3602
  • Fix using order= in mutation requests by @taimoorzaeem in #3013
  • Fix filtering on unselected columns in a table-valued function by @taimoorzaeem in #3965
  • Fix schema cache loading duplicate objects with different object type but same oid by @taimoorzaeem in #4052
  • Querying non-existent table now returns PGRST205 error instead of an empty json by @taimoorzaeem in #3697, #3602
  • Fail to start when server-port and admin-server-port config options are the same by @develop7 in #3508
  • Fail to start when the JWT secret is less than 32 characters long by @laurenceisla in #3607
  • Fail to start on an invalid db-schemas or db-extra-search-path by @wolfgangwalther in #3644
    • Previously, this would silently return 200 - OK on the root endpoint, but don't provide any usable endpoints.
    • Note: This also applies when deleting the public schema - both config options default to that.

Breaking Changes

Don't miss a new postgrest release

NewReleases is sending notifications on new releases.