diff --git a/.changeset/big-elephants-drive.md b/.changeset/big-elephants-drive.md new file mode 100644 index 000000000..2d760f715 --- /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 000000000..4f11f4534 --- /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/eleven-wasps-teach.md b/.changeset/eleven-wasps-teach.md new file mode 100644 index 000000000..3a0993f49 --- /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 9894fde96..000000000 --- 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 000000000..2ab292f27 --- /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 009955c7e..000000000 --- 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 000000000..92f70c55a --- /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 1dfaefba2..000000000 --- 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/odd-plants-tie.md b/.changeset/odd-plants-tie.md deleted file mode 100644 index b57376dee..000000000 --- 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 258d9c726..000000000 --- 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 000000000..2136a95a9 --- /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 000000000..c379a7edc --- /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 000000000..bd57c6a8a --- /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 4ceaf2a9b..000000000 --- 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 000000000..9006914f1 --- /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 ab3fb875a..000000000 --- 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 000000000..87c4d1da7 --- /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 7ce0d2f82..2cc46177a 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/portfolio/src/components/Nav.astro b/examples/portfolio/src/components/Nav.astro index 680b00c0b..2e9717884 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 }[] -