unstale

npm / algoliasearch

algoliasearch

What changed in algoliasearch 4 to 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

11 breaking2 security2 deprecations28 new APIs and options3 performance7 behavior and defaults1 tooling25 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

algoliasearch 577 changes

Breaking changes 11

  • AlgoliaDisplayResultsToolConfig was renamed to AlgoliaGroupedResultsToolConfig.

    5.60.0release notes

  • AlgoliaRecommendToolConfigInput and AlgoliaRecommendToolConfigOutput were merged into AlgoliaRecommendToolConfig.

    5.60.0release notes

  • The body type changed from AgentCompletionRequest to AgentCompletionRequestUnion.

    5.60.0release notes

  • This memory request model was removed from the Agent Studio specs.

    5.60.0release notes

  • pValue is now optional in A/B test models, so code must not assume it is always present.

    5.60.0release notes

  • ToolConfig was renamed to ToolConfigOrBooleanUnion.

    5.60.0release notes

  • The migratedAbTestID field is removed from the A/B Testing V3 API, which may require changes to code using it.

    5.59.0release notes

  • Removed from Recommend fallback parameters because the API ignores it; code setting this field must be updated.

    5.55.2release notes

  • Removed from the Recommend request because the API ignores it; code setting this field must be updated.

    5.55.2release notes

  • The type field can no longer be updated through AuthenticationUpdate.

    5.48.0release notes

  • The baseRecommendRequest property was removed from the TrendingFacets model to reflect the API response.

    5.48.0release notes

Security 2

  • API keys are masked in ApiError stack traces, reducing the risk of exposing credentials.

    5.61.0release notes

  • Fixes an ingestion configuration leak.

    5.51.0release notes

Deprecations 2

  • The /2 A/B testing endpoints are deprecated; developers should use the newer A/B Testing API.

    5.59.0release notes

  • An empty-objects warning was added to replaceAllObjects, alerting developers when they call it with empty objects.

    5.55.2release notesrelease notes

New APIs and options 28

  • External sources support algoliaDefined ordering.

    5.63.0release notes

  • Composition run requests support per-feed params.

    5.63.0release notes

  • The abtesting-v3 timeseries enum adds user metrics.

    5.61.0release notes

  • A/B test settings endpoints were added to abtesting-v3.

    5.60.0release notes

  • externalProvider was added as a source for the CompAPI client.

    5.60.0release notes

  • A/B testing hypothesis was added to the API.

    5.60.0release notes

  • resultCard was added to renderingContent widgets.

    5.60.0release notes

  • Agentic analytics support was added to the insights spec.

    5.57.0release notes

  • Analytics v3 pattern endpoints were added to the specs.

    5.57.0release notes

  • The ABTest schema in abtesting-v3 now includes decision (declared winner).

    5.57.0release notes

  • Support was added for Request-ID and Correlation-ID.

    5.57.0release notes

  • WithHTTPInfo methods are added to the JavaScript client, allowing developers to access HTTP information.

    5.56.0release notes

  • Agent Studio v1 was added to the clients.

    5.54.0release notes

  • A third fallback type was added to the search response union for responses without hits or facets.

    5.53.0release notes

  • Adds Algolia Index as a native connector in the ingestion client.

    5.52.0release notes

  • Adds feedsOrder to composition run parameters.

    5.52.0release notes

  • Adds query categorization support.

    5.51.0release notes

  • Introduces recommend as a source in the Composition API client.

    5.51.0release notes

  • Adds transformationOptions for configuring transformations.

    5.51.0release notes

  • An optional feedID was added to the composition result set.

    5.49.0release notes

  • Insights API event models now allow additional properties.

    5.48.0release notes

  • The code field can now be set in the AuthOAuth model.

    5.48.0release notes

  • The code field can now be set in the AuthOAuthPartial model.

    5.48.0release notes

  • Introduces multifeed composition behavior as a beta release.

    5.47.0release notes

  • Adds scope to rules.

    5.44.0release notes

  • Adds tags to rules.

    5.44.0release notes

  • Adds the useImagesObjects property to the commercetools source input.

    5.44.0release notes

  • The facets query parameter is now available at run time.

    5.41.0release notes

Performance 2

Behavior and default changes 7

  • The JavaScript client waits and retries after 429 responses according to the Retry-After header.

    5.59.0release notes

  • The default maxRetries value for replaceAllObjects increases from 100 to 800.

    5.55.1release notes

  • The default number of retries increased for customers with huge indices, and the number is now configurable for those who prefer to fail early.

    5.53.0release notes

  • Increases the default maximum retry count.

    5.51.0release notes

  • The clientId field is now optional in the AuthOAuth model.

    5.48.0release notes

  • The clientId field is now optional in the AuthOAuthPartial model.

    5.48.0release notes

  • The conditions field is no longer required in composition rules.

    5.48.0release notes

Tooling 1

  • CompositionBehavior is now a union type for more accurate typing.

    5.48.0release notes

Fixes and other changes 24

  • Clarifies that maxHitsPerQuery is a per-page limit, helping developers understand how the limit applies.

    5.63.0release notes

  • Requests send bodies with Content-Length instead of chunked encoding.

    5.60.0release notes

  • facetFilters is restored to recommend fallbackParameters, so developers can use it as a fallback parameter.

    5.56.0release notes

  • Fixed forwarding of batchSize in chunked push polling.

    5.55.2release notes

  • Fixed pagination for browseSynonyms.

    5.55.2release notes

  • Fixed forwarding of the polling offset in chunked push polling.

    5.55.2release notes

  • The getObjects response type now allows null records, matching API responses that can include them.

    5.55.1release notes

  • Agent Studio package updates were released.

    5.55.0release notes

  • Required parameters are checked for null instead of truthiness, so valid falsey values are not treated as missing.

    5.54.1release notes

  • The listIndices response schema now documents the abTest field.

    5.53.0release notes

  • The JavaScript HTTP requester now handles response stream errors.

    5.53.0release notes

  • The Ingestion API destination payload was updated, which may affect the payload developers send.

    5.52.1release notes

  • Fixes the push helper to smooth traffic.

    5.52.0release notes

  • Corrected package export paths for consistency, which may affect how developers import the package.

    5.50.1release notes

  • Removes a query parameter that the Composition API does not accept.

    5.50.0release notes

  • The deprecated condition field is included in rule schemas.

    5.49.2release notes

  • Corrects the generated getObject type so it has no generic type.

    5.49.2release notes

  • The invalid API format for multi-feed composition was fixed.

    5.49.0release notes

  • The rule consequence schema now includes the redirect property.

    5.48.1release notes

  • The params field is now optional because it is not always returned by the API.

    5.48.1release notes

  • The query field is now optional because it is not always returned by the API.

    5.48.1release notes

  • Fields in the Composition Run search response are no longer required in the client types because they are optional on the API side.

    5.46.3release notes

  • searchForHits now forwards requestOptions, allowing those options to be applied to the request.

    5.40.1release notes

  • Corrected the specifications for required ingestion search parameters.

    5.0.0upgrade guide

algoliasearch 42 changes

Performance 1

Fixes and other changes 1

  • Always deletes the temporary index when replaceAllObjects runs.

    4.25.3release notes