---
title: "@docsearch/js 5.0.4 Breaking Changes on npm | Since.dev"
description: "What each @docsearch/js release removed, renamed or changed: 37 breaking changes in 8 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/@docsearch/js
last_updated: 2026-12-04
---

# @docsearch/js breaking changes

@docsearch/js 5.0.4 (August 24, 2026) is its newest release with breaking changes. The first: Signature changed DocSearchProps.translations. Every breaking API change we have recorded in @docsearch/js on npm: 37 breaking changes in 8 versions. Below, its 8 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `5.2.0`, released October 29, 2026. [Source repository](https://github.com/algolia/docsearch)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [4.7.0](#v-4-7-0) to [5.0.4](#v-5-0-4): 30 breaking changes in 3 versions.
- From [4.0.0](#v-4-0-0) to [5.0.4](#v-5-0-4): 36 breaking changes in 7 versions.

## @docsearch/js 5.0.4 breaking changes

@docsearch/js 5.0.4, released August 24, 2026: 1 breaking change.

- **Signature changed** `DocSearchProps.translations`  

Was translations?: DocSearchTranslations; now translations?: DocSearchAITranslations. [npmjs.com](https://www.npmjs.com/package/@docsearch/js/v/5.0.4)

## @docsearch/js 5.0.2 breaking changes

@docsearch/js 5.0.2, released August 17, 2026: 1 breaking change.

- **Signature changed** `docsearch:DocSearchProps`  

Was type DocSearchProps = DocSearchProps$2\<DocSearchProps$1>; now type DocSearchProps = DocSearchProps$1\<DocSearchProps$2>. [npmjs.com](https://www.npmjs.com/package/@docsearch/js/v/5.0.2)

## @docsearch/js 5.0.0 breaking changes

@docsearch/js 5.0.0, released August 6, 2026: 28 breaking changes.

- **Removed**  

The Ask AI transport layer has been removed. Code that relies on it must be updated. [github.com](https://github.com/algolia/docsearch/releases/tag/%40docsearch/js%405.0.0)
- **Removed** `DocSearchProps.apiKey`  

DocSearchProps.apiKey was removed in @docsearch/js 5.0.0 [npmjs.com](https://www.npmjs.com/package/@docsearch/js/v/5.0.0)
- **Removed** `DocSearchProps.appId`  

DocSearchProps.appId was removed in @docsearch/js 5.0.0 [npmjs.com](https://www.npmjs.com/package/@docsearch/js/v/5.0.0)
- **Removed** `DocSearchProps.askAi`  

DocSearchProps.askAi was removed in @docsearch/js 5.0.0 [npmjs.com](https://www.npmjs.com/package/@docsearch/js/v/5.0.0)
- **Removed** `DocSearchProps.disableUserPersonalization`  

DocSearchProps.disableUserPersonalization was removed in @docsearch/js 5.0.0 [npmjs.com](https://www.npmjs.com/package/@docsearch/js/v/5.0.0)
- **Removed** `DocSearchProps.getMissingResultsUrl`  

DocSearchProps.getMissingResultsUrl was removed in @docsearch/js 5.0.0 [npmjs.com](https://www.npmjs.com/package/@docsearch/js/v/5.0.0)
- **Removed** `DocSearchProps.indexName`  

DocSearchProps.indexName was removed in @docsearch/js 5.0.0 [npmjs.com](https://www.npmjs.com/package/@docsearch/js/v/5.0.0)
- **Removed** `DocSearchProps.indices`  

DocSearchProps.indices was removed in @docsearch/js 5.0.0 [npmjs.com](https://www.npmjs.com/package/@docsearch/js/v/5.0.0)
- **Removed** `DocSearchProps.initialQuery`  

DocSearchProps.initialQuery was removed in @docsearch/js 5.0.0 [npmjs.com](https://www.npmjs.com/package/@docsearch/js/v/5.0.0)
- **Removed** `DocSearchProps.insights`  

DocSearchProps.insights was removed in @docsearch/js 5.0.0 [npmjs.com](https://www.npmjs.com/package/@docsearch/js/v/5.0.0)

And 18 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## @docsearch/js 4.7.0 breaking changes

@docsearch/js 4.7.0, released July 28, 2026: 1 breaking change.

- **Behavior changed**  

Markdown HTML in Ask AI answers is sanitized to prevent XSS, so raw HTML in answers may render differently than before. [github.com](https://github.com/algolia/docsearch/blob/v4.7.0/CHANGELOG.md)

## @docsearch/js 4.5.0 breaking changes

@docsearch/js 4.5.0, released January 20, 2026: 3 breaking changes.

- **Behavior changed**  

The commit is marked as a breaking change to the JS package, but the commit text does not say which existing behavior changes. Check the commit diff before upgrading. [github.com](https://github.com/algolia/docsearch/commit/283ff35e6c4d8d613e84703a8fdcd4a964baba5d)
- **Signature changed** `default`  

Was function docsearch(allProps: DocSearchProps): () => void; now function docsearch(allProps: DocSearchProps): DocSearchInstance. [npmjs.com](https://www.npmjs.com/package/@docsearch/js/v/4.5.0)
- **Signature changed** `DocSearchProps`  

Was type DocSearchProps = DocSearchProps$1 & {container: HTMLElement | string; environment?: typeof window;}; now type DocSearchProps = DocSearchCallbacks & Omit\<DocSearchProps$1, 'onSidepanelClose' | 'onSidepanelOpen'> & {container... [npmjs.com](https://www.npmjs.com/package/@docsearch/js/v/4.5.0)

## @docsearch/js 4.4.0 breaking changes

@docsearch/js 4.4.0, released December 22, 2025: 1 breaking change.

- **Signature changed** `DocSearchProps.keyboardShortcuts`  

Was keyboardShortcuts?: KeyboardShortcuts; now keyboardShortcuts?: DocSearchModalShortcuts. [npmjs.com](https://www.npmjs.com/package/@docsearch/js/v/4.4.0)

## Older versions

2 older versions.

### @docsearch/js 4.3.0 breaking changes

@docsearch/js 4.3.0, released November 4, 2025: 1 breaking change.

- **Signature changed** `default`  

Was function docsearch(props: DocSearchProps): () => void; now function docsearch(allProps: DocSearchProps): () => void. [npmjs.com](https://www.npmjs.com/package/@docsearch/js/v/4.3.0)

### @docsearch/js 4.0.0 breaking changes

@docsearch/js 4.0.0, released September 15, 2025: 1 breaking change.

- **Signature changed** `default`  

Was function docsearch(props: DocSearchProps): void; now function docsearch(props: DocSearchProps): () => void. [npmjs.com](https://www.npmjs.com/package/@docsearch/js/v/4.0.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
