npm / @astrojs/sitemap
@astrojs/sitemap
What changed in @astrojs/sitemap 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
19 breaking4 deprecations1 new APIs and options1 performance5 behavior and defaults3 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@astrojs/sitemap 333 changes
Breaking changes 19
An inherited object property that is not a configured locale is rejected as the i18n default locale.
A built-in image services API is available for using images in Astro.
The command now requires the external @astrojs/check package and TypeScript installed in the project.
Components no longer receive class:list through Astro.props; values are normalized to a string and passed through Astro.props.class.
The integration is removed; uninstall it and update or remove its imports and existing Image and Picture components.
The package is removed, so Astro’s Markdown component no longer works in projects.
CamelCase CSS variables in style attributes are no longer additionally rendered in kebab-case; only the original camelCase variable is rendered.
The directive now uses clsx directly, which does not support deduplication or Set values; replace Set elements with plain Arrays.
Deprecated configuration settings and the style global and script hoist syntaxes are removed; use supported settings and modern syntax instead.
The return value is no longer automatically flattened; use flatMap or flat when returning arrays of arrays.
The deprecated image export from astro:content is removed; validate images through the image helper from schema instead.
BASE_URL no longer appends a trailing slash by default or when trailingSlash is ignore; behavior with always or never is unchanged.
Astro v3.0 drops Node 16 support; development and deployment environments must use Node 18.14.1 or higher.
Astro's default port changes from 3000 to 4321.
Original Shiki theme names are removed in favor of their renamed equivalents.
The default changes from where to attribute, applying styles using data-* attributes by default.
The tsconfig.json presets support only TypeScript 5.x; locally installed TypeScript must be at least v5.0.
This option is enabled in every tsconfig.json preset, requiring types to be imported using import type syntax.
Partial Web API shims are removed, so Web APIs are no longer available in server-rendered code.
Deprecations 4
This build option is deprecated; use the edgeMiddleware option in the adapter configuration instead.
This build option is deprecated; use the functionPerRoute option in the adapter configuration instead.
Returning a simple object is deprecated; return a Response object directly instead.
This feature is deprecated in favor of content collections and manually filtering pages with the draft frontmatter property.
New APIs and options 1
Adds customizable sitemap chunking, writing categorized sitemap items to separate files for better management of large sitemaps and improved performance.
Performance 1
Sitemap chunk generation is faster for large sites by tracking assigned URLs with a Set.
Behavior and default changes 5
Sitemap index entries now use the most recent lastmod from each child sitemap, falling back to the lastmod option when needed.
Updated to Astro 6 beta compatibility.
Emitted HTML is now compressed by default; set compressHTML to false to opt out.
Remove the experimental flag; the image services API is now available by default.
Remove the experimental flag; View Transitions are now available by default.
Fixes and other changes 3
Pages whose first path segment matches an Object.prototype property are no longer treated as locales, preventing invalid alternate links.
Fixes the homepage URL to avoid an empty path when trailingSlash is never or build.format is file.
Fixes i18n fallback pages missing from the generated sitemap when using fallbackType: 'rewrite'.