From 5598feb71864f814d0a34bb6bf9f6ecdff081497 Mon Sep 17 00:00:00 2001 From: "Houston (Bot)" <108291165+astrobot-houston@users.noreply.github.com> Date: Wed, 30 Aug 2023 04:38:28 -0700 Subject: [PATCH] [ci] release (#8279) Co-authored-by: github-actions[bot] --- .changeset/afraid-dots-whisper.md | 29 - .changeset/angry-dogs-shake.md | 5 - .changeset/big-tips-whisper.md | 5 - .changeset/brave-cheetahs-float.md | 5 - .changeset/breezy-books-notice.md | 6 - .changeset/chatty-ways-hunt.md | 5 - .changeset/chilled-ducks-grin.md | 5 - .changeset/clever-bats-breathe.md | 13 - .changeset/cool-feet-rest.md | 7 - .changeset/cool-jokes-clap.md | 11 - .changeset/curvy-experts-jog.md | 30 - .changeset/cyan-carrots-stare.md | 5 - .changeset/dirty-lies-cover.md | 32 -- .changeset/fair-emus-divide.md | 39 -- .changeset/fair-eyes-promise.md | 7 - .changeset/famous-queens-itch.md | 5 - .changeset/five-geese-crash.md | 11 - .changeset/four-houses-compete.md | 18 - .changeset/fresh-shrimps-happen.md | 5 - .changeset/gentle-deers-yawn.md | 5 - .changeset/gentle-meals-crash.md | 9 - .changeset/giant-plants-sip.md | 29 - .changeset/gorgeous-kiwis-stare.md | 5 - .changeset/grumpy-pens-melt.md | 21 - .changeset/grumpy-years-remember.md | 5 - .changeset/happy-penguins-hug.md | 5 - .changeset/heavy-countries-wonder.md | 5 - .changeset/heavy-walls-arrive.md | 8 - .changeset/honest-houses-deny.md | 25 - .changeset/large-countries-share.md | 7 - .changeset/light-badgers-mate.md | 8 - .changeset/long-chefs-jump.md | 5 - .changeset/loud-candles-admire.md | 5 - .changeset/lovely-walls-call.md | 5 - .changeset/many-impalas-sit.md | 5 - .changeset/many-pears-explode.md | 35 -- .changeset/mighty-dancers-lay.md | 5 - .changeset/nasty-garlics-listen.md | 5 - .changeset/neat-mugs-end.md | 8 - .changeset/neat-owls-run.md | 25 - .changeset/neat-suns-search.md | 17 - .changeset/ninety-boats-brake.md | 9 - .changeset/odd-books-live.md | 23 - .changeset/olive-moles-tan.md | 5 - .changeset/perfect-horses-tell.md | 27 - .changeset/perfect-socks-hammer.md | 5 - .changeset/plenty-keys-add.md | 23 - .changeset/popular-carrots-sneeze.md | 5 - .changeset/pre.json | 121 ---- .changeset/proud-fans-type.md | 5 - .changeset/purple-buses-prove.md | 5 - .changeset/quick-boats-bow.md | 5 - .changeset/rude-ears-play.md | 5 - .changeset/serious-waves-fry.md | 5 - .changeset/shiny-dryers-swim.md | 5 - .changeset/silent-bikes-crash.md | 8 - .changeset/silly-dolphins-try.md | 9 - .changeset/six-grapes-look.md | 15 - .changeset/slimy-carrots-sell.md | 9 - .changeset/small-nails-try.md | 5 - .changeset/smart-numbers-shout.md | 19 - .changeset/spicy-eels-rush.md | 8 - .changeset/spicy-icons-live.md | 14 - .changeset/spicy-stingrays-cheer.md | 5 - .changeset/strange-peas-agree.md | 5 - .changeset/strong-needles-accept.md | 5 - .changeset/strong-papayas-chew.md | 5 - .changeset/swift-taxis-sing.md | 5 - .changeset/tame-files-glow.md | 23 - .changeset/tame-knives-shake.md | 5 - .changeset/tasty-camels-speak.md | 5 - .changeset/tasty-dragons-smash.md | 5 - .changeset/thin-ants-repeat.md | 6 - .changeset/three-adults-exist.md | 5 - .changeset/three-onions-repeat.md | 5 - .changeset/tricky-candles-suffer.md | 39 -- .changeset/twelve-coats-rush.md | 35 -- .changeset/twenty-cheetahs-deny.md | 17 - .changeset/unlucky-hotels-try.md | 5 - .changeset/unlucky-ravens-type.md | 14 - .changeset/unlucky-sheep-build.md | 7 - .changeset/violet-peaches-invent.md | 5 - .changeset/warm-weeks-yell.md | 13 - .changeset/wet-foxes-sleep.md | 5 - .changeset/wild-bobcats-carry.md | 5 - .changeset/wise-cameras-agree.md | 23 - .changeset/yellow-tips-cover.md | 26 - .changeset/young-roses-teach.md | 5 - examples/basics/package.json | 2 +- examples/blog/package.json | 8 +- examples/component/package.json | 2 +- examples/deno/package.json | 4 +- examples/framework-alpine/package.json | 4 +- examples/framework-lit/package.json | 4 +- examples/framework-multiple/package.json | 12 +- examples/framework-preact/package.json | 4 +- examples/framework-react/package.json | 4 +- examples/framework-solid/package.json | 4 +- examples/framework-svelte/package.json | 4 +- examples/framework-vue/package.json | 4 +- examples/hackernews/package.json | 4 +- examples/integration/package.json | 2 +- examples/middleware/package.json | 4 +- examples/minimal/package.json | 2 +- examples/non-html-pages/package.json | 2 +- examples/portfolio/package.json | 2 +- examples/ssr/package.json | 6 +- examples/with-markdoc/package.json | 4 +- examples/with-markdown-plugins/package.json | 4 +- examples/with-markdown-shiki/package.json | 2 +- examples/with-mdx/package.json | 6 +- examples/with-nanostores/package.json | 4 +- examples/with-tailwindcss/package.json | 6 +- examples/with-vite-plugin-pwa/package.json | 2 +- examples/with-vitest/package.json | 2 +- packages/astro-prism/CHANGELOG.md | 8 + packages/astro-prism/package.json | 2 +- packages/astro-rss/CHANGELOG.md | 36 ++ packages/astro-rss/package.json | 2 +- packages/astro/CHANGELOG.md | 534 ++++++++++++++++++ packages/astro/package.json | 2 +- packages/create-astro/CHANGELOG.md | 8 + packages/create-astro/package.json | 2 +- packages/integrations/alpinejs/CHANGELOG.md | 8 + packages/integrations/alpinejs/package.json | 2 +- packages/integrations/cloudflare/CHANGELOG.md | 64 +++ packages/integrations/cloudflare/package.json | 4 +- packages/integrations/deno/CHANGELOG.md | 41 ++ packages/integrations/deno/package.json | 4 +- packages/integrations/lit/CHANGELOG.md | 8 + packages/integrations/lit/package.json | 2 +- packages/integrations/markdoc/CHANGELOG.md | 23 + packages/integrations/markdoc/package.json | 4 +- packages/integrations/mdx/CHANGELOG.md | 35 ++ packages/integrations/mdx/package.json | 4 +- packages/integrations/netlify/CHANGELOG.md | 98 ++++ packages/integrations/netlify/package.json | 4 +- packages/integrations/node/CHANGELOG.md | 41 ++ packages/integrations/node/package.json | 4 +- packages/integrations/partytown/CHANGELOG.md | 8 + packages/integrations/partytown/package.json | 2 +- packages/integrations/preact/CHANGELOG.md | 16 + packages/integrations/preact/package.json | 2 +- packages/integrations/prefetch/CHANGELOG.md | 8 + packages/integrations/prefetch/package.json | 2 +- packages/integrations/react/CHANGELOG.md | 23 + packages/integrations/react/package.json | 4 +- packages/integrations/sitemap/CHANGELOG.md | 8 + packages/integrations/sitemap/package.json | 2 +- packages/integrations/solid/CHANGELOG.md | 16 + packages/integrations/solid/package.json | 2 +- packages/integrations/svelte/CHANGELOG.md | 15 + packages/integrations/svelte/package.json | 4 +- packages/integrations/tailwind/CHANGELOG.md | 13 + packages/integrations/tailwind/package.json | 4 +- packages/integrations/vercel/CHANGELOG.md | 104 ++++ packages/integrations/vercel/package.json | 4 +- packages/integrations/vue/CHANGELOG.md | 15 + packages/integrations/vue/package.json | 4 +- packages/internal-helpers/CHANGELOG.md | 12 + packages/internal-helpers/package.json | 2 +- packages/markdown/remark/CHANGELOG.md | 20 + packages/markdown/remark/package.json | 6 +- packages/telemetry/CHANGELOG.md | 16 + packages/telemetry/package.json | 2 +- packages/underscore-redirects/CHANGELOG.md | 8 + packages/underscore-redirects/package.json | 2 +- pnpm-lock.yaml | 112 ++-- 168 files changed, 1335 insertions(+), 1252 deletions(-) delete mode 100644 .changeset/afraid-dots-whisper.md delete mode 100644 .changeset/angry-dogs-shake.md delete mode 100644 .changeset/big-tips-whisper.md delete mode 100644 .changeset/brave-cheetahs-float.md delete mode 100644 .changeset/breezy-books-notice.md delete mode 100644 .changeset/chatty-ways-hunt.md delete mode 100644 .changeset/chilled-ducks-grin.md delete mode 100644 .changeset/clever-bats-breathe.md delete mode 100644 .changeset/cool-feet-rest.md delete mode 100644 .changeset/cool-jokes-clap.md delete mode 100644 .changeset/curvy-experts-jog.md delete mode 100644 .changeset/cyan-carrots-stare.md delete mode 100644 .changeset/dirty-lies-cover.md delete mode 100644 .changeset/fair-emus-divide.md delete mode 100644 .changeset/fair-eyes-promise.md delete mode 100644 .changeset/famous-queens-itch.md delete mode 100644 .changeset/five-geese-crash.md delete mode 100644 .changeset/four-houses-compete.md delete mode 100644 .changeset/fresh-shrimps-happen.md delete mode 100644 .changeset/gentle-deers-yawn.md delete mode 100644 .changeset/gentle-meals-crash.md delete mode 100644 .changeset/giant-plants-sip.md delete mode 100644 .changeset/gorgeous-kiwis-stare.md delete mode 100644 .changeset/grumpy-pens-melt.md delete mode 100644 .changeset/grumpy-years-remember.md delete mode 100644 .changeset/happy-penguins-hug.md delete mode 100644 .changeset/heavy-countries-wonder.md delete mode 100644 .changeset/heavy-walls-arrive.md delete mode 100644 .changeset/honest-houses-deny.md delete mode 100644 .changeset/large-countries-share.md delete mode 100644 .changeset/light-badgers-mate.md delete mode 100644 .changeset/long-chefs-jump.md delete mode 100644 .changeset/loud-candles-admire.md delete mode 100644 .changeset/lovely-walls-call.md delete mode 100644 .changeset/many-impalas-sit.md delete mode 100644 .changeset/many-pears-explode.md delete mode 100644 .changeset/mighty-dancers-lay.md delete mode 100644 .changeset/nasty-garlics-listen.md delete mode 100644 .changeset/neat-mugs-end.md delete mode 100644 .changeset/neat-owls-run.md delete mode 100644 .changeset/neat-suns-search.md delete mode 100644 .changeset/ninety-boats-brake.md delete mode 100644 .changeset/odd-books-live.md delete mode 100644 .changeset/olive-moles-tan.md delete mode 100644 .changeset/perfect-horses-tell.md delete mode 100644 .changeset/perfect-socks-hammer.md delete mode 100644 .changeset/plenty-keys-add.md delete mode 100644 .changeset/popular-carrots-sneeze.md delete mode 100644 .changeset/pre.json delete mode 100644 .changeset/proud-fans-type.md delete mode 100644 .changeset/purple-buses-prove.md delete mode 100644 .changeset/quick-boats-bow.md delete mode 100644 .changeset/rude-ears-play.md delete mode 100644 .changeset/serious-waves-fry.md delete mode 100644 .changeset/shiny-dryers-swim.md delete mode 100644 .changeset/silent-bikes-crash.md delete mode 100644 .changeset/silly-dolphins-try.md delete mode 100644 .changeset/six-grapes-look.md delete mode 100644 .changeset/slimy-carrots-sell.md delete mode 100644 .changeset/small-nails-try.md delete mode 100644 .changeset/smart-numbers-shout.md delete mode 100644 .changeset/spicy-eels-rush.md delete mode 100644 .changeset/spicy-icons-live.md delete mode 100644 .changeset/spicy-stingrays-cheer.md delete mode 100644 .changeset/strange-peas-agree.md delete mode 100644 .changeset/strong-needles-accept.md delete mode 100644 .changeset/strong-papayas-chew.md delete mode 100644 .changeset/swift-taxis-sing.md delete mode 100644 .changeset/tame-files-glow.md delete mode 100644 .changeset/tame-knives-shake.md delete mode 100644 .changeset/tasty-camels-speak.md delete mode 100644 .changeset/tasty-dragons-smash.md delete mode 100644 .changeset/thin-ants-repeat.md delete mode 100644 .changeset/three-adults-exist.md delete mode 100644 .changeset/three-onions-repeat.md delete mode 100644 .changeset/tricky-candles-suffer.md delete mode 100644 .changeset/twelve-coats-rush.md delete mode 100644 .changeset/twenty-cheetahs-deny.md delete mode 100644 .changeset/unlucky-hotels-try.md delete mode 100644 .changeset/unlucky-ravens-type.md delete mode 100644 .changeset/unlucky-sheep-build.md delete mode 100644 .changeset/violet-peaches-invent.md delete mode 100644 .changeset/warm-weeks-yell.md delete mode 100644 .changeset/wet-foxes-sleep.md delete mode 100644 .changeset/wild-bobcats-carry.md delete mode 100644 .changeset/wise-cameras-agree.md delete mode 100644 .changeset/yellow-tips-cover.md delete mode 100644 .changeset/young-roses-teach.md diff --git a/.changeset/afraid-dots-whisper.md b/.changeset/afraid-dots-whisper.md deleted file mode 100644 index 272a1e2129ee..000000000000 --- a/.changeset/afraid-dots-whisper.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -'@astrojs/cloudflare': major -'@astrojs/partytown': major -'@astrojs/tailwind': major -'@astrojs/netlify': major -'@astrojs/sitemap': major -'@astrojs/preact': major -'@astrojs/svelte': major -'@astrojs/vercel': major -'@astrojs/react': major -'@astrojs/solid-js': major -'@astrojs/deno': major -'@astrojs/node': major -'@astrojs/lit': major -'@astrojs/vue': major -'create-astro': major -'@astrojs/prism': major -'@astrojs/rss': major -'@astrojs/telemetry': major -'astro': major -'@astrojs/alpinejs': minor -'@astrojs/prefetch': minor -'@astrojs/markdoc': minor -'@astrojs/underscore-redirects': minor -'@astrojs/mdx': minor -'@astrojs/internal-helpers': minor ---- - -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. diff --git a/.changeset/angry-dogs-shake.md b/.changeset/angry-dogs-shake.md deleted file mode 100644 index 979fcf0f4c74..000000000000 --- a/.changeset/angry-dogs-shake.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Use `undici` for File changeset for Node 16 compatibility diff --git a/.changeset/big-tips-whisper.md b/.changeset/big-tips-whisper.md deleted file mode 100644 index ad532760f617..000000000000 --- a/.changeset/big-tips-whisper.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/internal-helpers': patch ---- - -Trigger re-release to fix `collapseDuplicateSlashes` export diff --git a/.changeset/brave-cheetahs-float.md b/.changeset/brave-cheetahs-float.md deleted file mode 100644 index 84825ce0f7d3..000000000000 --- a/.changeset/brave-cheetahs-float.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Do not throw Error when users pass an object with a "type" property diff --git a/.changeset/breezy-books-notice.md b/.changeset/breezy-books-notice.md deleted file mode 100644 index 586b405ea6f1..000000000000 --- a/.changeset/breezy-books-notice.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@astrojs/telemetry': patch -'astro': patch ---- - -Update telemetry notice diff --git a/.changeset/chatty-ways-hunt.md b/.changeset/chatty-ways-hunt.md deleted file mode 100644 index d6a9584a1354..000000000000 --- a/.changeset/chatty-ways-hunt.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Adds a link to the error reference in the CLI when an error occurs diff --git a/.changeset/chilled-ducks-grin.md b/.changeset/chilled-ducks-grin.md deleted file mode 100644 index b63b1f29c29d..000000000000 --- a/.changeset/chilled-ducks-grin.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': major ---- - -Removed automatic flattening of `getStaticPaths` result. `.flatMap` and `.flat` should now be used to ensure that you're returning a flat array. diff --git a/.changeset/clever-bats-breathe.md b/.changeset/clever-bats-breathe.md deleted file mode 100644 index 2c1a6dc39f9b..000000000000 --- a/.changeset/clever-bats-breathe.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'astro': major ---- - -This import alias is no longer included by default with astro:assets. If you were using this alias with experimental assets, you must convert them to relative file paths, or create your own [import aliases](https://docs.astro.build/en/guides/aliases/). - -```diff ---- -// src/pages/posts/post-1.astro -- import rocket from '~/assets/rocket.png' -+ import rocket from '../../assets/rocket.png'; ---- -``` diff --git a/.changeset/cool-feet-rest.md b/.changeset/cool-feet-rest.md deleted file mode 100644 index c2e724d8002c..000000000000 --- a/.changeset/cool-feet-rest.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@astrojs/solid-js': major ---- - -New `include` and `exclude` config options - -The Solid integration now has new `include` and `exclude` config options. Use these if you want to use Solid alongside another JSX framework; include specifies files to be compiled for Solid and `exclude` does the opposite. diff --git a/.changeset/cool-jokes-clap.md b/.changeset/cool-jokes-clap.md deleted file mode 100644 index 74176b259447..000000000000 --- a/.changeset/cool-jokes-clap.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'astro': major ---- - -Fixes for the `class:list` directive - -- Previously, `class:list` would ocassionally not be merged the `class` prop when passed to Astro components. Now, `class:list` is always converted to a `class` prop (as a string value). -- Previously, `class:list` diverged from [`clsx`](https://github.com/lukeed/clsx) in a few edge cases. Now, `class:list` uses [`clsx`](https://github.com/lukeed/clsx) directly. - - `class:list` used to deduplicate matching values, but it no longer does - - `class:list` used to sort individual values, but it no longer does - - `class:list` used to support `Set` and other iterables, but it no longer does diff --git a/.changeset/curvy-experts-jog.md b/.changeset/curvy-experts-jog.md deleted file mode 100644 index 156f7eabcc4b..000000000000 --- a/.changeset/curvy-experts-jog.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -'@astrojs/cloudflare': major -'@astrojs/partytown': major -'@astrojs/tailwind': major -'@astrojs/netlify': major -'@astrojs/sitemap': major -'@astrojs/preact': major -'@astrojs/svelte': major -'@astrojs/vercel': major -'@astrojs/react': major -'@astrojs/solid-js': major -'@astrojs/deno': major -'@astrojs/node': major -'@astrojs/lit': major -'@astrojs/mdx': major -'@astrojs/vue': major -'@astrojs/markdown-remark': major -'create-astro': major -'@astrojs/prism': major -'@astrojs/rss': major -'@astrojs/telemetry': major -'astro': major -'@astrojs/alpinejs': minor -'@astrojs/prefetch': minor -'@astrojs/markdoc': minor -'@astrojs/underscore-redirects': minor -'@astrojs/internal-helpers': minor ---- - -Astro 3.0 Release Candidate diff --git a/.changeset/cyan-carrots-stare.md b/.changeset/cyan-carrots-stare.md deleted file mode 100644 index f7bcd48707a4..000000000000 --- a/.changeset/cyan-carrots-stare.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Update error message when Sharp couldn't be found (tends to happen on pnpm notably) diff --git a/.changeset/dirty-lies-cover.md b/.changeset/dirty-lies-cover.md deleted file mode 100644 index ae74e348e61a..000000000000 --- a/.changeset/dirty-lies-cover.md +++ /dev/null @@ -1,32 +0,0 @@ ---- -'@astrojs/cloudflare': minor -'@astrojs/netlify': minor -'@astrojs/vercel': minor -'@astrojs/deno': minor -'@astrojs/node': minor -'astro': minor ---- - -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. - -```ts -import {AstroIntegration} from "./astro"; - -function myIntegration(): AstroIntegration { - return { - name: 'astro-awesome-list', - // new feature map - supportedAstroFeatures: { - hybridOutput: 'experimental', - staticOutput: 'stable', - serverOutput: 'stable', - assets: { - supportKind: 'stable', - isSharpCompatible: false, - isSquooshCompatible: false, - }, - } - } -} -``` diff --git a/.changeset/fair-emus-divide.md b/.changeset/fair-emus-divide.md deleted file mode 100644 index 529760241add..000000000000 --- a/.changeset/fair-emus-divide.md +++ /dev/null @@ -1,39 +0,0 @@ ---- -'astro': major -'@astrojs/netlify': minor ---- - -The `build.split` and `build.excludeMiddleware` configuration options are deprecated and have been replaced by options in the adapter config. - -If your config includes the `build.excludeMiddleware` option, replace it with `edgeMiddleware` in your adapter options: - -```diff -import { defineConfig } from "astro/config"; -import netlify from "@astrojs/netlify/functions"; - -export default defineConfig({ - build: { -- excludeMiddleware: true - }, - adapter: netlify({ -+ edgeMiddleware: true - }), -}); -``` - -If your config includes the `build.split` option, replace it with `functionPerRoute` in your adapter options: - -```diff -import { defineConfig } from "astro/config"; -import netlify from "@astrojs/netlify/functions"; - -export default defineConfig({ - build: { -- split: true - }, - adapter: netlify({ -+ functionPerRoute: true - }), -}); -``` - diff --git a/.changeset/fair-eyes-promise.md b/.changeset/fair-eyes-promise.md deleted file mode 100644 index c66a42d17904..000000000000 --- a/.changeset/fair-eyes-promise.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@astrojs/mdx': major ---- - -Support Astro 3 JSX format - -This upgrades the MDX plugin to correctly work with the new JSX render API in Astro 3. diff --git a/.changeset/famous-queens-itch.md b/.changeset/famous-queens-itch.md deleted file mode 100644 index e3538cdd65f1..000000000000 --- a/.changeset/famous-queens-itch.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/mdx': patch ---- - -Re-orders the MDX plugin to run before Astro's JSX plugin diff --git a/.changeset/five-geese-crash.md b/.changeset/five-geese-crash.md deleted file mode 100644 index 832d3dacafdc..000000000000 --- a/.changeset/five-geese-crash.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'astro': major ---- - -Change the [View Transition built-in animation](https://docs.astro.build/en/guides/view-transitions/#built-in-animation-directives) options. - -The `transition:animate` value `morph` has been renamed to `initial`. Also, this is no longer the default animation. - -If no `transition:animate` directive is specified, your animations will now default to `fade`. - -Astro also supports a new `transition:animate` value, `none`. This value can be used on a page's `` element to disable animated full-page transitions on an entire page. diff --git a/.changeset/four-houses-compete.md b/.changeset/four-houses-compete.md deleted file mode 100644 index 641bb10353dd..000000000000 --- a/.changeset/four-houses-compete.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'astro': major ---- - -Sharp is now the default image service used for `astro:assets`. If you would prefer to still use Squoosh, you can update your config with the following: - -```ts -import { defineConfig, squooshImageService } from "astro/config"; - -// https://astro.build/config -export default defineConfig({ - image: { - service: squooshImageService(), - } -}) -``` - -However, not only do we recommend using Sharp as it is faster and more reliable, it is also highly likely that the Squoosh service will be removed in a future release. diff --git a/.changeset/fresh-shrimps-happen.md b/.changeset/fresh-shrimps-happen.md deleted file mode 100644 index deb4f5c94112..000000000000 --- a/.changeset/fresh-shrimps-happen.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@astrojs/react": patch ---- - -Publish missing `vnode-children.js` file diff --git a/.changeset/gentle-deers-yawn.md b/.changeset/gentle-deers-yawn.md deleted file mode 100644 index 30e577c69b57..000000000000 --- a/.changeset/gentle-deers-yawn.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Call `astro sync` once before calling `astro check` diff --git a/.changeset/gentle-meals-crash.md b/.changeset/gentle-meals-crash.md deleted file mode 100644 index 5314442eae60..000000000000 --- a/.changeset/gentle-meals-crash.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'astro': major ---- - -Remove support for `Astro.__renderMarkdown` which is used by `@astrojs/markdown-component`. - -The `` component was deprecated in Astro v1 and is completely removed in v3. This integration must now be removed from your project. - -As an alternative, you can use community packages that provide a similar component like https://github.com/natemoo-re/astro-remote instead. diff --git a/.changeset/giant-plants-sip.md b/.changeset/giant-plants-sip.md deleted file mode 100644 index 884021b8ecca..000000000000 --- a/.changeset/giant-plants-sip.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -'astro': major ---- - -Remove backwards-compatible kebab-case transform for camelCase CSS variable names passed to the `style` attribute. If you were relying on the kebab-case transform in your styles, make sure to use the camelCase version to prevent missing styles. For example: - -```astro ---- -const myValue = "red" ---- - - -
- - -
- - -
-``` - -```diff - -``` \ No newline at end of file diff --git a/.changeset/gorgeous-kiwis-stare.md b/.changeset/gorgeous-kiwis-stare.md deleted file mode 100644 index d7129ed884a5..000000000000 --- a/.changeset/gorgeous-kiwis-stare.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Use .js to import logger diff --git a/.changeset/grumpy-pens-melt.md b/.changeset/grumpy-pens-melt.md deleted file mode 100644 index 14faf0676040..000000000000 --- a/.changeset/grumpy-pens-melt.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -'astro': minor ---- - -View Transitions unflagged - -View Transition support in Astro is now unflagged. For those who have used the experimental feature you can remove the flag in your Astro config: - -```diff -import { defineConfig } from 'astro' - -export default defineConfig({ -- experimental: { -- viewTransitions: true, -- } -}) -``` - -After removing this flag, please also consult the specific [upgrade to v3.0 advice](https://docs.astro.build/en/guides/view-transitions/#upgrade-to-v30-from-v2x) as some API features have changed and you may have breaking changes with your existing view transitions. - -See the [View Transitions guide](https://docs.astro.build/en/guides/view-transitions/) to learn how to use the API. diff --git a/.changeset/grumpy-years-remember.md b/.changeset/grumpy-years-remember.md deleted file mode 100644 index 1e1906cd926f..000000000000 --- a/.changeset/grumpy-years-remember.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fix, lazily initialize ResponseWithEncoding diff --git a/.changeset/happy-penguins-hug.md b/.changeset/happy-penguins-hug.md deleted file mode 100644 index 215031769837..000000000000 --- a/.changeset/happy-penguins-hug.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': major ---- - -Remove deprecated config option types, deprecated script/style attributes, and deprecated `image` export from `astro:content` diff --git a/.changeset/heavy-countries-wonder.md b/.changeset/heavy-countries-wonder.md deleted file mode 100644 index 599f0d8bb66b..000000000000 --- a/.changeset/heavy-countries-wonder.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Add a type param to AstroGlobal to type params. This will eventually be used automatically by our tooling to provide typing and completions for `Astro.params` diff --git a/.changeset/heavy-walls-arrive.md b/.changeset/heavy-walls-arrive.md deleted file mode 100644 index 68f64dacb55a..000000000000 --- a/.changeset/heavy-walls-arrive.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@astrojs/cloudflare': major -'@astrojs/netlify': major -'@astrojs/vercel': major -'astro': major ---- - -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 of `astro:assets` such as enforcing `alt`, no CLS etc to users diff --git a/.changeset/honest-houses-deny.md b/.changeset/honest-houses-deny.md deleted file mode 100644 index 962e0442347b..000000000000 --- a/.changeset/honest-houses-deny.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -'@astrojs/rss': major ---- - -Update the `rss()` default export to return a `Response` instead of a simple object, which is deprecated in Astro 3.0. If you were directly returning the `rss()` result from an endpoint before, this breaking change should not affect you. - -You can also import `getRssString()` to get the RSS string directly and use it to return your own Response: - -```ts -// src/pages/rss.xml.js -import { getRssString } from '@astrojs/rss'; - -export async function get(context) { - const rssString = await getRssString({ - title: 'Buzz’s Blog', - ... - }); - - return new Response(rssString, { - headers: { - 'Content-Type': 'application/xml', - }, - }); -} -``` diff --git a/.changeset/large-countries-share.md b/.changeset/large-countries-share.md deleted file mode 100644 index b3101d2f2225..000000000000 --- a/.changeset/large-countries-share.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@astrojs/preact': major ---- - -New `include` and `exclude` config options - -The Preact integration now has new `include` and `exclude` config options. Use these if you want to use Preact alongside another JSX framework; include specifies files to be compiled for Preact and `exclude` does the opposite. diff --git a/.changeset/light-badgers-mate.md b/.changeset/light-badgers-mate.md deleted file mode 100644 index ea0451bec2b5..000000000000 --- a/.changeset/light-badgers-mate.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'astro': patch ---- - -Specify `data-astro-reload` (no value) on an anchor element to force the browser to ignore view transitions and fall back to default loading. - -This is helpful when navigating to documents that have different content-types, e.g. application/pdf, where you want to use the build in viewer of the browser. -Example: `...` diff --git a/.changeset/long-chefs-jump.md b/.changeset/long-chefs-jump.md deleted file mode 100644 index ed8f47614bfb..000000000000 --- a/.changeset/long-chefs-jump.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -The scrollend mechanism is a better way to record the scroll position compared to throttling, so we now use it whenever a browser supports it. \ No newline at end of file diff --git a/.changeset/loud-candles-admire.md b/.changeset/loud-candles-admire.md deleted file mode 100644 index 3fe1f12e7f92..000000000000 --- a/.changeset/loud-candles-admire.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/mdx': patch ---- - -Handle `components` exports handling itself diff --git a/.changeset/lovely-walls-call.md b/.changeset/lovely-walls-call.md deleted file mode 100644 index 408fa00c5a7c..000000000000 --- a/.changeset/lovely-walls-call.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Improve fidelity of time stats when running `astro build` diff --git a/.changeset/many-impalas-sit.md b/.changeset/many-impalas-sit.md deleted file mode 100644 index ad48de4f3901..000000000000 --- a/.changeset/many-impalas-sit.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fix `image.service` requiring to be set manually when `image.domains` or `image.remotePatterns` was assigned a value diff --git a/.changeset/many-pears-explode.md b/.changeset/many-pears-explode.md deleted file mode 100644 index 1e2a30edc227..000000000000 --- a/.changeset/many-pears-explode.md +++ /dev/null @@ -1,35 +0,0 @@ ---- -'astro': major ---- - -Export experimental `dev`, `build`, `preview`, and `sync` APIs from `astro`. These APIs allow you to run Astro's commands programmatically, and replaces the previous entry point that runs the Astro CLI. - -While these APIs are experimental, the inline config parameter is relatively stable without foreseeable changes. However, the returned results of these APIs are more likely to change in the future. - -```ts -import { dev, build, preview, sync, type AstroInlineConfig } from 'astro'; - -// Inline Astro config object. -// Provide a path to a configuration file to load or set options directly inline. -const inlineConfig: AstroInlineConfig = { - // Inline-specific options... - configFile: './astro.config.mjs', - logLevel: 'info', - // Standard Astro config options... - site: 'https://example.com', -}; - -// Start the Astro dev server -const devServer = await dev(inlineConfig); -await devServer.stop(); - -// Build your Astro project -await build(inlineConfig); - -// Preview your built project -const previewServer = await preview(inlineConfig); -await previewServer.stop(); - -// Generate types for your Astro project -await sync(inlineConfig); -``` diff --git a/.changeset/mighty-dancers-lay.md b/.changeset/mighty-dancers-lay.md deleted file mode 100644 index 873c4edd1830..000000000000 --- a/.changeset/mighty-dancers-lay.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': major ---- - -Removed support for old syntax of the API routes. diff --git a/.changeset/nasty-garlics-listen.md b/.changeset/nasty-garlics-listen.md deleted file mode 100644 index e1b19b96b2e1..000000000000 --- a/.changeset/nasty-garlics-listen.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Reimplement https://github.com/withastro/astro/pull/7509 to correctly emit pre-rendered pages now that `build.split` is deprecated and this configuration has been moved to `functionPerRoute` inside the adapter. diff --git a/.changeset/neat-mugs-end.md b/.changeset/neat-mugs-end.md deleted file mode 100644 index dd65708a73ac..000000000000 --- a/.changeset/neat-mugs-end.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'astro': minor ---- - - -`astro:`namespace aliases for middleware and components - -This adds aliases of `astro:middleware` and `astro:components` for the middleware and components modules. This is to make our documentation consistent between are various modules, where some are virtual modules and others are not. Going forward new built-in modules will use this namespace. diff --git a/.changeset/neat-owls-run.md b/.changeset/neat-owls-run.md deleted file mode 100644 index 501b5319f5df..000000000000 --- a/.changeset/neat-owls-run.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -'astro': major ---- - -Remove exports for `astro/internal/*` and `astro/runtime/server/*` in favour of `astro/runtime/*`. Add new `astro/compiler-runtime` export for compiler-specific runtime code. - -These are exports for Astro's internal API and should not affect your project, but if you do use these entrypoints, you can migrate like below: - -```diff -- import 'astro/internal/index.js'; -+ import 'astro/runtime/server/index.js'; - -- import 'astro/server/index.js'; -+ import 'astro/runtime/server/index.js'; -``` - -```diff -import { transform } from '@astrojs/compiler'; - -const result = await transform(source, { -- internalURL: 'astro/runtime/server/index.js', -+ internalURL: 'astro/compiler-runtime', - // ... -}); -``` diff --git a/.changeset/neat-suns-search.md b/.changeset/neat-suns-search.md deleted file mode 100644 index da743c9c750e..000000000000 --- a/.changeset/neat-suns-search.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'astro': major ---- - -Implements a new scope style strategy called `"attribute"`. When enabled, styles are applied using `data-*` attributes. - -The **default** value of `scopedStyleStrategy` is `"attribute"`. - -If you want to use the previous behaviour, you have to use the `"where"` option: - -```diff -import { defineConfig } from 'astro/config'; - -export default defineConfig({ -+ scopedStyleStrategy: 'where', -}); -``` diff --git a/.changeset/ninety-boats-brake.md b/.changeset/ninety-boats-brake.md deleted file mode 100644 index 30c13a8207a7..000000000000 --- a/.changeset/ninety-boats-brake.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'@astrojs/react': patch -'@astrojs/preact': patch -'@astrojs/vue': patch -'@astrojs/solid-js': patch -'@astrojs/svelte': patch ---- - -Automatically unmount islands when `astro:unmount` is fired diff --git a/.changeset/odd-books-live.md b/.changeset/odd-books-live.md deleted file mode 100644 index 40f0d7c1762a..000000000000 --- a/.changeset/odd-books-live.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -'astro': minor ---- - -Integrations can now log messages using Astro’s built-in logger. - -The logger is available to all hooks as an additional parameter: - -```ts -import {AstroIntegration} from "./astro"; - -// integration.js -export function myIntegration(): AstroIntegration { - return { - name: "my-integration", - hooks: { - "astro:config:done": ({ logger }) => { - logger.info("Configure integration..."); - } - } - } -} -``` diff --git a/.changeset/olive-moles-tan.md b/.changeset/olive-moles-tan.md deleted file mode 100644 index 9840fd4e3891..000000000000 --- a/.changeset/olive-moles-tan.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/deno': patch ---- - -TypeScript users now get better suggestions when configuring the Deno adapter. diff --git a/.changeset/perfect-horses-tell.md b/.changeset/perfect-horses-tell.md deleted file mode 100644 index 7723c665f4c2..000000000000 --- a/.changeset/perfect-horses-tell.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -'astro': major ---- - -Astro's JSX handling has been refactored with better support for each framework. - -Previously, Astro automatically scanned your components to determine which framework-specific transformations should be used. In practice, supporting advanced features like Fast Refresh with this approach proved difficult. - -Now, Astro determines which framework to use with `include` and `exclude` config options where you can specify files and folders on a per-framework basis. When using multiple JSX frameworks in the same project, users should manually control which files belong to each framework using the `include` and `exclude` options. - -```js -export default defineConfig({ - // The `include` config is only needed in projects that use multiple JSX frameworks; - // if only using one no extra config is needed. - integrations: [ - preact({ - include: ['**/preact/*'] - }), - react({ - include: ['**/react/*'] - }), - solid({ - include: ['**/solid/*'], - }), - ] -}); -``` diff --git a/.changeset/perfect-socks-hammer.md b/.changeset/perfect-socks-hammer.md deleted file mode 100644 index baae63ffe8da..000000000000 --- a/.changeset/perfect-socks-hammer.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fire `astro:unmount` event when island is disconnected diff --git a/.changeset/plenty-keys-add.md b/.changeset/plenty-keys-add.md deleted file mode 100644 index 73a78ba3bd44..000000000000 --- a/.changeset/plenty-keys-add.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -'@astrojs/vercel': major ---- - -Remove the Vercel Edge adapter - - `@astrojs/vercel/serverless` now supports Edge middleware, so a separate adapter for Edge itself (deploying your entire app to the edge) is no longer necessary. Please update your Astro config to reflect this change: - - ```diff - // astro.config.mjs -import { defineConfig } from 'astro/config'; -- import vercel from '@astrojs/vercel/edge'; -+ import vercel from '@astrojs/vercel/serverless'; - -export default defineConfig({ - output: 'server', - adapter: vercel({ -+ edgeMiddleware: true - }), -}); -``` - -This adapter had several known limitations and compatibility issues that prevented many people from using it in production. To reduce maintenance costs and because we have a better story with Serveless + Edge Middleware, we are removing the Edge adapter. diff --git a/.changeset/popular-carrots-sneeze.md b/.changeset/popular-carrots-sneeze.md deleted file mode 100644 index 0f914891dc07..000000000000 --- a/.changeset/popular-carrots-sneeze.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Open to configured `base` when `astro dev --open` runs diff --git a/.changeset/pre.json b/.changeset/pre.json deleted file mode 100644 index c08c9984ee8e..000000000000 --- a/.changeset/pre.json +++ /dev/null @@ -1,121 +0,0 @@ -{ - "mode": "exit", - "tag": "rc", - "initialVersions": { - "astro": "2.9.6", - "@astrojs/prism": "2.1.2", - "@astrojs/rss": "2.4.3", - "create-astro": "3.1.10", - "@astrojs/alpinejs": "0.2.2", - "@astrojs/cloudflare": "6.6.2", - "@astrojs/deno": "4.3.0", - "@astrojs/lit": "2.1.0", - "@astrojs/markdoc": "0.4.4", - "@astrojs/mdx": "0.19.7", - "@astrojs/netlify": "2.5.1", - "@astrojs/node": "5.3.0", - "@astrojs/partytown": "1.2.3", - "@astrojs/preact": "2.2.1", - "@astrojs/prefetch": "0.3.0", - "@astrojs/react": "2.2.1", - "@astrojs/sitemap": "2.0.1", - "@astrojs/solid-js": "2.2.0", - "@astrojs/svelte": "3.1.0", - "@astrojs/tailwind": "4.0.0", - "@astrojs/vercel": "3.7.4", - "@astrojs/vue": "2.2.1", - "@astrojs/internal-helpers": "0.1.1", - "@astrojs/markdown-remark": "2.2.1", - "@astrojs/telemetry": "2.1.1", - "@astrojs/underscore-redirects": "0.2.0" - }, - "changesets": [ - "afraid-dots-whisper", - "angry-dogs-shake", - "big-tips-whisper", - "brave-cheetahs-float", - "breezy-books-notice", - "chatty-ways-hunt", - "chilled-ducks-grin", - "clever-bats-breathe", - "cool-feet-rest", - "cool-jokes-clap", - "curvy-experts-jog", - "cyan-carrots-stare", - "dirty-lies-cover", - "fair-emus-divide", - "fair-eyes-promise", - "famous-queens-itch", - "five-geese-crash", - "four-houses-compete", - "fresh-shrimps-happen", - "gentle-deers-yawn", - "gentle-meals-crash", - "giant-plants-sip", - "gorgeous-kiwis-stare", - "grumpy-pens-melt", - "grumpy-years-remember", - "happy-penguins-hug", - "heavy-countries-wonder", - "heavy-walls-arrive", - "honest-houses-deny", - "large-countries-share", - "light-badgers-mate", - "long-chefs-jump", - "loud-candles-admire", - "lovely-walls-call", - "many-impalas-sit", - "many-pears-explode", - "mighty-dancers-lay", - "nasty-garlics-listen", - "neat-mugs-end", - "neat-owls-run", - "neat-suns-search", - "ninety-boats-brake", - "odd-books-live", - "olive-moles-tan", - "perfect-horses-tell", - "perfect-socks-hammer", - "plenty-keys-add", - "popular-carrots-sneeze", - "proud-fans-type", - "purple-buses-prove", - "quick-boats-bow", - "rude-ears-play", - "serious-waves-fry", - "shiny-dryers-swim", - "silent-bikes-crash", - "silly-dolphins-try", - "six-grapes-look", - "slimy-carrots-sell", - "small-nails-try", - "smart-numbers-shout", - "spicy-eels-rush", - "spicy-icons-live", - "spicy-stingrays-cheer", - "strange-peas-agree", - "strong-needles-accept", - "strong-papayas-chew", - "swift-taxis-sing", - "tame-files-glow", - "tame-knives-shake", - "tasty-camels-speak", - "tasty-dragons-smash", - "thin-ants-repeat", - "three-adults-exist", - "three-onions-repeat", - "tricky-candles-suffer", - "twelve-coats-rush", - "twenty-cheetahs-deny", - "unlucky-hotels-try", - "unlucky-ravens-type", - "unlucky-sheep-build", - "violet-peaches-invent", - "warm-weeks-yell", - "wet-foxes-sleep", - "wild-bobcats-carry", - "wise-cameras-agree", - "yellow-tips-cover", - "young-roses-teach" - ] -} diff --git a/.changeset/proud-fans-type.md b/.changeset/proud-fans-type.md deleted file mode 100644 index 8b58da136da3..000000000000 --- a/.changeset/proud-fans-type.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': minor ---- - -Finalize View Transition event names diff --git a/.changeset/purple-buses-prove.md b/.changeset/purple-buses-prove.md deleted file mode 100644 index c1e4876c9c53..000000000000 --- a/.changeset/purple-buses-prove.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Remove StreamingCompatibleResponse polyfill diff --git a/.changeset/quick-boats-bow.md b/.changeset/quick-boats-bow.md deleted file mode 100644 index 1ab83ed5af81..000000000000 --- a/.changeset/quick-boats-bow.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': major ---- - -Removed duplicate `astro/dist/jsx` export. Please use the `astro/jsx` export instead diff --git a/.changeset/rude-ears-play.md b/.changeset/rude-ears-play.md deleted file mode 100644 index 660cfcb34864..000000000000 --- a/.changeset/rude-ears-play.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': major ---- - -Remove MDX plugin re-ordering hack diff --git a/.changeset/serious-waves-fry.md b/.changeset/serious-waves-fry.md deleted file mode 100644 index a8b8d77c157c..000000000000 --- a/.changeset/serious-waves-fry.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': major ---- - -The scoped hash created by the Astro compiler is now **lowercase**. diff --git a/.changeset/shiny-dryers-swim.md b/.changeset/shiny-dryers-swim.md deleted file mode 100644 index f943b2180903..000000000000 --- a/.changeset/shiny-dryers-swim.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Paginate will now return exact types instead of a naive Record diff --git a/.changeset/silent-bikes-crash.md b/.changeset/silent-bikes-crash.md deleted file mode 100644 index 66f066943d3c..000000000000 --- a/.changeset/silent-bikes-crash.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@astrojs/rss': patch -'astro': patch ---- - -Deprecate the `markdown.drafts` configuration option. - -If you'd like to create draft pages that are visible in dev but not in production, you can [migrate to content collections](https://docs.astro.build/en/guides/content-collections/#migrating-from-file-based-routing) and [manually filter out pages](https://docs.astro.build/en/guides/content-collections/#filtering-collection-queries) with the `draft: true` frontmatter property instead. diff --git a/.changeset/silly-dolphins-try.md b/.changeset/silly-dolphins-try.md deleted file mode 100644 index dcd15130dc14..000000000000 --- a/.changeset/silly-dolphins-try.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'@astrojs/vercel': major ---- - -Vercel adapter now defaults to `functionPerRoute`. - -With this change, `@astrojs/vercel/serverless` now splits each route into its own function. By doing this, the size of each function is reduced and startup time is faster. - -You can disable this option, which will cause the code to be bundled into a single function, by setting `functionPerRoute` to `false`. diff --git a/.changeset/six-grapes-look.md b/.changeset/six-grapes-look.md deleted file mode 100644 index edf10e01aa25..000000000000 --- a/.changeset/six-grapes-look.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'astro': major ---- - -The value of `import.meta.env.BASE_URL`, which is derived from the `base` option, will no longer have a trailing slash added by default or when `trailingSlash: "ignore"` is set. The existing behavior of `base` in combination with `trailingSlash: "always"` or `trailingSlash: "never"` is unchanged. - -If your `base` already has a trailing slash, no change is needed. - -If your `base` does not have a trailing slash, add one to preserve the previous behaviour: - -```diff -// astro.config.mjs -- base: 'my-base', -+ base: 'my-base/', -``` diff --git a/.changeset/slimy-carrots-sell.md b/.changeset/slimy-carrots-sell.md deleted file mode 100644 index c1c9e694f56f..000000000000 --- a/.changeset/slimy-carrots-sell.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'@astrojs/react': major ---- - -Support for React Refresh - -The React integration now fully supports React Refresh and is backed by `@vitejs/plugin-react`. - -Also included in this change are new `include` and `exclude` config options. Use these if you want to use React alongside another JSX framework; include specifies files to be compiled for React and `exclude` does the opposite. diff --git a/.changeset/small-nails-try.md b/.changeset/small-nails-try.md deleted file mode 100644 index 3f6f591f133f..000000000000 --- a/.changeset/small-nails-try.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -On back navigation only animate view transitions that were animated going forward. diff --git a/.changeset/smart-numbers-shout.md b/.changeset/smart-numbers-shout.md deleted file mode 100644 index 29d9c97e6fcb..000000000000 --- a/.changeset/smart-numbers-shout.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'astro': major ---- - -Astro is smarter about CSS! Small stylesheets are now inlined by default, and no longer incur the cost of additional requests to your server. Your visitors will have to wait less before they see your pages, especially those in remote locations or in a subway. - -This may not be news to you if you had opted-in via the `build.inlineStylesheets` configuration. Stabilized in Astro 2.6 and set to "auto" by default for Starlight, this configuration allows you to reduce the number of requests for stylesheets by inlining them into + ``` + +- [#8170](https://github.com/withastro/astro/pull/8170) [`be6bbd2c8`](https://github.com/withastro/astro/commit/be6bbd2c86b9bf5268e765bb937dda00ff15781a) Thanks [@bluwy](https://github.com/bluwy)! - Remove deprecated config option types, deprecated script/style attributes, and deprecated `image` export from `astro:content` + +- [#8188](https://github.com/withastro/astro/pull/8188) [`7511a4980`](https://github.com/withastro/astro/commit/7511a4980fd36536464c317de33a5190427f430a) Thanks [@ematipico](https://github.com/ematipico)! - 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 of `astro:assets` such as enforcing `alt`, no CLS etc to users + +- [#7979](https://github.com/withastro/astro/pull/7979) [`dbc97b121`](https://github.com/withastro/astro/commit/dbc97b121f42583728f1cdfdbf14575fda943f5b) Thanks [@bluwy](https://github.com/bluwy)! - Export experimental `dev`, `build`, `preview`, and `sync` APIs from `astro`. These APIs allow you to run Astro's commands programmatically, and replaces the previous entry point that runs the Astro CLI. + + While these APIs are experimental, the inline config parameter is relatively stable without foreseeable changes. However, the returned results of these APIs are more likely to change in the future. + + ```ts + import { dev, build, preview, sync, type AstroInlineConfig } from 'astro'; + + // Inline Astro config object. + // Provide a path to a configuration file to load or set options directly inline. + const inlineConfig: AstroInlineConfig = { + // Inline-specific options... + configFile: './astro.config.mjs', + logLevel: 'info', + // Standard Astro config options... + site: 'https://example.com', + }; + + // Start the Astro dev server + const devServer = await dev(inlineConfig); + await devServer.stop(); + + // Build your Astro project + await build(inlineConfig); + + // Preview your built project + const previewServer = await preview(inlineConfig); + await previewServer.stop(); + + // Generate types for your Astro project + await sync(inlineConfig); + ``` + +- [#8188](https://github.com/withastro/astro/pull/8188) [`7d2f311d4`](https://github.com/withastro/astro/commit/7d2f311d428e3d1c8c13b9bf2a708d6435713fc2) Thanks [@ematipico](https://github.com/ematipico)! - Removed support for old syntax of the API routes. + +- [#8085](https://github.com/withastro/astro/pull/8085) [`68efd4a8b`](https://github.com/withastro/astro/commit/68efd4a8b29f248397667801465b3152dc98e9a7) Thanks [@bluwy](https://github.com/bluwy)! - Remove exports for `astro/internal/*` and `astro/runtime/server/*` in favour of `astro/runtime/*`. Add new `astro/compiler-runtime` export for compiler-specific runtime code. + + These are exports for Astro's internal API and should not affect your project, but if you do use these entrypoints, you can migrate like below: + + ```diff + - import 'astro/internal/index.js'; + + import 'astro/runtime/server/index.js'; + + - import 'astro/server/index.js'; + + import 'astro/runtime/server/index.js'; + ``` + + ```diff + import { transform } from '@astrojs/compiler'; + + const result = await transform(source, { + - internalURL: 'astro/runtime/server/index.js', + + internalURL: 'astro/compiler-runtime', + // ... + }); + ``` + +- [#7893](https://github.com/withastro/astro/pull/7893) [`7bd1b86f8`](https://github.com/withastro/astro/commit/7bd1b86f85c06fdde0a1ed9146d01bac69990671) Thanks [@ematipico](https://github.com/ematipico)! - Implements a new scope style strategy called `"attribute"`. When enabled, styles are applied using `data-*` attributes. + + The **default** value of `scopedStyleStrategy` is `"attribute"`. + + If you want to use the previous behaviour, you have to use the `"where"` option: + + ```diff + import { defineConfig } from 'astro/config'; + + export default defineConfig({ + + scopedStyleStrategy: 'where', + }); + ``` + +- [#7924](https://github.com/withastro/astro/pull/7924) [`519a1c4e8`](https://github.com/withastro/astro/commit/519a1c4e8407c7abcb8d879b67a9f4b960652cae) Thanks [@matthewp](https://github.com/matthewp)! - Astro's JSX handling has been refactored with better support for each framework. + + Previously, Astro automatically scanned your components to determine which framework-specific transformations should be used. In practice, supporting advanced features like Fast Refresh with this approach proved difficult. + + Now, Astro determines which framework to use with `include` and `exclude` config options where you can specify files and folders on a per-framework basis. When using multiple JSX frameworks in the same project, users should manually control which files belong to each framework using the `include` and `exclude` options. + + ```js + export default defineConfig({ + // The `include` config is only needed in projects that use multiple JSX frameworks; + // if only using one no extra config is needed. + integrations: [ + preact({ + include: ['**/preact/*'], + }), + react({ + include: ['**/react/*'], + }), + solid({ + include: ['**/solid/*'], + }), + ], + }); + ``` + +- [#8030](https://github.com/withastro/astro/pull/8030) [`5208a3c8f`](https://github.com/withastro/astro/commit/5208a3c8fefcec7694857fb344af351f4631fc34) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Removed duplicate `astro/dist/jsx` export. Please use the `astro/jsx` export instead + +- [#8188](https://github.com/withastro/astro/pull/8188) [`84af8ed9d`](https://github.com/withastro/astro/commit/84af8ed9d1e6401c6ebc9c60fe8cddb44d5044b0) Thanks [@ematipico](https://github.com/ematipico)! - Remove MDX plugin re-ordering hack + +- [#8180](https://github.com/withastro/astro/pull/8180) [`f003e7364`](https://github.com/withastro/astro/commit/f003e7364317cafdb8589913b26b28e928dd07c9) Thanks [@ematipico](https://github.com/ematipico)! - The scoped hash created by the Astro compiler is now **lowercase**. + +- [#7878](https://github.com/withastro/astro/pull/7878) [`0f637c71e`](https://github.com/withastro/astro/commit/0f637c71e511cb4c51712128d217a26c8eee4d40) Thanks [@bluwy](https://github.com/bluwy)! - The value of `import.meta.env.BASE_URL`, which is derived from the `base` option, will no longer have a trailing slash added by default or when `trailingSlash: "ignore"` is set. The existing behavior of `base` in combination with `trailingSlash: "always"` or `trailingSlash: "never"` is unchanged. + + If your `base` already has a trailing slash, no change is needed. + + If your `base` does not have a trailing slash, add one to preserve the previous behaviour: + + ```diff + // astro.config.mjs + - base: 'my-base', + + base: 'my-base/', + ``` + +- [#8118](https://github.com/withastro/astro/pull/8118) [`8a5b0c1f3`](https://github.com/withastro/astro/commit/8a5b0c1f3a4be6bb62db66ec70144109ff5b4c59) Thanks [@lilnasy](https://github.com/lilnasy)! - Astro is smarter about CSS! Small stylesheets are now inlined by default, and no longer incur the cost of additional requests to your server. Your visitors will have to wait less before they see your pages, especially those in remote locations or in a subway. + + This may not be news to you if you had opted-in via the `build.inlineStylesheets` configuration. Stabilized in Astro 2.6 and set to "auto" by default for Starlight, this configuration allows you to reduce the number of requests for stylesheets by inlining them into