@astrojs/sitemap
3.7.6 · 18 Nov 2026MIT6.2M / weekRepositoryHomepagenpmAtom feed
Upgrading @astrojs/sitemap From 0.2.5 to 3.7.6
47 releases in betweenevery note read
Reading releases, release notes and advisories…
- 4
- changes to make
- 0
- advisories fixed
- 15
- new
- 33
- fixes
Before you upgrade
Tick each one off as you go- Breaking3.0.0
- Breaking3.0.0
- Breaking2.0.0
- Breaking1.0.0
Release by release
- Fixed
Fixes i18n locale matching for pages whose first path segment is named like an
Object.prototypeproperty, such as/constructor/or/toString/. These were treated as locales, producing invalid alternate links. Also rejects an i18ndefaultLocalethat is only an inherited object property rather than a configured locale.
- Fixed
- New
Speeds up sitemap chunk generation for large sites by tracking assigned URLs with a Set.
- New
- Fixed
Fixes the sitemap outputting a URL with an empty path for the homepage (e.g.
https://example.cominstead ofhttps://example.com/) whentrailingSlashis set to"never"orbuild.formatis set to"file"
- Fixed
- Fixed
Improves
<lastmod>accuracy in the sitemap index. Each<sitemap>entry insitemap-index.xmlis now stamped with the most recentlastmodof the URLs in the child sitemap it points to, instead of repeating a single global date on every entry. When a child sitemap has no per-URLlastmod, the entry falls back to thelastmodoption as before. This gives search engines a per-file freshness signal, so they can tell which child sitemaps actually changed without refetching all of them.
- Fixed
- Fixed
Fixes i18n fallback pages missing from the generated sitemap when using
fallbackType: 'rewrite'.
- Fixed
- Fixed
Update to Astro 6 beta
- Fixed
Updates usage of zod to own dependency rather than relying on
astro/zod - Fixed
Updates how routes are retrieved to avoid relying on a deprecated API
- Fixed
- New
Adds the ability to split sitemap generation into chunks based on customizable logic. This allows for better management of large sitemaps and improved performance. The new
chunksoption in the sitemap configuration allows users to define functions that categorize sitemap items into different chunks. Each chunk is then written to a separate sitemap file.
- New
3.6.1nothing new or fixed in the note
3 internal lines (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.