unstale

npm / @docsearch/react

@docsearch/react

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

11 breaking1 security12 new APIs and options4 behavior and defaults10 fixes and other

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

npx @unstale/cli init

@unstale/cli on npm

@docsearch/react 536 changes

Breaking changes 11

  • Closed Sidepanels are excluded from keyboard navigation and the accessibility tree while preserving conversation state.

    5.1.1release notes

  • FacetBar renders checkbox items instead of a radio group, allowing users to select multiple values per facet. Values within a facet are combined with OR; different facets are combined with AND.

    5.1.0release notes

  • Renames the Ask AI assistantId option to agentId.

    5.0.0release notes

  • Removes the Ask AI transport layer.

    5.0.0release notes

  • Ask AI-related props are now nested under a single root askai option.

    5.0.0release notes

  • askAi.indices is now a string array of index names; use askAi.searchParameters for per-index runtime overrides.

    5.0.0release notes

  • Renames the shimmer utility class; update custom style selectors that override it.

    5.0.0release notes

  • Renames the fadeIn keyframe to kebab-case; update custom style selectors that override it.

    5.0.0release notes

  • Renames the shimmerText keyframe to kebab-case; update custom style selectors that override it.

    5.0.0release notes

  • Removes the indexName prop from Sidepanel.

    5.0.0release notes

  • Renames the slideDown keyframe to kebab-case; update custom style selectors that override it.

    5.0.0release notes

Security 1

  • Sanitizes Ask AI Markdown HTML and URLs before rendering to prevent XSS.

    5.0.0release notes

New APIs and options 11

  • Adds a statically importable Sidepanel trigger entry point, allowing the panel and its Ask AI/Markdown dependencies to be dynamically imported only when needed.

    5.1.1release notes

  • Adds a dynamically importable Sidepanel panel entry point so its Ask AI/Markdown dependencies can be loaded only when needed.

    5.1.1release notes

  • Accepts both the legacy single-query input and the batched queries[] shape, and tolerates a missing output.

    5.0.0release notes

  • Adds per-index runtime overrides for Ask AI search parameters.

    5.0.0release notes

  • Exposes relatedSourcesTextPlural for translating plural related-source text.

    5.0.0release notes

  • Adds a font-family variable used across the search button, keyboard keys, modal, and sidepanel, so one override themes every DocSearch surface.

    5.0.0release notes

  • Adds faceted search with filter chips.

    5.0.0release notes

  • Adds a prop that renders a custom action in the modal footer before the Algolia logo.

    5.0.0release notes

  • Adds breadcrumbs to search hits.

    5.0.0release notes

  • Adds badges to search results.

    5.0.0release notes

  • Adds pluralTitleText; titleText is now the singular label and the trigger renders the count with the label.

    5.0.0release notes

Behavior and default changes 3

  • OR groups sharing a single facet key are recognized as that facet's default selection, in addition to single key:value entries.

    5.1.0release notes

  • Moves apiKey into @docsearch/core so it can be configured once and shared.

    5.0.0release notes

  • Moves appId into @docsearch/core so it can be configured once and shared.

    5.0.0release notes

Fixes and other changes 10

  • Fixes pressed feedback on Windows and Linux while preserving the hint's width.

    5.1.2release notes

  • Enter is ignored during IME composition, preventing conversion confirmation from selecting a search result or sending an Ask AI prompt.

    5.1.2release notes

  • Automatic sends now happen only after client-executed tools complete, preventing Ask AI from resending conversations after server-executed tool calls.

    5.1.2release notes

  • Fixes a crash when importing DocSearch bundles in Safari 14 caused by lookbehind feature detection selecting an unsupported regex pattern.

    5.1.1release notes

  • DocSearchAI now accepts Ask AI-specific modal translations.

    5.0.4release notes

  • Fixes the event not being called when selecting an Ask AI item with the Enter key.

    5.0.3release notes

  • Incomplete tool parts are pruned before resending after a stream is stopped mid-tool-call, preventing subsequent questions from being rejected.

    5.0.2release notes

  • The conversation is preserved when opening Ask AI from the results row.

    5.0.2release notes

  • Fixes the missing published export for the keyword-only <DocSearch /> component.

    5.0.1release notes

  • Prevents the slash search shortcut from intercepting key events on focused buttons.

    5.0.0release notes

@docsearch/react 42 changes

New APIs and options 1

  • Adds support for searching across multiple indexes.

    4.0.0release notes

Behavior and default changes 1