Skip to content

Bump @astrojs/mdx from 5.0.6 to 6.0.3#8

Open
dependabot[bot] wants to merge 5 commits into
mainfrom
dependabot/npm_and_yarn/astrojs/mdx-6.0.3
Open

Bump @astrojs/mdx from 5.0.6 to 6.0.3#8
dependabot[bot] wants to merge 5 commits into
mainfrom
dependabot/npm_and_yarn/astrojs/mdx-6.0.3

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 11, 2026

Copy link
Copy Markdown

Bumps @astrojs/mdx from 5.0.6 to 6.0.3.

Release notes

Sourced from @​astrojs/mdx's releases.

@​astrojs/mdx@​6.0.3

Patch Changes

  • #16969 4a31f90 Thanks @​Princesseuh! - Adds support for Prism syntax highlighting to the Sätteri Markdown and MDX processors. Setting markdown.syntaxHighlight to 'prism' now highlights your code blocks with Prism.

    // astro.config.mjs
    import { satteri } from '@astrojs/markdown-satteri';
    export default defineConfig({
    markdown: {
    processor: satteri(),
    syntaxHighlight: 'prism',
    },
    });

@​astrojs/mdx@​6.0.0-alpha.1

Patch Changes

  • #16969 4a31f90 Thanks @​Princesseuh! - Adds support for Prism syntax highlighting to the Sätteri Markdown and MDX processors. Setting markdown.syntaxHighlight to 'prism' now highlights your code blocks with Prism.

    // astro.config.mjs
    import { satteri } from '@astrojs/markdown-satteri';
    export default defineConfig({
    markdown: {
    processor: satteri(),
    syntaxHighlight: 'prism',
    },
    });

  • Updated dependencies [4a31f90]:

    • @​astrojs/markdown-satteri@​0.3.0-alpha.0

@​astrojs/mdx@​6.0.2

Patch Changes

@​astrojs/mdx@​6.0.0

6.0.0

Major Changes

... (truncated)

Changelog

Sourced from @​astrojs/mdx's changelog.

6.0.3

Patch Changes

  • #16969 4a31f90 Thanks @​Princesseuh! - Adds support for Prism syntax highlighting to the Sätteri Markdown and MDX processors. Setting markdown.syntaxHighlight to 'prism' now highlights your code blocks with Prism.

    // astro.config.mjs
    import { satteri } from '@astrojs/markdown-satteri';
    export default defineConfig({
    markdown: {
    processor: satteri(),
    syntaxHighlight: 'prism',
    },
    });

6.0.2

Patch Changes

6.0.1

Patch Changes

  • Updated dependencies [eeb064c]:
    • @​astrojs/markdown-satteri@​0.2.1

6.0.0

Major Changes

  • #16848 f732f3c Thanks @​Princesseuh! - Adds a new markdown.processor configuration option, allowing you to choose an alternative Markdown processor.

    Websites with many Markdown/MDX files tend to be slow to build because the unified ecosystem (e.g., remark, rehype) is slow to process. This feature introduces the ability to replace this part of the build pipeline with another processor.

    The default processor is unified(). This means that existing configurations remain unchanged and your remark/rehype plugins continue to work.

    // astro.config.mjs
    import { defineConfig } from 'astro/config';
    import { unified } from '@astrojs/markdown-remark';
    import remarkToc from 'remark-toc';

... (truncated)

Commits

vercel Bot and others added 2 commits June 4, 2026 12:06
# Vercel Web Analytics Implementation

Successfully installed and configured Vercel Web Analytics for this Astro project.

## Changes Made

### 1. Package Installation
- Installed `@astrojs/vercel` (v10.0.8) - Vercel adapter for Astro
- Installed `@vercel/analytics` (v2.0.1) - Vercel Web Analytics package
- Updated `pnpm-lock.yaml` to reflect new dependencies

### 2. Astro Configuration (`astro.config.mjs`)
- Added import for `@astrojs/vercel` adapter
- Configured output mode to 'server' (required for Vercel adapter)
- Enabled Vercel adapter with `webAnalytics: { enabled: true }`

This configuration follows the official Astro-specific instructions from Vercel's documentation, which recommends configuring the adapter with the webAnalytics option enabled.

### 3. Content Security Policy Update (`vercel.json`)
Updated the CSP headers to allow Vercel Analytics scripts:
- Added `https://va.vercel-scripts.com` to `script-src`
- Added `https://va.vercel-scripts.com` and `https://*.vercel-insights.com` to `connect-src`

These additions ensure that Vercel Analytics can load and communicate properly without being blocked by the strict CSP policy.

### 4. Code Formatting
- Ran Prettier across the codebase to fix formatting issues
- All files now pass the format check

## Implementation Details

For Astro projects, Vercel Web Analytics works differently than other frameworks. Instead of manually adding a component to layouts, the analytics are automatically injected when the Vercel adapter is configured with `webAnalytics: { enabled: true }`. This is the recommended approach per the official Vercel documentation.

The adapter handles:
- Automatic injection of analytics scripts
- Server-side rendering compatibility
- Proper integration with Vercel's deployment infrastructure

## Testing

- Build completed successfully with 0 errors
- All TypeScript checks passed (only warnings for unused variables)
- Code formatting verified with Prettier
- Lock files updated correctly

## Next Steps

After deployment to Vercel:
1. Enable Web Analytics in the Vercel dashboard for this project
2. Visit the deployed site to generate initial traffic
3. Check the browser's Network tab for requests to `/_vercel/insights/*` to confirm tracking is active
4. View analytics data in the Vercel dashboard

## Files Modified

**Configuration Files:**
- `astro.config.mjs` - Added Vercel adapter with analytics enabled
- `vercel.json` - Updated CSP headers for analytics
- `package.json` - Added new dependencies
- `pnpm-lock.yaml` - Updated dependency lock file

**Source Files:**
- Multiple files formatted by Prettier (no functional changes)
- `README.md` - Formatted by Prettier

All changes preserve existing functionality while adding Vercel Web Analytics support.

Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Jun 11, 2026
@vercel

vercel Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
r3actr Canceled Canceled Jun 16, 2026 4:23am

@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/astrojs/mdx-6.0.3 branch from 161a969 to 3338c58 Compare June 16, 2026 04:21
Sree14hari and others added 2 commits June 16, 2026 09:51
# Conflicts:
#	src/content/docs/de/welcome-to-docs.mdx
#	src/content/docs/es/welcome-to-docs.mdx
#	src/content/docs/fr/welcome-to-docs.mdx
#	src/content/docs/ja/welcome-to-docs.mdx
#	src/content/docs/welcome-to-docs.mdx
#	src/content/docs/zh-cn/welcome-to-docs.mdx
Bumps [@astrojs/mdx](https://github.com/withastro/astro/tree/HEAD/packages/integrations/mdx) from 5.0.6 to 6.0.3.
- [Release notes](https://github.com/withastro/astro/releases)
- [Changelog](https://github.com/withastro/astro/blob/main/packages/integrations/mdx/CHANGELOG.md)
- [Commits](https://github.com/withastro/astro/commits/@astrojs/mdx@6.0.3/packages/integrations/mdx)

---
updated-dependencies:
- dependency-name: "@astrojs/mdx"
  dependency-version: 6.0.3
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/astrojs/mdx-6.0.3 branch from 3338c58 to 29be0ec Compare June 16, 2026 04:22
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