typesense / typesense-js

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

Typescript adjustments + search param array handling #165

Closed cdoe closed 1 year ago

cdoe commented 1 year ago

Change Summary

  1. Add curated param to SearchResponseHit type
  2. Improve drop field schema for collection.update()
    • Prior implementation required "type" to be specified when dropping a field. Now only name, and drop: true are required/valid.
  3. Improved handling of searchParams
    • When specifying search params that are potentially comma separated, an array can now be passed which automatically joins the values with a comma into one string to then pass along to the search endpoint.
    • See commit for more detail.

PR Checklist

jasonbosco commented 1 year ago

Thank you for the PR, especially the improvement around accepting arrays! 🙏