npm / @astrojs/starlight
@astrojs/starlight
What changed in @astrojs/starlight 0.41 to 0.42, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-19.
7 breaking7 new APIs and options2 performance1 tooling14 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@astrojs/starlight 0.4219 changes
Breaking changes 7
Starlight now requires Astro v7.2.10 or later; update Starlight and Astro together.
If used, this integration must be version 7.3.0 or later.
If used, this integration must be version 0.4.0 or later.
The attribute previously added to
<body>while the mobile menu is open is removed; custom code depending on it must use a new selector to detect the open state.The mobile menu button uses the
.sl-menu-buttonclass instead of astarlight-menu-buttonwrapper and no longer usesaria-expanded; use:popover-opento style its open state.Official support drops for Chromium-based browsers before 116, Safari-based browsers before 17.0, and Firefox before 125.
The unused
taglineconfiguration option is removed; configurations that include it can safely drop it without replacement.
New APIs and options 2
Adds a CoffeeScript file icon for the <FileTree> component.
Adds the
fluxericon for developers to use.
Performance 1
Rendering of large nested sidebars is optimized.
Tooling 1
The package is now distributed as JavaScript files with dedicated type declaration files instead of TypeScript source files.
Fixes and other changes 8
Fixes the codePen and node icons slightly extending beyond their bounding box.
Fixes
Failed to resolve dependencywarnings when running the development server in projects using the Cloudflare adapter.Adds support for Icelandic.
Fixes a potential issue with icons being cut off in Firefox when pinch-zooming.
Pages that do not import components from @astrojs/starlight/components no longer include styles for Starlight components used on other pages.
Adds support for the Macedonian language.
Fixes
.ejsandnpm-debug.logfiles displaying the default file icon.The sidebar pane no longer has the popover attribute on desktop viewports, preventing it from remaining in a hidden popover visibility state.
@astrojs/starlight 0.4112 changes
New APIs and options 5
Adds the
hypothesisicon.Adds the
npmxicon.Adds the goodreads icon for developers to use in Starlight.
Adds the whatsApp icon for developers to use.
Adds the forgejo icon for use in Starlight projects.
Performance 1
Optimizes sidebar data generation logic to speed up sites with large sidebars.
Fixes and other changes 6
Fixes layout issues and prevents anchor links from appearing for hidden headings when markdown.headingLinks is enabled or the AnchorHeading component is used.
Adds missing Expressive Code translations for Arabic, Hindi, Italian, Japanese, Korean, Portuguese, Simplified Chinese, and Traditional Chinese.
Fixes localization of code block UI elements when using the Sätteri Markdown processor.
Fixes processing of code examples in RTL languages when using Astro’s Sätteri Markdown processor.
Fixes support for modifying Zod enums when passing the extend option to docsSchema().
Fixes support for links containing a protocol like mailto: in the sidebar.