diff --git a/.changeset/afraid-apricots-develop.md b/.changeset/afraid-apricots-develop.md deleted file mode 100644 index acf897149ff9b..0000000000000 --- a/.changeset/afraid-apricots-develop.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'astro': minor ---- - -Adds a new variant `sync` for the `astro:config:setup` hook's `command` property. This value is set when calling the command `astro sync`. - -If your integration previously relied on knowing how many variants existed for the `command` property, you must update your logic to account for this new option. diff --git a/.changeset/blue-pens-divide.md b/.changeset/blue-pens-divide.md deleted file mode 100644 index a295fe7b14947..0000000000000 --- a/.changeset/blue-pens-divide.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -'astro': patch ---- - -Fixes a bug in the logic of `Astro.rewrite()` which led to the value for `base`, if configured, being automatically prepended to the rewrite URL passed. This was unintended behavior and has been corrected, and Astro now processes the URLs exactly as passed. - -If you use the `rewrite()` function on a project that has `base` configured, you must now prepend the base to your existing rewrite URL: - -```js -// astro.config.mjs -export default defineConfig({ - base: '/blog' -}) -``` - -```diff -// src/middleware.js -export function onRequest(ctx, next) { -- return ctx.rewrite("/about") -+ return ctx.rewrite("/blog/about") -} -``` diff --git a/.changeset/chilled-timers-shave.md b/.changeset/chilled-timers-shave.md deleted file mode 100644 index 1866eab85bfba..0000000000000 --- a/.changeset/chilled-timers-shave.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -'astro': patch ---- - -**BREAKING CHANGE to experimental content layer loaders only!** - -Passes `AstroConfig` instead of `AstroSettings` object to content layer loaders. - -This will not affect you unless you have created a loader that uses the `settings` object. If you have, you will need to update your loader to use the `config` object instead. - -```diff -export default function myLoader() { - return { - name: 'my-loader' -- async load({ settings }) { -- const base = settings.config.base; -+ async load({ config }) { -+ const base = config.base; - // ... - } - } -} - -``` - -Other properties of the settings object are private internals, and should not be accessed directly. If you think you need access to other properties, please open an issue to discuss your use case. diff --git a/.changeset/clever-emus-roll.md b/.changeset/clever-emus-roll.md deleted file mode 100644 index 5b9b2ee698298..0000000000000 --- a/.changeset/clever-emus-roll.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'astro': minor ---- - -Adds a new, optional property `timeout` for the `client:idle` directive. - -This value allows you to specify a maximum time to wait, in milliseconds, before hydrating a UI framework component, even if the page is not yet done with its initial load. This means you can delay hydration for lower-priority UI elements with more control to ensure your element is interactive within a specified time frame. - -```astro - -``` diff --git a/.changeset/eight-balloons-cover.md b/.changeset/eight-balloons-cover.md deleted file mode 100644 index ea6364668ab01..0000000000000 --- a/.changeset/eight-balloons-cover.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Uses `magicast` to update the config for `astro add` diff --git a/.changeset/four-beans-remember.md b/.changeset/four-beans-remember.md deleted file mode 100644 index cdef7197d15c4..0000000000000 --- a/.changeset/four-beans-remember.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Replaces `execa` with `tinyexec` internally diff --git a/.changeset/healthy-boxes-poke.md b/.changeset/healthy-boxes-poke.md deleted file mode 100644 index d4c1e43024442..0000000000000 --- a/.changeset/healthy-boxes-poke.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@astrojs/db': minor ---- - -Adds support for connecting Astro DB to any remote LibSQL server. This allows Astro DB to be used with self-hosting and air-gapped deployments. - -To connect Astro DB to a remote LibSQL server instead of Studio, set the following environment variables: - -- `ASTRO_DB_REMOTE_URL`: the connection URL to your LibSQL server -- `ASTRO_DB_APP_TOKEN`: the auth token to your LibSQL server - -Details of the LibSQL connection can be configured using the connection URL. For example, `memory:?syncUrl=libsql%3A%2F%2Fdb-server.example.com` would create an in-memory embedded replica for the LibSQL DB on `libsql://db-server.example.com`. - -For more details, please visit [the Astro DB documentation](https://docs.astro.build/en/guides/astro-db/#libsql) diff --git a/.changeset/lazy-feet-join.md b/.changeset/lazy-feet-join.md deleted file mode 100644 index e2b0a40776d79..0000000000000 --- a/.changeset/lazy-feet-join.md +++ /dev/null @@ -1,32 +0,0 @@ ---- -'astro': minor ---- - -Adds a new option `fallbackType` to `i18n.routing` configuration that allows you to control how fallback pages are handled. - -When `i18n.fallback` is configured, this new routing option controls whether to [redirect](https://docs.astro.build/en/guides/routing/#redirects) to the fallback page, or to [rewrite](https://docs.astro.build/en/guides/routing/#rewrites) the fallback page's content in place. - -The `"redirect"` option is the default value and matches the current behavior of the existing fallback system. - -The option `"rewrite"` uses the new [rewriting system](https://docs.astro.build/en/guides/routing/#rewrites) to create fallback pages that render content on the original, requested URL without a browser refresh. - -For example, the following configuration will generate a page `/fr/index.html` that will contain the same HTML rendered by the page `/en/index.html` when `src/pages/fr/index.astro` does not exist. - -```js -// astro.config.mjs -export default defineConfig({ - i18n: { - locals: ["en", "fr"], - defaultLocale: "en", - routing: { - prefixDefaultLocale: true, - fallbackType: "rewrite" - }, - fallback: { - fr: "en" - }, - } -}) -``` - - diff --git a/.changeset/new-monkeys-sit.md b/.changeset/new-monkeys-sit.md deleted file mode 100644 index b147b593f4a14..0000000000000 --- a/.changeset/new-monkeys-sit.md +++ /dev/null @@ -1,32 +0,0 @@ ---- -'astro': minor ---- - -Adds a new object `swapFunctions` to expose the necessary utility functions on `astro:transitions/client` that allow you to build custom swap functions to be used with view transitions. - -The example below uses these functions to replace Astro's built-in default `swap` function with one that only swaps the `
` part of the page: - -```astro -