summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Houston (Bot) <108291165+astrobot-houston@users.noreply.github.com> 2023-08-18 08:46:47 -0700
committerGravatar GitHub <noreply@github.com> 2023-08-18 11:46:47 -0400
commite5c13881f188f7e67595e3b2c32940b603cc388c (patch)
tree416834f757016f6f4a4df5a2305febf3e20b5c11
parentf50d02c201032b41f75964717b359b90399e9a74 (diff)
downloadastro-e5c13881f188f7e67595e3b2c32940b603cc388c.tar.gz
astro-e5c13881f188f7e67595e3b2c32940b603cc388c.tar.zst
astro-e5c13881f188f7e67595e3b2c32940b603cc388c.zip
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
-rw-r--r--.changeset/pre.json26
-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.json8
-rw-r--r--examples/framework-preact/package.json2
-rw-r--r--examples/framework-react/package.json4
-rw-r--r--examples/framework-solid/package.json4
-rw-r--r--examples/framework-svelte/package.json4
-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.json4
-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.json4
-rw-r--r--examples/with-nanostores/package.json2
-rw-r--r--examples/with-tailwindcss/package.json4
-rw-r--r--examples/with-vite-plugin-pwa/package.json2
-rw-r--r--examples/with-vitest/package.json2
-rw-r--r--packages/astro/CHANGELOG.md144
-rw-r--r--packages/astro/package.json2
-rw-r--r--packages/astro/src/core/build/generate.ts2
-rw-r--r--packages/astro/src/core/build/plugins/README.md3
-rw-r--r--packages/astro/src/core/middleware/namespace.ts5
-rw-r--r--packages/astro/test/astro-directives.test.js2
-rw-r--r--packages/astro/test/page-level-styles.test.js4
-rw-r--r--packages/astro/test/virtual-astro-file.test.js4
-rw-r--r--packages/create-astro/CHANGELOG.md8
-rw-r--r--packages/create-astro/package.json2
-rw-r--r--packages/integrations/cloudflare/CHANGELOG.md32
-rw-r--r--packages/integrations/cloudflare/package.json4
-rw-r--r--packages/integrations/deno/package.json2
-rw-r--r--packages/integrations/deno/test/basics.test.ts2
-rw-r--r--packages/integrations/markdoc/package.json2
-rw-r--r--packages/integrations/mdx/CHANGELOG.md13
-rw-r--r--packages/integrations/mdx/package.json4
-rw-r--r--packages/integrations/netlify/README.md2
-rw-r--r--packages/integrations/netlify/package.json2
-rw-r--r--packages/integrations/node/package.json2
-rw-r--r--packages/integrations/react/CHANGELOG.md22
-rw-r--r--packages/integrations/react/package.json2
-rw-r--r--packages/integrations/react/src/index.ts17
-rw-r--r--packages/integrations/solid/CHANGELOG.md6
-rw-r--r--packages/integrations/solid/package.json2
-rw-r--r--packages/integrations/svelte/CHANGELOG.md9
-rw-r--r--packages/integrations/svelte/package.json4
-rw-r--r--packages/integrations/tailwind/package.json2
-rw-r--r--packages/integrations/vercel/CHANGELOG.md9
-rw-r--r--packages/integrations/vercel/README.md4
-rw-r--r--packages/integrations/vercel/package.json4
-rw-r--r--packages/integrations/vue/package.json2
-rw-r--r--packages/telemetry/CHANGELOG.md6
-rw-r--r--packages/telemetry/package.json2
-rw-r--r--pnpm-lock.yaml74
63 files changed, 389 insertions, 117 deletions
diff --git a/.changeset/pre.json b/.changeset/pre.json
index d0d69690d..188263a66 100644
--- a/.changeset/pre.json
+++ b/.changeset/pre.json
@@ -32,31 +32,51 @@
},
"changesets": [
"afraid-dots-whisper",
+ "big-elephants-drive",
"big-tips-whisper",
- "breezy-frogs-learn",
+ "brown-wolves-tan",
"chilled-ducks-grin",
+ "clever-bats-breathe",
"cool-feet-rest",
+ "cyan-carrots-stare",
"dirty-lies-cover",
+ "eleven-wasps-teach",
"fair-emus-divide",
+ "fair-eyes-promise",
"famous-queens-itch",
"four-houses-compete",
"gentle-deers-yawn",
"gentle-meals-crash",
"giant-plants-sip",
"heavy-walls-arrive",
+ "itchy-pants-grin",
"large-countries-share",
"loud-candles-admire",
+ "many-actors-flash",
+ "many-pears-explode",
"mighty-dancers-lay",
+ "nasty-garlics-listen",
+ "neat-mugs-end",
+ "neat-owls-run",
"neat-suns-search",
"odd-books-live",
+ "orange-foxes-care",
"perfect-horses-tell",
"plenty-keys-add",
+ "popular-planes-cover",
"purple-buses-prove",
+ "quick-boats-bow",
"rude-ears-play",
+ "silent-baboons-juggle",
"six-grapes-look",
"slimy-carrots-sell",
+ "smart-numbers-shout",
+ "sour-frogs-shout",
"spicy-eels-rush",
+ "strong-papayas-chew",
"tame-files-glow",
+ "tasty-camels-speak",
+ "thin-ants-repeat",
"three-adults-exist",
"three-onions-repeat",
"tricky-candles-suffer",
@@ -66,8 +86,10 @@
"unlucky-ravens-type",
"unlucky-sheep-build",
"violet-peaches-invent",
+ "warm-weeks-yell",
"wild-bobcats-carry",
- "wild-jobs-tan",
+ "wise-cameras-agree",
+ "yellow-snakes-jam",
"young-roses-teach"
]
}
diff --git a/examples/basics/package.json b/examples/basics/package.json
index dd81a20af..35b95de2b 100644
--- a/examples/basics/package.json
+++ b/examples/basics/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^3.0.0-beta.2"
+ "astro": "^3.0.0-beta.3"
}
}
diff --git a/examples/blog/package.json b/examples/blog/package.json
index 5e633254c..a77c2b59f 100644
--- a/examples/blog/package.json
+++ b/examples/blog/package.json
@@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/mdx": "^1.0.0-beta.0",
+ "@astrojs/mdx": "^1.0.0-beta.1",
"@astrojs/rss": "^3.0.0-beta.0",
"@astrojs/sitemap": "^3.0.0-beta.0",
- "astro": "^3.0.0-beta.2"
+ "astro": "^3.0.0-beta.3"
}
}
diff --git a/examples/component/package.json b/examples/component/package.json
index f2b226262..934946d71 100644
--- a/examples/component/package.json
+++ b/examples/component/package.json
@@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
- "astro": "^3.0.0-beta.2"
+ "astro": "^3.0.0-beta.3"
},
"peerDependencies": {
"astro": "^2.0.0-beta.0"
diff --git a/examples/deno/package.json b/examples/deno/package.json
index 7fe421d50..02cee8125 100644
--- a/examples/deno/package.json
+++ b/examples/deno/package.json
@@ -10,7 +10,7 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^3.0.0-beta.2"
+ "astro": "^3.0.0-beta.3"
},
"devDependencies": {
"@astrojs/deno": "^5.0.0-beta.0"
diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json
index 2c1bd53f8..ce7c0bd26 100644
--- a/examples/framework-alpine/package.json
+++ b/examples/framework-alpine/package.json
@@ -14,6 +14,6 @@
"@astrojs/alpinejs": "^0.3.0-beta.0",
"@types/alpinejs": "^3.7.1",
"alpinejs": "^3.12.2",
- "astro": "^3.0.0-beta.2"
+ "astro": "^3.0.0-beta.3"
}
}
diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json
index f8091eb74..ba2db7449 100644
--- a/examples/framework-lit/package.json
+++ b/examples/framework-lit/package.json
@@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/lit": "^3.0.0-beta.0",
"@webcomponents/template-shadowroot": "^0.2.1",
- "astro": "^3.0.0-beta.2",
+ "astro": "^3.0.0-beta.3",
"lit": "^2.7.5"
}
}
diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json
index 9af1d6cad..d674c331a 100644
--- a/examples/framework-multiple/package.json
+++ b/examples/framework-multiple/package.json
@@ -12,11 +12,11 @@
},
"dependencies": {
"@astrojs/preact": "^3.0.0-beta.1",
- "@astrojs/react": "^3.0.0-beta.2",
- "@astrojs/solid-js": "^3.0.0-beta.1",
- "@astrojs/svelte": "^4.0.0-beta.0",
+ "@astrojs/react": "^3.0.0-beta.3",
+ "@astrojs/solid-js": "^3.0.0-beta.2",
+ "@astrojs/svelte": "^4.0.0-beta.1",
"@astrojs/vue": "^3.0.0-beta.0",
- "astro": "^3.0.0-beta.2",
+ "astro": "^3.0.0-beta.3",
"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 1c38428c3..09ea435d9 100644
--- a/examples/framework-preact/package.json
+++ b/examples/framework-preact/package.json
@@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/preact": "^3.0.0-beta.1",
"@preact/signals": "^1.1.3",
- "astro": "^3.0.0-beta.2",
+ "astro": "^3.0.0-beta.3",
"preact": "^10.15.1"
}
}
diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json
index 3b4bd62e0..b9aa7513c 100644
--- a/examples/framework-react/package.json
+++ b/examples/framework-react/package.json
@@ -11,10 +11,10 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/react": "^3.0.0-beta.2",
+ "@astrojs/react": "^3.0.0-beta.3",
"@types/react": "^18.2.13",
"@types/react-dom": "^18.2.6",
- "astro": "^3.0.0-beta.2",
+ "astro": "^3.0.0-beta.3",
"react": "^18.2.0",
"react-dom": "^18.2.0"
}
diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json
index ea4973fe6..29118fb3a 100644
--- a/examples/framework-solid/package.json
+++ b/examples/framework-solid/package.json
@@ -11,8 +11,8 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/solid-js": "^3.0.0-beta.1",
- "astro": "^3.0.0-beta.2",
+ "@astrojs/solid-js": "^3.0.0-beta.2",
+ "astro": "^3.0.0-beta.3",
"solid-js": "^1.7.6"
}
}
diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json
index 4eb4b38e6..00402f12b 100644
--- a/examples/framework-svelte/package.json
+++ b/examples/framework-svelte/package.json
@@ -11,8 +11,8 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/svelte": "^4.0.0-beta.0",
- "astro": "^3.0.0-beta.2",
+ "@astrojs/svelte": "^4.0.0-beta.1",
+ "astro": "^3.0.0-beta.3",
"svelte": "^3.59.1"
}
}
diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json
index 2e9d5efcc..4aebcd072 100644
--- a/examples/framework-vue/package.json
+++ b/examples/framework-vue/package.json
@@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/vue": "^3.0.0-beta.0",
- "astro": "^3.0.0-beta.2",
+ "astro": "^3.0.0-beta.3",
"vue": "^3.3.4"
}
}
diff --git a/examples/hackernews/package.json b/examples/hackernews/package.json
index 259aa9a4e..258324623 100644
--- a/examples/hackernews/package.json
+++ b/examples/hackernews/package.json
@@ -12,6 +12,6 @@
},
"dependencies": {
"@astrojs/node": "^6.0.0-beta.0",
- "astro": "^3.0.0-beta.2"
+ "astro": "^3.0.0-beta.3"
}
}
diff --git a/examples/integration/package.json b/examples/integration/package.json
index 864349b97..4adbfd963 100644
--- a/examples/integration/package.json
+++ b/examples/integration/package.json
@@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
- "astro": "^3.0.0-beta.2"
+ "astro": "^3.0.0-beta.3"
},
"peerDependencies": {
"astro": "^2.0.0-beta.0"
diff --git a/examples/middleware/package.json b/examples/middleware/package.json
index 296c4d571..b53a8e389 100644
--- a/examples/middleware/package.json
+++ b/examples/middleware/package.json
@@ -13,7 +13,7 @@
},
"dependencies": {
"@astrojs/node": "^6.0.0-beta.0",
- "astro": "^3.0.0-beta.2",
+ "astro": "^3.0.0-beta.3",
"html-minifier": "^4.0.0"
}
}
diff --git a/examples/minimal/package.json b/examples/minimal/package.json
index 128577213..863197c5e 100644
--- a/examples/minimal/package.json
+++ b/examples/minimal/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^3.0.0-beta.2"
+ "astro": "^3.0.0-beta.3"
}
}
diff --git a/examples/non-html-pages/package.json b/examples/non-html-pages/package.json
index aeb517c4c..bb901a663 100644
--- a/examples/non-html-pages/package.json
+++ b/examples/non-html-pages/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^3.0.0-beta.2"
+ "astro": "^3.0.0-beta.3"
}
}
diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json
index e6e240709..fb4cc7ed7 100644
--- a/examples/portfolio/package.json
+++ b/examples/portfolio/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^3.0.0-beta.2"
+ "astro": "^3.0.0-beta.3"
}
}
diff --git a/examples/ssr/package.json b/examples/ssr/package.json
index 29122e2bb..aee41491f 100644
--- a/examples/ssr/package.json
+++ b/examples/ssr/package.json
@@ -13,8 +13,8 @@
},
"dependencies": {
"@astrojs/node": "^6.0.0-beta.0",
- "@astrojs/svelte": "^4.0.0-beta.0",
- "astro": "^3.0.0-beta.2",
+ "@astrojs/svelte": "^4.0.0-beta.1",
+ "astro": "^3.0.0-beta.3",
"svelte": "^3.59.1"
}
}
diff --git a/examples/with-markdoc/package.json b/examples/with-markdoc/package.json
index cf7fb6a0c..eeec48e8d 100644
--- a/examples/with-markdoc/package.json
+++ b/examples/with-markdoc/package.json
@@ -12,6 +12,6 @@
},
"dependencies": {
"@astrojs/markdoc": "^1.0.0-beta.1",
- "astro": "^3.0.0-beta.2"
+ "astro": "^3.0.0-beta.3"
}
}
diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json
index 94d55fbe9..870e9e380 100644
--- a/examples/with-markdown-plugins/package.json
+++ b/examples/with-markdown-plugins/package.json
@@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/markdown-remark": "^3.0.0-beta.0",
- "astro": "^3.0.0-beta.2",
+ "astro": "^3.0.0-beta.3",
"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 4a0ee2570..b5e998042 100644
--- a/examples/with-markdown-shiki/package.json
+++ b/examples/with-markdown-shiki/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^3.0.0-beta.2"
+ "astro": "^3.0.0-beta.3"
}
}
diff --git a/examples/with-mdx/package.json b/examples/with-mdx/package.json
index efd525b5a..fc4124b1f 100644
--- a/examples/with-mdx/package.json
+++ b/examples/with-mdx/package.json
@@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/mdx": "^1.0.0-beta.0",
+ "@astrojs/mdx": "^1.0.0-beta.1",
"@astrojs/preact": "^3.0.0-beta.1",
- "astro": "^3.0.0-beta.2",
+ "astro": "^3.0.0-beta.3",
"preact": "^10.15.1"
}
}
diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json
index 61c3e84b8..7d288ce7e 100644
--- a/examples/with-nanostores/package.json
+++ b/examples/with-nanostores/package.json
@@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/preact": "^3.0.0-beta.1",
"@nanostores/preact": "^0.4.1",
- "astro": "^3.0.0-beta.2",
+ "astro": "^3.0.0-beta.3",
"nanostores": "^0.8.1",
"preact": "^10.15.1"
}
diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json
index 64a7ce5b7..8adcef5f4 100644
--- a/examples/with-tailwindcss/package.json
+++ b/examples/with-tailwindcss/package.json
@@ -11,10 +11,10 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/mdx": "^1.0.0-beta.0",
+ "@astrojs/mdx": "^1.0.0-beta.1",
"@astrojs/tailwind": "^5.0.0-beta.0",
"@types/canvas-confetti": "^1.6.0",
- "astro": "^3.0.0-beta.2",
+ "astro": "^3.0.0-beta.3",
"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 4aa11cf87..7ca06ccf3 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": "^3.0.0-beta.2",
+ "astro": "^3.0.0-beta.3",
"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 f97aaa86c..478063481 100644
--- a/examples/with-vitest/package.json
+++ b/examples/with-vitest/package.json
@@ -12,7 +12,7 @@
"test": "vitest"
},
"dependencies": {
- "astro": "^3.0.0-beta.2",
+ "astro": "^3.0.0-beta.3",
"vitest": "^0.31.4"
}
}
diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md
index e026a0eed..c0127c359 100644
--- a/packages/astro/CHANGELOG.md
+++ b/packages/astro/CHANGELOG.md
@@ -1,5 +1,149 @@
# astro
+## 3.0.0-beta.3
+
+### Major Changes
+
+- [#8113](https://github.com/withastro/astro/pull/8113) [`2484dc408`](https://github.com/withastro/astro/commit/2484dc4080e5cd84b9a53648a1de426d7c907be2) Thanks [@Princesseuh](https://github.com/Princesseuh)! - This import alias is no longer included by default with astro:assets. If you were using this alias with experimental assets, you must convert them to relative file paths, or create your own [import aliases](https://docs.astro.build/en/guides/aliases/).
+
+ ```diff
+ ---
+ // src/pages/posts/post-1.astro
+ - import rocket from '~/assets/rocket.png'
+ + import rocket from '../../assets/rocket.png';
+ ---
+ ```
+
+- [#7979](https://github.com/withastro/astro/pull/7979) [`dbc97b121`](https://github.com/withastro/astro/commit/dbc97b121f42583728f1cdfdbf14575fda943f5b) Thanks [@bluwy](https://github.com/bluwy)! - Export experimental `dev`, `build`, `preview`, and `sync` APIs from `astro`. These APIs allow you to run Astro's commands programmatically, and replaces the previous entry point that runs the Astro CLI.
+
+ While these APIs are experimental, the inline config parameter is relatively stable without foreseeable changes. However, the returned results of these APIs are more likely to change in the future.
+
+ ```ts
+ import { dev, build, preview, sync, type AstroInlineConfig } from 'astro';
+
+ // Inline Astro config object.
+ // Provide a path to a configuration file to load or set options directly inline.
+ const inlineConfig: AstroInlineConfig = {
+ // Inline-specific options...
+ configFile: './astro.config.mjs',
+ logLevel: 'info',
+ // Standard Astro config options...
+ site: 'https://example.com',
+ };
+
+ // Start the Astro dev server
+ const devServer = await dev(inlineConfig);
+ await devServer.stop();
+
+ // Build your Astro project
+ await build(inlineConfig);
+
+ // Preview your built project
+ const previewServer = await preview(inlineConfig);
+ await previewServer.stop();
+
+ // Generate types for your Astro project
+ await sync(inlineConfig);
+ ```
+
+- [#8085](https://github.com/withastro/astro/pull/8085) [`68efd4a8b`](https://github.com/withastro/astro/commit/68efd4a8b29f248397667801465b3152dc98e9a7) Thanks [@bluwy](https://github.com/bluwy)! - Remove exports for `astro/internal/*` and `astro/runtime/server/*` in favour of `astro/runtime/*`. Add new `astro/compiler-runtime` export for compiler-specific runtime code.
+
+ These are exports for Astro's internal API and should not affect your project, but if you do use these entrypoints, you can migrate like below:
+
+ ```diff
+ - import 'astro/internal/index.js';
+ + import 'astro/runtime/server/index.js';
+
+ - import 'astro/server/index.js';
+ + import 'astro/runtime/server/index.js';
+ ```
+
+ ```diff
+ import { transform } from '@astrojs/compiler';
+
+ const result = await transform(source, {
+ - internalURL: 'astro/runtime/server/index.js',
+ + internalURL: 'astro/compiler-runtime',
+ // ...
+ });
+ ```
+
+- [#8030](https://github.com/withastro/astro/pull/8030) [`5208a3c8f`](https://github.com/withastro/astro/commit/5208a3c8fefcec7694857fb344af351f4631fc34) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Removed duplicate `astro/dist/jsx` export. Please use the `astro/jsx` export instead
+
+- [#8118](https://github.com/withastro/astro/pull/8118) [`8a5b0c1f3`](https://github.com/withastro/astro/commit/8a5b0c1f3a4be6bb62db66ec70144109ff5b4c59) Thanks [@lilnasy](https://github.com/lilnasy)! - Astro is smarter about CSS! Small stylesheets are now inlined by default, and no longer incur the cost of additional requests to your server. Your visitors will have to wait less before they see your pages, especially those in remote locations or in a subway.
+
+ This may not be news to you if you had opted-in via the `build.inlineStylesheets` configuration. Stabilized in Astro 2.6 and set to "auto" by default for Starlight, this configuration allows you to reduce the number of requests for stylesheets by inlining them into <style> tags. The new default is "auto", which selects assets smaller than 4kB and includes them in the initial response.
+
+ To go back to the previous default behavior, change `build.inlineStylesheets` to "never".
+
+ ```ts
+ import { defineConfig } from 'astro/config';
+
+ export default defineConfig({
+ build: {
+ inlineStylesheets: 'never',
+ },
+ });
+ ```
+
+- [#7921](https://github.com/withastro/astro/pull/7921) [`b76c166bd`](https://github.com/withastro/astro/commit/b76c166bdd8e28683f62806aef968d1e0c3b06d9) Thanks [@Princesseuh](https://github.com/Princesseuh)! - `astro:assets` is now enabled by default. If you were previously using the `experimental.assets` flag, please remove it from your config. Also note that the previous `@astrojs/image` integration is incompatible, and must be removed.
+
+ This also brings two important changes to using images in Astro:
+
+ - New ESM shape: importing an image will now return an object with different properties describing the image such as its path, format and dimensions. This is a breaking change and may require you to update your existing images.
+ - In Markdown, MDX, and Markdoc, the `![]()` syntax will now resolve relative images located anywhere in your project in addition to remote images and images stored in the `public/` folder. This notably unlocks storing images next to your content.
+
+ Please see our existing [Assets page in Docs](https://docs.astro.build/en/guides/assets/) for more information about using `astro:assets`.
+
+### Minor Changes
+
+- [#8101](https://github.com/withastro/astro/pull/8101) [`ea7ff5177`](https://github.com/withastro/astro/commit/ea7ff5177dbcd7b2508cb1eef1b22b8ee1f47079) Thanks [@matthewp](https://github.com/matthewp)! - `astro:`namespace aliases for middleware and components
+
+ This adds aliases of `astro:middleware` and `astro:components` for the middleware and components modules. This is to make our documentation consistent between are various modules, where some are virtual modules and others are not. Going forward new built-in modules will use this namespace.
+
+### Patch Changes
+
+- [#8128](https://github.com/withastro/astro/pull/8128) [`c2c71d90c`](https://github.com/withastro/astro/commit/c2c71d90c264a2524f99e0373ab59015f23ad4b1) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Update error message when Sharp couldn't be found (tends to happen on pnpm notably)
+
+- [#8092](https://github.com/withastro/astro/pull/8092) [`7177f7579`](https://github.com/withastro/astro/commit/7177f7579b6e866f0fd895b3fd079d8ba330b1a9) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Ensure dotfiles are cleaned during static builds
+
+- [#8070](https://github.com/withastro/astro/pull/8070) [`097a8e4e9`](https://github.com/withastro/astro/commit/097a8e4e916c7df18eafdaa6c8d6ce2991c17ab6) Thanks [@lilnasy](https://github.com/lilnasy)! - Fix a handful of edge cases with prerendered 404/500 pages
+
+- [#8078](https://github.com/withastro/astro/pull/8078) [`2540feedb`](https://github.com/withastro/astro/commit/2540feedb06785d5a20eecc3668849f147d778d4) Thanks [@alexanderniebuhr](https://github.com/alexanderniebuhr)! - Reimplement https://github.com/withastro/astro/pull/7509 to correctly emit pre-rendered pages now that `build.split` is deprecated and this configuration has been moved to `functionPerRoute` inside the adapter.
+
+- [#8105](https://github.com/withastro/astro/pull/8105) [`0e0fa605d`](https://github.com/withastro/astro/commit/0e0fa605d109cc91e08a1ae1cc560ea240fe631b) Thanks [@martrapp](https://github.com/martrapp)! - ViewTransition: bug fix for lost scroll position in browser history
+
+- [#7778](https://github.com/withastro/astro/pull/7778) [`d6b494376`](https://github.com/withastro/astro/commit/d6b4943764989c0e89df2d6875cd19691566dfb3) Thanks [@y-nk](https://github.com/y-nk)! - Added support for optimizing remote images from authorized sources when using `astro:assets`. This comes with two new parameters to specify which domains (`image.domains`) and host patterns (`image.remotePatterns`) are authorized for remote images.
+
+ For example, the following configuration will only allow remote images from `astro.build` to be optimized:
+
+ ```ts
+ // astro.config.mjs
+ export default defineConfig({
+ image: {
+ domains: ['astro.build'],
+ },
+ });
+ ```
+
+ The following configuration will only allow remote images from HTTPS hosts:
+
+ ```ts
+ // astro.config.mjs
+ export default defineConfig({
+ image: {
+ remotePatterns: [{ protocol: 'https' }],
+ },
+ });
+ ```
+
+- [#8072](https://github.com/withastro/astro/pull/8072) [`4477bb41c`](https://github.com/withastro/astro/commit/4477bb41c8ed688785c545731ef5b184b629f4e5) Thanks [@matthewp](https://github.com/matthewp)! - Update Astro types to reflect that compress defaults to true
+
+- [#8130](https://github.com/withastro/astro/pull/8130) [`3e834293d`](https://github.com/withastro/astro/commit/3e834293d47ab2761a7aa013916e8371871efb7f) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Add some polyfills for Stackblitz until they support Node 18. Running Astro on Node 16 is still not officially supported, however.
+
+- Updated dependencies [[`3e834293d`](https://github.com/withastro/astro/commit/3e834293d47ab2761a7aa013916e8371871efb7f)]:
+ - @astrojs/telemetry@3.0.0-beta.2
+
## 3.0.0-beta.2
### Patch Changes
diff --git a/packages/astro/package.json b/packages/astro/package.json
index d8fd5aada..072bde8df 100644
--- a/packages/astro/package.json
+++ b/packages/astro/package.json
@@ -1,6 +1,6 @@
{
"name": "astro",
- "version": "3.0.0-beta.2",
+ "version": "3.0.0-beta.3",
"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/astro/src/core/build/generate.ts b/packages/astro/src/core/build/generate.ts
index 6c3acefdb..a3bc80295 100644
--- a/packages/astro/src/core/build/generate.ts
+++ b/packages/astro/src/core/build/generate.ts
@@ -159,7 +159,7 @@ export async function generatePages(opts: StaticBuildOptions, internals: BuildIn
const ssrEntryURLPage = createEntryURL(filePath, outFolder);
const ssrEntryPage = await import(ssrEntryURLPage.toString());
if (
- // TODO: remove in Astro 4.0
+ // TODO: remove in Astro 4.0
opts.settings.config.build.split ||
opts.settings.adapter?.adapterFeatures?.functionPerRoute
) {
diff --git a/packages/astro/src/core/build/plugins/README.md b/packages/astro/src/core/build/plugins/README.md
index ef73b9e50..410b81da6 100644
--- a/packages/astro/src/core/build/plugins/README.md
+++ b/packages/astro/src/core/build/plugins/README.md
@@ -166,7 +166,8 @@ This plugin is responsible to create a file called `manifest.mjs`. In SSG, the f
in `config.outDir`, in SSR the file is saved in `config.build.server`.
This file is important to do two things:
-- generate the pages during the SSG;
+
+- generate the pages during the SSG;
- render the pages in SSR;
The file contains all the information needed to Astro to accomplish the operations mentioned above.
diff --git a/packages/astro/src/core/middleware/namespace.ts b/packages/astro/src/core/middleware/namespace.ts
index e504f866c..55a84f666 100644
--- a/packages/astro/src/core/middleware/namespace.ts
+++ b/packages/astro/src/core/middleware/namespace.ts
@@ -1,4 +1 @@
-export {
- defineMiddleware,
- sequence,
-} from './index.js';
+export { defineMiddleware, sequence } from './index.js';
diff --git a/packages/astro/test/astro-directives.test.js b/packages/astro/test/astro-directives.test.js
index ca01e8ff4..4ce5ee916 100644
--- a/packages/astro/test/astro-directives.test.js
+++ b/packages/astro/test/astro-directives.test.js
@@ -9,7 +9,7 @@ describe('Directives', async () => {
fixture = await loadFixture({
root: './fixtures/astro-directives/',
// test suite was authored when inlineStylesheets defaulted to never
- build: { inlineStylesheets: 'never' }
+ build: { inlineStylesheets: 'never' },
});
await fixture.build();
});
diff --git a/packages/astro/test/page-level-styles.test.js b/packages/astro/test/page-level-styles.test.js
index 541a4b6eb..bed538a54 100644
--- a/packages/astro/test/page-level-styles.test.js
+++ b/packages/astro/test/page-level-styles.test.js
@@ -9,8 +9,8 @@ describe('Page-level styles', () => {
before(async () => {
fixture = await loadFixture({
root: './fixtures/page-level-styles/',
- // test suite was authored when inlineStylesheets defaulted to never
- build: { inlineStylesheets: 'never' },
+ // test suite was authored when inlineStylesheets defaulted to never
+ build: { inlineStylesheets: 'never' },
});
await fixture.build();
});
diff --git a/packages/astro/test/virtual-astro-file.test.js b/packages/astro/test/virtual-astro-file.test.js
index 470169f13..6da9fd1d0 100644
--- a/packages/astro/test/virtual-astro-file.test.js
+++ b/packages/astro/test/virtual-astro-file.test.js
@@ -8,8 +8,8 @@ describe('Loading virtual Astro files', () => {
before(async () => {
fixture = await loadFixture({
root: './fixtures/virtual-astro-file/',
- // test suite was authored when inlineStylesheets defaulted to never
- build: { inlineStylesheets: 'never' },
+ // test suite was authored when inlineStylesheets defaulted to never
+ build: { inlineStylesheets: 'never' },
});
await fixture.build();
});
diff --git a/packages/create-astro/CHANGELOG.md b/packages/create-astro/CHANGELOG.md
index be4257b58..7048c4e80 100644
--- a/packages/create-astro/CHANGELOG.md
+++ b/packages/create-astro/CHANGELOG.md
@@ -1,5 +1,13 @@
# create-astro
+## 4.0.0-beta.1
+
+### Patch Changes
+
+- [#7944](https://github.com/withastro/astro/pull/7944) [`dff0f0f8d`](https://github.com/withastro/astro/commit/dff0f0f8ddd531c5d92a90ac00fdb86d71f77509) Thanks [@colinhacks](https://github.com/colinhacks)! - Update 'dev' command for Bun users
+
+- [#8102](https://github.com/withastro/astro/pull/8102) [`e6e1de4f0`](https://github.com/withastro/astro/commit/e6e1de4f08ddba3a7703136a81f275de1976dc9e) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Verify internet connection and that `--template` exists before continuing
+
## 4.0.0-beta.0
### Major Changes
diff --git a/packages/create-astro/package.json b/packages/create-astro/package.json
index 8b3034c0b..b94373afe 100644
--- a/packages/create-astro/package.json
+++ b/packages/create-astro/package.json
@@ -1,6 +1,6 @@
{
"name": "create-astro",
- "version": "4.0.0-beta.0",
+ "version": "4.0.0-beta.1",
"type": "module",
"author": "withastro",
"license": "MIT",
diff --git a/packages/integrations/cloudflare/CHANGELOG.md b/packages/integrations/cloudflare/CHANGELOG.md
index 6111c047e..48ccee2e2 100644
--- a/packages/integrations/cloudflare/CHANGELOG.md
+++ b/packages/integrations/cloudflare/CHANGELOG.md
@@ -1,5 +1,37 @@
# @astrojs/cloudflare
+## 7.0.0-beta.2
+
+### Major Changes
+
+- [#8078](https://github.com/withastro/astro/pull/8078) [`2540feedb`](https://github.com/withastro/astro/commit/2540feedb06785d5a20eecc3668849f147d778d4) Thanks [@alexanderniebuhr](https://github.com/alexanderniebuhr)! - The configuration `build.split` and `build.excludeMiddleware` are deprecated.
+
+ You can now configure this behavior using `functionPerRoute` in your Cloudflare integration config:
+
+ ```diff
+ import {defineConfig} from "astro/config";
+ import cloudflare from '@astrojs/cloudflare';
+
+ export default defineConfig({
+ - build: {
+ - split: true
+ - },
+ - adapter: cloudflare()
+ + adapter: cloudflare({
+ + mode: 'directory',
+ + functionPerRoute: true
+ + })
+ })
+ ```
+
+### Patch Changes
+
+- [#8079](https://github.com/withastro/astro/pull/8079) [`7b77b34ce`](https://github.com/withastro/astro/commit/7b77b34cef8b46c4d14ecf9e5fcb45fb276331ec) Thanks [@alexanderniebuhr](https://github.com/alexanderniebuhr)! - Sync Astro Asset support across both modes
+
+- Updated dependencies [[`2484dc408`](https://github.com/withastro/astro/commit/2484dc4080e5cd84b9a53648a1de426d7c907be2), [`c2c71d90c`](https://github.com/withastro/astro/commit/c2c71d90c264a2524f99e0373ab59015f23ad4b1), [`7177f7579`](https://github.com/withastro/astro/commit/7177f7579b6e866f0fd895b3fd079d8ba330b1a9), [`097a8e4e9`](https://github.com/withastro/astro/commit/097a8e4e916c7df18eafdaa6c8d6ce2991c17ab6), [`dbc97b121`](https://github.com/withastro/astro/commit/dbc97b121f42583728f1cdfdbf14575fda943f5b), [`2540feedb`](https://github.com/withastro/astro/commit/2540feedb06785d5a20eecc3668849f147d778d4), [`ea7ff5177`](https://github.com/withastro/astro/commit/ea7ff5177dbcd7b2508cb1eef1b22b8ee1f47079), [`68efd4a8b`](https://github.com/withastro/astro/commit/68efd4a8b29f248397667801465b3152dc98e9a7), [`0e0fa605d`](https://github.com/withastro/astro/commit/0e0fa605d109cc91e08a1ae1cc560ea240fe631b), [`5208a3c8f`](https://github.com/withastro/astro/commit/5208a3c8fefcec7694857fb344af351f4631fc34), [`8a5b0c1f3`](https://github.com/withastro/astro/commit/8a5b0c1f3a4be6bb62db66ec70144109ff5b4c59), [`d6b494376`](https://github.com/withastro/astro/commit/d6b4943764989c0e89df2d6875cd19691566dfb3), [`4477bb41c`](https://github.com/withastro/astro/commit/4477bb41c8ed688785c545731ef5b184b629f4e5), [`3e834293d`](https://github.com/withastro/astro/commit/3e834293d47ab2761a7aa013916e8371871efb7f), [`b76c166bd`](https://github.com/withastro/astro/commit/b76c166bdd8e28683f62806aef968d1e0c3b06d9)]:
+ - astro@3.0.0-beta.3
+ - @astrojs/underscore-redirects@0.3.0-beta.0
+
## 7.0.0-beta.1
### Minor Changes
diff --git a/packages/integrations/cloudflare/package.json b/packages/integrations/cloudflare/package.json
index bf107a367..f1ddc8793 100644
--- a/packages/integrations/cloudflare/package.json
+++ b/packages/integrations/cloudflare/package.json
@@ -1,7 +1,7 @@
{
"name": "@astrojs/cloudflare",
"description": "Deploy your site to Cloudflare Workers/Pages",
- "version": "7.0.0-beta.1",
+ "version": "7.0.0-beta.2",
"type": "module",
"types": "./dist/index.d.ts",
"author": "withastro",
@@ -45,7 +45,7 @@
"tiny-glob": "^0.2.9"
},
"peerDependencies": {
- "astro": "workspace:^3.0.0-beta.2"
+ "astro": "workspace:^3.0.0-beta.3"
},
"devDependencies": {
"astro": "workspace:*",
diff --git a/packages/integrations/deno/package.json b/packages/integrations/deno/package.json
index 1c2184f89..d1b76bf58 100644
--- a/packages/integrations/deno/package.json
+++ b/packages/integrations/deno/package.json
@@ -36,7 +36,7 @@
"esbuild": "^0.15.18"
},
"peerDependencies": {
- "astro": "workspace:^3.0.0-beta.2"
+ "astro": "workspace:^3.0.0-beta.3"
},
"devDependencies": {
"astro": "workspace:*",
diff --git a/packages/integrations/deno/test/basics.test.ts b/packages/integrations/deno/test/basics.test.ts
index 30bca0eb3..78672d34b 100644
--- a/packages/integrations/deno/test/basics.test.ts
+++ b/packages/integrations/deno/test/basics.test.ts
@@ -52,7 +52,7 @@ Deno.test({
assertEquals(style?.getAttribute('type'), 'text/css');
- assert(style?.textContent?.includes('Courier New'))
+ assert(style?.textContent?.includes('Courier New'));
});
await t.step('Correctly loads run-time env variables', async () => {
diff --git a/packages/integrations/markdoc/package.json b/packages/integrations/markdoc/package.json
index 828b26fb6..9a6914c41 100644
--- a/packages/integrations/markdoc/package.json
+++ b/packages/integrations/markdoc/package.json
@@ -75,7 +75,7 @@
"zod": "^3.17.3"
},
"peerDependencies": {
- "astro": "workspace:^3.0.0-beta.2"
+ "astro": "workspace:^3.0.0-beta.3"
},
"devDependencies": {
"@astrojs/markdown-remark": "workspace:*",
diff --git a/packages/integrations/mdx/CHANGELOG.md b/packages/integrations/mdx/CHANGELOG.md
index ac853011d..c32dc54f8 100644
--- a/packages/integrations/mdx/CHANGELOG.md
+++ b/packages/integrations/mdx/CHANGELOG.md
@@ -1,5 +1,18 @@
# @astrojs/mdx
+## 1.0.0-beta.1
+
+### Major Changes
+
+- [#8131](https://github.com/withastro/astro/pull/8131) [`43140b87a`](https://github.com/withastro/astro/commit/43140b87abad99d9e3472faf0e263728ff5a033b) Thanks [@matthewp](https://github.com/matthewp)! - Support Astro 3 JSX format
+
+ This upgrades the MDX plugin to correctly work with the new JSX render API in Astro 3.
+
+### Patch Changes
+
+- Updated dependencies [[`2484dc408`](https://github.com/withastro/astro/commit/2484dc4080e5cd84b9a53648a1de426d7c907be2), [`c2c71d90c`](https://github.com/withastro/astro/commit/c2c71d90c264a2524f99e0373ab59015f23ad4b1), [`7177f7579`](https://github.com/withastro/astro/commit/7177f7579b6e866f0fd895b3fd079d8ba330b1a9), [`097a8e4e9`](https://github.com/withastro/astro/commit/097a8e4e916c7df18eafdaa6c8d6ce2991c17ab6), [`dbc97b121`](https://github.com/withastro/astro/commit/dbc97b121f42583728f1cdfdbf14575fda943f5b), [`2540feedb`](https://github.com/withastro/astro/commit/2540feedb06785d5a20eecc3668849f147d778d4), [`ea7ff5177`](https://github.com/withastro/astro/commit/ea7ff5177dbcd7b2508cb1eef1b22b8ee1f47079), [`68efd4a8b`](https://github.com/withastro/astro/commit/68efd4a8b29f248397667801465b3152dc98e9a7), [`0e0fa605d`](https://github.com/withastro/astro/commit/0e0fa605d109cc91e08a1ae1cc560ea240fe631b), [`5208a3c8f`](https://github.com/withastro/astro/commit/5208a3c8fefcec7694857fb344af351f4631fc34), [`8a5b0c1f3`](https://github.com/withastro/astro/commit/8a5b0c1f3a4be6bb62db66ec70144109ff5b4c59), [`d6b494376`](https://github.com/withastro/astro/commit/d6b4943764989c0e89df2d6875cd19691566dfb3), [`4477bb41c`](https://github.com/withastro/astro/commit/4477bb41c8ed688785c545731ef5b184b629f4e5), [`3e834293d`](https://github.com/withastro/astro/commit/3e834293d47ab2761a7aa013916e8371871efb7f), [`b76c166bd`](https://github.com/withastro/astro/commit/b76c166bdd8e28683f62806aef968d1e0c3b06d9)]:
+ - astro@3.0.0-beta.3
+
## 1.0.0-beta.0
### Minor Changes
diff --git a/packages/integrations/mdx/package.json b/packages/integrations/mdx/package.json
index 69d1caba9..e33aba0c1 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": "1.0.0-beta.0",
+ "version": "1.0.0-beta.1",
"type": "module",
"types": "./dist/index.d.ts",
"author": "withastro",
@@ -54,7 +54,7 @@
"vfile": "^5.3.7"
},
"peerDependencies": {
- "astro": "workspace:^3.0.0-beta.2"
+ "astro": "workspace:^3.0.0-beta.3"
},
"devDependencies": {
"@types/chai": "^4.3.5",
diff --git a/packages/integrations/netlify/README.md b/packages/integrations/netlify/README.md
index 75e1aad3f..0e4c3ec93 100644
--- a/packages/integrations/netlify/README.md
+++ b/packages/integrations/netlify/README.md
@@ -116,7 +116,7 @@ import netlify from '@astrojs/netlify/functions';
export default defineConfig({
output: 'server',
adapter: netlify({
- functionPerRoute: true
+ functionPerRoute: true,
}),
});
```
diff --git a/packages/integrations/netlify/package.json b/packages/integrations/netlify/package.json
index afb841826..a03629d6d 100644
--- a/packages/integrations/netlify/package.json
+++ b/packages/integrations/netlify/package.json
@@ -43,7 +43,7 @@
"esbuild": "^0.18.16"
},
"peerDependencies": {
- "astro": "workspace:^3.0.0-beta.2"
+ "astro": "workspace:^3.0.0-beta.3"
},
"devDependencies": {
"@netlify/edge-functions": "^2.0.0",
diff --git a/packages/integrations/node/package.json b/packages/integrations/node/package.json
index c3ef49637..248b5bbf8 100644
--- a/packages/integrations/node/package.json
+++ b/packages/integrations/node/package.json
@@ -37,7 +37,7 @@
"server-destroy": "^1.0.1"
},
"peerDependencies": {
- "astro": "workspace:^3.0.0-beta.2"
+ "astro": "workspace:^3.0.0-beta.3"
},
"devDependencies": {
"@types/node": "^18.16.18",
diff --git a/packages/integrations/react/CHANGELOG.md b/packages/integrations/react/CHANGELOG.md
index 146d36427..0fb968291 100644
--- a/packages/integrations/react/CHANGELOG.md
+++ b/packages/integrations/react/CHANGELOG.md
@@ -1,5 +1,27 @@
# @astrojs/react
+## 3.0.0-beta.3
+
+### Minor Changes
+
+- [#8082](https://github.com/withastro/astro/pull/8082) [`16a3fdf93`](https://github.com/withastro/astro/commit/16a3fdf93165a1a0404c1db0973871345b2c591b) Thanks [@matthewp](https://github.com/matthewp)! - Optionally parse React slots as React children.
+
+ This adds a new configuration option for the React integration `experimentalReactChildren`:
+
+ ```js
+ export default {
+ integrations: [
+ react({
+ experimentalReactChildren: true,
+ }),
+ ],
+ };
+ ```
+
+ With this enabled, children passed to React from Astro components via the default slot are parsed as React components.
+
+ This enables better compatibility with certain React components which manipulate their children.
+
## 3.0.0-beta.2
### Patch Changes
diff --git a/packages/integrations/react/package.json b/packages/integrations/react/package.json
index 302ac4ae0..9ac1b0d35 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.0.0-beta.2",
+ "version": "3.0.0-beta.3",
"type": "module",
"types": "./dist/index.d.ts",
"author": "withastro",
diff --git a/packages/integrations/react/src/index.ts b/packages/integrations/react/src/index.ts
index 712b98610..1cc200bc3 100644
--- a/packages/integrations/react/src/index.ts
+++ b/packages/integrations/react/src/index.ts
@@ -44,7 +44,11 @@ function optionsPlugin(experimentalReactChildren: boolean): vite.Plugin {
};
}
-function getViteConfiguration({ include, exclude, experimentalReactChildren }: ReactIntegrationOptions = {}) {
+function getViteConfiguration({
+ include,
+ exclude,
+ experimentalReactChildren,
+}: ReactIntegrationOptions = {}) {
return {
optimizeDeps: {
include: [
@@ -62,10 +66,7 @@ function getViteConfiguration({ include, exclude, experimentalReactChildren }: R
: '@astrojs/react/server-v17.js',
],
},
- plugins: [
- react({ include, exclude }),
- optionsPlugin(!!experimentalReactChildren)
- ],
+ plugins: [react({ include, exclude }), optionsPlugin(!!experimentalReactChildren)],
resolve: {
dedupe: ['react', 'react-dom', 'react-dom/server'],
},
@@ -88,14 +89,16 @@ function getViteConfiguration({ include, exclude, experimentalReactChildren }: R
export default function ({
include,
exclude,
- experimentalReactChildren
+ experimentalReactChildren,
}: ReactIntegrationOptions = {}): AstroIntegration {
return {
name: '@astrojs/react',
hooks: {
'astro:config:setup': ({ config, command, addRenderer, updateConfig, injectScript }) => {
addRenderer(getRenderer());
- updateConfig({ vite: getViteConfiguration({ include, exclude, experimentalReactChildren }) });
+ updateConfig({
+ vite: getViteConfiguration({ include, exclude, experimentalReactChildren }),
+ });
if (command === 'dev') {
const preamble = FAST_REFRESH_PREAMBLE.replace(
`__BASE__`,
diff --git a/packages/integrations/solid/CHANGELOG.md b/packages/integrations/solid/CHANGELOG.md
index 6b1e4b012..b4b58a735 100644
--- a/packages/integrations/solid/CHANGELOG.md
+++ b/packages/integrations/solid/CHANGELOG.md
@@ -1,5 +1,11 @@
# @astrojs/solid-js
+## 3.0.0-beta.2
+
+### Patch Changes
+
+- [#8107](https://github.com/withastro/astro/pull/8107) [`5b4b78245`](https://github.com/withastro/astro/commit/5b4b782451ba9a7d685d56990b471740616e9610) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Update `babel-preset-solid` dependency to `^1.7.7`
+
## 3.0.0-beta.1
### Major Changes
diff --git a/packages/integrations/solid/package.json b/packages/integrations/solid/package.json
index 5dc00a86e..aab485c9e 100644
--- a/packages/integrations/solid/package.json
+++ b/packages/integrations/solid/package.json
@@ -1,6 +1,6 @@
{
"name": "@astrojs/solid-js",
- "version": "3.0.0-beta.1",
+ "version": "3.0.0-beta.2",
"description": "Use Solid components within Astro",
"type": "module",
"types": "./dist/index.d.ts",
diff --git a/packages/integrations/svelte/CHANGELOG.md b/packages/integrations/svelte/CHANGELOG.md
index 41ddb63ba..8d269fd29 100644
--- a/packages/integrations/svelte/CHANGELOG.md
+++ b/packages/integrations/svelte/CHANGELOG.md
@@ -1,5 +1,14 @@
# @astrojs/svelte
+## 4.0.0-beta.1
+
+### Patch Changes
+
+- [#7291](https://github.com/withastro/astro/pull/7291) [`0bf2cca5d`](https://github.com/withastro/astro/commit/0bf2cca5d7fe1fb025feae00ab3c12ed80f9ea9a) Thanks [@kitschpatrol](https://github.com/kitschpatrol)! - Filter unknown `class` prop warnings
+
+- Updated dependencies [[`2484dc408`](https://github.com/withastro/astro/commit/2484dc4080e5cd84b9a53648a1de426d7c907be2), [`c2c71d90c`](https://github.com/withastro/astro/commit/c2c71d90c264a2524f99e0373ab59015f23ad4b1), [`7177f7579`](https://github.com/withastro/astro/commit/7177f7579b6e866f0fd895b3fd079d8ba330b1a9), [`097a8e4e9`](https://github.com/withastro/astro/commit/097a8e4e916c7df18eafdaa6c8d6ce2991c17ab6), [`dbc97b121`](https://github.com/withastro/astro/commit/dbc97b121f42583728f1cdfdbf14575fda943f5b), [`2540feedb`](https://github.com/withastro/astro/commit/2540feedb06785d5a20eecc3668849f147d778d4), [`ea7ff5177`](https://github.com/withastro/astro/commit/ea7ff5177dbcd7b2508cb1eef1b22b8ee1f47079), [`68efd4a8b`](https://github.com/withastro/astro/commit/68efd4a8b29f248397667801465b3152dc98e9a7), [`0e0fa605d`](https://github.com/withastro/astro/commit/0e0fa605d109cc91e08a1ae1cc560ea240fe631b), [`5208a3c8f`](https://github.com/withastro/astro/commit/5208a3c8fefcec7694857fb344af351f4631fc34), [`8a5b0c1f3`](https://github.com/withastro/astro/commit/8a5b0c1f3a4be6bb62db66ec70144109ff5b4c59), [`d6b494376`](https://github.com/withastro/astro/commit/d6b4943764989c0e89df2d6875cd19691566dfb3), [`4477bb41c`](https://github.com/withastro/astro/commit/4477bb41c8ed688785c545731ef5b184b629f4e5), [`3e834293d`](https://github.com/withastro/astro/commit/3e834293d47ab2761a7aa013916e8371871efb7f), [`b76c166bd`](https://github.com/withastro/astro/commit/b76c166bdd8e28683f62806aef968d1e0c3b06d9)]:
+ - astro@3.0.0-beta.3
+
## 4.0.0-beta.0
### Major Changes
diff --git a/packages/integrations/svelte/package.json b/packages/integrations/svelte/package.json
index dee7cf2e3..c4c5f42c9 100644
--- a/packages/integrations/svelte/package.json
+++ b/packages/integrations/svelte/package.json
@@ -1,6 +1,6 @@
{
"name": "@astrojs/svelte",
- "version": "4.0.0-beta.0",
+ "version": "4.0.0-beta.1",
"description": "Use Svelte components within Astro",
"type": "module",
"types": "./dist/index.d.ts",
@@ -48,7 +48,7 @@
"vite": "^4.4.6"
},
"peerDependencies": {
- "astro": "workspace:^3.0.0-beta.2",
+ "astro": "workspace:^3.0.0-beta.3",
"svelte": "^3.55.0 || ^4.0.0"
},
"engines": {
diff --git a/packages/integrations/tailwind/package.json b/packages/integrations/tailwind/package.json
index e67b83e75..edbcaee89 100644
--- a/packages/integrations/tailwind/package.json
+++ b/packages/integrations/tailwind/package.json
@@ -43,7 +43,7 @@
"vite": "^4.4.6"
},
"peerDependencies": {
- "astro": "workspace:^3.0.0-beta.2",
+ "astro": "workspace:^3.0.0-beta.3",
"tailwindcss": "^3.0.24"
}
}
diff --git a/packages/integrations/vercel/CHANGELOG.md b/packages/integrations/vercel/CHANGELOG.md
index 455efb793..b5a87e9a4 100644
--- a/packages/integrations/vercel/CHANGELOG.md
+++ b/packages/integrations/vercel/CHANGELOG.md
@@ -1,5 +1,14 @@
# @astrojs/vercel
+## 4.0.0-beta.3
+
+### Patch Changes
+
+- [#7778](https://github.com/withastro/astro/pull/7778) [`d6b494376`](https://github.com/withastro/astro/commit/d6b4943764989c0e89df2d6875cd19691566dfb3) Thanks [@y-nk](https://github.com/y-nk)! - Update image support to work with latest version of Astro
+
+- Updated dependencies [[`2484dc408`](https://github.com/withastro/astro/commit/2484dc4080e5cd84b9a53648a1de426d7c907be2), [`c2c71d90c`](https://github.com/withastro/astro/commit/c2c71d90c264a2524f99e0373ab59015f23ad4b1), [`7177f7579`](https://github.com/withastro/astro/commit/7177f7579b6e866f0fd895b3fd079d8ba330b1a9), [`097a8e4e9`](https://github.com/withastro/astro/commit/097a8e4e916c7df18eafdaa6c8d6ce2991c17ab6), [`dbc97b121`](https://github.com/withastro/astro/commit/dbc97b121f42583728f1cdfdbf14575fda943f5b), [`2540feedb`](https://github.com/withastro/astro/commit/2540feedb06785d5a20eecc3668849f147d778d4), [`ea7ff5177`](https://github.com/withastro/astro/commit/ea7ff5177dbcd7b2508cb1eef1b22b8ee1f47079), [`68efd4a8b`](https://github.com/withastro/astro/commit/68efd4a8b29f248397667801465b3152dc98e9a7), [`0e0fa605d`](https://github.com/withastro/astro/commit/0e0fa605d109cc91e08a1ae1cc560ea240fe631b), [`5208a3c8f`](https://github.com/withastro/astro/commit/5208a3c8fefcec7694857fb344af351f4631fc34), [`8a5b0c1f3`](https://github.com/withastro/astro/commit/8a5b0c1f3a4be6bb62db66ec70144109ff5b4c59), [`d6b494376`](https://github.com/withastro/astro/commit/d6b4943764989c0e89df2d6875cd19691566dfb3), [`4477bb41c`](https://github.com/withastro/astro/commit/4477bb41c8ed688785c545731ef5b184b629f4e5), [`3e834293d`](https://github.com/withastro/astro/commit/3e834293d47ab2761a7aa013916e8371871efb7f), [`b76c166bd`](https://github.com/withastro/astro/commit/b76c166bdd8e28683f62806aef968d1e0c3b06d9)]:
+ - astro@3.0.0-beta.3
+
## 4.0.0-beta.2
### Patch Changes
diff --git a/packages/integrations/vercel/README.md b/packages/integrations/vercel/README.md
index 9b7aff6de..7f13fe6e7 100644
--- a/packages/integrations/vercel/README.md
+++ b/packages/integrations/vercel/README.md
@@ -220,7 +220,7 @@ import vercel from '@astrojs/vercel/serverless';
export default defineConfig({
output: 'server',
adapter: vercel({
- functionPerRoute: true
+ functionPerRoute: true,
}),
});
```
@@ -267,7 +267,7 @@ import vercel from '@astrojs/vercel';
export default defineConfig({
output: 'server',
adapter: vercel({
- edgeMiddleware: true
+ edgeMiddleware: true,
}),
});
```
diff --git a/packages/integrations/vercel/package.json b/packages/integrations/vercel/package.json
index 9afb315bb..bd230311a 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": "4.0.0-beta.2",
+ "version": "4.0.0-beta.3",
"type": "module",
"author": "withastro",
"license": "MIT",
@@ -60,7 +60,7 @@
"web-vitals": "^3.3.2"
},
"peerDependencies": {
- "astro": "workspace:^3.0.0-beta.2"
+ "astro": "workspace:^3.0.0-beta.3"
},
"devDependencies": {
"@types/set-cookie-parser": "^2.4.2",
diff --git a/packages/integrations/vue/package.json b/packages/integrations/vue/package.json
index 320c823a3..66a77df81 100644
--- a/packages/integrations/vue/package.json
+++ b/packages/integrations/vue/package.json
@@ -56,7 +56,7 @@
"vue": "^3.3.4"
},
"peerDependencies": {
- "astro": "workspace:^3.0.0-beta.2",
+ "astro": "workspace:^3.0.0-beta.3",
"vue": "^3.2.30"
},
"engines": {
diff --git a/packages/telemetry/CHANGELOG.md b/packages/telemetry/CHANGELOG.md
index b56b1129b..561719655 100644
--- a/packages/telemetry/CHANGELOG.md
+++ b/packages/telemetry/CHANGELOG.md
@@ -1,5 +1,11 @@
# @astrojs/telemetry
+## 3.0.0-beta.2
+
+### Patch Changes
+
+- [#8130](https://github.com/withastro/astro/pull/8130) [`3e834293d`](https://github.com/withastro/astro/commit/3e834293d47ab2761a7aa013916e8371871efb7f) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Add some polyfills for Stackblitz until they support Node 18. Running Astro on Node 16 is still not officially supported, however.
+
## 3.0.0-beta.1
### Patch Changes
diff --git a/packages/telemetry/package.json b/packages/telemetry/package.json
index 25d79a506..d06ead9d7 100644
--- a/packages/telemetry/package.json
+++ b/packages/telemetry/package.json
@@ -1,6 +1,6 @@
{
"name": "@astrojs/telemetry",
- "version": "3.0.0-beta.1",
+ "version": "3.0.0-beta.2",
"type": "module",
"types": "./dist/types/index.d.ts",
"author": "withastro",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index e8a4a530e..6b4d496ed 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -125,13 +125,13 @@ importers:
examples/basics:
dependencies:
astro:
- specifier: ^3.0.0-beta.2
+ specifier: ^3.0.0-beta.3
version: link:../../packages/astro
examples/blog:
dependencies:
'@astrojs/mdx':
- specifier: ^1.0.0-beta.0
+ specifier: ^1.0.0-beta.1
version: link:../../packages/integrations/mdx
'@astrojs/rss':
specifier: ^3.0.0-beta.0
@@ -140,19 +140,19 @@ importers:
specifier: ^3.0.0-beta.0
version: link:../../packages/integrations/sitemap
astro:
- specifier: ^3.0.0-beta.2
+ specifier: ^3.0.0-beta.3
version: link:../../packages/astro
examples/component:
devDependencies:
astro:
- specifier: ^3.0.0-beta.2
+ specifier: ^3.0.0-beta.3
version: link:../../packages/astro
examples/deno:
dependencies:
astro:
- specifier: ^3.0.0-beta.2
+ specifier: ^3.0.0-beta.3
version: link:../../packages/astro
devDependencies:
'@astrojs/deno':
@@ -171,7 +171,7 @@ importers:
specifier: ^3.12.2
version: 3.12.2
astro:
- specifier: ^3.0.0-beta.2
+ specifier: ^3.0.0-beta.3
version: link:../../packages/astro
examples/framework-lit:
@@ -183,7 +183,7 @@ importers:
specifier: ^0.2.1
version: 0.2.1
astro:
- specifier: ^3.0.0-beta.2
+ specifier: ^3.0.0-beta.3
version: link:../../packages/astro
lit:
specifier: ^2.7.5
@@ -195,19 +195,19 @@ importers:
specifier: ^3.0.0-beta.1
version: link:../../packages/integrations/preact
'@astrojs/react':
- specifier: ^3.0.0-beta.2
+ specifier: ^3.0.0-beta.3
version: link:../../packages/integrations/react
'@astrojs/solid-js':
- specifier: ^3.0.0-beta.1
+ specifier: ^3.0.0-beta.2
version: link:../../packages/integrations/solid
'@astrojs/svelte':
- specifier: ^4.0.0-beta.0
+ specifier: ^4.0.0-beta.1
version: link:../../packages/integrations/svelte
'@astrojs/vue':
specifier: ^3.0.0-beta.0
version: link:../../packages/integrations/vue
astro:
- specifier: ^3.0.0-beta.2
+ specifier: ^3.0.0-beta.3
version: link:../../packages/astro
preact:
specifier: ^10.15.1
@@ -237,7 +237,7 @@ importers:
specifier: ^1.1.3
version: 1.1.3(preact@10.15.1)
astro:
- specifier: ^3.0.0-beta.2
+ specifier: ^3.0.0-beta.3
version: link:../../packages/astro
preact:
specifier: ^10.15.1
@@ -246,7 +246,7 @@ importers:
examples/framework-react:
dependencies:
'@astrojs/react':
- specifier: ^3.0.0-beta.2
+ specifier: ^3.0.0-beta.3
version: link:../../packages/integrations/react
'@types/react':
specifier: ^18.2.13
@@ -255,7 +255,7 @@ importers:
specifier: ^18.2.6
version: 18.2.6
astro:
- specifier: ^3.0.0-beta.2
+ specifier: ^3.0.0-beta.3
version: link:../../packages/astro
react:
specifier: ^18.2.0
@@ -267,10 +267,10 @@ importers:
examples/framework-solid:
dependencies:
'@astrojs/solid-js':
- specifier: ^3.0.0-beta.1
+ specifier: ^3.0.0-beta.2
version: link:../../packages/integrations/solid
astro:
- specifier: ^3.0.0-beta.2
+ specifier: ^3.0.0-beta.3
version: link:../../packages/astro
solid-js:
specifier: ^1.7.6
@@ -279,10 +279,10 @@ importers:
examples/framework-svelte:
dependencies:
'@astrojs/svelte':
- specifier: ^4.0.0-beta.0
+ specifier: ^4.0.0-beta.1
version: link:../../packages/integrations/svelte
astro:
- specifier: ^3.0.0-beta.2
+ specifier: ^3.0.0-beta.3
version: link:../../packages/astro
svelte:
specifier: ^3.59.1
@@ -294,7 +294,7 @@ importers:
specifier: ^3.0.0-beta.0
version: link:../../packages/integrations/vue
astro:
- specifier: ^3.0.0-beta.2
+ specifier: ^3.0.0-beta.3
version: link:../../packages/astro
vue:
specifier: ^3.3.4
@@ -306,13 +306,13 @@ importers:
specifier: ^6.0.0-beta.0
version: link:../../packages/integrations/node
astro:
- specifier: ^3.0.0-beta.2
+ specifier: ^3.0.0-beta.3
version: link:../../packages/astro
examples/integration:
devDependencies:
astro:
- specifier: ^3.0.0-beta.2
+ specifier: ^3.0.0-beta.3
version: link:../../packages/astro
examples/middleware:
@@ -321,7 +321,7 @@ importers:
specifier: ^6.0.0-beta.0
version: link:../../packages/integrations/node
astro:
- specifier: ^3.0.0-beta.2
+ specifier: ^3.0.0-beta.3
version: link:../../packages/astro
html-minifier:
specifier: ^4.0.0
@@ -330,19 +330,19 @@ importers:
examples/minimal:
dependencies:
astro:
- specifier: ^3.0.0-beta.2
+ specifier: ^3.0.0-beta.3
version: link:../../packages/astro
examples/non-html-pages:
dependencies:
astro:
- specifier: ^3.0.0-beta.2
+ specifier: ^3.0.0-beta.3
version: link:../../packages/astro
examples/portfolio:
dependencies:
astro:
- specifier: ^3.0.0-beta.2
+ specifier: ^3.0.0-beta.3
version: link:../../packages/astro
examples/ssr:
@@ -351,10 +351,10 @@ importers:
specifier: ^6.0.0-beta.0
version: link:../../packages/integrations/node
'@astrojs/svelte':
- specifier: ^4.0.0-beta.0
+ specifier: ^4.0.0-beta.1
version: link:../../packages/integrations/svelte
astro:
- specifier: ^3.0.0-beta.2
+ specifier: ^3.0.0-beta.3
version: link:../../packages/astro
svelte:
specifier: ^3.59.1
@@ -366,7 +366,7 @@ importers:
specifier: ^1.0.0-beta.1
version: link:../../packages/integrations/markdoc
astro:
- specifier: ^3.0.0-beta.2
+ specifier: ^3.0.0-beta.3
version: link:../../packages/astro
examples/with-markdown-plugins:
@@ -375,7 +375,7 @@ importers:
specifier: ^3.0.0-beta.0
version: link:../../packages/markdown/remark
astro:
- specifier: ^3.0.0-beta.2
+ specifier: ^3.0.0-beta.3
version: link:../../packages/astro
hast-util-select:
specifier: ^5.0.5
@@ -396,19 +396,19 @@ importers:
examples/with-markdown-shiki:
dependencies:
astro:
- specifier: ^3.0.0-beta.2
+ specifier: ^3.0.0-beta.3
version: link:../../packages/astro
examples/with-mdx:
dependencies:
'@astrojs/mdx':
- specifier: ^1.0.0-beta.0
+ specifier: ^1.0.0-beta.1
version: link:../../packages/integrations/mdx
'@astrojs/preact':
specifier: ^3.0.0-beta.1
version: link:../../packages/integrations/preact
astro:
- specifier: ^3.0.0-beta.2
+ specifier: ^3.0.0-beta.3
version: link:../../packages/astro
preact:
specifier: ^10.15.1
@@ -423,7 +423,7 @@ importers:
specifier: ^0.4.1
version: 0.4.1(nanostores@0.8.1)(preact@10.15.1)
astro:
- specifier: ^3.0.0-beta.2
+ specifier: ^3.0.0-beta.3
version: link:../../packages/astro
nanostores:
specifier: ^0.8.1
@@ -435,7 +435,7 @@ importers:
examples/with-tailwindcss:
dependencies:
'@astrojs/mdx':
- specifier: ^1.0.0-beta.0
+ specifier: ^1.0.0-beta.1
version: link:../../packages/integrations/mdx
'@astrojs/tailwind':
specifier: ^5.0.0-beta.0
@@ -444,7 +444,7 @@ importers:
specifier: ^1.6.0
version: 1.6.0
astro:
- specifier: ^3.0.0-beta.2
+ specifier: ^3.0.0-beta.3
version: link:../../packages/astro
autoprefixer:
specifier: ^10.4.14
@@ -462,7 +462,7 @@ importers:
examples/with-vite-plugin-pwa:
dependencies:
astro:
- specifier: ^3.0.0-beta.2
+ specifier: ^3.0.0-beta.3
version: link:../../packages/astro
vite-plugin-pwa:
specifier: 0.14.7
@@ -474,7 +474,7 @@ importers:
examples/with-vitest:
dependencies:
astro:
- specifier: ^3.0.0-beta.2
+ specifier: ^3.0.0-beta.3
version: link:../../packages/astro
vitest:
specifier: ^0.31.4