Skip to content

feat(recommend): leverage the new Recommend API client#40

Merged
francoischalifour merged 5 commits intonextfrom
feat/recommend-api-client
Jun 23, 2021
Merged

feat(recommend): leverage the new Recommend API client#40
francoischalifour merged 5 commits intonextfrom
feat/recommend-api-client

Conversation

@shortcuts
Copy link
Copy Markdown
Member

@shortcuts shortcuts commented Jun 23, 2021

Summary
This PR updates the recommend-core package to leverage the new Recommend API client (algolia/algoliasearch-client-javascript#1280, algolia/algoliasearch-client-javascript#1283, algolia/algoliasearch-client-javascript#1287)

We now use the method dedicated to the model for each functions.

Changes

  • searchClient has been renamed to recommendClient and now requires the client returned from the new @algolia/recommend package
  • searchParameters has been renamed to queryParameters
  • fallbackFilters has been renamed to fallbackParameters and now accepts the same options as queryParameters

Summary

  • Update tests
  • Update dependencies after 4.10.2 client release

@francoischalifour francoischalifour marked this pull request as ready for review June 23, 2021 16:31
@francoischalifour francoischalifour merged commit 618ee07 into next Jun 23, 2021
@francoischalifour francoischalifour deleted the feat/recommend-api-client branch June 23, 2021 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants