Skip to content

fix(v6): format snippets, add default, update deprecated/removed APIs#13347

Merged
ArmandPhilippot merged 4 commits intov6from
armand/small-fixes-before-v6-launch
Mar 6, 2026
Merged

fix(v6): format snippets, add default, update deprecated/removed APIs#13347
ArmandPhilippot merged 4 commits intov6from
armand/small-fixes-before-v6-launch

Conversation

@ArmandPhilippot
Copy link
Copy Markdown
Member

Description (required)

Round 2 of my small fixes before v6:

  • guides/cms/*: replaces post.slug with post.id (content collections change)
  • guides/content-collections.mdx: updates paths for consistency with the code snippet above
  • guides/prefetch.mdx: not sure about this one, see my comment.
  • experimental-flags/client-prerender.mdx and experimental-flags/content-intellisense.mdx: wraps the config with defineConfig() for consistency with other flags
  • experimental-flags/route-caching.mdx: adds missing type/default
  • reference/legacy-flags.mdx: adds missing type/default and wraps the API block in a paragraph
  • modules/astro-assets.mdx: removes emitESMImage() as per our migration guide
  • modules/astro-content.mdx: fixes the highlighted lines
  • modules/astro-transitions.mdx: updates an outdated sentence and replaces deprecated APIs used in some code snippets

Related issues & labels (optional)

  • Suggested label: v6, code snippet update, improve or update documentation

@ArmandPhilippot ArmandPhilippot added improve or update documentation Enhance / update existing documentation (e.g. add example, improve description, update for changes) code snippet update Updates a code sample: typo, outdated code etc. 6.0 labels Mar 5, 2026
@netlify
Copy link
Copy Markdown

netlify bot commented Mar 5, 2026

Deploy Preview for astro-docs-2 ready!

Name Link
🔨 Latest commit 1839928
🔍 Latest deploy log https://app.netlify.com/projects/astro-docs-2/deploys/69aafab85c476c0008b3dded
😎 Deploy Preview https://deploy-preview-13347--astro-docs-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

## Migrating from `@astrojs/prefetch`

The `@astrojs/prefetch` integration was deprecated in v3.5.0 and will eventually be removed entirely. Use the following instructions to migrate to Astro's built-in prefetching which replaces this integration.
The `@astrojs/prefetch` integration was deprecated in v3.5.0 and is no longer maintained. Use the following instructions to migrate to Astro's built-in prefetching which replaces this integration.
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

While checking for deprecated APIs, I noticed the @astrojs/prefetch section. The phrasing sounded a bit outdated... The package is already removed from core (not sure in which version, v4 I guess?) but, the package is still downloadable.

So, I guess it doesn't hurt to keep that section but maybe the sentence should be updated?

@astrobot-houston
Copy link
Copy Markdown
Contributor

astrobot-houston commented Mar 5, 2026

Lunaria Status Overview

🌕 This pull request will trigger status changes.

Learn more

By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.

You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

File Note
en/guides/cms/cloudcannon.mdx Source changed, localizations will be marked as outdated.
en/guides/cms/keystatic.mdx Source changed, localizations will be marked as outdated.
en/guides/content-collections.mdx Source changed, localizations will be marked as outdated.
en/guides/prefetch.mdx Source changed, localizations will be marked as outdated.
en/reference/experimental-flags/client-prerender.mdx Source changed, localizations will be marked as outdated.
en/reference/experimental-flags/content-intellisense.mdx Source changed, localizations will be marked as outdated.
en/reference/experimental-flags/route-caching.mdx Localization changed, will be marked as complete.
en/reference/legacy-flags.mdx Source changed, localizations will be marked as outdated.
en/reference/modules/astro-assets.mdx Source changed, localizations will be marked as outdated.
en/reference/modules/astro-content.mdx Source changed, localizations will be marked as outdated.
en/reference/modules/astro-transitions.mdx Source changed, localizations will be marked as outdated.
Warnings reference
Icon Description
🔄️ The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

Copy link
Copy Markdown
Member

@sarah11918 sarah11918 left a comment

Choose a reason for hiding this comment

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

These look great, thank you! One small grammar edit!

(Gah, this got stuck as "pending")

@sarah11918 sarah11918 added this to the v6.0.0 docs milestone Mar 6, 2026
ArmandPhilippot and others added 2 commits March 6, 2026 17:00
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
@ArmandPhilippot ArmandPhilippot merged commit b8e5010 into v6 Mar 6, 2026
10 checks passed
@ArmandPhilippot ArmandPhilippot deleted the armand/small-fixes-before-v6-launch branch March 6, 2026 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.0 code snippet update Updates a code sample: typo, outdated code etc. improve or update documentation Enhance / update existing documentation (e.g. add example, improve description, update for changes)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants