unstale

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

@unstale/cli on npm

@astrojs/sitemap 333 changes

Breaking changes 19

  • An inherited object property that is not a configured locale is rejected as the i18n default locale.

    3.7.6release notes

  • A built-in image services API is available for using images in Astro.

    3.0.0upgrade guide

  • The command now requires the external @astrojs/check package and TypeScript installed in the project.

    3.0.0upgrade guide

  • Components no longer receive class:list through Astro.props; values are normalized to a string and passed through Astro.props.class.

    3.0.0upgrade guide

  • The integration is removed; uninstall it and update or remove its imports and existing Image and Picture components.

    3.0.0upgrade guide

  • The package is removed, so Astro’s Markdown component no longer works in projects.

    3.0.0upgrade guide

  • CamelCase CSS variables in style attributes are no longer additionally rendered in kebab-case; only the original camelCase variable is rendered.

    3.0.0upgrade guide

  • The directive now uses clsx directly, which does not support deduplication or Set values; replace Set elements with plain Arrays.

    3.0.0upgrade guide

  • Deprecated configuration settings and the style global and script hoist syntaxes are removed; use supported settings and modern syntax instead.

    3.0.0upgrade guide

  • The return value is no longer automatically flattened; use flatMap or flat when returning arrays of arrays.

    3.0.0upgrade guide

  • The deprecated image export from astro:content is removed; validate images through the image helper from schema instead.

    3.0.0upgrade guide

  • BASE_URL no longer appends a trailing slash by default or when trailingSlash is ignore; behavior with always or never is unchanged.

    3.0.0upgrade guide

  • Astro v3.0 drops Node 16 support; development and deployment environments must use Node 18.14.1 or higher.

    3.0.0upgrade guide

  • Astro's default port changes from 3000 to 4321.

    3.0.0upgrade guide

  • Original Shiki theme names are removed in favor of their renamed equivalents.

    3.0.0upgrade guide

  • The default changes from where to attribute, applying styles using data-* attributes by default.

    3.0.0upgrade guide

  • The tsconfig.json presets support only TypeScript 5.x; locally installed TypeScript must be at least v5.0.

    3.0.0upgrade guide

  • This option is enabled in every tsconfig.json preset, requiring types to be imported using import type syntax.

    3.0.0upgrade guide

  • Partial Web API shims are removed, so Web APIs are no longer available in server-rendered code.

    3.0.0upgrade guide

Deprecations 4

  • This build option is deprecated; use the edgeMiddleware option in the adapter configuration instead.

    3.0.0upgrade guide

  • This build option is deprecated; use the functionPerRoute option in the adapter configuration instead.

    3.0.0upgrade guide

  • Returning a simple object is deprecated; return a Response object directly instead.

    3.0.0upgrade guide

  • This feature is deprecated in favor of content collections and manually filtering pages with the draft frontmatter property.

    3.0.0upgrade guide

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.

    3.7.0release notes

Performance 1

  • Sitemap chunk generation is faster for large sites by tracking assigned URLs with a Set.

    3.7.5release notes

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.

    3.7.3release notes

  • Updated to Astro 6 beta compatibility.

    3.7.1release notes

  • Emitted HTML is now compressed by default; set compressHTML to false to opt out.

    3.0.0upgrade guide

  • Remove the experimental flag; the image services API is now available by default.

    3.0.0upgrade guide

  • Remove the experimental flag; View Transitions are now available by default.

    3.0.0upgrade guide

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.

    3.7.6release notes

  • Fixes the homepage URL to avoid an empty path when trailingSlash is never or build.format is file.

    3.7.4release notes

  • Fixes i18n fallback pages missing from the generated sitemap when using fallbackType: 'rewrite'.

    3.7.2release notes