Releases: algolia/algoliasearch-client-javascript
Releases · algolia/algoliasearch-client-javascript
4.24.0
v4.24.0
- chore: release v4.24.0 (#1528) (9f8956c), closes #1528
- chore: revert "chore: release v4.24.0 (#1528)" (#1531) (6a67e85), closes #1528 #1531
- feat(types): add
banners
inrenderingContent
(#1522) (5828389), closes #1522 - feat(types): add hide in renderingContent facet values (#1529) (ed320a8), closes #1529
- feat(types): add missing virtual attribute to Index type (#1530) (ba2d858), closes #1530
- fix(support): redirect to ticket link (#1527) (f73a86a), closes #1527
4.23.3
4.23.2
4.23.1
4.23.0
4.22.1
4.22.0
v4.22.0
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(/**/)