postgrest-js
postgrest-js copied to clipboard
feat(types): setup postgrest-13 types inference
What kind of change does this PR introduce?
This lay out the ground basis to start introducing new postgrest-13 features to the client library.
- It adds a way to opt-in via an option
new PostgrestClient(DB_URL, { postgrestVersion: 12 | 13 }>allowing the types inference to pick in and choose the right result based on the available features for this major version. - Also allow to get this information from the generated Database types under
__internal_supabaseschema. - Add a second test container running postgrest-13 to make sure we keep consistency between runtime/typing behavior.
- Implement the new postgrest13 Spread on Many Relationship behavior in inference.
- Upgrade the workflows ubuntu versions to repair the CI/CD pipeline due to ubuntu 20 deprecation.
Coverage complain for no reason there.
Edit: Exclude types.ts from coverage, there isn't really anything to cover there.
:tada: This PR is included in version 1.20.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket: