Skip to content

Releases: algolia/algoliasearch-client-javascript

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

4.18.0

23 Jun 10:08
f093498
Compare
Choose a tag to compare

v4.18.0

  • fix(types): union SearchForFacetValuesResponse type for multipleQueries (#1460) (6a786f1), closes #1460
  • feat(cache-browser-local-storage): Implemented TTL support to cached items (#1457) (9092414), closes #1457

4.17.2

08 Jun 12:46
a5c6a64
Compare
Choose a tag to compare

v4.17.2

  • fix(search): fix wait method for updateApiKey request (#1464) (edc629d), closes #1464
  • docs(SearchOptions): fix jsdoc of sortFacetValuesBy (#1463) (a4309c7), closes #1463

4.17.1

24 May 14:14
e000362
Compare
Choose a tag to compare

v4.17.1

  • fix(recommend): Align getRecommendations type with actual implementation (#1459) (d18391b), closes #1459