Closed bnjmnt4n closed 4 months ago
Any blockers for this?
@bnjmnt4n Could you please rebase? Just merged https://github.com/supabase/postgrest-js/pull/429 which solves casting and didn't realize it would conflict with this PR.
@steve-chavez I've rebased this, and will rebase my other PRs as well.
Any chance in merging the other PRs: #497, #498, #499? I think a couple of others are particularly useful: #451, #458 (might need rebasing though).
@bnjmnt4n Yeah, I'd like to merge those. Could you rebase?
I’ve rebased those as well!
:tada: This PR is included in version 1.12.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
What kind of change does this PR introduce?
Refactor
What is the current behavior?
There is a lot of duplicated code in the query parser, due to the field and renamed field parsing sharing the same code.
What is the new behavior?
The parsing of a field is extracted out to a separate
ParseField
helper, which can be reused to detect both a renamed field and non-renamed fields. I also updated some comments for accuracy.