-
-
Notifications
You must be signed in to change notification settings - Fork 162
feat(typegen): add functions setof type introspection #971
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
- Introspect the setof function fields for functions - Restore functions as unions of args + returns
317219e
to
64a1afc
Compare
Pull Request Test Coverage Report for Build 18323717185Details
💛 - Coveralls |
🚀 Canary Deployment Status✅ Canary image deployed successfully! 🐳 Docker Image: You can test this canary deployment by pulling the image: docker pull supabase/postgres-meta:canary-pr-971-8b65b3904cbc41cd26ea88876ff77d239c70219e You can also set the version in a supabase local project by running: echo "supabase/postgres-meta:canary-pr-971-8b65b3904cbc41cd26ea88876ff77d239c70219e" > supabase/.temp/pgmeta-version Or use it in your docker-compose.yml: services:
postgres-meta:
image: supabase/postgres-meta:canary-pr-971-8b65b3904cbc41cd26ea88876ff77d239c70219e
# ... other configuration The canary image is available on: false Last updated: 2025-10-07T19:34:35Z |
Can we split out the refactor into another PR? It's difficult to see which change is related to computed relationships. |
…unctions-setof-type-introspection-v2
…unctions-setof-type-introspection-v2
* fix(typescript): unknown is already nullable Fixes: supabase/cli#4234 supabase/cli#577 * fix: also exclude any from null union
What kind of change does this PR introduce?
Add all the necessary informations for embeded functions type inferences to work in postgrest-js (see: feat(types): add embeded functions type inference postgrest-js#632 )
Canary tested that it's mostly retro-compatible by generating the types on the infrastructure codebase. The new type definition didn't raised much type errors but we don't use a lot of functions/
rpc
calls in it. So there is still a chance for this to break some codebases. Best approach might be to release this one as an-rc
release so it can be opt-in via local cliecho "vXX-rc" > supabase/.temp/postgres-meta-version && supabase gen types
That way with a canary release of the
postgrest-js
and thesupabase-js
we might release gradually with a way for people to opt-out if it causes issue.I'm open to suggestion about how to release this !
Closes: PGMETA-61