Bump DocSearch to 5.0.1 - #48983
Open
code-infra-renovate[bot] wants to merge 6 commits into
Open
Conversation
code-infra-renovate
Bot
force-pushed
the
renovate/major-docsearch
branch
from
August 17, 2026 07:34
a658274 to
69e214b
Compare
code-infra-renovate
Bot
force-pushed
the
renovate/major-docsearch
branch
from
August 17, 2026 11:15
69e214b to
c98a808
Compare
code-infra-renovate
Bot
force-pushed
the
renovate/major-docsearch
branch
from
August 17, 2026 13:26
c98a808 to
2788f3b
Compare
code-infra-renovate
Bot
force-pushed
the
renovate/major-docsearch
branch
from
August 18, 2026 09:19
2788f3b to
b4f4926
Compare
code-infra-renovate
Bot
force-pushed
the
renovate/major-docsearch
branch
from
August 19, 2026 07:25
b4f4926 to
c2e94b2
Compare
code-infra-renovate
Bot
force-pushed
the
renovate/major-docsearch
branch
from
August 19, 2026 15:21
c2e94b2 to
61cfe0e
Compare
code-infra-renovate
Bot
force-pushed
the
renovate/major-docsearch
branch
from
August 20, 2026 06:18
61cfe0e to
5c7ba6e
Compare
DocSearch v5 replaces `indexName` and `searchParameters` with an `indices` array, drops `onAskAiToggle` from the keyword-only modal, and ships an ESM-only entry point. See https://docsearch.algolia.com/docs/migrating-from-v4/. - Move the index name and the search parameters into `indices`. Add `hierarchy.lvl6` to `attributesToRetrieve`, because v5 builds the hit breadcrumbs from the full hierarchy. - Remove `onAskAiToggle` from `<DocSearchModal>`. The keyword-only modal no longer accepts it. `useDocSearchKeyboardEvents` still requires it. - Add `@docsearch/react` to `transpilePackages`. Next externalizes the ESM package for SSR, and its CJS `@algolia/autocomplete-core` dependency then breaks named-export interop. - Keep the hit title and the hit path on one line. v5 wraps them below 768px, which turns the compact rows into multi-line cards. - Refresh the override comments that named v4. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Deploy previewBundle size
Check out the code infra dashboard for more information about this PR. |
Contributor
Author
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
v5 adds `.DocSearch-Dropdown-Container .DocSearch-Hits-padded
{ padding-inline-start: 1em }`, which indents the result cards but not the
section headings above them. Reset the padding to keep both flush, as in v4.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
v5 adds `--docsearch-font-family` and applies it to `.DocSearch-Modal`, so the modal switched from the docs typeface to a system font stack. v4 had no such variable and inherited the page font. The metrics differ enough to matter: the underline the stylesheet draws under matched text moved down past the `overflow: hidden` clip on `.DocSearch-Hit-title`, so the highlight lost its underline. Setting the variable to `inherit` restores both the typeface and the v4 geometry. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
`.DocSearch-Hit-title` clips its overflow so the row stays one line, and DocSearch underlines matched text 0.3em below the baseline. At the 14px title that lands 0.5px inside the clip, so whether the browser paints it comes down to how a half pixel rounds, which changes with zoom and device pixel ratio. The 12px path has roughly three times the room and never lost it. Pull the underline closer: 4.2px to 1.96px of offset, 0.5px to 2.74px of room, with no layout change. The typeface fix before this restored the v4 geometry; this removes the sub-pixel margin that made it fragile in v4 too. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Only `pnpm-lock.yaml` conflicted. Resolved by keeping this branch's lockfile, reinstalling against the merged manifests and deduping, which keeps `@docsearch/react` pinned at 5.0.1 to match the `@docsearch/css` CDN URL that `AppSearch` loads. A plain reinstall from master's lockfile floated it to 5.0.3 and broke that pairing. The only entries left differing from master are `marked@16.4.2` and `undici@5.29.0`, both pulled in by DocSearch v5 through `@ai-sdk`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The version bump alone does not build. DocSearch v5 changes the keyword search API, so
fd68a76adapts the docs. See the migration guide.indexName+searchParameters->indicesarray. Addedhierarchy.lvl6toattributesToRetrieve, because v5 builds the hit breadcrumbs from the full hierarchy.onAskAiTogglefrom<DocSearchModal>. The keyword-only modal no longer accepts it.useDocSearchKeyboardEventsstill requires it.@docsearch/reacttotranspilePackages. Next externalizes the ESM-only package for SSR, and its CJS@algolia/autocomplete-coredependency then breaks named-export interop, so every page falls back to client rendering.padding-inline-startv5 adds to the hit lists. It indented the result cards but not the section headings above them.--docsearch-font-family: inherit. v5 added that variable and applies it to.DocSearch-Modal, so the modal switched from the docs typeface to a system font stack. The different metrics also pushed the underline under matched text past theoverflow: hiddenclip on.DocSearch-Hit-title, so highlights lost their underline.Checked in the dev server and against the current v4 production site: start screen, recent searches, results, no results, hit navigation, Cmd+K,
/, Escape, type-ahead on the focused button, light and dark mode, desktop and mobile.next build --webpackpasses.Visual coverage for this lands separately in #49002.
This PR contains the following updates:
4.7.0→5.0.1^4.7.0→^5.0.1Release Notes
algolia/docsearch (@docsearch/css)
v5.0.1Compare Source
v5.0.0Compare Source
Major Changes
ecd905d: # DocSearch v5-betaDocSearch v5 is a major release that introduces AI-powered answers via Agent
Studio, a refreshed search UI, and a modernized package architecture.
algolia/docsearch (@docsearch/react)
v5.0.1Compare Source
Patch Changes
4ac53c4: Fixes missing published export for keyword only<DocSearch />that was missed in #2884.v5.0.0Compare Source
Major Changes
ecd905d: # DocSearch v5-betaDocSearch v5 is a major release that introduces AI-powered answers via Agent
Studio, a refreshed search UI, and a modernized package architecture.
Configuration
📅 Schedule: (in timezone UTC)
* 0-4 * * 7)🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by self-hosted Renovate.