✨ Major Changes
-
1eae2e3f7Thanks @Princesseuh! - Remove support for Node 16. The lowest supported version by Astro and all integrations is now v18.14.1. As a reminder, Node 16 will be deprecated on the 11th September 2023. -
c022a4217Thanks @Princesseuh! - When using an adapter that supports neither Squoosh or Sharp, Astro will now automatically use an image service that does not support processing, but still provides the other benefits ofastro:assetssuch as enforcingalt, no CLS etc to users -
3dc1ca2faThanks @Princesseuh! - Reduced the amount of polyfills provided by Astro. Astro will no longer provide (no-op) polyfills for several web apis such as HTMLElement, Image or Document. If you need access to those APIs on the server, we recommend using more proper polyfills available on npm.
🍿 Minor Changes
-
9b4f70a62Thanks @ematipico! - Introduced the concept of feature map. A feature map is a list of features that are built-in in Astro, and an Adapter can tell Astro if it can support it.import { AstroIntegration } from './astro';function myIntegration(): AstroIntegration {return {name: 'astro-awesome-list',// new feature mapsupportedAstroFeatures: {hybridOutput: 'experimental',staticOutput: 'stable',serverOutput: 'stable',assets: {supportKind: 'stable',isSharpCompatible: false,isSquooshCompatible: false,},},};} -
3fdf509b2Thanks @ematipico! - Thebuild.splitandbuild.excludeMiddlewareconfiguration options are deprecated and have been replaced by options in the adapter config.If your config includes the
build.excludeMiddlewareoption, replace it withedgeMiddlewarein your adapter options:import { defineConfig } from "astro/config";import vercel from "@astrojs/vercel/serverless";export default defineConfig({build: {excludeMiddleware: true},adapter: vercel({edgeMiddleware: true}),});If your config includes the
build.splitoption, replace it withfunctionPerRoutein your adapter options:import { defineConfig } from "astro/config";import vercel from "@astrojs/vercel/serverless";export default defineConfig({build: {split: true},adapter: vercel({functionPerRoute: true}),});