unstale

npm / @docusaurus/core

@docusaurus/core

What changed in @docusaurus/core 2 to 3, from its official release notes, upgrade guides and advisories. Also covers @docusaurus/faster, @docusaurus/module-type-aliases, @docusaurus/preset-classic, @docusaurus/tsconfig, @docusaurus/types. Sources checked 2026-10-19.

8 breaking1 security9 new APIs and options1 performance4 behavior and defaults2 tooling20 fixes and other

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

npx @unstale/cli init

@unstale/cli 0.2.0 on npm

@docusaurus/core 330 changes

Breaking changes 1

  • Docusaurus v3 requires TypeScript v5.1 or later, so TypeScript users must upgrade their compiler when upgrading.

    3.0.0upgrade guide

Security 1

New APIs and options 5

  • Supports custom HTML elements in head tags.

    3.10.0release notes

  • Adds a flag for Git Eager VCS support through the experimental Faster configuration.

    3.10.0release notes

  • Adds a future v4 flag to disable MDX 1 compatibility by default.

    3.10.0release notes

  • Adds a future v4 flag for site storage namespacing.

    3.10.0release notes

  • Adds a siteConfig API for experimental VCS support.

    3.10.0release notes

Performance 1

Behavior and default changes 2

  • Docusaurus Faster is stable, and a v4 future flag turns it on by default.

    3.10.0release notes

  • Promotes siteConfig.storage to stable.

    3.10.0release notes

Tooling 1

  • TypeScript users are directed to replace the external @tsconfig/docusaurus package with the official @docusaurus/tsconfig package.

    3.0.0upgrade guide

Fixes and other changes 19

  • Passes --host to server.listen() when running docusaurus serve.

    3.10.2release notes

  • Avoids transforming dotted directory links into assets.

    3.10.2release notes

  • Fixes edge cases in extractLeadingEmoji().

    3.10.2release notes

  • Preserves author names containing commas when parsing git log.

    3.10.2release notes

  • Accepts boolean attributes in headTags config validation.

    3.10.2release notes

  • HTTPS now supports non-RSA TLS certificates.

    3.10.2release notes

  • Uses the locale URL in the site config.

    3.10.2release notes

  • Removes redundant sidebar label titles.

    3.10.2release notes

  • Preserves lastmod when its timestamp is the epoch (0).

    3.10.2release notes

  • Fixed a webpackbar bug caused by a webpack breaking change.

    3.10.1release notes

  • Fix the validation logic for Algolia AskAI.

    3.9.2release notes

  • Improve Arabic theme translations.

    3.9.2release notes

  • Disable CSS counter minification.

    3.9.2release notes

  • Remove the Edit this page button from print view.

    3.9.2release notes

  • Allow i18n.localeConfigs.translate during validation.

    3.9.2release notes

  • Fix a bug that incorrectly required the Mermaid ELK layout dependency on v3.9.

    3.9.2release notes

  • Add missing Polish theme translations.

    3.9.2release notes

  • Fix CSS scroll-margin-top behavior when clicking footnote items.

    3.9.2release notes

  • Support the sidebar_key front matter attribute in docs.

    3.9.2release notes

@docusaurus/core 215 changes

Breaking changes 7

  • Versioned docs keep the original front matter id instead of changing it to include the version; Docusaurus sets the versioned ID internally.

    2.0.0upgrade guide

  • MDX parses Markdown more strictly and fails builds on errors; HTML elements must be replaced by JSX elements.

    2.0.0upgrade guide

  • MDX style attributes must use JSX style objects rather than HTML-style strings.

    2.0.0upgrade guide

  • Use the <Translate> component with an id and description instead of the Docusaurus v1 <translate> component.

    2.0.0upgrade guide

  • Versioned sidebar references use this format for versioned docs IDs instead of version-${version}-${original_id}.

    2.0.0upgrade guide

  • Versioned docs use snapshots rather than fallback across versions, so each version must contain its own docs, including unchanged content.

    2.0.0upgrade guide

  • Versioned sidebars must be populated for each version under the snapshot approach, rather than relying on another version's sidebar.

    2.0.0upgrade guide

New APIs and options 4

  • Build a site for one locale at a time by passing a locale, such as fr.

    2.0.0upgrade guide

  • Add --mdx to automatically convert Markdown content to MDX during migration.

    2.0.0upgrade guide

  • Add --page to automatically migrate pages to v2.

    2.0.0upgrade guide

  • Code translations are added at this path using Chrome i18n JSON format.

    2.0.0upgrade guide

Behavior and default changes 2

  • Docusaurus 2 generates a single-page application and loads React in the browser, enabling more customizability.

    2.0.0upgrade guide

  • Docusaurus 2 can be used to build websites beyond documentation sites, including blogs and product landing pages.

    2.0.0upgrade guide

Tooling 1

  • A migration CLI handles many parts of migrating an existing Docusaurus 1 site to Docusaurus 2; some parts still require manual migration.

    2.0.0upgrade guideupgrade guide

Fixes and other changes 1

  • Localized content is generally found under this path in Docusaurus v2.

    2.0.0upgrade guide