supabase / postgrest-js

Isomorphic JavaScript client for PostgREST.
https://supabase.com
MIT License
1.03k stars 133 forks source link

dedup values passed to PostgrestFilterBuilder.in #517

Closed travis-humata closed 7 months ago

travis-humata commented 7 months ago

What kind of change does this PR introduce?

Dedup values passed into PostgrestFilterBuilder.in

What is the current behavior?

Values are incorporated into the url as is when duplicate values are present.
e.g. .in([1,1,2,2,3,3]) => in.(1,1,2,2,3,3)

The caused us to get a 414 URI too long when we passed in a long array of deduplicated values by accident. Would be nice if the library took care of this.

What is the new behavior?

Values will be deduplicated as duplicated.
e.g. .in([1,1,2,2,3,3]) => in.(1,2,3)

github-actions[bot] commented 7 months ago

:tada: This PR is included in version 1.10.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: