typesense / typesense-js

JavaScript / TypeScript client for Typesense
https://typesense.org/docs/api
Apache License 2.0
393 stars 74 forks source link

feat: flatten only arrayble search params before search #214

Open tharropoulos opened 1 month ago

tharropoulos commented 1 month ago

Change Summary

Introduces a new utility function and types for only checking search parameters that can be either a base type, or an array of said type. Instead of checking through all of the possible parameters (more than 50), it instead iterates over a specific part (10), improving performance and ensuring maintainability, if non-search parameters should still retain their original array format in the future.

PR Checklist