fumadocs-core 16.0.0
Major Changes
-
851897c: Remove
fumadocs-core/sidebarAPIwhy: no longer used by Fumadocs UI, and the abstraction isn't good enough.
migrate: The original component is mostly a wrapper of
react-remove-scroll, you can use Shadcn UI for pre-built sidebars. -
4049ccc: Remove
fumadocs-core/serverexportgetGithubLastEdit: Moved tofumadocs-core/content/github.getTableOfContents: Moved tofumadocs-core/content/toc.PageTreeand page tree utilities: Moved tofumadocs-core/page-tree.TOCItemType,TableOfContents: Moved tofumadocs-core/toc.createMetadataImage: Use the Next.js Metadata API instead.
-
429c41a: Switch to Shiki JavaScript Regex engine by default
This is important for Cloudflare Worker compatibility, JavaScript engine is the new default over Oniguruma (WASM).
rehype-code: replaced theexperimentalJSEngineoption withengine: js | oniguruma.fumadocs-core/highlight: use JS engine by default, drop custom engine support, use Shiki directly instead.
-
5210f18: Set minimal React.js version to 19.2.0
19.2 has multiple crucial updates that can improve Fumadocs' performance, and it should works seamlessly on mainstream React.js frameworks.
As a consequence, Next.js 16 is now the minimal version when using Fumadocs UI because Next.js always uses the internal canary version of React.js.
-
42f09c3: Remove deprecated APIs
fumadocs-ui/page:- removed
<DocsCategory />. - removed
breadcrumbs.fulloption from<DocsPage />.
- removed
fumadocs-core/search/algolia: renamed optiondocumenttoindexName.fumadocs-core/search:- remove deprecated signature of
createFromSource(): migrate to newer usage instead.export function createFromSource<S extends LoaderOutput<LoaderConfig>>( source: S, pageToIndexFn?: (page: InferPageType<S>) => Awaitable<AdvancedIndex>, options?: Omit<Options<S>, 'buildIndex'>, ): SearchAPI; - remove deprecated parameters in
useSearch(), pass them in the client object instead.
- remove deprecated signature of
fumadocs-core/highlight: remove deprecatedwithPrerenderScriptandloadingoptions fromuseShiki().fumadocs-core/i18n: removedcreateI18nMiddleware, import fromfumadocs-core/i18n/middlewareinstead.fumadocs-core/source:- removed deprecated
transformers,pageTree.attach*options fromloader(). - removed deprecated
page.fileproperty. - removed
FileInfo&parseFilePathutilities.
- removed deprecated
-
55afd8a: Migrate to New Orama Cloud
@orama/coreis the new version of Orama Cloud client. See their docs for details.When using Fumadocs' Orama Cloud integration, you need to use the new client instead:
import { sync } from 'fumadocs-core/search/orama-cloud'; import { OramaCloud } from '@orama/core'; // update this const orama = new OramaCloud({ projectId: '<project id>', apiKey: '<private api key>', }); await sync(orama, { index: '<data source id>', documents: records, });
Minor Changes
- cbc93e9: Disable
singleby default onfumadocs-core/tocAPI
Patch Changes
- 230c6bf: let
getPageTreePeershandle i18n