summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.changeset/dry-beers-grow.md15
-rw-r--r--.changeset/eleven-eyes-jog.md5
-rw-r--r--.changeset/fuzzy-toes-float.md5
-rw-r--r--.changeset/loud-hairs-tell.md5
-rw-r--r--.changeset/real-drinks-melt.md30
-rw-r--r--.changeset/silly-garlics-live.md62
-rw-r--r--.changeset/sixty-plums-appear.md5
-rw-r--r--examples/basics/package.json2
-rw-r--r--examples/blog/package.json4
-rw-r--r--examples/component/package.json2
-rw-r--r--examples/deno/package.json2
-rw-r--r--examples/framework-alpine/package.json2
-rw-r--r--examples/framework-lit/package.json2
-rw-r--r--examples/framework-multiple/package.json2
-rw-r--r--examples/framework-preact/package.json2
-rw-r--r--examples/framework-react/package.json2
-rw-r--r--examples/framework-solid/package.json2
-rw-r--r--examples/framework-svelte/package.json2
-rw-r--r--examples/framework-vue/package.json2
-rw-r--r--examples/hackernews/package.json2
-rw-r--r--examples/integration/package.json2
-rw-r--r--examples/middleware/package.json2
-rw-r--r--examples/minimal/package.json2
-rw-r--r--examples/non-html-pages/package.json2
-rw-r--r--examples/portfolio/package.json2
-rw-r--r--examples/ssr/package.json2
-rw-r--r--examples/with-markdoc/package.json2
-rw-r--r--examples/with-markdown-plugins/package.json2
-rw-r--r--examples/with-markdown-shiki/package.json2
-rw-r--r--examples/with-mdx/package.json2
-rw-r--r--examples/with-nanostores/package.json2
-rw-r--r--examples/with-tailwindcss/package.json2
-rw-r--r--examples/with-vite-plugin-pwa/package.json2
-rw-r--r--examples/with-vitest/package.json2
-rw-r--r--packages/astro/CHANGELOG.md111
-rw-r--r--packages/astro/package.json2
-rw-r--r--packages/integrations/cloudflare/package.json2
-rw-r--r--packages/integrations/deno/package.json2
-rw-r--r--packages/integrations/image/package.json2
-rw-r--r--packages/integrations/markdoc/package.json2
-rw-r--r--packages/integrations/netlify/package.json2
-rw-r--r--packages/integrations/node/package.json2
-rw-r--r--packages/integrations/sitemap/CHANGELOG.md6
-rw-r--r--packages/integrations/sitemap/package.json2
-rw-r--r--packages/integrations/svelte/package.json2
-rw-r--r--packages/integrations/tailwind/package.json2
-rw-r--r--packages/integrations/vercel/package.json2
-rw-r--r--packages/integrations/vue/package.json2
-rw-r--r--pnpm-lock.yaml60
49 files changed, 189 insertions, 195 deletions
diff --git a/.changeset/dry-beers-grow.md b/.changeset/dry-beers-grow.md
deleted file mode 100644
index 8e3ddffd1..000000000
--- a/.changeset/dry-beers-grow.md
+++ /dev/null
@@ -1,15 +0,0 @@
----
-'astro': minor
----
-
-Redirects configuration
-
-This change moves the `redirects` configuration out of experimental. If you were previously using experimental redirects, remove the following experimental flag:
-
-```js
-experimental: {
- redirects: true,
-}
-```
-
-If you have been waiting for stabilization before using redirects, now you can do so. Check out [the docs on redirects](https://docs.astro.build/en/core-concepts/routing/#redirects) to learn how to use this built-in feature.
diff --git a/.changeset/eleven-eyes-jog.md b/.changeset/eleven-eyes-jog.md
deleted file mode 100644
index ebd4b4fe1..000000000
--- a/.changeset/eleven-eyes-jog.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'astro': patch
----
-
-Fix redirects map object-form value validation
diff --git a/.changeset/fuzzy-toes-float.md b/.changeset/fuzzy-toes-float.md
deleted file mode 100644
index c66b28c7f..000000000
--- a/.changeset/fuzzy-toes-float.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@astrojs/sitemap': patch
----
-
-Ensure nested 404 and 500 pages are always excluded
diff --git a/.changeset/loud-hairs-tell.md b/.changeset/loud-hairs-tell.md
deleted file mode 100644
index f2b7ca694..000000000
--- a/.changeset/loud-hairs-tell.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'astro': patch
----
-
-Fix absolute path handling when passing `root`, `srcDir`, `publicDir`, `outDir`, `cacheDir`, `build.client`, and `build.server` configs in Windows
diff --git a/.changeset/real-drinks-melt.md b/.changeset/real-drinks-melt.md
deleted file mode 100644
index 648ef1d91..000000000
--- a/.changeset/real-drinks-melt.md
+++ /dev/null
@@ -1,30 +0,0 @@
----
-'astro': minor
----
-
-Improved hoisted script bundling
-
-Astro's static analysis to determine which `<script>` tags to bundle together just got a little smarter!
-
-Astro create bundles that optimize script usage between pages and place them in the head of the document so that they are downloaded as early as possible. One limitation to Astro's existing approach has been that you could not dynamically use hoisted scripts. Each page received the same, all-inclusive bundle whether or not every script was needed on that page.
-
-Now, Astro has improved the static analysis to take into account the actual imports used.
-
-For example, Astro would previously bundle the `<script>`s from both the `<Tab>` and `<Accordian>` component for the following library that re-exports multiple components:
-
-__@matthewp/my-astro-lib__
-
-```js
-export { default as Tabs } from './Tabs.astro';
-export { default as Accordion } from './Accordion.astro';
-```
-
-Now, when an Astro page only uses a single component, Astro will send only the necessary script to the page. A page that only imports the `<Accordian>` component will not receive any `<Tab>` component's scripts:
-
-```astro
----
-import { Accordion } from '@matthewp/my-astro-lib';
----
-```
-
-You should now see more efficient performance with Astro now supporting this common library re-export pattern.
diff --git a/.changeset/silly-garlics-live.md b/.changeset/silly-garlics-live.md
deleted file mode 100644
index d019b892c..000000000
--- a/.changeset/silly-garlics-live.md
+++ /dev/null
@@ -1,62 +0,0 @@
----
-'astro': minor
----
-
-Built-in View Transitions Support (experimental)
-
-Astro now supports [view transitions](https://developer.chrome.com/docs/web-platform/view-transitions/) through the new `<ViewTransitions />` component and the `transition:animate` (and associated) directives. View transitions are a great fit for content-oriented sites, and we see it as the best path to get the benefits of client-side routing (smoother transitions) without sacrificing the more simple mental model of MPAs.
-
-Enable support for view transitions in Astro 2.9 by adding the experimental flag to your config:
-
-```js
-import { defineConfig } from 'astro/config';
-
-export default defineConfig({
- experimental: {
- viewTransitions: true,
- },
-})
-```
-
-This enables you to use the new APIs added.
-
-#### <ViewTransitions />
-
-This is a component which acts as the *router* for transitions between pages. Add it to the `<head>` section of each individual page where transitions should occur *in the client* as you navigate away to another page, instead of causing a full page browser refresh. To enable support throughout your entire app, add the component in some common layout or component that targets the `<head>` of every page.
-
-__CommonHead.astro__
-
-```astro
----
-import { ViewTransitions } from 'astro:transitions';
----
-
-<meta charset="utf-8">
-<title>{Astro.props.title}</title>
-<ViewTransitions />
-```
-
-With only this change, your app will now route completely in-client. You can then add transitions to individual elements using the `transition:animate` directive.
-
-#### Animations
-
-Add `transition:animate` to any element to use Astro's built-in animations.
-
-```astro
-<header transition:animate="slide">
-```
-
-In the above, Astro's `slide` animation will cause the `<header>` element to slide out to the left, and then slide in from the right when you navigate away from the page.
-
-You can also customize these animations using any CSS animation properties, for example, by specifying a duration:
-
-```astro
----
-import { slide } from 'astro:transition';
----
-<header transition:animate={slide({ duration: 200 })}>
-```
-
-#### Continue learning
-
-Check out the [client-side routing docs](https://docs.astro.build/en/guides/client-side-routing/) to learn more.
diff --git a/.changeset/sixty-plums-appear.md b/.changeset/sixty-plums-appear.md
deleted file mode 100644
index 3b8150ca0..000000000
--- a/.changeset/sixty-plums-appear.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'astro': patch
----
-
-Update warning when `getStaticPaths` is detected but a route is not prerendered.
diff --git a/examples/basics/package.json b/examples/basics/package.json
index b1d021a0a..3a4a5e8e6 100644
--- a/examples/basics/package.json
+++ b/examples/basics/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^2.8.5"
+ "astro": "^2.9.0"
}
}
diff --git a/examples/blog/package.json b/examples/blog/package.json
index fe48d7478..12f807675 100644
--- a/examples/blog/package.json
+++ b/examples/blog/package.json
@@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/mdx": "^0.19.7",
"@astrojs/rss": "^2.4.3",
- "@astrojs/sitemap": "^2.0.0",
- "astro": "^2.8.5"
+ "@astrojs/sitemap": "^2.0.1",
+ "astro": "^2.9.0"
}
}
diff --git a/examples/component/package.json b/examples/component/package.json
index 9126d1c11..9f4a240b9 100644
--- a/examples/component/package.json
+++ b/examples/component/package.json
@@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
- "astro": "^2.8.5"
+ "astro": "^2.9.0"
},
"peerDependencies": {
"astro": "^2.0.0-beta.0"
diff --git a/examples/deno/package.json b/examples/deno/package.json
index 2a648bcc6..7c971b25c 100644
--- a/examples/deno/package.json
+++ b/examples/deno/package.json
@@ -10,7 +10,7 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^2.8.5"
+ "astro": "^2.9.0"
},
"devDependencies": {
"@astrojs/deno": "^4.2.0"
diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json
index 805e9b6f0..6d6b2b4ab 100644
--- a/examples/framework-alpine/package.json
+++ b/examples/framework-alpine/package.json
@@ -14,6 +14,6 @@
"@astrojs/alpinejs": "^0.2.2",
"@types/alpinejs": "^3.7.1",
"alpinejs": "^3.12.2",
- "astro": "^2.8.5"
+ "astro": "^2.9.0"
}
}
diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json
index e2bebe150..22a83e8eb 100644
--- a/examples/framework-lit/package.json
+++ b/examples/framework-lit/package.json
@@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/lit": "^2.1.0",
"@webcomponents/template-shadowroot": "^0.2.1",
- "astro": "^2.8.5",
+ "astro": "^2.9.0",
"lit": "^2.7.5"
}
}
diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json
index 33f59e065..3ab6adabc 100644
--- a/examples/framework-multiple/package.json
+++ b/examples/framework-multiple/package.json
@@ -16,7 +16,7 @@
"@astrojs/solid-js": "^2.2.0",
"@astrojs/svelte": "^3.1.0",
"@astrojs/vue": "^2.2.1",
- "astro": "^2.8.5",
+ "astro": "^2.9.0",
"preact": "^10.15.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json
index 49feee96d..9f699eedc 100644
--- a/examples/framework-preact/package.json
+++ b/examples/framework-preact/package.json
@@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/preact": "^2.2.1",
"@preact/signals": "^1.1.3",
- "astro": "^2.8.5",
+ "astro": "^2.9.0",
"preact": "^10.15.1"
}
}
diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json
index 715207174..7050f1dd7 100644
--- a/examples/framework-react/package.json
+++ b/examples/framework-react/package.json
@@ -14,7 +14,7 @@
"@astrojs/react": "^2.2.1",
"@types/react": "^18.2.13",
"@types/react-dom": "^18.2.6",
- "astro": "^2.8.5",
+ "astro": "^2.9.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
}
diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json
index d7870f716..c2d1159d9 100644
--- a/examples/framework-solid/package.json
+++ b/examples/framework-solid/package.json
@@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/solid-js": "^2.2.0",
- "astro": "^2.8.5",
+ "astro": "^2.9.0",
"solid-js": "^1.7.6"
}
}
diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json
index f05be74f3..454ca9108 100644
--- a/examples/framework-svelte/package.json
+++ b/examples/framework-svelte/package.json
@@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/svelte": "^3.1.0",
- "astro": "^2.8.5",
+ "astro": "^2.9.0",
"svelte": "^3.59.1"
}
}
diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json
index 732f3c72e..4cb89d1bc 100644
--- a/examples/framework-vue/package.json
+++ b/examples/framework-vue/package.json
@@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/vue": "^2.2.1",
- "astro": "^2.8.5",
+ "astro": "^2.9.0",
"vue": "^3.3.4"
}
}
diff --git a/examples/hackernews/package.json b/examples/hackernews/package.json
index 0118dda14..fe19a1ee3 100644
--- a/examples/hackernews/package.json
+++ b/examples/hackernews/package.json
@@ -12,6 +12,6 @@
},
"dependencies": {
"@astrojs/node": "^5.3.0",
- "astro": "^2.8.5"
+ "astro": "^2.9.0"
}
}
diff --git a/examples/integration/package.json b/examples/integration/package.json
index fb7a874ff..69d30f3c2 100644
--- a/examples/integration/package.json
+++ b/examples/integration/package.json
@@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
- "astro": "^2.8.5"
+ "astro": "^2.9.0"
},
"peerDependencies": {
"astro": "^2.0.0-beta.0"
diff --git a/examples/middleware/package.json b/examples/middleware/package.json
index 09d79d202..cc8267a37 100644
--- a/examples/middleware/package.json
+++ b/examples/middleware/package.json
@@ -13,7 +13,7 @@
},
"dependencies": {
"@astrojs/node": "^5.3.0",
- "astro": "^2.8.5",
+ "astro": "^2.9.0",
"html-minifier": "^4.0.0"
}
}
diff --git a/examples/minimal/package.json b/examples/minimal/package.json
index abe2ce3bc..764299fa0 100644
--- a/examples/minimal/package.json
+++ b/examples/minimal/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^2.8.5"
+ "astro": "^2.9.0"
}
}
diff --git a/examples/non-html-pages/package.json b/examples/non-html-pages/package.json
index f8a4ff1ea..97326e6a9 100644
--- a/examples/non-html-pages/package.json
+++ b/examples/non-html-pages/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^2.8.5"
+ "astro": "^2.9.0"
}
}
diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json
index 5f9e928f7..36fb6e266 100644
--- a/examples/portfolio/package.json
+++ b/examples/portfolio/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^2.8.5"
+ "astro": "^2.9.0"
}
}
diff --git a/examples/ssr/package.json b/examples/ssr/package.json
index f887e25ac..32f8465bc 100644
--- a/examples/ssr/package.json
+++ b/examples/ssr/package.json
@@ -14,7 +14,7 @@
"dependencies": {
"@astrojs/node": "^5.3.0",
"@astrojs/svelte": "^3.1.0",
- "astro": "^2.8.5",
+ "astro": "^2.9.0",
"svelte": "^3.59.1"
}
}
diff --git a/examples/with-markdoc/package.json b/examples/with-markdoc/package.json
index f286ffdf9..4e47b9e1e 100644
--- a/examples/with-markdoc/package.json
+++ b/examples/with-markdoc/package.json
@@ -12,6 +12,6 @@
},
"dependencies": {
"@astrojs/markdoc": "^0.4.3",
- "astro": "^2.8.5"
+ "astro": "^2.9.0"
}
}
diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json
index c93ab44e7..fd508d06d 100644
--- a/examples/with-markdown-plugins/package.json
+++ b/examples/with-markdown-plugins/package.json
@@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/markdown-remark": "^2.2.1",
- "astro": "^2.8.5",
+ "astro": "^2.9.0",
"hast-util-select": "^5.0.5",
"rehype-autolink-headings": "^6.1.1",
"rehype-slug": "^5.1.0",
diff --git a/examples/with-markdown-shiki/package.json b/examples/with-markdown-shiki/package.json
index 61793b613..cf5f7b5c4 100644
--- a/examples/with-markdown-shiki/package.json
+++ b/examples/with-markdown-shiki/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^2.8.5"
+ "astro": "^2.9.0"
}
}
diff --git a/examples/with-mdx/package.json b/examples/with-mdx/package.json
index fd68a1c97..ea811e23d 100644
--- a/examples/with-mdx/package.json
+++ b/examples/with-mdx/package.json
@@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/mdx": "^0.19.7",
"@astrojs/preact": "^2.2.1",
- "astro": "^2.8.5",
+ "astro": "^2.9.0",
"preact": "^10.15.1"
}
}
diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json
index 3866882db..cdb45bad7 100644
--- a/examples/with-nanostores/package.json
+++ b/examples/with-nanostores/package.json
@@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/preact": "^2.2.1",
"@nanostores/preact": "^0.4.1",
- "astro": "^2.8.5",
+ "astro": "^2.9.0",
"nanostores": "^0.8.1",
"preact": "^10.15.1"
}
diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json
index d2e440233..e6d5270af 100644
--- a/examples/with-tailwindcss/package.json
+++ b/examples/with-tailwindcss/package.json
@@ -14,7 +14,7 @@
"@astrojs/mdx": "^0.19.7",
"@astrojs/tailwind": "^4.0.0",
"@types/canvas-confetti": "^1.6.0",
- "astro": "^2.8.5",
+ "astro": "^2.9.0",
"autoprefixer": "^10.4.14",
"canvas-confetti": "^1.6.0",
"postcss": "^8.4.24",
diff --git a/examples/with-vite-plugin-pwa/package.json b/examples/with-vite-plugin-pwa/package.json
index ad6307a59..720e40f04 100644
--- a/examples/with-vite-plugin-pwa/package.json
+++ b/examples/with-vite-plugin-pwa/package.json
@@ -11,7 +11,7 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^2.8.5",
+ "astro": "^2.9.0",
"vite-plugin-pwa": "0.14.7",
"workbox-window": "^6.6.0"
}
diff --git a/examples/with-vitest/package.json b/examples/with-vitest/package.json
index b1d53434f..2092829d0 100644
--- a/examples/with-vitest/package.json
+++ b/examples/with-vitest/package.json
@@ -12,7 +12,7 @@
"test": "vitest"
},
"dependencies": {
- "astro": "^2.8.5",
+ "astro": "^2.9.0",
"vitest": "^0.31.4"
}
}
diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md
index 8c7df6047..1173b9c9c 100644
--- a/packages/astro/CHANGELOG.md
+++ b/packages/astro/CHANGELOG.md
@@ -1,5 +1,116 @@
# astro
+## 2.9.0
+
+### Minor Changes
+
+- [#7686](https://github.com/withastro/astro/pull/7686) [`ec745d689`](https://github.com/withastro/astro/commit/ec745d689abc79d27bc24477589533481f077ddb) Thanks [@matthewp](https://github.com/matthewp)! - Redirects configuration
+
+ This change moves the `redirects` configuration out of experimental. If you were previously using experimental redirects, remove the following experimental flag:
+
+ ```js
+ experimental: {
+ redirects: true,
+ }
+ ```
+
+ If you have been waiting for stabilization before using redirects, now you can do so. Check out [the docs on redirects](https://docs.astro.build/en/core-concepts/routing/#redirects) to learn how to use this built-in feature.
+
+- [#7707](https://github.com/withastro/astro/pull/7707) [`3a6e42e19`](https://github.com/withastro/astro/commit/3a6e42e190421c2e172d5c408c0a7592653fccef) Thanks [@ottomated](https://github.com/ottomated)! - Improved hoisted script bundling
+
+ Astro's static analysis to determine which `<script>` tags to bundle together just got a little smarter!
+
+ Astro create bundles that optimize script usage between pages and place them in the head of the document so that they are downloaded as early as possible. One limitation to Astro's existing approach has been that you could not dynamically use hoisted scripts. Each page received the same, all-inclusive bundle whether or not every script was needed on that page.
+
+ Now, Astro has improved the static analysis to take into account the actual imports used.
+
+ For example, Astro would previously bundle the `<script>`s from both the `<Tab>` and `<Accordian>` component for the following library that re-exports multiple components:
+
+ **@matthewp/my-astro-lib**
+
+ ```js
+ export { default as Tabs } from './Tabs.astro';
+ export { default as Accordion } from './Accordion.astro';
+ ```
+
+ Now, when an Astro page only uses a single component, Astro will send only the necessary script to the page. A page that only imports the `<Accordian>` component will not receive any `<Tab>` component's scripts:
+
+ ```astro
+ ---
+ import { Accordion } from '@matthewp/my-astro-lib';
+ ---
+ ```
+
+ You should now see more efficient performance with Astro now supporting this common library re-export pattern.
+
+- [#7511](https://github.com/withastro/astro/pull/7511) [`6a12fcecb`](https://github.com/withastro/astro/commit/6a12fcecb076623769eb017da9d4a17cfb0815d3) Thanks [@matthewp](https://github.com/matthewp)! - Built-in View Transitions Support (experimental)
+
+ Astro now supports [view transitions](https://developer.chrome.com/docs/web-platform/view-transitions/) through the new `<ViewTransitions />` component and the `transition:animate` (and associated) directives. View transitions are a great fit for content-oriented sites, and we see it as the best path to get the benefits of client-side routing (smoother transitions) without sacrificing the more simple mental model of MPAs.
+
+ Enable support for view transitions in Astro 2.9 by adding the experimental flag to your config:
+
+ ```js
+ import { defineConfig } from 'astro/config';
+
+ export default defineConfig({
+ experimental: {
+ viewTransitions: true,
+ },
+ });
+ ```
+
+ This enables you to use the new APIs added.
+
+ #### <ViewTransitions />
+
+ This is a component which acts as the _router_ for transitions between pages. Add it to the `<head>` section of each individual page where transitions should occur _in the client_ as you navigate away to another page, instead of causing a full page browser refresh. To enable support throughout your entire app, add the component in some common layout or component that targets the `<head>` of every page.
+
+ **CommonHead.astro**
+
+ ```astro
+ ---
+ import { ViewTransitions } from 'astro:transitions';
+ ---
+
+ <meta charset="utf-8" />
+ <title>{Astro.props.title}</title>
+ <ViewTransitions />
+ ```
+
+ With only this change, your app will now route completely in-client. You can then add transitions to individual elements using the `transition:animate` directive.
+
+ #### Animations
+
+ Add `transition:animate` to any element to use Astro's built-in animations.
+
+ ```astro
+ <header transition:animate="slide"></header>
+ ```
+
+ In the above, Astro's `slide` animation will cause the `<header>` element to slide out to the left, and then slide in from the right when you navigate away from the page.
+
+ You can also customize these animations using any CSS animation properties, for example, by specifying a duration:
+
+ ```astro
+ ---
+ import { slide } from 'astro:transition';
+ ---
+
+ <header transition:animate={slide({ duration: 200 })}></header>
+ ```
+
+ #### Continue learning
+
+ Check out the [client-side routing docs](https://docs.astro.build/en/guides/client-side-routing/) to learn more.
+
+### Patch Changes
+
+- [#7701](https://github.com/withastro/astro/pull/7701) [`019b797bf`](https://github.com/withastro/astro/commit/019b797bf83201d2d4834cc9e0dde30f6a48daa2) Thanks [@bluwy](https://github.com/bluwy)! - Fix redirects map object-form value validation
+
+- [#7704](https://github.com/withastro/astro/pull/7704) [`d78db48ac`](https://github.com/withastro/astro/commit/d78db48ac48bec6bd550b937a896cbcc747625f1) Thanks [@bluwy](https://github.com/bluwy)! - Fix absolute path handling when passing `root`, `srcDir`, `publicDir`, `outDir`, `cacheDir`, `build.client`, and `build.server` configs in Windows
+
+- [#7713](https://github.com/withastro/astro/pull/7713) [`d088351f5`](https://github.com/withastro/astro/commit/d088351f54d2518e2bb539d7bbf8691427ff8a7a) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Update warning when `getStaticPaths` is detected but a route is not prerendered.
+
## 2.8.5
### Patch Changes
diff --git a/packages/astro/package.json b/packages/astro/package.json
index 14bd76757..38e464782 100644
--- a/packages/astro/package.json
+++ b/packages/astro/package.json
@@ -1,6 +1,6 @@
{
"name": "astro",
- "version": "2.8.5",
+ "version": "2.9.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/integrations/cloudflare/package.json b/packages/integrations/cloudflare/package.json
index dae74e0cf..130c798b4 100644
--- a/packages/integrations/cloudflare/package.json
+++ b/packages/integrations/cloudflare/package.json
@@ -45,7 +45,7 @@
"tiny-glob": "^0.2.9"
},
"peerDependencies": {
- "astro": "workspace:^2.8.5"
+ "astro": "workspace:^2.9.0"
},
"devDependencies": {
"astro": "workspace:*",
diff --git a/packages/integrations/deno/package.json b/packages/integrations/deno/package.json
index 1434e07c3..5e888fb42 100644
--- a/packages/integrations/deno/package.json
+++ b/packages/integrations/deno/package.json
@@ -36,7 +36,7 @@
"esbuild": "^0.15.18"
},
"peerDependencies": {
- "astro": "workspace:^2.8.5"
+ "astro": "workspace:^2.9.0"
},
"devDependencies": {
"astro": "workspace:*",
diff --git a/packages/integrations/image/package.json b/packages/integrations/image/package.json
index 7709b16f8..cc923293b 100644
--- a/packages/integrations/image/package.json
+++ b/packages/integrations/image/package.json
@@ -63,7 +63,7 @@
"vite": "^4.3.9"
},
"peerDependencies": {
- "astro": "workspace:^2.8.5",
+ "astro": "workspace:^2.9.0",
"sharp": ">=0.31.0"
},
"peerDependenciesMeta": {
diff --git a/packages/integrations/markdoc/package.json b/packages/integrations/markdoc/package.json
index 9ac2ca6ac..a3321d1a6 100644
--- a/packages/integrations/markdoc/package.json
+++ b/packages/integrations/markdoc/package.json
@@ -74,7 +74,7 @@
"zod": "^3.17.3"
},
"peerDependencies": {
- "astro": "workspace:^2.8.5"
+ "astro": "workspace:^2.9.0"
},
"devDependencies": {
"@astrojs/markdown-remark": "^2.2.1",
diff --git a/packages/integrations/netlify/package.json b/packages/integrations/netlify/package.json
index 3ffe89f53..bc076772f 100644
--- a/packages/integrations/netlify/package.json
+++ b/packages/integrations/netlify/package.json
@@ -43,7 +43,7 @@
"esbuild": "^0.15.18"
},
"peerDependencies": {
- "astro": "workspace:^2.8.5"
+ "astro": "workspace:^2.9.0"
},
"devDependencies": {
"@netlify/edge-functions": "^2.0.0",
diff --git a/packages/integrations/node/package.json b/packages/integrations/node/package.json
index 935a425ce..bc8b5e141 100644
--- a/packages/integrations/node/package.json
+++ b/packages/integrations/node/package.json
@@ -38,7 +38,7 @@
"server-destroy": "^1.0.1"
},
"peerDependencies": {
- "astro": "workspace:^2.8.5"
+ "astro": "workspace:^2.9.0"
},
"devDependencies": {
"@types/node": "^18.16.18",
diff --git a/packages/integrations/sitemap/CHANGELOG.md b/packages/integrations/sitemap/CHANGELOG.md
index 4c4c3b5a3..d6e63254a 100644
--- a/packages/integrations/sitemap/CHANGELOG.md
+++ b/packages/integrations/sitemap/CHANGELOG.md
@@ -1,5 +1,11 @@
# @astrojs/sitemap
+## 2.0.1
+
+### Patch Changes
+
+- [#7722](https://github.com/withastro/astro/pull/7722) [`77ffcc8f8`](https://github.com/withastro/astro/commit/77ffcc8f8b0ca9f8b9da29525f03028e666fd8df) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Ensure nested 404 and 500 pages are always excluded
+
## 2.0.0
### Major Changes
diff --git a/packages/integrations/sitemap/package.json b/packages/integrations/sitemap/package.json
index 103b0157e..d559cfb47 100644
--- a/packages/integrations/sitemap/package.json
+++ b/packages/integrations/sitemap/package.json
@@ -1,7 +1,7 @@
{
"name": "@astrojs/sitemap",
"description": "Generate a sitemap for your Astro site",
- "version": "2.0.0",
+ "version": "2.0.1",
"type": "module",
"types": "./dist/index.d.ts",
"author": "withastro",
diff --git a/packages/integrations/svelte/package.json b/packages/integrations/svelte/package.json
index 117182394..1b4ddaeab 100644
--- a/packages/integrations/svelte/package.json
+++ b/packages/integrations/svelte/package.json
@@ -48,7 +48,7 @@
"vite": "^4.3.9"
},
"peerDependencies": {
- "astro": "workspace:^2.8.5",
+ "astro": "workspace:^2.9.0",
"svelte": "^3.55.0 || ^4.0.0"
},
"engines": {
diff --git a/packages/integrations/tailwind/package.json b/packages/integrations/tailwind/package.json
index ab1a8ab28..c5cc0c62b 100644
--- a/packages/integrations/tailwind/package.json
+++ b/packages/integrations/tailwind/package.json
@@ -43,7 +43,7 @@
"vite": "^4.3.9"
},
"peerDependencies": {
- "astro": "workspace:^2.8.5",
+ "astro": "workspace:^2.9.0",
"tailwindcss": "^3.0.24"
}
}
diff --git a/packages/integrations/vercel/package.json b/packages/integrations/vercel/package.json
index c7d08b01d..0437186f3 100644
--- a/packages/integrations/vercel/package.json
+++ b/packages/integrations/vercel/package.json
@@ -60,7 +60,7 @@
"web-vitals": "^3.3.2"
},
"peerDependencies": {
- "astro": "workspace:^2.8.5"
+ "astro": "workspace:^2.9.0"
},
"devDependencies": {
"@types/set-cookie-parser": "^2.4.2",
diff --git a/packages/integrations/vue/package.json b/packages/integrations/vue/package.json
index df501ff45..a19362faa 100644
--- a/packages/integrations/vue/package.json
+++ b/packages/integrations/vue/package.json
@@ -56,7 +56,7 @@
"vue": "^3.3.4"
},
"peerDependencies": {
- "astro": "workspace:^2.8.5",
+ "astro": "workspace:^2.9.0",
"vue": "^3.2.30"
},
"engines": {
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 7736ea099..993836c76 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -128,7 +128,7 @@ importers:
examples/basics:
dependencies:
astro:
- specifier: ^2.8.5
+ specifier: ^2.9.0
version: link:../../packages/astro
examples/blog:
@@ -140,22 +140,22 @@ importers:
specifier: ^2.4.3
version: link:../../packages/astro-rss
'@astrojs/sitemap':
- specifier: ^2.0.0
+ specifier: ^2.0.1
version: link:../../packages/integrations/sitemap
astro:
- specifier: ^2.8.5
+ specifier: ^2.9.0
version: link:../../packages/astro
examples/component:
devDependencies:
astro:
- specifier: ^2.8.5
+ specifier: ^2.9.0
version: link:../../packages/astro
examples/deno:
dependencies:
astro:
- specifier: ^2.8.5
+ specifier: ^2.9.0
version: link:../../packages/astro
devDependencies:
'@astrojs/deno':
@@ -174,7 +174,7 @@ importers:
specifier: ^3.12.2
version: 3.12.2
astro:
- specifier: ^2.8.5
+ specifier: ^2.9.0
version: link:../../packages/astro
examples/framework-lit:
@@ -186,7 +186,7 @@ importers:
specifier: ^0.2.1
version: 0.2.1
astro:
- specifier: ^2.8.5
+ specifier: ^2.9.0
version: link:../../packages/astro
lit:
specifier: ^2.7.5
@@ -210,7 +210,7 @@ importers:
specifier: ^2.2.1
version: link:../../packages/integrations/vue
astro:
- specifier: ^2.8.5
+ specifier: ^2.9.0
version: link:../../packages/astro
preact:
specifier: ^10.15.1
@@ -240,7 +240,7 @@ importers:
specifier: ^1.1.3
version: 1.1.3(preact@10.15.1)
astro:
- specifier: ^2.8.5
+ specifier: ^2.9.0
version: link:../../packages/astro
preact:
specifier: ^10.15.1
@@ -258,7 +258,7 @@ importers:
specifier: ^18.2.6
version: 18.2.6
astro:
- specifier: ^2.8.5
+ specifier: ^2.9.0
version: link:../../packages/astro
react:
specifier: ^18.2.0
@@ -273,7 +273,7 @@ importers:
specifier: ^2.2.0
version: link:../../packages/integrations/solid
astro:
- specifier: ^2.8.5
+ specifier: ^2.9.0
version: link:../../packages/astro
solid-js:
specifier: ^1.7.6
@@ -285,7 +285,7 @@ importers:
specifier: ^3.1.0
version: link:../../packages/integrations/svelte
astro:
- specifier: ^2.8.5
+ specifier: ^2.9.0
version: link:../../packages/astro
svelte:
specifier: ^3.59.1
@@ -297,7 +297,7 @@ importers:
specifier: ^2.2.1
version: link:../../packages/integrations/vue
astro:
- specifier: ^2.8.5
+ specifier: ^2.9.0
version: link:../../packages/astro
vue:
specifier: ^3.3.4
@@ -309,13 +309,13 @@ importers:
specifier: ^5.3.0
version: link:../../packages/integrations/node
astro:
- specifier: ^2.8.5
+ specifier: ^2.9.0
version: link:../../packages/astro
examples/integration:
devDependencies:
astro:
- specifier: ^2.8.5
+ specifier: ^2.9.0
version: link:../../packages/astro
examples/middleware:
@@ -324,7 +324,7 @@ importers:
specifier: ^5.3.0
version: link:../../packages/integrations/node
astro:
- specifier: ^2.8.5
+ specifier: ^2.9.0
version: link:../../packages/astro
html-minifier:
specifier: ^4.0.0
@@ -333,19 +333,19 @@ importers:
examples/minimal:
dependencies:
astro:
- specifier: ^2.8.5
+ specifier: ^2.9.0
version: link:../../packages/astro
examples/non-html-pages:
dependencies:
astro:
- specifier: ^2.8.5
+ specifier: ^2.9.0
version: link:../../packages/astro
examples/portfolio:
dependencies:
astro:
- specifier: ^2.8.5
+ specifier: ^2.9.0
version: link:../../packages/astro
examples/ssr:
@@ -357,7 +357,7 @@ importers:
specifier: ^3.1.0
version: link:../../packages/integrations/svelte
astro:
- specifier: ^2.8.5
+ specifier: ^2.9.0
version: link:../../packages/astro
svelte:
specifier: ^3.59.1
@@ -369,7 +369,7 @@ importers:
specifier: ^0.4.3
version: link:../../packages/integrations/markdoc
astro:
- specifier: ^2.8.5
+ specifier: ^2.9.0
version: link:../../packages/astro
examples/with-markdown-plugins:
@@ -378,7 +378,7 @@ importers:
specifier: ^2.2.1
version: link:../../packages/markdown/remark
astro:
- specifier: ^2.8.5
+ specifier: ^2.9.0
version: link:../../packages/astro
hast-util-select:
specifier: ^5.0.5
@@ -399,7 +399,7 @@ importers:
examples/with-markdown-shiki:
dependencies:
astro:
- specifier: ^2.8.5
+ specifier: ^2.9.0
version: link:../../packages/astro
examples/with-mdx:
@@ -411,7 +411,7 @@ importers:
specifier: ^2.2.1
version: link:../../packages/integrations/preact
astro:
- specifier: ^2.8.5
+ specifier: ^2.9.0
version: link:../../packages/astro
preact:
specifier: ^10.15.1
@@ -426,7 +426,7 @@ importers:
specifier: ^0.4.1
version: 0.4.1(nanostores@0.8.1)(preact@10.15.1)
astro:
- specifier: ^2.8.5
+ specifier: ^2.9.0
version: link:../../packages/astro
nanostores:
specifier: ^0.8.1
@@ -447,7 +447,7 @@ importers:
specifier: ^1.6.0
version: 1.6.0
astro:
- specifier: ^2.8.5
+ specifier: ^2.9.0
version: link:../../packages/astro
autoprefixer:
specifier: ^10.4.14
@@ -465,7 +465,7 @@ importers:
examples/with-vite-plugin-pwa:
dependencies:
astro:
- specifier: ^2.8.5
+ specifier: ^2.9.0
version: link:../../packages/astro
vite-plugin-pwa:
specifier: 0.14.7
@@ -477,7 +477,7 @@ importers:
examples/with-vitest:
dependencies:
astro:
- specifier: ^2.8.5
+ specifier: ^2.9.0
version: link:../../packages/astro
vitest:
specifier: ^0.31.4
@@ -18291,21 +18291,25 @@ packages:
file:packages/astro/test/fixtures/css-assets/packages/font-awesome:
resolution: {directory: packages/astro/test/fixtures/css-assets/packages/font-awesome, type: directory}
name: '@test/astro-font-awesome-package'
+ version: 0.0.1
dev: false
file:packages/astro/test/fixtures/multiple-renderers/renderers/one:
resolution: {directory: packages/astro/test/fixtures/multiple-renderers/renderers/one, type: directory}
name: '@test/astro-renderer-one'
+ version: 1.0.0
dev: false
file:packages/astro/test/fixtures/multiple-renderers/renderers/two:
resolution: {directory: packages/astro/test/fixtures/multiple-renderers/renderers/two, type: directory}
name: '@test/astro-renderer-two'
+ version: 1.0.0
dev: false
file:packages/astro/test/fixtures/solid-component/deps/solid-jsx-component:
resolution: {directory: packages/astro/test/fixtures/solid-component/deps/solid-jsx-component, type: directory}
name: '@test/solid-jsx-component'
+ version: 0.0.0
dependencies:
solid-js: 1.7.6
dev: false