Skip to content

chore(deps): bump astro and @astrojs/starlight - #337

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/multi-b7dd83e387
Closed

chore(deps): bump astro and @astrojs/starlight#337
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/multi-b7dd83e387

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 4, 2026

Copy link
Copy Markdown
Contributor

Bumps astro and @astrojs/starlight. These dependencies needed to be updated together.
Updates astro from 6.3.2 to 7.1.6

Release notes

Sourced from astro's releases.

astro@7.1.6

Patch Changes

  • #17536 ff97b86 Thanks @​dmgawel! - Fixes concurrent static builds failing to generate i18n rewrite fallbacks for dynamic routes

  • #17383 296e1b0 Thanks @​thelazylamaGit! - Fixes stale dev CSS after editing component style blocks and CSS files in dev

  • #17543 bbc1ec9 Thanks @​ematipico! - Adds a feature to experimental.collectionStorage that allows to change the size of chunks.

    For example, you can reduce the size of chunks to 1MB:

    // astro.config.mjs
    import { defineConfig } from 'astro/config';
    export default defineConfig({
    experimental: {
    collectionStorage: {
    type: 'chunked',
    chunkSize: 1024 * 1024,
    },
    },
    });

  • #17545 5214663 Thanks @​ematipico! - Bumps the Astro compiler to the latest version. Changelog.

astro@7.1.5

Patch Changes

  • #17524 7613030 Thanks @​matthewp! - Fixes a bug where an error while finalizing a request could prevent a response from being sent

  • #17480 f61ba9c Thanks @​florian-lefebvre! - Fixes a case where a custom logger.entrypoint failed to load at runtime in a built server bundle.

  • #17525 e614b7b Thanks @​matthewp! - Fixes action path resolution so that properties of a resolved action function are not treated as routable path segments

  • #17284 c775c1f Thanks @​matthewp! - Fixes a bug where the custom 404 (or 500) page was not rendered when a middleware rewrite targeted a route that returned an empty 404/500 response, and a blank page was returned instead

  • #17474 c895b12 Thanks @​nicksnyder! - Updates dependency js-yaml to v4.3.0

  • Updated dependencies [c895b12]:

    • @​astrojs/internal-helpers@​0.10.2
    • @​astrojs/markdown-remark@​7.2.2
    • @​astrojs/markdown-satteri@​0.3.5

astro@7.1.4

Patch Changes

  • #17488 d4f266d Thanks @​emerson-d-lopes! - Fixes duplicate CSS files being emitted in server output when a prerendered page and a server-rendered page share the same styles (e.g. a shared layout importing Tailwind). The prerender and SSR environments each emitted their own copy of the same stylesheet (index.X.css and _..Y.css); the SSR build now reuses the CSS asset filename from the prerender build when the stylesheet is backed by the same CSS source modules, so only a single file is emitted.

... (truncated)

Changelog

Sourced from astro's changelog.

7.1.6

Patch Changes

  • #17536 ff97b86 Thanks @​dmgawel! - Fixes concurrent static builds failing to generate i18n rewrite fallbacks for dynamic routes

  • #17383 296e1b0 Thanks @​thelazylamaGit! - Fixes stale dev CSS after editing component style blocks and CSS files in dev

  • #17543 bbc1ec9 Thanks @​ematipico! - Adds a feature to experimental.collectionStorage that allows to change the size of chunks.

    For example, you can reduce the size of chunks to 1MB:

    // astro.config.mjs
    import { defineConfig } from 'astro/config';
    export default defineConfig({
    experimental: {
    collectionStorage: {
    type: 'chunked',
    chunkSize: 1024 * 1024,
    },
    },
    });

  • #17545 5214663 Thanks @​ematipico! - Bumps the Astro compiler to the latest version. Changelog.

7.1.5

Patch Changes

  • #17524 7613030 Thanks @​matthewp! - Fixes a bug where an error while finalizing a request could prevent a response from being sent

  • #17480 f61ba9c Thanks @​florian-lefebvre! - Fixes a case where a custom logger.entrypoint failed to load at runtime in a built server bundle.

  • #17525 e614b7b Thanks @​matthewp! - Fixes action path resolution so that properties of a resolved action function are not treated as routable path segments

  • #17284 c775c1f Thanks @​matthewp! - Fixes a bug where the custom 404 (or 500) page was not rendered when a middleware rewrite targeted a route that returned an empty 404/500 response, and a blank page was returned instead

  • #17474 c895b12 Thanks @​nicksnyder! - Updates dependency js-yaml to v4.3.0

  • Updated dependencies [c895b12]:

    • @​astrojs/internal-helpers@​0.10.2
    • @​astrojs/markdown-remark@​7.2.2
    • @​astrojs/markdown-satteri@​0.3.5

7.1.4

Patch Changes

... (truncated)

Commits

Updates @astrojs/starlight from 0.38.1 to 0.41.6

Release notes

Sourced from @​astrojs/starlight's releases.

@​astrojs/starlight@​0.41.6

Patch Changes

@​astrojs/starlight@​0.41.5

Patch Changes

@​astrojs/starlight@​0.41.4

Patch Changes

@​astrojs/starlight@​0.41.3

Patch Changes

  • #3911 1686ecc Thanks @​timothyjordan! - Keeps keyboard focus inside the mobile menu while it is open, preventing focus moving to hidden interactive elements in page content.

@​astrojs/starlight@​0.41.2

Patch Changes

  • #4008 58a3520 Thanks @​FrancoKaddour! - Fixes the table of contents overflowing the right edge of the viewport when a custom --sl-content-width value exceeds available space

  • #4015 bdbfffc Thanks @​delucis! - Fixes an issue where aside icons were rendered incorrectly in projects where Astro’s MDX integration had optimization disabled

@​astrojs/starlight@​0.41.1

Patch Changes

@​astrojs/starlight@​0.41.0

Minor Changes

  • #3951 1202dd4 Thanks @​HiDeoo! - Adds support for Astro v7, drops support for Astro v6.

    Upgrade Astro and dependencies

    ⚠️ BREAKING CHANGE: Astro v6 is no longer supported. Make sure you update Astro and any other official integrations at the same time as updating Starlight:

... (truncated)

Changelog

Sourced from @​astrojs/starlight's changelog.

0.41.6

Patch Changes

0.41.5

Patch Changes

0.41.4

Patch Changes

0.41.3

Patch Changes

  • #3911 1686ecc Thanks @​timothyjordan! - Keeps keyboard focus inside the mobile menu while it is open, preventing focus moving to hidden interactive elements in page content.

0.41.2

Patch Changes

  • #4008 58a3520 Thanks @​FrancoKaddour! - Fixes the table of contents overflowing the right edge of the viewport when a custom --sl-content-width value exceeds available space

  • #4015 bdbfffc Thanks @​delucis! - Fixes an issue where aside icons were rendered incorrectly in projects where Astro’s MDX integration had optimization disabled

0.41.1

Patch Changes

0.41.0

Minor Changes

... (truncated)

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Bumps [astro](https://github.com/withastro/astro/tree/HEAD/packages/astro) and [@astrojs/starlight](https://github.com/withastro/starlight/tree/HEAD/packages/starlight). These dependencies needed to be updated together.

Updates `astro` from 6.3.2 to 7.1.6
- [Release notes](https://github.com/withastro/astro/releases)
- [Changelog](https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md)
- [Commits](https://github.com/withastro/astro/commits/astro@7.1.6/packages/astro)

Updates `@astrojs/starlight` from 0.38.1 to 0.41.6
- [Release notes](https://github.com/withastro/starlight/releases)
- [Changelog](https://github.com/withastro/starlight/blob/main/packages/starlight/CHANGELOG.md)
- [Commits](https://github.com/withastro/starlight/commits/@astrojs/starlight@0.41.6/packages/starlight)

---
updated-dependencies:
- dependency-name: astro
  dependency-version: 7.1.6
  dependency-type: direct:production
- dependency-name: "@astrojs/starlight"
  dependency-version: 0.41.6
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Aug 4, 2026
@dependabot
dependabot Bot requested a review from a team as a code owner August 4, 2026 09:40
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Aug 4, 2026
@marc0olo

marc0olo commented Aug 4, 2026

Copy link
Copy Markdown
Member

Superseded by #339.

Astro 7 / Starlight 0.41 need repo-side changes that this bot PR can't include: Starlight 0.39 removed labelled autogenerated sidebar groups, which is why the build here fails. #339 preserves the bump commit from this PR and adds the sidebar fix, the generator fix that keeps synced Motoko pages working, an llms.txt section-label fix, and the markdown.remarkPluginsprocessor: unified() migration.

@marc0olo marc0olo closed this Aug 4, 2026
@dependabot @github

dependabot Bot commented on behalf of github Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

OK, I won't notify you again about this release, but will get in touch when a new version is available.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/multi-b7dd83e387 branch August 4, 2026 10:46
marc0olo added a commit that referenced this pull request Aug 4, 2026
## Summary

Replaces #337 (dependabot), which could not merge as-is: Astro 7 /
Starlight 0.41 need repo-side changes. Dependabot's bump commit is
preserved here, with the required fixes on top.

- `astro` 6.3.2 → 7.1.6, `@astrojs/starlight` 0.38.1 → 0.41.6
(cherry-picked from #337)
- Wrap all autogenerate sidebar configs in `items` arrays (Starlight
0.39 removed labelled autogenerated groups)
- Normalise the sidebar shape in `scripts/postprocess-motoko.mjs` so
synced Motoko pages keep working
- Fix `deriveSections()` in `plugins/astro-agent-docs.mjs` so llms.txt
keeps its section labels, and make the same class of failure fail the
build in future
- Migrate `markdown.remarkPlugins` / `rehypePlugins` to `processor:
unified({ ... })`
- Align `validate.yml` on Node 22

## Why the extra changes

**Sidebar (build blocker).** Starlight 0.39 requires the autogenerate
config to sit inside an `items` array:

```diff
  {
    label: "Backends",
    collapsed: true,
-   autogenerate: { directory: "guides/backends" },
+   items: [{ autogenerate: { directory: "guides/backends", collapsed: true } }],
  }
```

`collapsed` is set on the autogenerate config too, because autogenerated
subgroups no longer inherit the parent's collapsed state as of 0.39. No
autogenerate directory currently has subdirectories, so this is a no-op
today and keeps behaviour correct if one is added.

**Motoko sidebar (would regress on the next sync).**
`sidebar-motoko.mjs` is generated from `doc/site/sidebar.mjs` in the
pinned `.sources/motoko` submodule, which still uses the pre-0.39 shape.
Hand-editing the generated file alone would be undone by the next Motoko
sync, breaking the build again. Instead `transformEntry()` now
normalises both shapes, so the output is valid whichever shape upstream
emits and no coordination with `caffeinelabs/motoko` is required.
Verified: both shapes produce byte-identical output, and regeneration is
idempotent.

**llms.txt (silent break, now guarded).** `deriveSections()` read the
section label off the autogenerate node. Once nested, that node is
unlabelled and the label lives on the parent group, so all 15
autogenerated sections rendered as `## undefined` in llms.txt — with a
clean build log and a zero exit code. Beyond fixing the derivation, the
derived sections are now validated at module load and the build throws
with the offending directory and the function to update. Verified by
reintroducing the original bug: the build fails immediately instead of
shipping. This guards the whole class of failure, since these labels are
inferred from the sidebar's shape and future Starlight majors can change
it again.

**Markdown processor.** Astro 7 defaults to the Sätteri processor and
deprecates the top-level plugin arrays (the build warned about it).
`processor: unified({ ... })` opts back into the remark/rehype pipeline
the 5 remark and 2 rehype plugins need. `@astrojs/markdown-remark` is
declared as a direct dependency instead of relying on Astro's transitive
copy; only the root dependency entry is added to the lockfile.

**Node 22 in `validate.yml`.** Astro 7 requires `^20.19.0 || >=22.12.0`.
The previous `'20'` pin resolved to a satisfying 20.x and that job does
not run Astro, so this aligns it with the other five workflows rather
than fixing a break.

## Verification

Built against a `main` baseline and compared output:

- 209 pages build clean, no errors, no deprecation warnings
- Sidebar identical: 38 groups, same labels, same collapsed states, 196
nav links
- `llms.txt`, `llms-full.txt`, `feed.xml` and all 209 markdown endpoints
byte-identical
- Rendered article content identical on 204 of 208 pages; the 4
differences are 3 smart-quote corrections (`”Canister is not ready”` →
`“Canister is not ready”`) and one whitespace change between flex items
in a Starlight LinkCard on the homepage, which does not render
- Confirmed on the deployed preview: the submodule-sourced Motoko pages
that use `file=` includes render in full, and `llms.txt` is
byte-identical to the local build
- Build time 33s → 28s

## Notes

- Starlight 0.41 drops support for Chromium < 111 and Safari < 16.4.
- Upstream `caffeinelabs/motoko` pins Starlight ^0.41.3 in
`doc/site/package.json` while its `sidebar.mjs` still uses the pre-0.39
shape, and no workflow there builds `doc/site`, so their own preview
site hits this same error unnoticed. Worth a separate upstream PR; this
branch does not depend on it.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant