In 8087b282, we import methods from @algolia/recommend into algoliasearch to give direct access to recommendations from the search client.
The CJS bundle for @algolia/recommend did not export the methods, only the recommend() method to set up a recommend client. This caused an issue in the v4.23.0 release of algoliasearch as it basically imported undefined methods, which prevented the correct instantiation of the search client.
This PR reexports all methods to ensure they are present when imported by algoliasearch.
It also tests the built algoliasearch bundles, inspired by what we have in InstantSearch.
In 8087b282, we import methods from
@algolia/recommend
intoalgoliasearch
to give direct access to recommendations from the search client.The CJS bundle for
@algolia/recommend
did not export the methods, only therecommend()
method to set up a recommend client. This caused an issue in the v4.23.0 release ofalgoliasearch
as it basically imported undefined methods, which prevented the correct instantiation of the search client.This PR reexports all methods to ensure they are present when imported by
algoliasearch
.It also tests the built algoliasearch bundles, inspired by what we have in InstantSearch.
Fixes #1511