This repository was archived by the owner on Oct 9, 2025. It is now read-only.
Commit d7d6f8b
authored
fix(typegen): avoid possible infinite recursion error (#630)
* fix(typegen): avoid possible infinite recursion error
- Add a fixed max depth to recursive types allowing Typescript to not raise
possible infinite recursion error too early.
- Add test to ensure that the provided fix remove this error from a recursive embeding
Related:
supabase/supabase-js#1354
supabase/supabase-js#1372
supabase/supabase-js#808
* fix(typegen): infinite recursion error
Fixes regression introduced in #627
While fixing the invalid intersection for conflicting keys case
the Omit did lead to a huge increase in the recursive type complexity
Removing it bring back the corner case, but allow much more longer queries.
A test is now in place to ensure minimal coverage over the query complexities
we can handle before reaching infinite recursion errors.
* chore: add types test watcher
* chore: watch over all src1 parent e4fcebf commit d7d6f8b
File tree
6 files changed
+867
-6
lines changed- src/select-query-parser
- test
6 files changed
+867
-6
lines changed
0 commit comments