unstale

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

@unstale/cli on npm

@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.

    0.43.0release notes

  • Starlight updates i18next to v27; users of Starlight’s translation APIs directly should consult i18next’s migration guide for potentially breaking changes.

    0.43.0release notes

  • 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.

    0.43.0release notes

  • The global API used by theme select components has been removed; calling StarlightThemeProvider.updatePickers() will no longer work.

    0.43.0release notes

New APIs and options 1

  • Pagefind’s excludeSelectors configuration is supported to customize how search indexes are built.

    0.43.0release notes

Fixes and other changes 1

  • Fixes a regression that rendered the Aside component’s icon smaller than the icon of Markdown asides.

    0.43.1release notes

@astrojs/starlight 0.4232 changes

Breaking changes 7

  • Starlight now requires Astro v7.2.10 or later; update Starlight and Astro together.

    0.42.0release notes

  • If used, this integration must be version 7.3.0 or later.

    0.42.0release notes

  • If used, this integration must be version 0.4.0 or later.

    0.42.0release notes

  • 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.

    0.42.0release notes

  • The mobile menu button uses the .sl-menu-button class instead of a starlight-menu-button wrapper and no longer uses aria-expanded; use :popover-open to style its open state.

    0.42.0release notes

  • Official support drops for Chromium-based browsers before 116, Safari-based browsers before 17.0, and Firefox before 125.

    0.42.0release notes

  • The unused tagline configuration option is removed; configurations that include it can safely drop it without replacement.

    0.42.0release notes

New APIs and options 2

  • Adds a CoffeeScript file icon for the <FileTree> component.

    0.42.4release notes

  • Adds the fluxer icon for developers to use.

    0.42.2release notes

Performance 3

  • Reduces install size by about 400 KB for projects using Astro 7.3.6 or later by switching the internal YAML parser.

    0.42.9release notes

  • Adds a fetchpriority="high" hint to improve hero image loading in browsers.

    0.42.7release notes

  • Rendering of large nested sidebars is optimized.

    0.42.4release notes

Tooling 1

  • The package is now distributed as JavaScript files with dedicated type declaration files instead of TypeScript source files.

    0.42.0release notes

Fixes and other changes 19

  • Fixes the twitter:site meta tag including a trailing slash when the configured X or Twitter social link ends with /.

    0.42.11release notes

  • Improves the color contrast of the search input placeholder text.

    0.42.10release notes

  • 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.

    0.42.10release notes

  • Fixes Astro trailingSlash and build.format options not being applied correctly to sidebar links that include a query string or hash.

    0.42.10release notes

  • Fixes localized routes and language switcher links for pages in directories named like Object.prototype properties, such as constructor.

    0.42.9release notes

  • Prevents tables from overflowing and clipping when printing a page.

    0.42.9release notes

  • Autogenerated sidebar groups no longer omit directories whose names match Object.prototype properties, such as constructor or toString.

    0.42.8release notes

  • Fixes empty sidebars when autogenerating entries from the docs root directory with directory: ''.

    0.42.8release notes

  • Fixes error message formatting for projects with Zod ≥4.5 installed.

    0.42.8release notes

  • Production builds now include last-updated dates for pages whose file paths contain special characters.

    0.42.8release notes

  • 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.

    0.42.7release notes

  • Fixes the codePen and node icons slightly extending beyond their bounding box.

    0.42.6release notes

  • Fixes Failed to resolve dependency warnings when running the development server in projects using the Cloudflare adapter.

    0.42.6release notes

  • Adds support for Icelandic.

    0.42.6release notes

  • Fixes a potential issue with icons being cut off in Firefox when pinch-zooming.

    0.42.6release notes

  • Pages that do not import components from @astrojs/starlight/components no longer include styles for Starlight components used on other pages.

    0.42.6release notes

  • Adds support for the Macedonian language.

    0.42.5release notes

  • Fixes .ejs and npm-debug.log files displaying the default file icon.

    0.42.4release notes

  • The sidebar pane no longer has the popover attribute on desktop viewports, preventing it from remaining in a hidden popover visibility state.

    0.42.1release notes

@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.

    0.41.0release notes

  • Drops official support for Chromium-based browsers prior to 111 and Safari-based browsers prior to 16.4.

    0.41.0release notes

New APIs and options 7

Performance 2

  • Optimizes sidebar data generation logic to speed up sites with large sidebars.

    0.41.11release notes

  • Optimizes the icons used by Markdown asides.

    0.41.1release notes

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.

    0.41.11release notes

  • Adds missing Expressive Code translations for Arabic, Hindi, Italian, Japanese, Korean, Portuguese, Simplified Chinese, and Traditional Chinese.

    0.41.10release notes

  • Fixes localization of code block UI elements when using the Sätteri Markdown processor.

    0.41.8release notes

  • Fixes processing of code examples in RTL languages when using Astro’s Sätteri Markdown processor.

    0.41.7release notes

  • Fixes support for modifying Zod enums when passing the extend option to docsSchema().

    0.41.4release notes

  • Fixes support for links containing a protocol like mailto: in the sidebar.

    0.41.4release notes

  • Keyboard focus stays inside the open mobile menu, preventing it from moving to hidden interactive elements in page content.

    0.41.3release notes

  • Fixes incorrect rendering in projects where Astro’s MDX integration has optimization disabled.

    0.41.2release notes

  • Fixes the table of contents overflowing the viewport when a custom content width exceeds available space.

    0.41.2release notes

  • Fixes a dependency resolution issue introduced in Starlight v0.41.

    0.41.1release notes

  • Fixes Markdown processing being potentially applied to files that should not be processed.

    0.41.0release notes

@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.

    0.40.0release notes

@astrojs/starlight 0.397 changes

Breaking changes 1

  • Sidebar groups must now put autogenerate inside an items array, which also allows autogenerated links to be mixed with other links in a group.

    0.39.0release notes

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.

    0.39.1release notes

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.

    0.39.0release notes

Fixes and other changes 4

  • Fixes the CSS selector for text-autospace styles in Chromium browsers.

    0.39.2release notes

  • Fixes the version mentioned in an error message related to autogenerated sidebar groups support.

    0.39.1release notes

  • Spacing of items in nested lists is more consistent.

    0.39.0release notes

  • Sidebar groups can expand and collapse without risking layout shift; some devices may show additional sidebar padding to reserve space for scrollbars.

    0.39.0release notes

@astrojs/starlight 0.3813 changes

Breaking changes 3

  • Starlight no longer supports Astro v5; update Astro and official integrations alongside Starlight.

    0.38.0release notes

  • Starlight adds support for Astro v6, so projects should update Astro and official integrations when updating Starlight.

    0.38.0release notes

  • 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.

    0.38.0release notes

New APIs and options 1

  • This temporary flag lets projects upgrade to Astro v6 without immediately updating legacy content collections.

    0.38.0release notes

Performance 1

  • Improves performance of sidebar generation for sites with very large sidebars.

    0.38.2release notes

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.

    0.38.0release notes

  • 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.

    0.38.0release notes

Fixes and other changes 6

  • Fixes aside styling when the component is used without any content.

    0.38.4release notes

  • Fixes a type-checking issue for users on newer versions of TypeScript.

    0.38.4release notes

  • Fixes the missing draft content warning in dev on pages using the hero layout.

    0.38.3release notes

  • Fixes monolingual sites with a region-specific default locale displaying base-language translations instead of the region-specific ones.

    0.38.2release notes

  • Fixes a regression that caused the global tableOfContents configuration to be ignored.

    0.38.1release notes

  • Autocomplete is fixed for components exported from this package path. Some unsupported component-internal files have also moved out of the components directory.

    0.38.0release notes

@astrojs/starlight 0.3716 changes

New APIs and options 2

  • Adds support for the Thai language.

    0.37.4release notes

  • 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.

    0.37.0release notes

Behavior and default changes 2

  • Markdown content now uses break-word for common elements, which can affect layouts with implicit sizing and improve word-wrapping legibility.

    0.37.0release notes

  • The default sans-serif system font stack drops -apple-system and BlinkMacSystemFont, which are no longer needed in browsers officially supported by Starlight.

    0.37.0release notes

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.

    0.37.4release notes

Fixes and other changes 11

  • Fixes an issue using components containing scripts inside the Steps component with Astro versions >= 5.16.9.

    0.37.7release notes

  • Adds icons for Chrome, Edge, Firefox, and Safari.

    0.37.6release notes

  • Accessible labels for heading anchor links are excluded from Pagefind results.

    0.37.5release notes

  • Sidebar entries no longer receive redundant aria-current="false" attributes.

    0.37.4release notes

  • Fixes finding the first heading in the mobile table of contents when a page has a tall banner.

    0.37.4release notes

  • Fixes edge cases in highlighting the current page heading in the table of contents.

    0.37.4release notes

  • Prevents unwanted font size adjustments on iOS after orientation changes.

    0.37.3release notes

  • Adds support for the Greek language.

    0.37.2release notes

  • Fixes support for providing an absolute URL to the favicon configuration option.

    0.37.1release notes

  • Custom pages no longer need to import StarlightPage first for Starlight’s CSS cascade layers to be set up correctly.

    0.37.0release notes

  • The component no longer displays a vertical scrollbar when zooming; the current tab is highlighted with box-shadow instead of margin-bottom and border-bottom, which may require custom styling updates.

    0.37.0release notes

@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.

    0.36.1release notes

Fixes and other changes 5

  • Improves the error message thrown when using a file in the public/ directory with the customCss configuration option.

    0.36.3release notes

  • Omits the og:description meta tag when Starlight’s description option is unset.

    0.36.3release notes

  • Updates the icon to match the latest version from Seti UI Icons.

    0.36.3release notes

  • Omits the canonical link and og:url meta tag when Astro’s site option is unset.

    0.36.3release notes

  • Spanish UI translations were improved.

    0.36.2release notes