diff --git a/.changeset/blue-geese-visit.md b/.changeset/blue-geese-visit.md deleted file mode 100644 index 408386d046..0000000000 --- a/.changeset/blue-geese-visit.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@astrojs/mdx": patch ---- - -Simplifies plain MDX components as hast element nodes to further improve HTML string inlining for the `optimize` option diff --git a/.changeset/breezy-lies-sparkle.md b/.changeset/breezy-lies-sparkle.md deleted file mode 100644 index a5570ba618..0000000000 --- a/.changeset/breezy-lies-sparkle.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"astro": patch ---- - -Improve error message when accessing `clientAddress` on prerendered routes diff --git a/.changeset/chilly-items-help.md b/.changeset/chilly-items-help.md deleted file mode 100644 index 7e868474e3..0000000000 --- a/.changeset/chilly-items-help.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"astro": patch ---- - -Improves the error message when failed to render MDX components diff --git a/.changeset/forty-wolves-turn.md b/.changeset/forty-wolves-turn.md deleted file mode 100644 index 87f6e50226..0000000000 --- a/.changeset/forty-wolves-turn.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"astro": patch ---- - -Fixes a case where the local server would crash when the host also contained the port, eg. with `X-Forwarded-Host: hostname:8080` and `X-Forwarded-Port: 8080` headers diff --git a/.changeset/fresh-masks-agree.md b/.changeset/fresh-masks-agree.md deleted file mode 100644 index 08fc812c88..0000000000 --- a/.changeset/fresh-masks-agree.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@astrojs/mdx": major ---- - -Refactors the MDX transformation to rely only on the unified pipeline. Babel and esbuild transformations are removed, which should result in faster build times. The refactor requires using Astro v4.8.0 but no other changes are necessary. diff --git a/.changeset/friendly-plants-leave.md b/.changeset/friendly-plants-leave.md deleted file mode 100644 index c972fa42c4..0000000000 --- a/.changeset/friendly-plants-leave.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"astro": minor ---- - -Exports `astro/jsx/rehype.js` with utilities to generate an Astro metadata object diff --git a/.changeset/great-turtles-greet.md b/.changeset/great-turtles-greet.md deleted file mode 100644 index 7043e0e239..0000000000 --- a/.changeset/great-turtles-greet.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"astro": minor ---- - -Adds the ability for multiple pages to use the same component as an `entrypoint` when building an Astro integration. This change is purely internal, and aligns the build process with the behaviour in the development server. \ No newline at end of file diff --git a/.changeset/grumpy-pillows-develop.md b/.changeset/grumpy-pillows-develop.md deleted file mode 100644 index bba2a6fdcc..0000000000 --- a/.changeset/grumpy-pillows-develop.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"astro": patch ---- - -Refactors internal handling of styles and scripts for content collections to improve build performance diff --git a/.changeset/honest-games-bathe.md b/.changeset/honest-games-bathe.md deleted file mode 100644 index 928bf0662a..0000000000 --- a/.changeset/honest-games-bathe.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@astrojs/vercel": minor ---- - -Implements the vercel skew protection diff --git a/.changeset/large-glasses-jam.md b/.changeset/large-glasses-jam.md deleted file mode 100644 index 885471d82f..0000000000 --- a/.changeset/large-glasses-jam.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@astrojs/mdx": patch ---- - -Allows Vite plugins to transform `.mdx` files before the MDX plugin transforms it diff --git a/.changeset/little-dryers-stare.md b/.changeset/little-dryers-stare.md deleted file mode 100644 index c1880d311f..0000000000 --- a/.changeset/little-dryers-stare.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -"@astrojs/preact": minor ---- - -Adds a `devtools` option - -You can enable [Preact devtools](https://preactjs.github.io/preact-devtools/) in development by setting `devtools: true` in your `preact()` integration config: - -```js -import { defineConfig } from "astro/config" -import preact from "@astrojs/preact" - -export default defineConfig({ - integrations: [ - preact({ devtools: true }) - ] -}) -``` diff --git a/.changeset/metal-crabs-applaud.md b/.changeset/metal-crabs-applaud.md deleted file mode 100644 index c7cb3a26a7..0000000000 --- a/.changeset/metal-crabs-applaud.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"astro": minor ---- - -Adds a new radio checkbox component to the dev toolbar UI library (`astro-dev-toolbar-radio-checkbox`) diff --git a/.changeset/nervous-waves-shop.md b/.changeset/nervous-waves-shop.md deleted file mode 100644 index 2abf43d152..0000000000 --- a/.changeset/nervous-waves-shop.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -"astro": minor ---- - -Adds support for passing an inline Astro configuration object to `getViteConfig()` - -If you are using `getViteConfig()` to configure the Vitest test runner, you can now pass a second argument to control how Astro is configured. This makes it possible to configure unit tests with different Astro options when using [Vitest’s workspaces](https://vitest.dev/guide/workspace.html) feature. - -```js -// vitest.config.ts -import { getViteConfig } from 'astro/config'; - -export default getViteConfig( - /* Vite configuration */ - { test: {} }, - /* Astro configuration */ - { - site: 'https://example.com', - trailingSlash: 'never', - }, -); -``` diff --git a/.changeset/olive-bags-drive.md b/.changeset/olive-bags-drive.md deleted file mode 100644 index f3fc4dbc53..0000000000 --- a/.changeset/olive-bags-drive.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -"@astrojs/solid-js": minor ---- - -Adds a `devtools` option - -You can enable the [official Solid Devtools](https://github.com/thetarnav/solid-devtools) while working in development mode by setting `devtools: true` in your `solid()` integration config and adding `solid-devtools` to your project dependencies: - -```bash -npm install solid-devtools -# yarn add solid-devtools -# pnpm add solid-devtools -``` - -```js -import { defineConfig } from "astro/config" -import solid from "@astrojs/solid-js" - -export default defineConfig({ - integrations: [ - solid({ devtools: true }) - ] -}) -``` diff --git a/.changeset/pink-ligers-share.md b/.changeset/pink-ligers-share.md deleted file mode 100644 index e7923350fb..0000000000 --- a/.changeset/pink-ligers-share.md +++ /dev/null @@ -1,49 +0,0 @@ ---- -"astro": minor ---- - -Adds experimental rewriting in Astro with a new `rewrite()` function and the middleware `next()` function. - -The feature is available via an experimental flag in `astro.config.mjs`: - -```js -export default defineConfig({ - experimental: { - rewriting: true - } -}) -``` - -When enabled, you can use `rewrite()` to **render** another page without changing the URL of the browser in Astro pages and endpoints. - -```astro ---- -// src/pages/dashboard.astro -if (!Astro.props.allowed) { - return Astro.rewrite("/") -} ---- -``` - -```js -// src/pages/api.js -export function GET(ctx) { - if (!ctx.locals.allowed) { - return ctx.rewrite("/") - } -} -``` - -The middleware `next()` function now accepts a parameter with the same type as the `rewrite()` function. For example, with `next("/")`, you can call the next middleware function with a new `Request`. - -```js -// src/middleware.js -export function onRequest(ctx, next) { - if (!ctx.cookies.get("allowed")) { - return next("/") // new signature - } - return next(); -} -``` - -> **NOTE**: please [read the RFC](https://github.com/withastro/roadmap/blob/feat/reroute/proposals/0047-rerouting.md) to understand the current expectations of the new APIs. diff --git a/.changeset/shaggy-moons-peel.md b/.changeset/shaggy-moons-peel.md deleted file mode 100644 index db500d5e5c..0000000000 --- a/.changeset/shaggy-moons-peel.md +++ /dev/null @@ -1,95 +0,0 @@ ---- -"astro": minor ---- - -Adds experimental support for the Actions API. Actions let you define type-safe endpoints you can query from client components with progressive enhancement built in. - - -Actions help you write type-safe backend functions you can call from anywhere. Enable server rendering [using the `output` property](https://docs.astro.build/en/basics/rendering-modes/#on-demand-rendered) and add the `actions` flag to the `experimental` object: - -```js -{ - output: 'hybrid', // or 'server' - experimental: { - actions: true, - }, -} -``` - -Declare all your actions in `src/actions/index.ts`. This file is the global actions handler. - -Define an action using the `defineAction()` utility from the `astro:actions` module. These accept the `handler` property to define your server-side request handler. If your action accepts arguments, apply the `input` property to validate parameters with Zod. - -This example defines two actions: `like` and `comment`. The `like` action accepts a JSON object with a `postId` string, while the `comment` action accepts [FormData](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest_API/Using_FormData_Objects) with `postId`, `author`, and `body` strings. Each `handler` updates your database and return a type-safe response. - -```ts -// src/actions/index.ts -import { defineAction, z } from "astro:actions"; - -export const server = { - like: defineAction({ - input: z.object({ postId: z.string() }), - handler: async ({ postId }, context) => { - // update likes in db - - return likes; - }, - }), - comment: defineAction({ - accept: 'form', - input: z.object({ - postId: z.string(), - author: z.string(), - body: z.string(), - }), - handler: async ({ postId }, context) => { - // insert comments in db - - return comment; - }, - }), -}; -``` - -Then, call an action from your client components using the `actions` object from `astro:actions`. You can pass a type-safe object when using JSON, or a [FormData](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest_API/Using_FormData_Objects) object when using `accept: 'form'` in your action definition: - -```tsx "actions" -// src/components/blog.tsx -import { actions } from "astro:actions"; -import { useState } from "preact/hooks"; - -export function Like({ postId }: { postId: string }) { - const [likes, setLikes] = useState(0); - return ( - - ); -} - -export function Comment({ postId }: { postId: string }) { - return ( -
{ - e.preventDefault(); - const formData = new FormData(e.target); - const result = await actions.blog.comment(formData); - // handle result - }} - > - - - - - -
- ); -} -``` - -For a complete overview, and to give feedback on this experimental API, see the [Actions RFC](https://github.com/withastro/roadmap/blob/actions/proposals/0046-actions.md). diff --git a/.changeset/short-phones-breathe.md b/.changeset/short-phones-breathe.md deleted file mode 100644 index d27d015afb..0000000000 --- a/.changeset/short-phones-breathe.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@astrojs/react": patch ---- - -Updates package to support React 19 beta diff --git a/.changeset/slimy-cobras-end.md b/.changeset/slimy-cobras-end.md deleted file mode 100644 index 58f22ac07c..0000000000 --- a/.changeset/slimy-cobras-end.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@astrojs/mdx": major ---- - -Allows integrations after the MDX integration to update `markdown.remarkPlugins` and `markdown.rehypePlugins`, and have the plugins work in MDX too. - -If your integration relies on Astro's previous behavior that prevents integrations from adding remark/rehype plugins for MDX, you will now need to configure `@astrojs/mdx` with `extendMarkdownConfig: false` and explicitly specify any `remarkPlugins` and `rehypePlugins` options instead. diff --git a/.changeset/small-oranges-report.md b/.changeset/small-oranges-report.md deleted file mode 100644 index 8d0906e053..0000000000 --- a/.changeset/small-oranges-report.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@astrojs/mdx": major ---- - -Renames the `optimize.customComponentNames` option to `optimize.ignoreElementNames` to better reflect its usecase. Its behaviour is not changed and should continue to work as before. diff --git a/.changeset/smart-rats-mate.md b/.changeset/smart-rats-mate.md deleted file mode 100644 index b779a86c8a..0000000000 --- a/.changeset/smart-rats-mate.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@astrojs/mdx": patch ---- - -Updates the `optimize` option to group static sibling nodes as a ``. This reduces the number of AST nodes and simplifies runtime rendering of MDX pages. diff --git a/.changeset/spicy-keys-own.md b/.changeset/spicy-keys-own.md deleted file mode 100644 index 066d764a74..0000000000 --- a/.changeset/spicy-keys-own.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"astro": patch ---- - -Preserve content modules properly in cache diff --git a/.changeset/strong-peaches-learn.md b/.changeset/strong-peaches-learn.md deleted file mode 100644 index 263746d6be..0000000000 --- a/.changeset/strong-peaches-learn.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"astro": patch ---- - -Handles `AstroUserError`s thrown while syncing content collections and exports `BaseSchema` and `CollectionConfig` types diff --git a/.changeset/sweet-goats-own.md b/.changeset/sweet-goats-own.md deleted file mode 100644 index 6689246c33..0000000000 --- a/.changeset/sweet-goats-own.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@astrojs/mdx": major ---- - -Replaces the internal `remark-images-to-component` plugin with `rehype-images-to-component` to let users use additional rehype plugins for images diff --git a/.changeset/tame-avocados-relax.md b/.changeset/tame-avocados-relax.md deleted file mode 100644 index 9b6a36881c..0000000000 --- a/.changeset/tame-avocados-relax.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@astrojs/mdx": patch ---- - -Tags the MDX component export for quicker component checks while rendering diff --git a/.changeset/thin-rabbits-wait.md b/.changeset/thin-rabbits-wait.md deleted file mode 100644 index 1556e0147f..0000000000 --- a/.changeset/thin-rabbits-wait.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -"@astrojs/vue": minor ---- - -Adds a `devtools` option - -You can enable the [official Vue DevTools](https://devtools-next.vuejs.org/) while working in development mode by setting `devtools:true` in your `vue()` integration config: - -```js -import { defineConfig } from "astro/config" -import vue from "@astrojs/vue" - -export default defineConfig({ - integrations: [ - vue({ devtools: true }) - ] -}) -``` \ No newline at end of file diff --git a/.changeset/tiny-gifts-fry.md b/.changeset/tiny-gifts-fry.md deleted file mode 100644 index b798e6c6a5..0000000000 --- a/.changeset/tiny-gifts-fry.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@astrojs/db": patch ---- - -Convert non-ISO date to UTC time diff --git a/.changeset/tough-numbers-build.md b/.changeset/tough-numbers-build.md deleted file mode 100644 index fdb7eea33c..0000000000 --- a/.changeset/tough-numbers-build.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@astrojs/web-vitals": patch ---- - -Fixes a runtime issue where Vite was unintentionally pulled into the server code diff --git a/.changeset/twelve-dolphins-roll.md b/.changeset/twelve-dolphins-roll.md deleted file mode 100644 index baf944281d..0000000000 --- a/.changeset/twelve-dolphins-roll.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"astro": minor ---- - -Adds a new `buttonBorderRadius` property to the `astro-dev-toolbar-button` component for the dev toolbar component library. This property can be useful to make a fully rounded button with an icon in the center. diff --git a/.changeset/violet-snails-call.md b/.changeset/violet-snails-call.md deleted file mode 100644 index b7f06a7b93..0000000000 --- a/.changeset/violet-snails-call.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@astrojs/mdx": patch ---- - -Fixes `export const components` keys detection for the `optimize` option diff --git a/.changeset/young-chicken-exercise.md b/.changeset/young-chicken-exercise.md deleted file mode 100644 index 04b7417bbe..0000000000 --- a/.changeset/young-chicken-exercise.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@astrojs/mdx": patch ---- - -Improves `optimize` handling for MDX components with attributes and inline MDX components diff --git a/examples/basics/package.json b/examples/basics/package.json index 5c3e3c5919..b2931a3989 100644 --- a/examples/basics/package.json +++ b/examples/basics/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.7.1" + "astro": "^4.8.0" } } diff --git a/examples/blog/package.json b/examples/blog/package.json index 2dc4327a21..374eeedfc1 100644 --- a/examples/blog/package.json +++ b/examples/blog/package.json @@ -11,9 +11,9 @@ "astro": "astro" }, "dependencies": { - "@astrojs/mdx": "^2.3.1", + "@astrojs/mdx": "^3.0.0", "@astrojs/rss": "^4.0.5", "@astrojs/sitemap": "^3.1.4", - "astro": "^4.7.1" + "astro": "^4.8.0" } } diff --git a/examples/component/package.json b/examples/component/package.json index 5d58f7aad0..1368576494 100644 --- a/examples/component/package.json +++ b/examples/component/package.json @@ -15,7 +15,7 @@ ], "scripts": {}, "devDependencies": { - "astro": "^4.7.1" + "astro": "^4.8.0" }, "peerDependencies": { "astro": "^4.0.0" diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json index 9bc2f9a223..5c9773c723 100644 --- a/examples/framework-alpine/package.json +++ b/examples/framework-alpine/package.json @@ -14,6 +14,6 @@ "@astrojs/alpinejs": "^0.4.0", "@types/alpinejs": "^3.13.5", "alpinejs": "^3.13.3", - "astro": "^4.7.1" + "astro": "^4.8.0" } } diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json index 6ce8901808..79857d6682 100644 --- a/examples/framework-lit/package.json +++ b/examples/framework-lit/package.json @@ -13,7 +13,7 @@ "dependencies": { "@astrojs/lit": "^4.0.1", "@webcomponents/template-shadowroot": "^0.2.1", - "astro": "^4.7.1", + "astro": "^4.8.0", "lit": "^3.1.2" } } diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json index 0b72795651..7f991cdecd 100644 --- a/examples/framework-multiple/package.json +++ b/examples/framework-multiple/package.json @@ -11,14 +11,14 @@ "astro": "astro" }, "dependencies": { - "@astrojs/preact": "^3.2.0", - "@astrojs/react": "^3.3.2", - "@astrojs/solid-js": "^4.1.0", + "@astrojs/preact": "^3.3.0", + "@astrojs/react": "^3.3.3", + "@astrojs/solid-js": "^4.2.0", "@astrojs/svelte": "^5.4.0", - "@astrojs/vue": "^4.1.0", + "@astrojs/vue": "^4.2.0", "@types/react": "^18.2.37", "@types/react-dom": "^18.2.15", - "astro": "^4.7.1", + "astro": "^4.8.0", "preact": "^10.21.0", "react": "^18.3.1", "react-dom": "^18.3.1", diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json index 318d716319..09c95245da 100644 --- a/examples/framework-preact/package.json +++ b/examples/framework-preact/package.json @@ -11,9 +11,9 @@ "astro": "astro" }, "dependencies": { - "@astrojs/preact": "^3.2.0", + "@astrojs/preact": "^3.3.0", "@preact/signals": "^1.2.3", - "astro": "^4.7.1", + "astro": "^4.8.0", "preact": "^10.21.0" } } diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index 9e255a0134..7df5fb1a24 100644 --- a/examples/framework-react/package.json +++ b/examples/framework-react/package.json @@ -11,10 +11,10 @@ "astro": "astro" }, "dependencies": { - "@astrojs/react": "^3.3.2", + "@astrojs/react": "^3.3.3", "@types/react": "^18.2.37", "@types/react-dom": "^18.2.15", - "astro": "^4.7.1", + "astro": "^4.8.0", "react": "^18.3.1", "react-dom": "^18.3.1" } diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json index 6a37c09a8f..b214ecd743 100644 --- a/examples/framework-solid/package.json +++ b/examples/framework-solid/package.json @@ -11,8 +11,8 @@ "astro": "astro" }, "dependencies": { - "@astrojs/solid-js": "^4.1.0", - "astro": "^4.7.1", + "@astrojs/solid-js": "^4.2.0", + "astro": "^4.8.0", "solid-js": "^1.8.17" } } diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json index 9a7c8fbc71..a3895e03f9 100644 --- a/examples/framework-svelte/package.json +++ b/examples/framework-svelte/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@astrojs/svelte": "^5.4.0", - "astro": "^4.7.1", + "astro": "^4.8.0", "svelte": "^4.2.16" } } diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json index 0759ed0ff8..23a37b754e 100644 --- a/examples/framework-vue/package.json +++ b/examples/framework-vue/package.json @@ -11,8 +11,8 @@ "astro": "astro" }, "dependencies": { - "@astrojs/vue": "^4.1.0", - "astro": "^4.7.1", + "@astrojs/vue": "^4.2.0", + "astro": "^4.8.0", "vue": "^3.4.27" } } diff --git a/examples/hackernews/package.json b/examples/hackernews/package.json index 0fb6bb59a3..61d7bf2834 100644 --- a/examples/hackernews/package.json +++ b/examples/hackernews/package.json @@ -12,6 +12,6 @@ }, "dependencies": { "@astrojs/node": "^8.2.5", - "astro": "^4.7.1" + "astro": "^4.8.0" } } diff --git a/examples/integration/package.json b/examples/integration/package.json index bb18d81ca4..261f59d990 100644 --- a/examples/integration/package.json +++ b/examples/integration/package.json @@ -15,7 +15,7 @@ ], "scripts": {}, "devDependencies": { - "astro": "^4.7.1" + "astro": "^4.8.0" }, "peerDependencies": { "astro": "^4.0.0" diff --git a/examples/middleware/package.json b/examples/middleware/package.json index 760ea6f2ab..9d843454ff 100644 --- a/examples/middleware/package.json +++ b/examples/middleware/package.json @@ -13,7 +13,7 @@ }, "dependencies": { "@astrojs/node": "^8.2.5", - "astro": "^4.7.1", + "astro": "^4.8.0", "html-minifier": "^4.0.0" }, "devDependencies": { diff --git a/examples/minimal/package.json b/examples/minimal/package.json index 530023511b..c923eba92f 100644 --- a/examples/minimal/package.json +++ b/examples/minimal/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.7.1" + "astro": "^4.8.0" } } diff --git a/examples/non-html-pages/package.json b/examples/non-html-pages/package.json index 6f0420779b..3ff5e16b14 100644 --- a/examples/non-html-pages/package.json +++ b/examples/non-html-pages/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.7.1" + "astro": "^4.8.0" } } diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json index 07ac5a1409..9076d92565 100644 --- a/examples/portfolio/package.json +++ b/examples/portfolio/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.7.1" + "astro": "^4.8.0" } } diff --git a/examples/ssr/package.json b/examples/ssr/package.json index 0142e609f1..30cc1638de 100644 --- a/examples/ssr/package.json +++ b/examples/ssr/package.json @@ -14,7 +14,7 @@ "dependencies": { "@astrojs/node": "^8.2.5", "@astrojs/svelte": "^5.4.0", - "astro": "^4.7.1", + "astro": "^4.8.0", "svelte": "^4.2.16" } } diff --git a/examples/starlog/package.json b/examples/starlog/package.json index 3d1d6839e8..5e1f396a53 100644 --- a/examples/starlog/package.json +++ b/examples/starlog/package.json @@ -10,7 +10,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.7.1", + "astro": "^4.8.0", "sass": "^1.77.0", "sharp": "^0.33.3" } diff --git a/examples/toolbar-app/package.json b/examples/toolbar-app/package.json index 22d073256d..934922d2ea 100644 --- a/examples/toolbar-app/package.json +++ b/examples/toolbar-app/package.json @@ -15,6 +15,6 @@ "./app": "./dist/app.js" }, "devDependencies": { - "astro": "^4.7.1" + "astro": "^4.8.0" } } diff --git a/examples/view-transitions/package.json b/examples/view-transitions/package.json index 95898e2685..581ff1c370 100644 --- a/examples/view-transitions/package.json +++ b/examples/view-transitions/package.json @@ -12,6 +12,6 @@ "devDependencies": { "@astrojs/tailwind": "^5.1.0", "@astrojs/node": "^8.2.5", - "astro": "^4.7.1" + "astro": "^4.8.0" } } diff --git a/examples/with-markdoc/package.json b/examples/with-markdoc/package.json index 7d48e13db4..93a0af9650 100644 --- a/examples/with-markdoc/package.json +++ b/examples/with-markdoc/package.json @@ -12,6 +12,6 @@ }, "dependencies": { "@astrojs/markdoc": "^0.11.0", - "astro": "^4.7.1" + "astro": "^4.8.0" } } diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json index 061f5e20b3..e31543b179 100644 --- a/examples/with-markdown-plugins/package.json +++ b/examples/with-markdown-plugins/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@astrojs/markdown-remark": "^5.1.0", - "astro": "^4.7.1", + "astro": "^4.8.0", "hast-util-select": "^6.0.2", "rehype-autolink-headings": "^7.1.0", "rehype-slug": "^6.0.0", diff --git a/examples/with-markdown-shiki/package.json b/examples/with-markdown-shiki/package.json index 0bb88803cd..8d96a64492 100644 --- a/examples/with-markdown-shiki/package.json +++ b/examples/with-markdown-shiki/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.7.1" + "astro": "^4.8.0" } } diff --git a/examples/with-mdx/package.json b/examples/with-mdx/package.json index 88cef7d1c4..604f61770f 100644 --- a/examples/with-mdx/package.json +++ b/examples/with-mdx/package.json @@ -11,9 +11,9 @@ "astro": "astro" }, "dependencies": { - "@astrojs/mdx": "^2.3.1", - "@astrojs/preact": "^3.2.0", - "astro": "^4.7.1", + "@astrojs/mdx": "^3.0.0", + "@astrojs/preact": "^3.3.0", + "astro": "^4.8.0", "preact": "^10.21.0" } } diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json index 69bb043716..b1cd57f66c 100644 --- a/examples/with-nanostores/package.json +++ b/examples/with-nanostores/package.json @@ -11,9 +11,9 @@ "astro": "astro" }, "dependencies": { - "@astrojs/preact": "^3.2.0", + "@astrojs/preact": "^3.3.0", "@nanostores/preact": "^0.5.0", - "astro": "^4.7.1", + "astro": "^4.8.0", "nanostores": "^0.9.5", "preact": "^10.21.0" } diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json index 6bb09d0d4f..c5f27fc260 100644 --- a/examples/with-tailwindcss/package.json +++ b/examples/with-tailwindcss/package.json @@ -11,10 +11,10 @@ "astro": "astro" }, "dependencies": { - "@astrojs/mdx": "^2.3.1", + "@astrojs/mdx": "^3.0.0", "@astrojs/tailwind": "^5.1.0", "@types/canvas-confetti": "^1.6.3", - "astro": "^4.7.1", + "astro": "^4.8.0", "autoprefixer": "^10.4.15", "canvas-confetti": "^1.9.1", "postcss": "^8.4.28", diff --git a/examples/with-vitest/package.json b/examples/with-vitest/package.json index df6f0a5f1d..08bd9a0c09 100644 --- a/examples/with-vitest/package.json +++ b/examples/with-vitest/package.json @@ -12,7 +12,7 @@ "test": "vitest" }, "dependencies": { - "astro": "^4.7.1", + "astro": "^4.8.0", "vitest": "^1.6.0" } } diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index 5073c34a91..97fd0ff6e6 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,187 @@ # astro +## 4.8.0 + +### Minor Changes + +- [#10935](https://github.com/withastro/astro/pull/10935) [`ddd8e49`](https://github.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@bluwy](https://github.com/bluwy)! - Exports `astro/jsx/rehype.js` with utilities to generate an Astro metadata object + +- [#10625](https://github.com/withastro/astro/pull/10625) [`698c2d9`](https://github.com/withastro/astro/commit/698c2d9bb51e20b38de405b6076fd6488ddb5c2b) Thanks [@goulvenclech](https://github.com/goulvenclech)! - Adds the ability for multiple pages to use the same component as an `entrypoint` when building an Astro integration. This change is purely internal, and aligns the build process with the behaviour in the development server. + +- [#10906](https://github.com/withastro/astro/pull/10906) [`7bbd664`](https://github.com/withastro/astro/commit/7bbd66459dd29a338ac1dfae0e4c984cb08f73b3) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Adds a new radio checkbox component to the dev toolbar UI library (`astro-dev-toolbar-radio-checkbox`) + +- [#10963](https://github.com/withastro/astro/pull/10963) [`61f47a6`](https://github.com/withastro/astro/commit/61f47a684235a049cbfc4f2cbb5edff3befeced7) Thanks [@delucis](https://github.com/delucis)! - Adds support for passing an inline Astro configuration object to `getViteConfig()` + + If you are using `getViteConfig()` to configure the Vitest test runner, you can now pass a second argument to control how Astro is configured. This makes it possible to configure unit tests with different Astro options when using [Vitest’s workspaces](https://vitest.dev/guide/workspace.html) feature. + + ```js + // vitest.config.ts + import { getViteConfig } from 'astro/config'; + + export default getViteConfig( + /* Vite configuration */ + { test: {} }, + /* Astro configuration */ + { + site: 'https://example.com', + trailingSlash: 'never', + } + ); + ``` + +- [#10867](https://github.com/withastro/astro/pull/10867) [`47877a7`](https://github.com/withastro/astro/commit/47877a75404ccc8786bbea2171015fb088dc01a1) Thanks [@ematipico](https://github.com/ematipico)! - Adds experimental rewriting in Astro with a new `rewrite()` function and the middleware `next()` function. + + The feature is available via an experimental flag in `astro.config.mjs`: + + ```js + export default defineConfig({ + experimental: { + rewriting: true, + }, + }); + ``` + + When enabled, you can use `rewrite()` to **render** another page without changing the URL of the browser in Astro pages and endpoints. + + ```astro + --- + // src/pages/dashboard.astro + if (!Astro.props.allowed) { + return Astro.rewrite('/'); + } + --- + ``` + + ```js + // src/pages/api.js + export function GET(ctx) { + if (!ctx.locals.allowed) { + return ctx.rewrite('/'); + } + } + ``` + + The middleware `next()` function now accepts a parameter with the same type as the `rewrite()` function. For example, with `next("/")`, you can call the next middleware function with a new `Request`. + + ```js + // src/middleware.js + export function onRequest(ctx, next) { + if (!ctx.cookies.get('allowed')) { + return next('/'); // new signature + } + return next(); + } + ``` + + > **NOTE**: please [read the RFC](https://github.com/withastro/roadmap/blob/feat/reroute/proposals/0047-rerouting.md) to understand the current expectations of the new APIs. + +- [#10858](https://github.com/withastro/astro/pull/10858) [`c0c509b`](https://github.com/withastro/astro/commit/c0c509b6bf3f55562d22297fdcc2b3e57969734d) Thanks [@z.string(),]()! - Adds experimental support for the Actions API. Actions let you define type-safe endpoints you can query from client components with progressive enhancement built in. + + Actions help you write type-safe backend functions you can call from anywhere. Enable server rendering [using the `output` property](https://docs.astro.build/en/basics/rendering-modes/#on-demand-rendered) and add the `actions` flag to the `experimental` object: + + ```js + { + output: 'hybrid', // or 'server' + experimental: { + actions: true, + }, + } + ``` + + Declare all your actions in `src/actions/index.ts`. This file is the global actions handler. + + Define an action using the `defineAction()` utility from the `astro:actions` module. These accept the `handler` property to define your server-side request handler. If your action accepts arguments, apply the `input` property to validate parameters with Zod. + + This example defines two actions: `like` and `comment`. The `like` action accepts a JSON object with a `postId` string, while the `comment` action accepts [FormData](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest_API/Using_FormData_Objects) with `postId`, `author`, and `body` strings. Each `handler` updates your database and return a type-safe response. + + ```ts + // src/actions/index.ts + import { defineAction, z } from 'astro:actions'; + + export const server = { + like: defineAction({ + input: z.object({ postId: z.string() }), + handler: async ({ postId }, context) => { + // update likes in db + + return likes; + }, + }), + comment: defineAction({ + accept: 'form', + input: z.object({ + postId: z.string(), + + body: z.string(), + }), + handler: async ({ postId }, context) => { + // insert comments in db + + return comment; + }, + }), + }; + ``` + + Then, call an action from your client components using the `actions` object from `astro:actions`. You can pass a type-safe object when using JSON, or a [FormData](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest_API/Using_FormData_Objects) object when using `accept: 'form'` in your action definition: + + ```tsx "actions" + // src/components/blog.tsx + import { actions } from 'astro:actions'; + import { useState } from 'preact/hooks'; + + export function Like({ postId }: { postId: string }) { + const [likes, setLikes] = useState(0); + return ( + + ); + } + + export function Comment({ postId }: { postId: string }) { + return ( +
{ + e.preventDefault(); + const formData = new FormData(e.target); + const result = await actions.blog.comment(formData); + // handle result + }} + > + + + + + +
+ ); + } + ``` + + For a complete overview, and to give feedback on this experimental API, see the [Actions RFC](https://github.com/withastro/roadmap/blob/actions/proposals/0046-actions.md). + +- [#10906](https://github.com/withastro/astro/pull/10906) [`7bbd664`](https://github.com/withastro/astro/commit/7bbd66459dd29a338ac1dfae0e4c984cb08f73b3) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Adds a new `buttonBorderRadius` property to the `astro-dev-toolbar-button` component for the dev toolbar component library. This property can be useful to make a fully rounded button with an icon in the center. + +### Patch Changes + +- [#10977](https://github.com/withastro/astro/pull/10977) [`59571e8`](https://github.com/withastro/astro/commit/59571e8812ec637f5ea61be6c6adc0f45212d176) Thanks [@BryceRussell](https://github.com/BryceRussell)! - Improve error message when accessing `clientAddress` on prerendered routes + +- [#10935](https://github.com/withastro/astro/pull/10935) [`ddd8e49`](https://github.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@bluwy](https://github.com/bluwy)! - Improves the error message when failed to render MDX components + +- [#10917](https://github.com/withastro/astro/pull/10917) [`3412535`](https://github.com/withastro/astro/commit/3412535be4a0ec94cea18c5d186b7ffbd6f8209c) Thanks [@jakobhellermann](https://github.com/jakobhellermann)! - Fixes a case where the local server would crash when the host also contained the port, eg. with `X-Forwarded-Host: hostname:8080` and `X-Forwarded-Port: 8080` headers + +- [#10959](https://github.com/withastro/astro/pull/10959) [`685fc22`](https://github.com/withastro/astro/commit/685fc22bc6247be69a34c3f6945dec058c19fd71) Thanks [@bluwy](https://github.com/bluwy)! - Refactors internal handling of styles and scripts for content collections to improve build performance + +- [#10889](https://github.com/withastro/astro/pull/10889) [`4d905cc`](https://github.com/withastro/astro/commit/4d905ccef663f728fc981181f5bb9f1d157184ff) Thanks [@matthewp](https://github.com/matthewp)! - Preserve content modules properly in cache + +- [#10955](https://github.com/withastro/astro/pull/10955) [`2978287`](https://github.com/withastro/astro/commit/2978287f92dbd135f5c3efc6a037ea1756064d35) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - Handles `AstroUserError`s thrown while syncing content collections and exports `BaseSchema` and `CollectionConfig` types + ## 4.7.1 ### Patch Changes diff --git a/packages/astro/package.json b/packages/astro/package.json index e6b4ff5584..5618225982 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "astro", - "version": "4.7.1", + "version": "4.8.0", "description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.", "type": "module", "author": "withastro", diff --git a/packages/db/CHANGELOG.md b/packages/db/CHANGELOG.md index 177c5380e3..90ae17597c 100644 --- a/packages/db/CHANGELOG.md +++ b/packages/db/CHANGELOG.md @@ -1,5 +1,11 @@ # @astrojs/db +## 0.11.1 + +### Patch Changes + +- [#10967](https://github.com/withastro/astro/pull/10967) [`a134318`](https://github.com/withastro/astro/commit/a1343184da2a67439de4792e9e404d17ec3943df) Thanks [@matthewp](https://github.com/matthewp)! - Convert non-ISO date to UTC time + ## 0.11.0 ### Minor Changes diff --git a/packages/db/package.json b/packages/db/package.json index 1a2d9de2ed..1213b9ce3b 100644 --- a/packages/db/package.json +++ b/packages/db/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/db", - "version": "0.11.0", + "version": "0.11.1", "description": "Add libSQL and Astro Studio support to your Astro site", "license": "MIT", "repository": { diff --git a/packages/integrations/mdx/CHANGELOG.md b/packages/integrations/mdx/CHANGELOG.md index b40ce2e000..eb08cc0265 100644 --- a/packages/integrations/mdx/CHANGELOG.md +++ b/packages/integrations/mdx/CHANGELOG.md @@ -1,5 +1,33 @@ # @astrojs/mdx +## 3.0.0 + +### Major Changes + +- [#10935](https://github.com/withastro/astro/pull/10935) [`ddd8e49`](https://github.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@bluwy](https://github.com/bluwy)! - Refactors the MDX transformation to rely only on the unified pipeline. Babel and esbuild transformations are removed, which should result in faster build times. The refactor requires using Astro v4.8.0 but no other changes are necessary. + +- [#10935](https://github.com/withastro/astro/pull/10935) [`ddd8e49`](https://github.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@bluwy](https://github.com/bluwy)! - Allows integrations after the MDX integration to update `markdown.remarkPlugins` and `markdown.rehypePlugins`, and have the plugins work in MDX too. + + If your integration relies on Astro's previous behavior that prevents integrations from adding remark/rehype plugins for MDX, you will now need to configure `@astrojs/mdx` with `extendMarkdownConfig: false` and explicitly specify any `remarkPlugins` and `rehypePlugins` options instead. + +- [#10935](https://github.com/withastro/astro/pull/10935) [`ddd8e49`](https://github.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@bluwy](https://github.com/bluwy)! - Renames the `optimize.customComponentNames` option to `optimize.ignoreElementNames` to better reflect its usecase. Its behaviour is not changed and should continue to work as before. + +- [#10935](https://github.com/withastro/astro/pull/10935) [`ddd8e49`](https://github.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@bluwy](https://github.com/bluwy)! - Replaces the internal `remark-images-to-component` plugin with `rehype-images-to-component` to let users use additional rehype plugins for images + +### Patch Changes + +- [#10935](https://github.com/withastro/astro/pull/10935) [`ddd8e49`](https://github.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@bluwy](https://github.com/bluwy)! - Simplifies plain MDX components as hast element nodes to further improve HTML string inlining for the `optimize` option + +- [#10935](https://github.com/withastro/astro/pull/10935) [`ddd8e49`](https://github.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@bluwy](https://github.com/bluwy)! - Allows Vite plugins to transform `.mdx` files before the MDX plugin transforms it + +- [#10935](https://github.com/withastro/astro/pull/10935) [`ddd8e49`](https://github.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@bluwy](https://github.com/bluwy)! - Updates the `optimize` option to group static sibling nodes as a ``. This reduces the number of AST nodes and simplifies runtime rendering of MDX pages. + +- [#10935](https://github.com/withastro/astro/pull/10935) [`ddd8e49`](https://github.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@bluwy](https://github.com/bluwy)! - Tags the MDX component export for quicker component checks while rendering + +- [#10935](https://github.com/withastro/astro/pull/10935) [`ddd8e49`](https://github.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@bluwy](https://github.com/bluwy)! - Fixes `export const components` keys detection for the `optimize` option + +- [#10935](https://github.com/withastro/astro/pull/10935) [`ddd8e49`](https://github.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@bluwy](https://github.com/bluwy)! - Improves `optimize` handling for MDX components with attributes and inline MDX components + ## 2.3.1 ### Patch Changes diff --git a/packages/integrations/mdx/package.json b/packages/integrations/mdx/package.json index a7500433b3..de658ac300 100644 --- a/packages/integrations/mdx/package.json +++ b/packages/integrations/mdx/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/mdx", "description": "Add support for MDX pages in your Astro site", - "version": "2.3.1", + "version": "3.0.0", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/packages/integrations/preact/CHANGELOG.md b/packages/integrations/preact/CHANGELOG.md index f9d76a9837..9c9298db45 100644 --- a/packages/integrations/preact/CHANGELOG.md +++ b/packages/integrations/preact/CHANGELOG.md @@ -1,5 +1,22 @@ # @astrojs/preact +## 3.3.0 + +### Minor Changes + +- [#10938](https://github.com/withastro/astro/pull/10938) [`fd508a0`](https://github.com/withastro/astro/commit/fd508a0fbb5148aafc180f1b14d3e47974777248) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - Adds a `devtools` option + + You can enable [Preact devtools](https://preactjs.github.io/preact-devtools/) in development by setting `devtools: true` in your `preact()` integration config: + + ```js + import { defineConfig } from 'astro/config'; + import preact from '@astrojs/preact'; + + export default defineConfig({ + integrations: [preact({ devtools: true })], + }); + ``` + ## 3.2.0 ### Minor Changes diff --git a/packages/integrations/preact/package.json b/packages/integrations/preact/package.json index af1e09d3ba..23705bda39 100644 --- a/packages/integrations/preact/package.json +++ b/packages/integrations/preact/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/preact", "description": "Use Preact components within Astro", - "version": "3.2.0", + "version": "3.3.0", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/packages/integrations/react/CHANGELOG.md b/packages/integrations/react/CHANGELOG.md index af63e5c5cb..39bf83b156 100644 --- a/packages/integrations/react/CHANGELOG.md +++ b/packages/integrations/react/CHANGELOG.md @@ -1,5 +1,11 @@ # @astrojs/react +## 3.3.3 + +### Patch Changes + +- [#10942](https://github.com/withastro/astro/pull/10942) [`d47baa4`](https://github.com/withastro/astro/commit/d47baa466aaeedde9c79ed5375d0be34762ac8b6) Thanks [@matthewp](https://github.com/matthewp)! - Updates package to support React 19 beta + ## 3.3.2 ### Patch Changes diff --git a/packages/integrations/react/package.json b/packages/integrations/react/package.json index 6753d9b783..c6df669e12 100644 --- a/packages/integrations/react/package.json +++ b/packages/integrations/react/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/react", "description": "Use React components within Astro", - "version": "3.3.2", + "version": "3.3.3", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/packages/integrations/solid/CHANGELOG.md b/packages/integrations/solid/CHANGELOG.md index 201de6445b..5643e2163b 100644 --- a/packages/integrations/solid/CHANGELOG.md +++ b/packages/integrations/solid/CHANGELOG.md @@ -1,5 +1,28 @@ # @astrojs/solid-js +## 4.2.0 + +### Minor Changes + +- [#10937](https://github.com/withastro/astro/pull/10937) [`7179930`](https://github.com/withastro/astro/commit/7179930ac85828b1a32c0c07c7d4759ce60044f5) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - Adds a `devtools` option + + You can enable the [official Solid Devtools](https://github.com/thetarnav/solid-devtools) while working in development mode by setting `devtools: true` in your `solid()` integration config and adding `solid-devtools` to your project dependencies: + + ```bash + npm install solid-devtools + # yarn add solid-devtools + # pnpm add solid-devtools + ``` + + ```js + import { defineConfig } from 'astro/config'; + import solid from '@astrojs/solid-js'; + + export default defineConfig({ + integrations: [solid({ devtools: true })], + }); + ``` + ## 4.1.0 ### Minor Changes diff --git a/packages/integrations/solid/package.json b/packages/integrations/solid/package.json index 10c0c4eb4b..0d93f35fc8 100644 --- a/packages/integrations/solid/package.json +++ b/packages/integrations/solid/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/solid-js", - "version": "4.1.0", + "version": "4.2.0", "description": "Use Solid components within Astro", "type": "module", "types": "./dist/index.d.ts", diff --git a/packages/integrations/vercel/CHANGELOG.md b/packages/integrations/vercel/CHANGELOG.md index 12ce0a3c25..19014c214f 100644 --- a/packages/integrations/vercel/CHANGELOG.md +++ b/packages/integrations/vercel/CHANGELOG.md @@ -1,5 +1,11 @@ # @astrojs/vercel +## 7.6.0 + +### Minor Changes + +- [#10761](https://github.com/withastro/astro/pull/10761) [`f0acd30`](https://github.com/withastro/astro/commit/f0acd30a12c380830884108f7cad67a31d879339) Thanks [@ematipico](https://github.com/ematipico)! - Implements the vercel skew protection + ## 7.5.4 ### Patch Changes diff --git a/packages/integrations/vercel/package.json b/packages/integrations/vercel/package.json index 93efbb402e..0324f0acc0 100644 --- a/packages/integrations/vercel/package.json +++ b/packages/integrations/vercel/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/vercel", "description": "Deploy your site to Vercel", - "version": "7.5.4", + "version": "7.6.0", "type": "module", "author": "withastro", "license": "MIT", diff --git a/packages/integrations/vue/CHANGELOG.md b/packages/integrations/vue/CHANGELOG.md index e4fd2db610..b1f95541d2 100644 --- a/packages/integrations/vue/CHANGELOG.md +++ b/packages/integrations/vue/CHANGELOG.md @@ -1,5 +1,22 @@ # @astrojs/vue +## 4.2.0 + +### Minor Changes + +- [#10929](https://github.com/withastro/astro/pull/10929) [`082abb8`](https://github.com/withastro/astro/commit/082abb82d574a200f9168ee5ae92c65c71e29eda) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - Adds a `devtools` option + + You can enable the [official Vue DevTools](https://devtools-next.vuejs.org/) while working in development mode by setting `devtools:true` in your `vue()` integration config: + + ```js + import { defineConfig } from 'astro/config'; + import vue from '@astrojs/vue'; + + export default defineConfig({ + integrations: [vue({ devtools: true })], + }); + ``` + ## 4.1.0 ### Minor Changes diff --git a/packages/integrations/vue/package.json b/packages/integrations/vue/package.json index f948f183e3..d0e46a88af 100644 --- a/packages/integrations/vue/package.json +++ b/packages/integrations/vue/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/vue", - "version": "4.1.0", + "version": "4.2.0", "description": "Use Vue components within Astro", "type": "module", "types": "./dist/index.d.ts", diff --git a/packages/integrations/web-vitals/CHANGELOG.md b/packages/integrations/web-vitals/CHANGELOG.md index 23945307b9..52830f8987 100644 --- a/packages/integrations/web-vitals/CHANGELOG.md +++ b/packages/integrations/web-vitals/CHANGELOG.md @@ -1,5 +1,11 @@ # @astrojs/web-vitals +## 0.1.1 + +### Patch Changes + +- [#10947](https://github.com/withastro/astro/pull/10947) [`e63e96b`](https://github.com/withastro/astro/commit/e63e96bf32bce270926da6e65c9a331cf9e462d4) Thanks [@delucis](https://github.com/delucis)! - Fixes a runtime issue where Vite was unintentionally pulled into the server code + ## 0.1.0 ### Minor Changes diff --git a/packages/integrations/web-vitals/package.json b/packages/integrations/web-vitals/package.json index dde7c502b0..fccde3aee2 100644 --- a/packages/integrations/web-vitals/package.json +++ b/packages/integrations/web-vitals/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/web-vitals", "description": "Track your website’s performance with Astro DB", - "version": "0.1.0", + "version": "0.1.1", "type": "module", "author": "withastro", "license": "MIT", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index eca7965019..a7382ec81e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -128,13 +128,13 @@ importers: examples/basics: dependencies: astro: - specifier: ^4.7.1 + specifier: ^4.8.0 version: link:../../packages/astro examples/blog: dependencies: '@astrojs/mdx': - specifier: ^2.3.1 + specifier: ^3.0.0 version: link:../../packages/integrations/mdx '@astrojs/rss': specifier: ^4.0.5 @@ -143,13 +143,13 @@ importers: specifier: ^3.1.4 version: link:../../packages/integrations/sitemap astro: - specifier: ^4.7.1 + specifier: ^4.8.0 version: link:../../packages/astro examples/component: devDependencies: astro: - specifier: ^4.7.1 + specifier: ^4.8.0 version: link:../../packages/astro examples/framework-alpine: @@ -164,7 +164,7 @@ importers: specifier: ^3.13.3 version: 3.13.3 astro: - specifier: ^4.7.1 + specifier: ^4.8.0 version: link:../../packages/astro examples/framework-lit: @@ -176,7 +176,7 @@ importers: specifier: ^0.2.1 version: 0.2.1 astro: - specifier: ^4.7.1 + specifier: ^4.8.0 version: link:../../packages/astro lit: specifier: ^3.1.2 @@ -185,19 +185,19 @@ importers: examples/framework-multiple: dependencies: '@astrojs/preact': - specifier: ^3.2.0 + specifier: ^3.3.0 version: link:../../packages/integrations/preact '@astrojs/react': - specifier: ^3.3.2 + specifier: ^3.3.3 version: link:../../packages/integrations/react '@astrojs/solid-js': - specifier: ^4.1.0 + specifier: ^4.2.0 version: link:../../packages/integrations/solid '@astrojs/svelte': specifier: ^5.4.0 version: link:../../packages/integrations/svelte '@astrojs/vue': - specifier: ^4.1.0 + specifier: ^4.2.0 version: link:../../packages/integrations/vue '@types/react': specifier: ^18.2.37 @@ -206,7 +206,7 @@ importers: specifier: ^18.2.15 version: 18.3.0 astro: - specifier: ^4.7.1 + specifier: ^4.8.0 version: link:../../packages/astro preact: specifier: ^10.21.0 @@ -230,13 +230,13 @@ importers: examples/framework-preact: dependencies: '@astrojs/preact': - specifier: ^3.2.0 + specifier: ^3.3.0 version: link:../../packages/integrations/preact '@preact/signals': specifier: ^1.2.3 version: 1.2.3(preact@10.21.0) astro: - specifier: ^4.7.1 + specifier: ^4.8.0 version: link:../../packages/astro preact: specifier: ^10.21.0 @@ -245,7 +245,7 @@ importers: examples/framework-react: dependencies: '@astrojs/react': - specifier: ^3.3.2 + specifier: ^3.3.3 version: link:../../packages/integrations/react '@types/react': specifier: ^18.2.37 @@ -254,7 +254,7 @@ importers: specifier: ^18.2.15 version: 18.3.0 astro: - specifier: ^4.7.1 + specifier: ^4.8.0 version: link:../../packages/astro react: specifier: ^18.3.1 @@ -266,10 +266,10 @@ importers: examples/framework-solid: dependencies: '@astrojs/solid-js': - specifier: ^4.1.0 + specifier: ^4.2.0 version: link:../../packages/integrations/solid astro: - specifier: ^4.7.1 + specifier: ^4.8.0 version: link:../../packages/astro solid-js: specifier: ^1.8.17 @@ -281,7 +281,7 @@ importers: specifier: ^5.4.0 version: link:../../packages/integrations/svelte astro: - specifier: ^4.7.1 + specifier: ^4.8.0 version: link:../../packages/astro svelte: specifier: ^4.2.16 @@ -290,10 +290,10 @@ importers: examples/framework-vue: dependencies: '@astrojs/vue': - specifier: ^4.1.0 + specifier: ^4.2.0 version: link:../../packages/integrations/vue astro: - specifier: ^4.7.1 + specifier: ^4.8.0 version: link:../../packages/astro vue: specifier: ^3.4.27 @@ -305,13 +305,13 @@ importers: specifier: ^8.2.5 version: link:../../packages/integrations/node astro: - specifier: ^4.7.1 + specifier: ^4.8.0 version: link:../../packages/astro examples/integration: devDependencies: astro: - specifier: ^4.7.1 + specifier: ^4.8.0 version: link:../../packages/astro examples/middleware: @@ -320,7 +320,7 @@ importers: specifier: ^8.2.5 version: link:../../packages/integrations/node astro: - specifier: ^4.7.1 + specifier: ^4.8.0 version: link:../../packages/astro html-minifier: specifier: ^4.0.0 @@ -333,19 +333,19 @@ importers: examples/minimal: dependencies: astro: - specifier: ^4.7.1 + specifier: ^4.8.0 version: link:../../packages/astro examples/non-html-pages: dependencies: astro: - specifier: ^4.7.1 + specifier: ^4.8.0 version: link:../../packages/astro examples/portfolio: dependencies: astro: - specifier: ^4.7.1 + specifier: ^4.8.0 version: link:../../packages/astro examples/ssr: @@ -357,7 +357,7 @@ importers: specifier: ^5.4.0 version: link:../../packages/integrations/svelte astro: - specifier: ^4.7.1 + specifier: ^4.8.0 version: link:../../packages/astro svelte: specifier: ^4.2.16 @@ -366,7 +366,7 @@ importers: examples/starlog: dependencies: astro: - specifier: ^4.7.1 + specifier: ^4.8.0 version: link:../../packages/astro sass: specifier: ^1.77.0 @@ -378,7 +378,7 @@ importers: examples/toolbar-app: devDependencies: astro: - specifier: ^4.7.1 + specifier: ^4.8.0 version: link:../../packages/astro examples/view-transitions: @@ -390,7 +390,7 @@ importers: specifier: ^5.1.0 version: link:../../packages/integrations/tailwind astro: - specifier: ^4.7.1 + specifier: ^4.8.0 version: link:../../packages/astro examples/with-markdoc: @@ -399,7 +399,7 @@ importers: specifier: ^0.11.0 version: link:../../packages/integrations/markdoc astro: - specifier: ^4.7.1 + specifier: ^4.8.0 version: link:../../packages/astro examples/with-markdown-plugins: @@ -408,7 +408,7 @@ importers: specifier: ^5.1.0 version: link:../../packages/markdown/remark astro: - specifier: ^4.7.1 + specifier: ^4.8.0 version: link:../../packages/astro hast-util-select: specifier: ^6.0.2 @@ -429,19 +429,19 @@ importers: examples/with-markdown-shiki: dependencies: astro: - specifier: ^4.7.1 + specifier: ^4.8.0 version: link:../../packages/astro examples/with-mdx: dependencies: '@astrojs/mdx': - specifier: ^2.3.1 + specifier: ^3.0.0 version: link:../../packages/integrations/mdx '@astrojs/preact': - specifier: ^3.2.0 + specifier: ^3.3.0 version: link:../../packages/integrations/preact astro: - specifier: ^4.7.1 + specifier: ^4.8.0 version: link:../../packages/astro preact: specifier: ^10.21.0 @@ -450,13 +450,13 @@ importers: examples/with-nanostores: dependencies: '@astrojs/preact': - specifier: ^3.2.0 + specifier: ^3.3.0 version: link:../../packages/integrations/preact '@nanostores/preact': specifier: ^0.5.0 version: 0.5.1(nanostores@0.9.5)(preact@10.21.0) astro: - specifier: ^4.7.1 + specifier: ^4.8.0 version: link:../../packages/astro nanostores: specifier: ^0.9.5 @@ -468,7 +468,7 @@ importers: examples/with-tailwindcss: dependencies: '@astrojs/mdx': - specifier: ^2.3.1 + specifier: ^3.0.0 version: link:../../packages/integrations/mdx '@astrojs/tailwind': specifier: ^5.1.0 @@ -477,7 +477,7 @@ importers: specifier: ^1.6.3 version: 1.6.4 astro: - specifier: ^4.7.1 + specifier: ^4.8.0 version: link:../../packages/astro autoprefixer: specifier: ^10.4.15 @@ -495,7 +495,7 @@ importers: examples/with-vitest: dependencies: astro: - specifier: ^4.7.1 + specifier: ^4.8.0 version: link:../../packages/astro vitest: specifier: ^1.6.0