Skip to content

Releases: algolia/algoliasearch-client-javascript

4.23.2

27 Mar 15:31
3ce4eae
Compare
Choose a tag to compare

v4.23.2

4.23.1

26 Mar 16:41
8e196d6
Compare
Choose a tag to compare

v4.23.1

  • fix(recommend): export recommend methods to use them in algoliasearch (#1512) (5fc5f4f), closes #1512

4.23.0

26 Mar 10:27
19d4d3b
Compare
Choose a tag to compare

v4.23.0

  • feat(search): fetch recommendations directly from algoliasearch (#1509) (8087b28), closes #1509

4.22.1

09 Jan 10:17
252228a
Compare
Choose a tag to compare

v4.22.1

  • fix(recommend): update recommended-for-you model type (#1500) (f94ce64), closes #1500

4.22.0

14 Dec 16:32
5a2a128
Compare
Choose a tag to compare

v4.22.0

  • fix(recommend): update TrendingFacetHit facetValue type to string (#1498) (ac9d6e2), closes #1498

Why

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.

How

To simplify the code, we can remove the type argument TObject for trending-facets

Impact

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(/**/)

4.21.1

12 Dec 15:01
ea7b9b1
Compare
Choose a tag to compare

v4.21.1

  • fix(recommend): RecommendedForYouQuery userToken should be required (#1496) (d20b253), closes #1496

4.21.0

11 Dec 13:37
ccead52
Compare
Choose a tag to compare

v4.21.0

4.20.0

12 Sep 10:16
70f392e
Compare
Choose a tag to compare

v4.20.0

4.19.1

20 Jul 11:12
038c701
Compare
Choose a tag to compare

v4.19.1

  • fix(recommend): Add Type RecommendQueriesResponse from old MultipleQueriesResponse for recommend (#1472) (36285b2), closes #1472

4.19.0

18 Jul 12:40
a38a628
Compare
Choose a tag to compare

v4.19.0

  • feat(abtests): add outlier count to variant response payload (#1467) (b88a726), closes #1467
  • feat(recommend): add "Looking Similar" model (#1469) (01eac7f), closes #1469