# What changed in @astrojs/sitemap

> 5 changes in @astrojs/sitemap 3 from its official release notes, upgrade guides and advisories: 1 new APIs and options. Each one cited. Sources checked 2026-10-17. HTML: https://unstale.sh/npm/@astrojs/sitemap/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @astrojs/sitemap 3

### New APIs and options

- Adds customizable sitemap chunking, writing categorized sitemap items to separate files for better management of large sitemaps and improved performance. (3.7.0) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/sitemap%403.7.0)

### Behavior and default changes

- Sitemap index entries now use the most recent lastmod from each child sitemap, falling back to the lastmod option when needed. (3.7.3) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/sitemap%403.7.3)
- Updated to Astro 6 beta compatibility. (3.7.1) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/sitemap%403.7.1)

### Fixes and other changes

- Fixes the homepage URL to avoid an empty path when trailingSlash is never or build.format is file. (3.7.4) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/sitemap%403.7.4)
- Fixes i18n fallback pages missing from the generated sitemap when using fallbackType: 'rewrite'. (3.7.2) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/sitemap%403.7.2)
