NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #3800 most downloaded on npm
JavaScript client for recommend
Last release 11 days ago
09 Sep 2026
Ships fairly regularly
a new release about every 2 weeks
Nearly every release is documented
notes for 58 of the last 60 stable releases
2 versions withdrawn
withdrawn after publishing
5 years old
272 releases · first in 2021
One column per quarter.
fix(recommend): only export default function (#1514) (4a04d8e), closes #1514
feat(search): fetch recommendations directly from algoliasearch (#1509) (8087b28), closes #1509
fix(recommend): update recommended-for-you model type (#1500) (f94ce64), closes #1500
fix(recommend): update TrendingFacetHit facetValue type to string (#1498) (ac9d6e2), closes #1498
The trending-facets API only returns type string for facetValue.
A follow-up on #1494 as other models return items/hits which are of type RecordWithObjectID
However, trending-facets model returns a list of TrendingFacetHit which (by definition) don't have an objectID property.
To simplify the code, we can remove the type argument TObject for trending-facets
If you're not using TypeScript or the trending-facets model, there is nothing to change. You can ignore the following.
Otherwise, you will need to remove the type argument passed to getTrendingFacets and the code goes from this:
type FacetType = {
facetName: string;
facetValue: string;
}
const { results } = await client.getTrendingFacets<FacetType>(/**/)
To this:
const { results } = await client.getTrendingFacets(/**/)
fix(recommend): RecommendedForYouQuery userToken should be required (#1496) (d20b253), closes #1496
feat(recommend): add recommended-for-you model (#1490) (004f033), closes #1490
feat(search): add inference ACL to API key object (#1479) (3a95126), closes #1479
fix(recommend): Add Type RecommendQueriesResponse from old MultipleQueriesResponse for recommend (#1472) (36285b2), closes #1472
feat(abtests): add outlier count to variant response payload (#1467) (b88a726), closes #1467
fix(types): union SearchForFacetValuesResponse type for multipleQueries (#1460) (6a786f1), closes #1460
fix(recommend): Align getRecommendations type with actual implementation (#1459) (d18391b), closes #1459
feat: update ab test typing (#1455) (f53c72c), closes #1455
feat(neuralsearch): adding the semanticSearch settings to client-search (#1450) (a478ffd), closes #1450
feat: add mode to settings types (#1439) (89fd80e), closes #1439
fix(recommend): remove unused trendingFacets props (#1433) (ffbfc05), closes #1433
fix(types): add abTestID to SearchResponse (#1419) (05059f2), closes #1419
fix(types): Updating searchoptions with explain attribute (#1415) (c46932e), closes #1415
fix(search): add type for queryLanguages (#1406) (61c2976), closes #1406 #1405
feat(recommend): Add trending types and methods (#1396) (6882ec8), closes #1396
fix(types): allow mixed arrays in numeric and tag filters (#1395) (326c833), closes #1395
fix(types): allow mix of strings and arrays in facetFilters (#1384) (dfc2a09), closes #1384
feat(types): add reranking engine settings to types (#1378) (e9c0f30), closes #1378
fix(insideBoundingBox): allow strings (#1310) (87d5b0d), closes #1310
fix(recommend): prevent undefined threshold (#1300) (7d21d3c), closes #1300
fix(recommend): expose correct key on window in umd (#1298) (169b12a), closes #1298
fix(answers): omit original hits in response (#1293) (fb62b15), closes #1293
Nothing published for this version
The @algolia/client-recommendation is now deprecated, please use @algolia/client-personalization instead. If you were using initRecommendation from th…
The @algolia/client-recommendation is now deprecated, please use @algolia/client-personalization instead. If you were using initRecommendation from the algoliasearch package, please use initPersonalization instead.
Your coding agent can read these notes before it upgrades. Set up the MCP server →