npm / @docsearch/react
@docsearch/react
What changed in @docsearch/react 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-19.
2 breaking2 new APIs and options1 behavior and defaults6 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@docsearch/react 511 changes
Breaking changes 2
Closed Sidepanels are excluded from keyboard navigation and the accessibility tree while preserving conversation state.
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.
New APIs and options 2
Adds a statically importable Sidepanel trigger entry point, allowing the panel and its Ask AI/Markdown dependencies to be dynamically imported only when needed.
Adds a dynamically importable Sidepanel panel entry point so its Ask AI/Markdown dependencies can be loaded only when needed.
Behavior and default changes 1
OR groups sharing a single facet key are recognized as that facet's default selection, in addition to single key:value entries.
Fixes and other changes 6
Fixes pressed feedback on Windows and Linux while preserving the hint's width.
Enter is ignored during IME composition, preventing conversion confirmation from selecting a search result or sending an Ask AI prompt.
Automatic sends now happen only after client-executed tools complete, preventing Ask AI from resending conversations after server-executed tool calls.
Fixes a crash when importing DocSearch bundles in Safari 14 caused by lookbehind feature detection selecting an unsupported regex pattern.
DocSearchAI now accepts Ask AI-specific modal translations.
Fixes the event not being called when selecting an Ask AI item with the Enter key.