Astro: @astrojs/[email protected] Release

Release date:
September 17, 2025
Previous version:
@astrojs/[email protected] (released August 22, 2025)
Magnitude:
2,377 Diff Delta
Contributors:
6 total committers
Data confidence:
Commits:

37 Commits in this Release

Ordered by the degree to which they evolved the repo in this version.

Authored August 27, 2025
Authored September 12, 2025
Authored August 27, 2025
Authored August 29, 2025
Authored September 3, 2025
Authored August 27, 2025
Authored September 11, 2025
Authored September 12, 2025
Authored September 9, 2025
Authored September 16, 2025
Authored September 8, 2025
Authored August 27, 2025
Authored September 4, 2025
Authored August 28, 2025
Authored September 1, 2025
Authored September 11, 2025
Authored August 29, 2025
Authored September 12, 2025
Authored August 29, 2025
Authored August 27, 2025
Authored September 3, 2025

Top Contributors in @astrojs/[email protected]

ematipico
florian-lefebvre
alexanderniebuhr
louisescher
ArmandPhilippot
trueberryless

Directory Browser for @astrojs/[email protected]

All files are compared to previous version, @astrojs/[email protected]. Click here to browse diffs between other versions.

Loading File Browser...

Release Notes Published

Minor Changes

  • #14285 bedc31b Thanks @jdcolombo! - Adds a new configuration option namespaces for more control over XML namespaces used in sitemap generation

    Excluding unused namespaces can help create cleaner, more focused sitemaps that are faster for search engines to parse and use less bandwidth. If your site doesn't have news content, videos, or multiple languages, you can exclude those namespaces to reduce XML bloat.

    The namespaces option allows you to configure news, xhtml, image, and video namespaces independently. All namespaces are enabled by default for backward compatibility and no change to existing projects is necessary. But now, you can choose to streamline your XML and avoid unnecessary code.

    For example, to exclude the video namespace from your sitemap, set video: false in your configuration:

    // astro.config.mjs
    import { sitemap } from '@astrojs/sitemap';
    
    export default {
      integrations: [
        sitemap({
          namespaces: {
            video: false,
            // other namespaces remain enabled by default
          }
        })
      ]
    };
    

    The generated XML will not include the xmlns:video namespace:

    <?xml version="1.0" encoding="UTF-8"?>
    <urlset
      xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
      xmlns:news="http://www.google.com/schemas/sitemap-news/0.9"
      xmlns:xhtml="http://www.w3.org/1999/xhtml"
      xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"
    >
      <!-- ... -->
    </urlset>