npm / algoliasearch
algoliasearch
What changed in algoliasearch 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-19.
9 breaking2 deprecations8 new APIs and options1 behavior and defaults1 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initalgoliasearch 521 changes
Breaking changes 9
AlgoliaDisplayResultsToolConfig was renamed to AlgoliaGroupedResultsToolConfig.
AlgoliaRecommendToolConfigInput and AlgoliaRecommendToolConfigOutput were merged into AlgoliaRecommendToolConfig.
The body type changed from AgentCompletionRequest to AgentCompletionRequestUnion.
This memory request model was removed from the Agent Studio specs.
This memory request model was removed from the Agent Studio specs.
This memory request model was removed from the Agent Studio specs.
pValue is now optional in A/B test models, so code must not assume it is always present.
ToolConfig was renamed to ToolConfigOrBooleanUnion.
The migratedAbTestID field is removed from the A/B Testing V3 API, which may require changes to code using it.
Deprecations 2
The /2 A/B testing endpoints are deprecated; developers should use the newer A/B Testing API.
An empty-objects warning was added to replaceAllObjects, alerting developers when they call it with empty objects.
New APIs and options 8
A/B test settings endpoints were added to abtesting-v3.
externalProvider was added as a source for the CompAPI client.
A/B testing hypothesis was added to the API.
resultCard was added to renderingContent widgets.
Agentic analytics support was added to the insights spec.
Analytics v3 pattern endpoints were added to the specs.
The ABTest schema in abtesting-v3 now includes decision (declared winner).
Support was added for Request-ID and Correlation-ID.
Behavior and default changes 1
The JavaScript client waits and retries after 429 responses according to the Retry-After header.
Fixes and other changes 1
Requests send bodies with Content-Length instead of chunked encoding.