Skip to content

chore(algolia): upgrade algoliasearch to v5 - #10672

Merged
slorber merged 8 commits into
facebook:mainfrom
millotp:main
Dec 26, 2024
Merged

slorber merged 8 commits into
facebook:mainfrom
millotp:main

Conversation

@millotp

@millotp millotp commented Nov 12, 2024 •

Copy link
Copy Markdown
Contributor

Notes from @slorber

This algoliasearch@v5 upgrade is not considered a breaking change

It's encapsulated in @docsearch/react and in our @theme/SearchPage component.

Also, it was released as a @docsearch/react v3 patch release so newly initialized Docusaurus v3 sites are already using algoliasearch@v5

Motivation

Algolia has released a new major version of the javascript search client.
Since DocSearch is now using the new version, we can also upgrade the docusaurus-theme-search-algolia package to use the latest version of the js client and of DocSearch.
There are a few changes to do in the code to accommodate the new version but nothing breaking, it's mostly around types and imports.

Test Plan

The existing tests are enough to test that every works, I also tried the local website and the search is working, with the user agent containing the latest version.

Test links

Deploy preview: https://deploy-preview-10672--docusaurus-2.netlify.app/

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Argos Add this label to run UI visual regression tests. See argos.yml GH action. CLA Signed Signed Facebook CLA pr: maintenance This PR does not produce any behavior differences to end users when upgrading.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants