diff options
Diffstat (limited to '.changeset')
-rw-r--r-- | .changeset/blue-colts-film.md | 23 | ||||
-rw-r--r-- | .changeset/chilled-impalas-dance.md | 5 | ||||
-rw-r--r-- | .changeset/chilly-jokes-fold.md | 5 | ||||
-rw-r--r-- | .changeset/cold-crabs-arrive.md | 32 | ||||
-rw-r--r-- | .changeset/cuddly-days-relate.md | 5 | ||||
-rw-r--r-- | .changeset/curvy-otters-jog.md | 58 | ||||
-rw-r--r-- | .changeset/five-rocks-vanish.md | 42 | ||||
-rw-r--r-- | .changeset/grumpy-dolphins-jump.md | 5 | ||||
-rw-r--r-- | .changeset/large-geese-play.md | 20 | ||||
-rw-r--r-- | .changeset/modern-buses-check.md | 5 | ||||
-rw-r--r-- | .changeset/nine-carpets-doubt.md | 5 | ||||
-rw-r--r-- | .changeset/seven-donuts-happen.md | 5 | ||||
-rw-r--r-- | .changeset/thin-dodos-serve.md | 5 | ||||
-rw-r--r-- | .changeset/tidy-shrimps-grab.md | 7 | ||||
-rw-r--r-- | .changeset/twenty-maps-glow.md | 5 | ||||
-rw-r--r-- | .changeset/warm-lizards-mate.md | 5 |
16 files changed, 0 insertions, 232 deletions
diff --git a/.changeset/blue-colts-film.md b/.changeset/blue-colts-film.md deleted file mode 100644 index 9df2e9e56..000000000 --- a/.changeset/blue-colts-film.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -'@astrojs/db': minor ---- - -Removes the `AstroDbIntegration` type - -Astro integration hooks can now be extended and as such `@astrojs/db` no longer needs to declare it's own integration type. Using `AstroIntegration` will have the same type. - -If you were using the `AstroDbIntegration` type, apply this change to your integration code: - -```diff -- import { defineDbIntegration, type AstroDbIntegration } from '@astrojs/db/utils'; -+ import { defineDbIntegration } from '@astrojs/db/utils'; -import type { AstroIntegration } from 'astro'; - -- export default (): AstroDbIntegration => { -+ export default (): AstroIntegration => { - return defineDbIntegration({ - name: 'your-integration', - hooks: {}, - }); -} -``` diff --git a/.changeset/chilled-impalas-dance.md b/.changeset/chilled-impalas-dance.md deleted file mode 100644 index 51d670801..000000000 --- a/.changeset/chilled-impalas-dance.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fixes an issue where the development server was emitting a 404 status code when the user uses a rewrite that emits a 200 status code. diff --git a/.changeset/chilly-jokes-fold.md b/.changeset/chilly-jokes-fold.md deleted file mode 100644 index 3410cdeb9..000000000 --- a/.changeset/chilly-jokes-fold.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fixes a case where invalid `astro:env` variables at runtime would not throw correctly diff --git a/.changeset/cold-crabs-arrive.md b/.changeset/cold-crabs-arrive.md deleted file mode 100644 index 6bde11b6a..000000000 --- a/.changeset/cold-crabs-arrive.md +++ /dev/null @@ -1,32 +0,0 @@ ---- -'@astrojs/markdown-remark': minor -'astro': minor ---- - -Adds support for [Shiki's `defaultColor` option](https://shiki.style/guide/dual-themes#without-default-color). - -This option allows you to override the values of a theme's inline style, adding only CSS variables to give you more flexibility in applying multiple color themes. - -Configure `defaultColor: false` in your Shiki config to apply throughout your site, or pass to Astro's built-in `<Code>` component to style an individual code block. - -```js title="astro.config.mjs" -import { defineConfig } from 'astro/config'; -export default defineConfig({ - markdown: { - shikiConfig: { - themes: { - light: 'github-light', - dark: 'github-dark', - }, - defaultColor: false, - }, - }, -}); -``` - -```astro ---- -import { Code } from 'astro:components'; ---- -<Code code={`const useMyColors = true`} lang="js" defaultColor={false} /> -``` diff --git a/.changeset/cuddly-days-relate.md b/.changeset/cuddly-days-relate.md deleted file mode 100644 index 359f19b94..000000000 --- a/.changeset/cuddly-days-relate.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Move root inside the manifest and make serialisable diff --git a/.changeset/curvy-otters-jog.md b/.changeset/curvy-otters-jog.md deleted file mode 100644 index 8bfa0a17c..000000000 --- a/.changeset/curvy-otters-jog.md +++ /dev/null @@ -1,58 +0,0 @@ ---- -'astro': minor ---- - -Refactors the type for integration hooks so that integration authors writing custom integration hooks can now allow runtime interactions between their integration and other integrations. - -This internal change should not break existing code for integration authors. - -To declare your own hooks for your integration, extend the `Astro.IntegrationHooks` interface: - -```ts -// your-integration/types.ts -declare global { - namespace Astro { - interface IntegrationHooks { - 'myLib:eventHappened': (your: string, parameters: number) => Promise<void>; - } - } -} -``` - -Call your hooks on all other integrations installed in a project at the appropriate time. For example, you can call your hook on initialization before either the Vite or Astro config have resolved: - -```ts -// your-integration/index.ts -import './types.ts'; - -export default (): AstroIntegration => { - return { - name: 'your-integration', - hooks: { - 'astro:config:setup': async ({ config }) => { - for (const integration of config.integrations) { - await integration.hooks['myLib:eventHappened'].?('your values', 123); - } - }, - } - } -} -``` - -Other integrations can also now declare your hooks: - -```ts -// other-integration/index.ts -import 'your-integration/types.ts'; - -export default (): AstroIntegration => { - return { - name: 'other-integration', - hooks: { - 'myLib:eventHappened': async (your, values) => { - // ... - }, - } - } -} -``` diff --git a/.changeset/five-rocks-vanish.md b/.changeset/five-rocks-vanish.md deleted file mode 100644 index 7113deb29..000000000 --- a/.changeset/five-rocks-vanish.md +++ /dev/null @@ -1,42 +0,0 @@ ---- -'astro': minor ---- - -Experimental Server Islands - -Server Islands allow you to specify components that should run on the server, allowing the rest of the page to be more aggressively cached, or even generated statically. Turn any `.astro` component into a server island by adding the `server:defer` directive and optionally, fallback placeholder content: - -```astro ---- -import Avatar from '../components/Avatar.astro'; -import GenericUser from '../components/GenericUser.astro'; ---- - -<header> - <h1>Page Title</h1> - <div class="header-right"> - <Avatar server:defer> - <GenericUser slot="fallback" /> - </Avatar> - </div> -</header> -``` - -The `server:defer` directive can be used on any Astro component in a project using `hybrid` or `server` mode with an adapter. There are no special APIs needed inside of the island. - -Enable server islands by adding the experimental flag to your Astro config with an appropriate `output` mode and adatper: - -```js -import { defineConfig } from 'astro/config'; -import netlify from '@astrojs/netlify'; - -export default defineConfig({ - output: 'hybrid', - adapter: netlify(), - experimental { - serverIslands: true, - }, -}); -``` - -For more information, see the [server islands documentation](https://docs.astro.build/en/reference/configuration-reference/#experimentalserverislands). diff --git a/.changeset/grumpy-dolphins-jump.md b/.changeset/grumpy-dolphins-jump.md deleted file mode 100644 index 3a900ef8e..000000000 --- a/.changeset/grumpy-dolphins-jump.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': minor ---- - -Adds a `--noSync` parameter to the `astro check` command to skip the type-gen step. This can be useful when running `astro check` inside packages that have Astro components, but are not Astro projects diff --git a/.changeset/large-geese-play.md b/.changeset/large-geese-play.md deleted file mode 100644 index 2cfd9788d..000000000 --- a/.changeset/large-geese-play.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -"astro": minor ---- - -Adds a new `inferRemoteSize()` function that can be used to infer the dimensions of a remote image. - -Previously, the ability to infer these values was only available by adding the [`inferSize`] attribute to the `<Image>` and `<Picture>` components or `getImage()`. Now, you can also access this data outside of these components. - -This is useful for when you need to know the dimensions of an image for styling purposes or to calculate different densities for responsive images. - -```astro ---- -import { inferRemoteSize, Image } from 'astro:assets'; - -const imageUrl = 'https://...'; -const { width, height } = await inferRemoteSize(imageUrl); ---- - -<Image src={imageUrl} width={width / 2} height={height} densities={[1.5, 2]} /> -``` diff --git a/.changeset/modern-buses-check.md b/.changeset/modern-buses-check.md deleted file mode 100644 index 3cf7482c1..000000000 --- a/.changeset/modern-buses-check.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Refactors how `sync` works and when it's called. Fixes an issue with `astro:env` types in dev not being generated diff --git a/.changeset/nine-carpets-doubt.md b/.changeset/nine-carpets-doubt.md deleted file mode 100644 index 5abe918af..000000000 --- a/.changeset/nine-carpets-doubt.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/svelte': minor ---- - -Bumps Svelte 5 peer dependency to `^5.0.0-next.190` and support the latest slots/snippets API diff --git a/.changeset/seven-donuts-happen.md b/.changeset/seven-donuts-happen.md deleted file mode 100644 index cf6b85b5b..000000000 --- a/.changeset/seven-donuts-happen.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Supports importing Astro components with Vite queries, like `?url`, `?raw`, and `?direct` diff --git a/.changeset/thin-dodos-serve.md b/.changeset/thin-dodos-serve.md deleted file mode 100644 index 72294343d..000000000 --- a/.changeset/thin-dodos-serve.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': minor ---- - -Adds Shiki's [`defaultColor`](https://shiki.style/guide/dual-themes#without-default-color) option to the `<Code />` component, giving you more control in applying multiple themes diff --git a/.changeset/tidy-shrimps-grab.md b/.changeset/tidy-shrimps-grab.md deleted file mode 100644 index 55e52375e..000000000 --- a/.changeset/tidy-shrimps-grab.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'astro': patch ---- - -Fix for Server Islands in Vercel adapter - -Vercel, and probably other adapters only allow pre-defined routes. This makes it so that the `astro:build:done` hook includes the `_server-islands/` route as part of the route data, which is used to configure available routes. diff --git a/.changeset/twenty-maps-glow.md b/.changeset/twenty-maps-glow.md deleted file mode 100644 index 9588a45bc..000000000 --- a/.changeset/twenty-maps-glow.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': minor ---- - -Adds two new values to the [pagination `page` prop](https://docs.astro.build/en/reference/api-reference/#the-pagination-page-prop): `page.first` and `page.last` for accessing the URLs of the first and last pages. diff --git a/.changeset/warm-lizards-mate.md b/.changeset/warm-lizards-mate.md deleted file mode 100644 index a95447510..000000000 --- a/.changeset/warm-lizards-mate.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fixes Astro not working on low versions of Node 18 and 20 |