diff --git a/.changeset/big-elephants-drive.md b/.changeset/big-elephants-drive.md new file mode 100644 index 000000000000..2d760f715ee2 --- /dev/null +++ b/.changeset/big-elephants-drive.md @@ -0,0 +1,5 @@ +--- +'@astrojs/svelte': patch +--- + +Filter unknown `class` prop warnings diff --git a/.changeset/brown-wolves-tan.md b/.changeset/brown-wolves-tan.md new file mode 100644 index 000000000000..4f11f4534c89 --- /dev/null +++ b/.changeset/brown-wolves-tan.md @@ -0,0 +1,5 @@ +--- +'create-astro': patch +--- + +Update 'dev' command for Bun users diff --git a/.changeset/clever-bats-breathe.md b/.changeset/clever-bats-breathe.md new file mode 100644 index 000000000000..2c1a6dc39f9b --- /dev/null +++ b/.changeset/clever-bats-breathe.md @@ -0,0 +1,13 @@ +--- +'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/eleven-wasps-teach.md b/.changeset/eleven-wasps-teach.md new file mode 100644 index 000000000000..3a0993f49e22 --- /dev/null +++ b/.changeset/eleven-wasps-teach.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Ensure dotfiles are cleaned during static builds diff --git a/.changeset/green-islands-repeat.md b/.changeset/green-islands-repeat.md deleted file mode 100644 index 9894fde96324..000000000000 --- a/.changeset/green-islands-repeat.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fix AstroConfigSchema type export diff --git a/.changeset/itchy-pants-grin.md b/.changeset/itchy-pants-grin.md new file mode 100644 index 000000000000..2ab292f27d30 --- /dev/null +++ b/.changeset/itchy-pants-grin.md @@ -0,0 +1,5 @@ +--- +'@astrojs/vercel': patch +--- + +Update image support to work with latest version of Astro diff --git a/.changeset/lazy-pillows-burn.md b/.changeset/lazy-pillows-burn.md deleted file mode 100644 index 009955c7eef7..000000000000 --- a/.changeset/lazy-pillows-burn.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/sitemap': patch ---- - -docs: fix github search link in README.md diff --git a/.changeset/many-actors-flash.md b/.changeset/many-actors-flash.md new file mode 100644 index 000000000000..92f70c55a024 --- /dev/null +++ b/.changeset/many-actors-flash.md @@ -0,0 +1,5 @@ +--- +"astro": patch +--- + +Fix a handful of edge cases with prerendered 404/500 pages diff --git a/.changeset/moody-houses-drum.md b/.changeset/moody-houses-drum.md deleted file mode 100644 index 1dfaefba21dd..000000000000 --- a/.changeset/moody-houses-drum.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'create-astro': minor ---- - -Reduce dependency installation size, swap `execa` for light `node:child_process` wrapper diff --git a/.changeset/neat-mugs-end.md b/.changeset/neat-mugs-end.md new file mode 100644 index 000000000000..dd65708a73ac --- /dev/null +++ b/.changeset/neat-mugs-end.md @@ -0,0 +1,8 @@ +--- +'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/odd-plants-tie.md b/.changeset/odd-plants-tie.md deleted file mode 100644 index b57376dee7bb..000000000000 --- a/.changeset/odd-plants-tie.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Add support for non-awaited imports to the Image component and `getImage` diff --git a/.changeset/olive-queens-drum.md b/.changeset/olive-queens-drum.md deleted file mode 100644 index 258d9c726367..000000000000 --- a/.changeset/olive-queens-drum.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Add second type argument to the AstroGlobal type to type Astro.self. This change will ultimately allow our editor tooling to provide props completions and intellisense for `` diff --git a/.changeset/orange-foxes-care.md b/.changeset/orange-foxes-care.md new file mode 100644 index 000000000000..2136a95a935e --- /dev/null +++ b/.changeset/orange-foxes-care.md @@ -0,0 +1,5 @@ +--- +'@astrojs/solid-js': patch +--- + +Update `babel-preset-solid` dependency to `^1.7.7` diff --git a/.changeset/popular-planes-cover.md b/.changeset/popular-planes-cover.md new file mode 100644 index 000000000000..c379a7edc030 --- /dev/null +++ b/.changeset/popular-planes-cover.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +ViewTransition: bug fix for lost scroll position in browser history diff --git a/.changeset/silent-baboons-juggle.md b/.changeset/silent-baboons-juggle.md new file mode 100644 index 000000000000..bd57c6a8a114 --- /dev/null +++ b/.changeset/silent-baboons-juggle.md @@ -0,0 +1,5 @@ +--- +'create-astro': patch +--- + +Verify internet connection and that `--template` exists before continuing diff --git a/.changeset/soft-colts-heal.md b/.changeset/soft-colts-heal.md deleted file mode 100644 index 4ceaf2a9bf72..000000000000 --- a/.changeset/soft-colts-heal.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -`astro add` now passes down `--save-prod`, `--save-dev`, `--save-exact`, and `--no-save` flags for installation diff --git a/.changeset/sour-frogs-shout.md b/.changeset/sour-frogs-shout.md new file mode 100644 index 000000000000..9006914f1061 --- /dev/null +++ b/.changeset/sour-frogs-shout.md @@ -0,0 +1,27 @@ +--- +'astro': patch +--- + +Added support for optimizing remote images from authorized sources when using `astro:assets`. This comes with two new parameters to specify which domains (`image.domains`) and host patterns (`image.remotePatterns`) are authorized for remote images. + +For example, the following configuration will only allow remote images from `astro.build` to be optimized: + +```ts +// astro.config.mjs +export default defineConfig({ + image: { + domains: ["astro.build"], + } +}); +``` + +The following configuration will only allow remote images from HTTPS hosts: + +```ts +// astro.config.mjs +export default defineConfig({ + image: { + remotePatterns: [{ protocol: "https" }], + } +}); +``` diff --git a/.changeset/thin-plums-drop.md b/.changeset/thin-plums-drop.md deleted file mode 100644 index ab3fb875aa95..000000000000 --- a/.changeset/thin-plums-drop.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/react': patch ---- - -fix a bug where react identifierPrefix was set to null for client:only components causing React.useId to generate ids prefixed with null diff --git a/.changeset/yellow-snakes-jam.md b/.changeset/yellow-snakes-jam.md new file mode 100644 index 000000000000..87c4d1da70b8 --- /dev/null +++ b/.changeset/yellow-snakes-jam.md @@ -0,0 +1,21 @@ +--- +'@astrojs/react': minor +--- + +Optionally parse React slots as React children. + +This adds a new configuration option for the React integration `experimentalReactChildren`: + +```js +export default { + integrations: [ + react({ + experimentalReactChildren: true, + }) + ] +} +``` + +With this enabled, children passed to React from Astro components via the default slot are parsed as React components. + +This enables better compatibility with certain React components which manipulate their children. diff --git a/README.md b/README.md index 7ce0d2f8236a..2cc46177a367 100644 --- a/README.md +++ b/README.md @@ -93,7 +93,7 @@ Astro is generously supported by Netlify, Storyblok, and several other amazing o [![Astro's sponsors.](https://astro.build/sponsors.png "Astro's sponsors. Platinum sponsors: Netlify, storyblok, Vercel, Ship Shape, Google Chrome -Gold sponsors: ‹div›RIOTS, DEEPGRAM, CloudCannon +Gold sponsors: ‹div›RIOTS, DEEPGRAM, Transloadit, CloudCannon Sponsors: Monogram, Qoddi, Dimension")](https://github.com/sponsors/withastro) diff --git a/examples/middleware/src/middleware.ts b/examples/middleware/src/middleware.ts index 9871e9d01e0b..eb764453545c 100644 --- a/examples/middleware/src/middleware.ts +++ b/examples/middleware/src/middleware.ts @@ -1,4 +1,4 @@ -import { defineMiddleware, sequence } from 'astro/middleware'; +import { defineMiddleware, sequence } from 'astro:middleware'; import htmlMinifier from 'html-minifier'; const limit = 50; diff --git a/examples/portfolio/src/components/Nav.astro b/examples/portfolio/src/components/Nav.astro index 680b00c0b8ba..2e9717884888 100644 --- a/examples/portfolio/src/components/Nav.astro +++ b/examples/portfolio/src/components/Nav.astro @@ -36,7 +36,45 @@ const iconLinks: { label: string; href: string; icon: keyof typeof iconPaths }[] -