Skip to content

chore(deps-dev): bump astro, @astrojs/mdx and astro-auto-import#3700

Open
dependabot[bot] wants to merge 4 commits into
mainfrom
dependabot/npm_and_yarn/multi-3a8c4c9bb6
Open

chore(deps-dev): bump astro, @astrojs/mdx and astro-auto-import#3700
dependabot[bot] wants to merge 4 commits into
mainfrom
dependabot/npm_and_yarn/multi-3a8c4c9bb6

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 21, 2026

Copy link
Copy Markdown
Contributor

Bumps astro, @astrojs/mdx and astro-auto-import. These dependencies needed to be updated together.
Updates astro from 5.13.5 to 7.1.3

Release notes

Sourced from astro's releases.

astro@7.1.3

Patch Changes

  • #17427 630b382 Thanks @​astrobot-houston! - Fixes image optimization during astro build using too many parallel processes in CPU-limited containers. Builds now respect the container's CPU limit, reducing peak memory usage and avoiding out-of-memory crashes.

astro@7.1.2

Patch Changes

  • #17445 a5f7230 Thanks @​ocavue! - Updates dependency cookie to v2. Cookie values made entirely of URL-safe characters are no longer percent-encoded in Set-Cookie headers; encoded values round-trip exactly as before.

  • #17402 a89c137 Thanks @​farrosfr! - Fixes a bug where mutated Astro.locals during the request lifecycle are lost and not passed to custom error pages (404.astro/500.astro)

  • #17405 91992ef Thanks @​Araluma! - Prevents an unhandled promise rejection from the prefetch fetch fallback. In WebKit (Safari), <link rel="prefetch"> is unsupported, so prefetch uses the fetch() fallback; on a flaky connection that fetch rejects with TypeError: Load failed, and because the promise was not awaited or caught, it surfaced as an unhandled rejection to the page's global error handlers. The best-effort prefetch now swallows the failure with .catch().

astro@7.1.1

Patch Changes

astro@7.1.0

Minor Changes

  • #17302 5f4dc03 Thanks @​astrobot-houston! - Adds a new deferRender option to the glob() content loader

    When set to true, renderable entries (such as Markdown) are not rendered during content sync. Instead, rendering is deferred until the entry is actually rendered in a page, using the same on-demand path that .mdx files already use.

    This reduces memory usage during astro build for large collections whose rendered output is much larger than the source — for example, Markdown that uses heavy rehype plugins like rehype-katex. Such builds could previously run out of memory while storing the eagerly-rendered HTML for every entry.

    // src/content.config.ts
    import { defineCollection } from 'astro:content';
    import { glob } from 'astro/loaders';
    const docs = defineCollection({
    loader: glob({ pattern: '**/*.md', base: 'src/content/docs', deferRender: true }),
    });

    By default deferRender is false, preserving the existing behavior of rendering entries eagerly during sync so their rendered HTML can be cached across builds.

  • #17296 30698a2 Thanks @​ematipico! - Adds a new experimental collectionStorage option for controlling how the content layer persists its data store

    By default, Astro serializes the entire content layer data store to a single file (.astro/data-store.json). For very large content collections, this file can grow large enough to hit platform file-size limits.

    Set experimental.collectionStorage: 'chunked' to instead split the data store across many smaller, content-addressed files inside a .astro/data-store/ directory, described by a manifest:

    // astro.config.mjs

... (truncated)

Changelog

Sourced from astro's changelog.

7.1.3

Patch Changes

  • #17427 630b382 Thanks @​astrobot-houston! - Fixes image optimization during astro build using too many parallel processes in CPU-limited containers. Builds now respect the container's CPU limit, reducing peak memory usage and avoiding out-of-memory crashes.

7.1.2

Patch Changes

  • #17445 a5f7230 Thanks @​ocavue! - Updates dependency cookie to v2. Cookie values made entirely of URL-safe characters are no longer percent-encoded in Set-Cookie headers; encoded values round-trip exactly as before.

  • #17402 a89c137 Thanks @​farrosfr! - Fixes a bug where mutated Astro.locals during the request lifecycle are lost and not passed to custom error pages (404.astro/500.astro)

  • #17405 91992ef Thanks @​Araluma! - Prevents an unhandled promise rejection from the prefetch fetch fallback. In WebKit (Safari), <link rel="prefetch"> is unsupported, so prefetch uses the fetch() fallback; on a flaky connection that fetch rejects with TypeError: Load failed, and because the promise was not awaited or caught, it surfaced as an unhandled rejection to the page's global error handlers. The best-effort prefetch now swallows the failure with .catch().

7.1.1

Patch Changes

7.1.0

Minor Changes

  • #17302 5f4dc03 Thanks @​astrobot-houston! - Adds a new deferRender option to the glob() content loader

    When set to true, renderable entries (such as Markdown) are not rendered during content sync. Instead, rendering is deferred until the entry is actually rendered in a page, using the same on-demand path that .mdx files already use.

    This reduces memory usage during astro build for large collections whose rendered output is much larger than the source — for example, Markdown that uses heavy rehype plugins like rehype-katex. Such builds could previously run out of memory while storing the eagerly-rendered HTML for every entry.

    // src/content.config.ts
    import { defineCollection } from 'astro:content';
    import { glob } from 'astro/loaders';
    const docs = defineCollection({
    loader: glob({ pattern: '**/*.md', base: 'src/content/docs', deferRender: true }),
    });

    By default deferRender is false, preserving the existing behavior of rendering entries eagerly during sync so their rendered HTML can be cached across builds.

  • #17296 30698a2 Thanks @​ematipico! - Adds a new experimental collectionStorage option for controlling how the content layer persists its data store

    By default, Astro serializes the entire content layer data store to a single file (.astro/data-store.json). For very large content collections, this file can grow large enough to hit platform file-size limits.

... (truncated)

Commits
Maintainer changes

This version was pushed to npm by GitHub Actions, a new releaser for astro since your current version.


Updates @astrojs/mdx from 4.3.4 to 7.0.3

Release notes

Sourced from @​astrojs/mdx's releases.

@​astrojs/mdx@​7.0.3

Patch Changes

  • #17341 64b0d66 Thanks @​Princesseuh! - Fixes custom pre components not applying to syntax-highlighted code blocks when using the Sätteri Markdown processor with MDX.

@​astrojs/mdx@​7.0.2

Patch Changes

  • Updated dependencies [eb6f97e]:
    • @​astrojs/internal-helpers@​0.10.1
    • @​astrojs/markdown-remark@​7.2.1

@​astrojs/mdx@​7.0.1

Patch Changes

@​astrojs/mdx@​7.0.0

Major Changes

Minor Changes

  • #17093 4585fe5 Thanks @​Princesseuh! - Replaces the import entrypoint of getContainerRenderer()

    A new container-renderer entrypoint exporting getContainerRenderer() has been added to the following integrations: React, Preact, Svelte, SolidJS, Vue, and MDX. This prevents bundlers from trying to bundle unrelated exports from the package root when only the Container API is used.

    If you are using the Container API, update your import statements to use the new entrypoint. The following example updates the getContainerRenderer() import for React:

    - import { getContainerRenderer } from '@astrojs/react';
    + import { getContainerRenderer } from '@astrojs/react/container-renderer';

    Importing getContainerRenderer() from the package root still works, but is now deprecated and logs a warning.

  • #17129 ff7b718 Thanks @​Princesseuh! - Adds support for modifying frontmatter programmatically with the default Markdown processor.

    A Sätteri plugin can now read and mutate ctx.data.astro.frontmatter, and Astro uses the result as the page's frontmatter, in both Markdown and MDX.

Patch Changes

@​astrojs/mdx@​7.0.0-beta.4

Patch Changes

... (truncated)

Changelog

Sourced from @​astrojs/mdx's changelog.

7.0.3

Patch Changes

  • #17341 64b0d66 Thanks @​Princesseuh! - Fixes custom pre components not applying to syntax-highlighted code blocks when using the Sätteri Markdown processor with MDX.

7.0.2

Patch Changes

  • Updated dependencies [eb6f97e]:
    • @​astrojs/internal-helpers@​0.10.1
    • @​astrojs/markdown-remark@​7.2.1

7.0.1

Patch Changes

7.0.0

Major Changes

Minor Changes

  • #17093 4585fe5 Thanks @​Princesseuh! - Replaces the import entrypoint of getContainerRenderer()

    A new container-renderer entrypoint exporting getContainerRenderer() has been added to the following integrations: React, Preact, Svelte, SolidJS, Vue, and MDX. This prevents bundlers from trying to bundle unrelated exports from the package root when only the Container API is used.

    If you are using the Container API, update your import statements to use the new entrypoint. The following example updates the getContainerRenderer() import for React:

    - import { getContainerRenderer } from '@astrojs/react';
    + import { getContainerRenderer } from '@astrojs/react/container-renderer';

    Importing getContainerRenderer() from the package root still works, but is now deprecated and logs a warning.

  • #17129 ff7b718 Thanks @​Princesseuh! - Adds support for modifying frontmatter programmatically with the default Markdown processor.

    A Sätteri plugin can now read and mutate ctx.data.astro.frontmatter, and Astro uses the result as the page's frontmatter, in both Markdown and MDX.

Patch Changes

... (truncated)

Commits
Maintainer changes

This version was pushed to npm by GitHub Actions, a new releaser for @​astrojs/mdx since your current version.


Updates astro-auto-import from 0.4.4 to 0.5.2

Release notes

Sourced from astro-auto-import's releases.

astro-auto-import@0.5.2

Patch Changes

astro-auto-import@0.5.1

Patch Changes

astro-auto-import@0.5.0

Minor Changes

Patch Changes

astro-auto-import@0.4.6

Patch Changes

astro-auto-import@0.4.5

Patch Changes

  • 8538321 Thanks @​delucis! - No code changes. This release is the first published using OIDC trusted publisher configuration for improved security.
Changelog

Sourced from astro-auto-import's changelog.

0.5.2

Patch Changes

0.5.1

Patch Changes

0.5.0

Minor Changes

Patch Changes

0.4.6

Patch Changes

0.4.5

Patch Changes

  • 8538321 Thanks @​delucis! - No code changes. This release is the first published using OIDC trusted publisher configuration for improved security.
Commits
Maintainer changes

This version was pushed to npm by GitHub Actions, a new releaser for astro-auto-import since your current version.


Closes #3622

@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Jul 21, 2026
@dependabot
dependabot Bot requested a review from louismaximepiton as a code owner July 21, 2026 03:25
@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Jul 21, 2026
@netlify

netlify Bot commented Jul 21, 2026

Copy link
Copy Markdown

Deploy Preview for boosted ready!

Name Link
🔨 Latest commit 5140b67
🔍 Latest deploy log https://app.netlify.com/projects/boosted/deploys/6a606359666b86000830e09e
😎 Deploy Preview https://deploy-preview-3700--boosted.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@louismaximepiton

Copy link
Copy Markdown
Member

@dependabot recreate

@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/multi-3a8c4c9bb6 branch from a9de4db to c3af25e Compare July 21, 2026 07:21
@louismaximepiton
louismaximepiton force-pushed the dependabot/npm_and_yarn/multi-3a8c4c9bb6 branch from c3af25e to e19514d Compare July 21, 2026 14:21
@boosted-bot boosted-bot moved this from In Progress / Draft to Need Lead Dev Review in 🟣 [Orange-Boosted-Bootstrap] PRs Board Jul 21, 2026
@louismaximepiton

This comment was marked as outdated.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the documentation site tooling to Astro 7 / MDX 7 and migrates the docs rendering pipeline accordingly (content loading, rendering, and shortcode wiring), with a small CSS adjustment and bundle size threshold update.

Changes:

  • Bump Astro + related integrations (notably @astrojs/mdx) and adapt the site to Astro 7 content/rendering APIs.
  • Replace the previous global shortcode auto-import mechanism with explicit shortcode exports and passing shortcodes into rendered content.
  • Update docs/content routing to use an id-based slug helper and add content loaders via astro/loaders glob.

Reviewed changes

Copilot reviewed 17 out of 21 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
site/static/orange/docs/[version]/assets/fonts/solaris-icons.css Adjust font URL to point to the local .woff2 file.
site/src/types/auto-import.d.ts Remove generated global auto-import type declarations (auto-import mechanism removed).
site/src/pages/[brand]/docs/[version]/[...slug].astro Switch to astro:content render() and pass shortcodes via components.
site/src/pages/[brand]/[...alias].astro Use getDocsPageSlug() for alias path generation.
site/src/pages/[...alias].astro Use getDocsPageSlug() for alias path generation.
site/src/libs/data.ts Update URL validation schema to z.url().
site/src/libs/content.ts Add getDocsPageSlug() helper for stripping .md/.mdx from entry IDs.
site/src/libs/config.ts Update multiple URL fields to validate with z.url().
site/src/libs/astro.ts Remove auto-import integration and move markdown processor config responsibilities out.
site/src/content/docs/components.mdx Explicitly import ComponentCard from shortcodes.
site/src/content.config.ts Add glob() loaders for docs and callouts collections.
site/src/components/shortcodes/index.ts New barrel file exporting all shortcodes for easy import/spread.
site/src/components/shortcodes/Callout.astro Use render(entry) from astro:content instead of entry.render().
site/src/components/DocsSidebar.astro Make sidebar map as const, fix typing, and match docs pages via id-derived slug.
site/astro.config.ts Configure markdown processor via unified() with existing remark/rehype plugins.
scss/tests/snapshot-tests/__snapshots__/ouds-web.css Snapshot update reflecting generated CSS changes.
scss/tests/snapshot-tests/__snapshots__/ouds-web-bootstrap.css Snapshot update reflecting generated CSS changes.
scss/_alert.scss Add width rules affecting alert container/text layout.
package.json Update Astro-related devDependencies; adjust css-snapshot-refresh command.
.bundlewatch.config.json Raise CSS bundle size threshold slightly.
Files not reviewed (2)
  • scss/tests/snapshot-tests/snapshots/ouds-web-bootstrap.css: Generated file
  • scss/tests/snapshot-tests/snapshots/ouds-web.css: Generated file

Comment thread scss/_alert.scss
Comment on lines 96 to 101
flex-direction: column;
gap: $ouds-alert-space-row-gap-action;
align-items: flex-start;
justify-content: center; // To handle weird edge cases in de-zoom one line title alert
width: 20%;
min-height: $ouds-alert-size-min-height; // To handle weird edge cases in de-zoom one line title alert
Comment thread scss/_alert.scss
Comment thread package.json
@louismaximepiton louismaximepiton moved this from Need Lead Dev Review to Need Dev Review in 🟣 [Orange-Boosted-Bootstrap] PRs Board Jul 22, 2026

@MaxLardenois MaxLardenois left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to integrate work done for the changelog links, otherwise ok!


const sidebar = sidebarMap[slug] ? getData(`sidebar-${sidebarMap[slug]}`) : []
const sidebarKey = sidebarMap[slug as keyof typeof sidebarMap]
const sidebar = sidebarKey ? getData(`sidebar-${sidebarKey}`) : []

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I rewrote this too in the Scrollspy update. I started from the actual data definition to get the sidebars and have a hard typing. We can keep this and see what we do on the scrollspy side

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's only some warnings that I got from the tsconfig, I can revert them and wait for Scrollspy

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes same, just I fixed them with an other solution but we can discuss on the Scrollspy PR

Comment thread site/src/libs/astro.ts
configurePrism()

return [
ouds_web_auto_import(),

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: Was that discouraged by Astro or simply no longer possible?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


import { componentsDetails } from '../../../data/components-details'
import { getVersionedDocsPath } from '@libs/path'
import { ComponentCard } from '@components/shortcodes'

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it not made available everywhere by what you added in [...slug].astro‎?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought, but I had some errors while not having it, I don't know why tbh

Comment thread site/astro.config.ts
integrations: [oudsWeb()],
markdown: {
smartypants: false,
processor: unified({

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not know if this was a mandatory change but I think it's clearer to have that config here 👍
Will need to integrate the modifications that @duvalale did for the changelog links

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

Projects

Status: Need Dev Review

Development

Successfully merging this pull request may close these issues.

[OUDS] Update Astro

4 participants