diff --git a/.changeset/calm-socks-shake.md b/.changeset/calm-socks-shake.md deleted file mode 100644 index 79f462d2902b..000000000000 --- a/.changeset/calm-socks-shake.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@astrojs/markdown-remark": minor -"astro": minor ---- - -Allows remark plugins to pass options specifying how images in `.md` files will be optimized diff --git a/.changeset/cool-foxes-talk.md b/.changeset/cool-foxes-talk.md deleted file mode 100644 index 4513661a8482..000000000000 --- a/.changeset/cool-foxes-talk.md +++ /dev/null @@ -1,32 +0,0 @@ ---- -"astro": minor ---- - -Adds new helper functions for adapter developers. - -- `Astro.clientAddress` can now be passed directly to the `app.render()` method. -```ts -const response = await app.render(request, { clientAddress: "012.123.23.3" }) -``` - -- Helper functions for converting Node.js HTTP request and response objects to web-compatible `Request` and `Response` objects are now provided as static methods on the `NodeApp` class. -```ts -http.createServer((nodeReq, nodeRes) => { - const request: Request = NodeApp.createRequest(nodeReq) - const response = await app.render(request) - await NodeApp.writeResponse(response, nodeRes) -}) -``` - -- Cookies added via `Astro.cookies.set()` can now be automatically added to the `Response` object by passing the `addCookieHeader` option to `app.render()`. -```diff --const response = await app.render(request) --const setCookieHeaders: Array = Array.from(app.setCookieHeaders(webResponse)); - --if (setCookieHeaders.length) { -- for (const setCookieHeader of setCookieHeaders) { -- headers.append('set-cookie', setCookieHeader); -- } --} -+const response = await app.render(request, { addCookieHeader: true }) -``` diff --git a/.changeset/curly-seals-count.md b/.changeset/curly-seals-count.md deleted file mode 100644 index f88178b8cea7..000000000000 --- a/.changeset/curly-seals-count.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@astrojs/sitemap": patch ---- - -Fixes generated URLs when using a `base` with a SSR adapter diff --git a/.changeset/curvy-seas-explain.md b/.changeset/curvy-seas-explain.md deleted file mode 100644 index debdb45a92e6..000000000000 --- a/.changeset/curvy-seas-explain.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@astrojs/mdx": patch ---- - -Removes redundant HMR handling code diff --git a/.changeset/cyan-grapes-suffer.md b/.changeset/cyan-grapes-suffer.md deleted file mode 100644 index 84833c42b9d3..000000000000 --- a/.changeset/cyan-grapes-suffer.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -"astro": minor ---- - - -Adds a new `i18n.routing` config option `redirectToDefaultLocale` to disable automatic redirects of the root URL (`/`) to the default locale when `prefixDefaultLocale: true` is set. - -In projects where every route, including the default locale, is prefixed with `/[locale]/` path, this property allows you to control whether or not `src/pages/index.astro` should automatically redirect your site visitors from `/` to `/[defaultLocale]`. - -You can now opt out of this automatic redirection by setting `redirectToDefaultLocale: false`: - -```js -// astro.config.mjs -export default defineConfig({ - i18n:{ - defaultLocale: "en", - locales: ["en", "fr"], - routing: { - prefixDefaultLocale: true, - redirectToDefaultLocale: false - } - } -}) -``` diff --git a/.changeset/early-cups-poke.md b/.changeset/early-cups-poke.md deleted file mode 100644 index d4f816dceef9..000000000000 --- a/.changeset/early-cups-poke.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@astrojs/vercel": major ---- - -**Breaking**: Minimum required Astro version is now 4.2.0. -Reorganizes internals to be more maintainable. ---- diff --git a/.changeset/green-rivers-speak.md b/.changeset/green-rivers-speak.md deleted file mode 100644 index 777486878e51..000000000000 --- a/.changeset/green-rivers-speak.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"astro": patch ---- - -Refactors Vite config to avoid Vite 5.1 warnings diff --git a/.changeset/itchy-clouds-invite.md b/.changeset/itchy-clouds-invite.md deleted file mode 100644 index 67dc73f0864f..000000000000 --- a/.changeset/itchy-clouds-invite.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -"astro": minor ---- - -Removes the requirement for non-content files and assets inside content collections to be prefixed with an underscore. For files with extensions like `.astro` or `.css`, you can now remove underscores without seeing a warning in the terminal. - -```diff -src/content/blog/ -post.mdx -- _styles.css -- _Component.astro -+ styles.css -+ Component.astro -``` - -Continue to use underscores in your content collections to exclude individual content files, such as drafts, from the build output. diff --git a/.changeset/orange-trainers-learn.md b/.changeset/orange-trainers-learn.md deleted file mode 100644 index 8b6e059bd1b7..000000000000 --- a/.changeset/orange-trainers-learn.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"astro": minor ---- - -Improves the a11y-missing-content rule and error message for audit feature of dev-overlay. This also fixes an error where this check was falsely reporting accessibility errors. diff --git a/.changeset/polite-dogs-join.md b/.changeset/polite-dogs-join.md deleted file mode 100644 index 3bb0128d620f..000000000000 --- a/.changeset/polite-dogs-join.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@astrojs/markdoc": patch ---- - -Removes unnecessary `shikiji` dependency diff --git a/.changeset/short-keys-bow.md b/.changeset/short-keys-bow.md deleted file mode 100644 index bead5326ceb8..000000000000 --- a/.changeset/short-keys-bow.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -"astro": patch ---- - -Updates [Astro's routing priority rules](https://docs.astro.build/en/core-concepts/routing/#route-priority-order) to prioritize the most specifically-defined routes. - -Now, routes with **more defined path segments** will take precedence over less specific routes. - -For example, `/blog/posts/[pid].astro` (3 path segments) takes precedence over `/blog/[...slug].astro` (2 path segments). This means that: - -- `/pages/blog/posts/[id].astro` will build routes of the form `/blog/posts/1` and `/blog/posts/a` -- `/pages/blog/[...slug].astro` will build routes of a variety of forms, including `blog/1` and `/blog/posts/1/a`, but will not build either of the previous routes. - -For a complete list of Astro's routing priority rules, please see the [routing guide](https://docs.astro.build/en/core-concepts/routing/#route-priority-order). This should not be a breaking change, but you may wish to inspect your built routes to ensure that your project is unaffected. - - diff --git a/.changeset/six-scissors-worry.md b/.changeset/six-scissors-worry.md deleted file mode 100644 index ebba0da66d63..000000000000 --- a/.changeset/six-scissors-worry.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@astrojs/markdown-remark": minor -"astro": minor ---- - -Adds a new `markdown.shikiConfig.transformers` config option. You can use this option to transform the Shikiji hast (AST format of the generated HTML) to customize the final HTML. Also updates Shikiji to the latest stable version. - -See [Shikiji's documentation](https://shikiji.netlify.app/guide/transformers) for more details about creating your own custom transformers, and [a list of common transformers](https://shikiji.netlify.app/packages/transformers) you can add directly to your project. diff --git a/.changeset/sixty-dogs-sneeze.md b/.changeset/sixty-dogs-sneeze.md deleted file mode 100644 index 13f89232898d..000000000000 --- a/.changeset/sixty-dogs-sneeze.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -"astro": minor ---- - -Adds an experimental flag `clientPrerender` to prerender your prefetched pages on the client with the [Speculation Rules API](https://developer.mozilla.org/en-US/docs/Web/API/Speculation_Rules_API). - -```js -// astro.config.mjs -{ - prefetch: { - prefetchAll: true, - defaultStrategy: 'viewport', - }, - experimental: { - clientPrerender: true, - }, -} -``` - -Enabling this feature overrides the default `prefetch` behavior globally to prerender links on the client according to your `prefetch` configuration. Instead of appending a `` tag to the head of the document or fetching the page with JavaScript, a `