Skip to content

Conversation

@dhayab
Copy link
Member

@dhayab dhayab commented Oct 15, 2024

Summary

This PR changes how FacetHit is imported by conditionally returning the proper exported name, as algolia search v5 changed this to FacetHits.

See Slack convo for more information.

Result

Projects that depend on autocomplete and which use algoliasearch@5 can now successfully build.

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit cafc98c:

Sandbox Source
@algolia/autocomplete-example-github-repositories-custom-plugin Configuration
@algolia/autocomplete-example-instantsearch Configuration
@algolia/autocomplete-example-playground Configuration
@algolia/autocomplete-example-preview-panel-in-modal Configuration
@algolia/autocomplete-example-starter-algolia Configuration
@algolia/autocomplete-example-starter Configuration
@algolia/autocomplete-example-reshape Configuration
@algolia/autocomplete-example-vue Configuration

@dhayab dhayab requested review from Haroenv and sarahdayan October 15, 2024 12:04
/** @ts-ignore */
v4: ClientSearch.FacetHit;
/** @ts-ignore */
v5: AlgoliaSearch.FacetHits;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FacetHit_s_ is a singular hit?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dhayab dhayab merged commit 7d14539 into next Oct 15, 2024
1 check passed
@dhayab dhayab deleted the fix/algoliasearch-v5-facethits branch October 15, 2024 15:56
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.

3 participants