ShopperCove
Menu
All writingBlogTopicsCategoriesAboutRSS
Blog
Categories
Observability & SRE62All categories
Topics
sre111localhost lab102performance70python58javascript47bundle size36benchmarking35node.js35web development21typescript19benchmark16content creation15All topics
About
Loading article…

ShopperCove

Hands-on notes on developer tools, written after the tool has actually been run.

All writingBlogCategoriesTopicsAboutPrivacyRSS

© 2026 ShopperCove

On this page

  1. Headline changes in 0.42.0
  2. Patches through 0.42.5 (npm latest)
  3. Hands-on upgrade checklist
  4. Bottom line
  5. Sources
  6. Related
  1. Blog

Astro Starlight 0.42: Popover mobile menu + JS distribution (2 Sep 2026)

Astro’s documentation theme Starlight published 0.42.0 on 2 September 2026 with a Popover API mobile menu that works when JavaScript fails, a move from shipping TypeScript source to compiled JavaScript + declaration files, removal of the unused tagline option, and a bump to Astro 7.2.10+. npm latest as of 5 Oct 2026 is 0.42.5 (Macedonian locale, 1 Oct). ShopperCove docs upgrade checklist only; no affiliate.

5 October 2026·3 min read

Summary
On this page
  1. Headline changes in 0.42.0
  2. Patches through 0.42.5 (npm latest)
  3. Hands-on upgrade checklist
  4. Bottom line
  5. Sources
  6. Related

Astro Starlight 0.42: Popover mobile menu + JS distribution (2 Sep 2026)

On 2 September 2026, Astro published Starlight 0.42—the official documentation theme—with a Popover-based mobile menu, a packaging change from TypeScript source to compiled JavaScript plus .d.ts files, and several breaking minimums. ShopperCove did not upgrade a production Starlight site for this note. Package identity was confirmed on npm on 5 October 2026 (@astrojs/starlight@0.42.5, dist-tag latest; 0.42.0 published 2026-09-02T11:13:45.169Z). Primary sources: the Starlight 0.42 blog post, the GitHub release @astrojs/starlight@0.42.0, and the Starlight docs site. This is a docs-based upgrade checklist—not performance advice and not a security advisory.

There is no affiliate link in this article. This post has no affiliate links.

Headline changes in 0.42.0

From the blog and release notes:

AreaWhat changed
Mobile menuRefactored to the Popover API so the menu still works when client JS fails or is disabled; ships less client JS for that path
Package formatDistributes compiled JavaScript + type declarations instead of raw TypeScript sources (faster/more predictable tsc for consumers)
ConfigRemoves unused tagline option — delete it from astro.config if present
DependenciesInternal MDX / markdown-sätteri / sätteri bumps
Minimumsastro ≥ 7.2.10; browsers: Chromium 116+, Firefox 125+, Safari 17.0+
MarkupMobileMenuToggle no longer wrapped in a custom element / no aria-expanded; target .sl-menu-button and :popover-open / body:has(sl-sidebar-pane:popover-open) instead of data-mobile-menu-expanded

Upgrade path recommended by Astro:

npx @astrojs/upgrade

Patches through 0.42.5 (npm latest)

As of sources read 5 Oct 2026, npm latest is 0.42.5 (published 1 Oct 2026). Notable patches after 0.42.0 (from GitHub releases):

  • 0.42.1 — desktop sidebar popover attribute fix
  • 0.42.3 — TOC highlighting freeze guard when #_top is missing
  • 0.42.4 — large nested sidebar render optimization; icon fixes
  • 0.42.5 — Macedonian language support

Pin @astrojs/starlight@0.42.5 (or current latest) when you upgrade; keep Astro on the 7.2.10+ line the release requires.

Hands-on upgrade checklist

  1. Inventory: note current @astrojs/starlight and astro versions (npm ls @astrojs/starlight astro).
  2. Upgrade together: run npx @astrojs/upgrade (or pin Starlight 0.42.5 + Astro ≥7.2.10). Confirm with npm view @astrojs/starlight version → expect 0.42.5 as of 5 Oct 2026.
  3. Config cleanup: remove any tagline key from the Starlight config object.
  4. Custom CSS / overrides: if you styled starlight-menu-button, [aria-expanded], or [data-mobile-menu-expanded], rewrite to .sl-menu-button and :popover-open / body:has(sl-sidebar-pane:popover-open) per the release notes.
  5. Smoke-test mobile menu with JS disabled in DevTools — the Popover path is a deliberate reliability win.
  6. Do not invent security urgency: this minor is features + packaging + a11y/perf; ShopperCove is not attaching CVE IDs.

ShopperCove did not change production Starlight versions for this article. Prefer the official blog and GitHub release over third-party roundups. For the Astro framework line already covered on ShopperCove, see the live Astro 7.3 preview note—this package is the Starlight docs theme.

Bottom line

Starlight 0.42 (2 Sep 2026; npm latest 0.42.5 on 1 Oct) brings a Popover mobile menu, JS+d.ts distribution, and Astro 7.2.10+ / modern-browser minimums. Upgrade with @astrojs/upgrade, drop tagline, and re-check custom menu CSS. No affiliate.

Sources

  • 01github.com/withastro/starlight/releases/tag/%40astrojs/starlight%400.42.5
  • 02registry.npmjs.org/@astrojs/starlight/0.42.5
  • 03github.com/withastro/starlight/blob/main/packages/starlight/CHANGELOG.md

Related

  • 01shoppercove.com/blog/astro-7-3-preview-ignore-lock-october-2026
  • 02shoppercove.com/blog/eslint-10-12-release-october-2026
  • 03shoppercove.com/blog/vite-plus-1-0-unified-toolchain-october-2026
  • 04shoppercove.com/blog/playwright-1-63-test-locks-october-2026
  • 05shoppercove.com/blog/angular-router-ssr-queryparams-dos-october-2026
  • 06shoppercove.com/blog/webpack-5-111-esm-output-stable-september-2026
  • 07shoppercove.com/blog/nodejs-26-lts-october-2026-schedule-change
  • 08shoppercove.com/blog/nextjs-15-lts-end-of-support-october-2026
astrostarlightdocumentationweb developmentpopoverfrontendjavascript

Lab evidence

What I found running this

Sources read 5 Oct 2026 (Asia/Calcutta): Astro blog Open astro.build (2 Sep 2026); GitHub release @astrojs/starlight@0.42.0 (2026-09-02); npm @astrojs/starlight latest=0.42.5 (time 2026-10-01T08:59:48.410Z). Breaking: Astro ≥7.2.10; Chromium ≥116 / Firefox ≥125 / Safari ≥17.0; MobileMenuToggle markup / :popover-open; remove tagline. Checklist: npx @astrojs/upgrade; remove tagline; update custom CSS targeting starlight-menu-button / data-mobile-menu-expanded; re-verify mobile menu with JS disabled. No production Starlight site upgraded on ShopperCove; no invented CVEs; no affiliate. Fresh vs live astro-7-3 package (framework preview)—this is the Starlight docs theme minor.

Notes when a lab post goes up

Occasional email for new hands-on reviews. No sequence and no sponsors.

Keep reading

  • Biome 2.5.15: type-inference speedups, nursery rules, HTML formatter (30 Sep 2026)

    Biome published @biomejs/biome@2.5.15 on 30 September 2026: type-inference and HTML formatter performance, plus nursery rules for React defaults, Svelte runes, logical CSS, and more. ShopperCove upgrade checklist only; no affiliate.

    Summary5 Oct 20264 min read

  • ufo vs URL: 2.4 KB vs 0.5 KB Gzip

    Hands-on6 Oct 20265 min read

  • cookie-es vs cookie: 2.3 KB vs 1.4 KB Gzip

    Hands-on6 Oct 20265 min read