# What changed in algoliasearch

> 21 changes in algoliasearch 5 from its official release notes, upgrade guides and advisories: 9 breaking, 2 deprecations, 8 new APIs and options. Each one cited. Sources checked 2026-10-19. HTML: https://unstale.sh/npm/algoliasearch/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## algoliasearch 5

### Breaking changes

- AlgoliaDisplayResultsToolConfig was renamed to AlgoliaGroupedResultsToolConfig. (5.60.0) — [release notes](https://github.com/algolia/algoliasearch-client-javascript/releases/tag/5.60.0)
- AlgoliaRecommendToolConfigInput and AlgoliaRecommendToolConfigOutput were merged into AlgoliaRecommendToolConfig. (5.60.0) — [release notes](https://github.com/algolia/algoliasearch-client-javascript/releases/tag/5.60.0)
- The body type changed from AgentCompletionRequest to AgentCompletionRequestUnion. (5.60.0) — [release notes](https://github.com/algolia/algoliasearch-client-javascript/releases/tag/5.60.0)
- This memory request model was removed from the Agent Studio specs. (5.60.0) — [release notes](https://github.com/algolia/algoliasearch-client-javascript/releases/tag/5.60.0)
- This memory request model was removed from the Agent Studio specs. (5.60.0) — [release notes](https://github.com/algolia/algoliasearch-client-javascript/releases/tag/5.60.0)
- This memory request model was removed from the Agent Studio specs. (5.60.0) — [release notes](https://github.com/algolia/algoliasearch-client-javascript/releases/tag/5.60.0)
- pValue is now optional in A/B test models, so code must not assume it is always present. (5.60.0) — [release notes](https://github.com/algolia/algoliasearch-client-javascript/releases/tag/5.60.0)
- ToolConfig was renamed to ToolConfigOrBooleanUnion. (5.60.0) — [release notes](https://github.com/algolia/algoliasearch-client-javascript/releases/tag/5.60.0)
- The migratedAbTestID field is removed from the A/B Testing V3 API, which may require changes to code using it. (5.59.0) — [release notes](https://github.com/algolia/algoliasearch-client-javascript/releases/tag/5.59.0)

### Deprecations

- The /2 A/B testing endpoints are deprecated; developers should use the newer A/B Testing API. (5.59.0) — [release notes](https://github.com/algolia/algoliasearch-client-javascript/releases/tag/5.59.0)
- An empty-objects warning was added to replaceAllObjects, alerting developers when they call it with empty objects. (5.57.0) — [release notes](https://github.com/algolia/algoliasearch-client-javascript/releases/tag/5.57.0)

### New APIs and options

- A/B test settings endpoints were added to abtesting-v3. (5.60.0) — [release notes](https://github.com/algolia/algoliasearch-client-javascript/releases/tag/5.60.0)
- externalProvider was added as a source for the CompAPI client. (5.60.0) — [release notes](https://github.com/algolia/algoliasearch-client-javascript/releases/tag/5.60.0)
- A/B testing hypothesis was added to the API. (5.60.0) — [release notes](https://github.com/algolia/algoliasearch-client-javascript/releases/tag/5.60.0)
- resultCard was added to renderingContent widgets. (5.60.0) — [release notes](https://github.com/algolia/algoliasearch-client-javascript/releases/tag/5.60.0)
- Agentic analytics support was added to the insights spec. (5.57.0) — [release notes](https://github.com/algolia/algoliasearch-client-javascript/releases/tag/5.57.0)
- Analytics v3 pattern endpoints were added to the specs. (5.57.0) — [release notes](https://github.com/algolia/algoliasearch-client-javascript/releases/tag/5.57.0)
- The ABTest schema in abtesting-v3 now includes decision (declared winner). (5.57.0) — [release notes](https://github.com/algolia/algoliasearch-client-javascript/releases/tag/5.57.0)
- Support was added for Request-ID and Correlation-ID. (5.57.0) — [release notes](https://github.com/algolia/algoliasearch-client-javascript/releases/tag/5.57.0)

### Behavior and default changes

- The JavaScript client waits and retries after 429 responses according to the Retry-After header. (5.59.0) — [release notes](https://github.com/algolia/algoliasearch-client-javascript/releases/tag/5.59.0)

### Fixes and other changes

- Requests send bodies with Content-Length instead of chunked encoding. (5.60.0) — [release notes](https://github.com/algolia/algoliasearch-client-javascript/releases/tag/5.60.0)
