unstale

npm / @astrojs/netlify

@astrojs/netlify

What changed in @astrojs/netlify 3 to 8, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

13 breaking4 security3 deprecations6 new APIs and options8 behavior and defaults13 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

@astrojs/netlify 811 changes

Breaking changes 1

  • Astro v7 upgrades its development server and production bundler to Vite 8. Projects using Vite-specific plugins, configuration, or APIs may need updates for breaking changes.

    7.0.0, 8.0.0upgrade guiderelease notes

Security 2

  • Generated allowlists now reject remote URLs that contain an allowed image origin only within their path or query string.

    8.2.4release notessecurity advisory

  • @astrojs/netlify generates an overly-broad Netlify Image CDN allowlist because remotePatterns.pathname metacharacters are not escaped

    8.1.2security advisoryrelease notes

New APIs and options 1

  • Adds devFeatures.edgeFunctions so users can disable Netlify Edge Function emulation during astro dev; edge functions still work in production builds and via netlify dev.

    8.1.0release notes

Behavior and default changes 2

  • Unpins @astrojs/* dependencies so versions matching the ^ range can be installed.

    8.2.14release notes

  • When session: false is set in astro.config, the adapter no longer auto-wires the Netlify Blobs session driver, allowing the session runtime to be tree-shaken out of the function bundle.

    8.2.0release notes

Fixes and other changes 5

  • Prevents traces from including the entire project when a dependency uses paths the tracer cannot resolve.

    8.2.13release notes

  • Dynamic path segments no longer glob the whole workspace, preventing unrelated files from being included in function bundles for monorepo projects.

    8.2.11release notes

  • Netlify Image CDN patterns with pathnames ending in /** now match only paths below that directory, consistent with Astro pattern matching; /public/** no longer matches /public-assets/.

    8.2.8release notes

  • Skew protection patterns now include the build assets directory (/_astro/ by default), preventing lazy-hydrated islands from loading duplicate framework instances after a redeploy.

    8.2.6release notes

  • Fixes incorrect dependencies listed in the peerDependencies field.

    8.1.0release notes

@astrojs/netlify 726 changes

Breaking changes 8

  • Updates the Astro peer dependency requirement to 6.0.0, affecting which Astro versions are compatible with this adapter.

    7.0.3release notes

  • The default changes from true to 'jsx', stripping HTML whitespace using JSX rules; set it to true to keep the previous behavior.

    7.0.0upgrade guide

  • This deprecated option still works, but now requires @astrojs/markdown-remark to be installed.

    7.0.0upgrade guide

  • Queued rendering is now the default, so projects no longer need the experimental flag to enable it.

    7.0.0upgrade guide

  • The Rust-based compiler replaces the Go-based compiler as the default and only compiler; it rejects unclosed tags and no longer corrects semantically invalid HTML.

    7.0.0upgrade guide

  • Sätteri is now the default Markdown pipeline for .md and .mdx files; the remark/rehype pipeline is no longer installed by default.

    7.0.0upgrade guide

  • Astro now treats this file as advanced routing configuration and automatically imports it; rename an unrelated existing file or configure fetchFile.

    7.0.0upgrade guide

  • The adapter feature is stable; replace experimentalStaticHeaders with staticHeaders in the Netlify adapter configuration.

    7.0.0release notes

Security 2

  • @astrojs/netlify broadens Astro image.remotePatterns in Netlify Image CDN config

    7.0.13security advisory

  • Regex generation for remotePatterns now matches canonical wildcard semantics more strictly.

    7.0.13release notes

Deprecations 1

  • The edgeMiddleware option is deprecated; transition to middlewareMode.

    7.0.0release notes

New APIs and options 4

  • Netlify edge middleware now provides the client IP address through clientAddress; createContext() also accepts this option for explicit control.

    7.0.0release notes

  • Set a different filename or null to disable advanced routing when src/fetch.ts is used for another purpose or routing features are not needed.

    7.0.0upgrade guide

  • The image service now supports the fit option.

    7.0.0release notes

  • Adds middlewareMode as the replacement for edgeMiddleware; set it to 'edge' to use edge middleware.

    7.0.0release notes

Behavior and default changes 4

  • Advanced routing is enabled by default, so its experimental flag is no longer needed.

    7.0.0upgrade guide

  • Route caching is stable; move cache and routeRules out of the experimental block in Astro config.

    7.0.0upgrade guide

  • The experimental flag is no longer needed for the logging system; configure the logger directly in the top-level Astro config field.

    7.0.0upgrade guide

  • Set this to unified() from @astrojs/markdown-remark to keep using the unified Markdown pipeline and its plugins.

    7.0.0upgrade guide

Fixes and other changes 7

  • Fixes validation of remote image dimensions during static builds on Netlify.

    7.0.7release notes

  • Fixes server islands returning 404 in production when using the default output: 'static' setting.

    7.0.5release notes

  • Fixes an issue where the adapter caused a series of warnings during the build.

    7.0.2release notes

  • Fixes a case where build.serverEntry was not respected when using the new Adapter API.

    7.0.0release notes

  • Fixes cases where the image CDN was used in development despite being disabled.

    7.0.0release notes

  • Fixes builds failing with “Entry module cannot be external” when using the Netlify adapter, without requiring code changes.

    7.0.0release notes

  • Fixes Netlify routing so server-rendered routes are handled by the SSR function instead of returning 404 errors.

    7.0.0release notes

@astrojs/netlify 62 changes

Behavior and default changes 1

  • Netlify deployment IDs are automatically included in built-in asset requests and API calls, keeping client and server versions synchronized. Custom fetch requests can send the X-Netlify-Deploy-ID header using DEPLOY_ID.

    6.6.0release notes

Fixes and other changes 1

  • Fixes a case where disabling the local image CDN wasn't possible.

    6.6.3release notes

@astrojs/netlify 41 changes

Behavior and default changes 1

  • The adapter overhaul simplifies the user-facing configuration for static and SSR deployments.

    4.0.0release notes

@astrojs/netlify 37 changes

Breaking changes 4

  • The Netlify Edge adapter is removed; use @astrojs/netlify/functions with edgeMiddleware enabled instead.

    3.0.0release notes

  • Configure edge middleware through the adapter options, replacing build.excludeMiddleware and enabling Edge middleware with the functions adapter.

    3.0.0release notes

  • Configure function-per-route behavior through the adapter options, replacing build.split.

    3.0.0release notes

  • Node 16 is no longer supported; Astro and all integrations now require Node 18.14.1 or later.

    3.0.0release notes

Deprecations 2

  • This build option is deprecated; configure edgeMiddleware in the adapter options instead.

    3.0.0release notes

  • This build option is deprecated; configure functionPerRoute in the adapter options instead.

    3.0.0release notes

New APIs and options 1

  • Integrations can declare which Astro features they support using a feature map.

    3.0.0release notes