npm / @astrojs/starlight
@astrojs/starlight
What changed in @astrojs/starlight 0.36 to 0.43, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-26.
18 breaking14 new APIs and options6 performance6 behavior and defaults2 tooling57 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@astrojs/starlight 0.436 changes
Breaking changes 4
An error is raised if an aside receives an icon name matching a property of Object.prototype, such as constructor or toString.
Starlight updates i18next to v27; users of Starlight’s translation APIs directly should consult i18next’s migration guide for potentially breaking changes.
Starlight now respects Astro’s configured scopedStyleStrategy and defaults to Astro’s "attribute" strategy instead of forcing "where", which may affect CSS specificity and styling.
The global API used by theme select components has been removed; calling StarlightThemeProvider.updatePickers() will no longer work.
New APIs and options 1
Pagefind’s excludeSelectors configuration is supported to customize how search indexes are built.
Fixes and other changes 1
Fixes a regression that rendered the Aside component’s icon smaller than the icon of Markdown asides.
@astrojs/starlight 0.4232 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 3
Reduces install size by about 400 KB for projects using Astro 7.3.6 or later by switching the internal YAML parser.
Adds a fetchpriority="high" hint to improve hero image loading in browsers.
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 19
Fixes the
twitter:sitemeta tag including a trailing slash when the configured X or Twitter social link ends with/.Improves the color contrast of the search input placeholder text.
Fixes search not loading when the search script runs after the page has finished loading, such as when a Content Security Policy requires scripts to be added dynamically.
Fixes Astro trailingSlash and build.format options not being applied correctly to sidebar links that include a query string or hash.
Fixes localized routes and language switcher links for pages in directories named like Object.prototype properties, such as constructor.
Prevents tables from overflowing and clipping when printing a page.
Autogenerated sidebar groups no longer omit directories whose names match Object.prototype properties, such as constructor or toString.
Fixes empty sidebars when autogenerating entries from the docs root directory with
directory: ''.Fixes error message formatting for projects with Zod ≥4.5 installed.
Production builds now include last-updated dates for pages whose file paths contain special characters.
Fixes a layout shift where the table of contents could appear at the start of the content area before moving to the end as streamed HTML arrives.
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.4122 changes
Breaking changes 2
Adds support for Astro v7 and drops support for Astro v6, so projects must upgrade Astro when updating Starlight.
Drops official support for Chromium-based browsers prior to 111 and Safari-based browsers prior to 16.4.
New APIs and options 7
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.
Adds the
linkicon for use in Starlight.Adds the
link-alticon for use in Starlight.
Performance 2
Optimizes sidebar data generation logic to speed up sites with large sidebars.
Optimizes the icons used by Markdown asides.
Fixes and other changes 11
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.
Keyboard focus stays inside the open mobile menu, preventing it from moving to hidden interactive elements in page content.
Fixes incorrect rendering in projects where Astro’s MDX integration has optimization disabled.
Fixes the table of contents overflowing the viewport when a custom content width exceeds available space.
Fixes a dependency resolution issue introduced in Starlight v0.41.
Fixes Markdown processing being potentially applied to files that should not be processed.
@astrojs/starlight 0.401 changes
Breaking changes 1
The minimum supported Astro version is now v6.4.5, so Starlight and Astro must be updated together.
@astrojs/starlight 0.397 changes
Breaking changes 1
Sidebar groups must now put
autogenerateinside anitemsarray, which also allows autogenerated links to be mixed with other links in a group.
New APIs and options 1
Adds 13 new icons: clock, desktop, mobile-android, window, database, server, code-branch, notes, question, question-circle, analytics, padlock, and solidjs.
Behavior and default changes 1
Multilingual sites now include an alternate link pointing to the default locale, signaling which language to use when no other is available.
Fixes and other changes 4
Fixes the CSS selector for text-autospace styles in Chromium browsers.
Fixes the version mentioned in an error message related to autogenerated sidebar groups support.
Spacing of items in nested lists is more consistent.
Sidebar groups can expand and collapse without risking layout shift; some devices may show additional sidebar padding to reserve space for scrollbars.
@astrojs/starlight 0.3813 changes
Breaking changes 3
Starlight no longer supports Astro v5; update Astro and official integrations alongside Starlight.
Starlight adds support for Astro v6, so projects should update Astro and official integrations when updating Starlight.
Astro v6 removes the legacy.collections flag and automatic backwards compatibility for legacy content collections, so projects may need to update collections to the Content Layer API.
New APIs and options 1
This temporary flag lets projects upgrade to Astro v6 without immediately updating legacy content collections.
Performance 1
Improves performance of sidebar generation for sites with very large sidebars.
Behavior and default changes 2
Social icon links and language/theme switchers now increase in contrast on hover instead of dimming, matching hover behavior elsewhere in Starlight.
The default body font stack is improved to better support languages such as Chinese, Japanese, and Korean on Windows; custom CSS can restore the previous stack.
Fixes and other changes 6
Fixes aside styling when the component is used without any content.
Fixes a type-checking issue for users on newer versions of TypeScript.
Fixes the missing draft content warning in dev on pages using the hero layout.
Fixes monolingual sites with a region-specific default locale displaying base-language translations instead of the region-specific ones.
Fixes a regression that caused the global tableOfContents configuration to be ignored.
Autocomplete is fixed for components exported from this package path. Some unsupported component-internal files have also moved out of the components directory.
@astrojs/starlight 0.3716 changes
New APIs and options 2
Adds support for the Thai language.
Adds an option to specify additional directories where files should be processed by Starlight’s Markdown pipeline, including content from custom collections rendered with
StarlightPage.
Behavior and default changes 2
Markdown content now uses
break-wordfor common elements, which can affect layouts with implicit sizing and improve word-wrapping legibility.The default sans-serif system font stack drops
-apple-systemandBlinkMacSystemFont, which are no longer needed in browsers officially supported by Starlight.
Tooling 1
Starlight now runs Pagefind using its Node.js API instead of spawning npx, allowing builds to work on platforms where npx is unavailable; build logging is less verbose.
Fixes and other changes 11
Fixes an issue using components containing scripts inside the Steps component with Astro versions >= 5.16.9.
Adds icons for Chrome, Edge, Firefox, and Safari.
Accessible labels for heading anchor links are excluded from Pagefind results.
Sidebar entries no longer receive redundant aria-current="false" attributes.
Fixes finding the first heading in the mobile table of contents when a page has a tall banner.
Fixes edge cases in highlighting the current page heading in the table of contents.
Prevents unwanted font size adjustments on iOS after orientation changes.
Adds support for the Greek language.
Fixes support for providing an absolute URL to the favicon configuration option.
Custom pages no longer need to import
StarlightPagefirst for Starlight’s CSS cascade layers to be set up correctly.The component no longer displays a vertical scrollbar when zooming; the current tab is highlighted with
box-shadowinstead ofmargin-bottomandborder-bottom, which may require custom styling updates.
@astrojs/starlight 0.366 changes
Behavior and default changes 1
Manually specifying sitemap link tags using the head configuration option or frontmatter field now overrides Starlight’s default sitemap link tag, allowing customization of the sitemap link.
Fixes and other changes 5
Improves the error message thrown when using a file in the public/ directory with the customCss configuration option.
Omits the og:description meta tag when Starlight’s description option is unset.
Updates the icon to match the latest version from Seti UI Icons.
Omits the canonical link and og:url meta tag when Astro’s site option is unset.
Spanish UI translations were improved.