diff --git a/.changeset/orange-windows-battle.md b/.changeset/orange-windows-battle.md
deleted file mode 100644
index 37fcb28fa..000000000
--- a/.changeset/orange-windows-battle.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@astrojs/cloudflare': minor
----
-
-Change build target from `es2020` to `es2022`, for better support
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 7161a0d0f..feecf12a5 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -22,6 +22,9 @@ jobs:
name: Changelog PR or Release
if: ${{ github.repository_owner == 'withastro' }}
runs-on: ubuntu-latest
+ permissions:
+ contents: write
+ id-token: write
steps:
- uses: actions/checkout@v3
diff --git a/.github/workflows/snapshot-release.yml b/.github/workflows/snapshot-release.yml
index 29f8c7f11..3025c60f0 100644
--- a/.github/workflows/snapshot-release.yml
+++ b/.github/workflows/snapshot-release.yml
@@ -81,6 +81,8 @@ jobs:
id: publish
run: |
pnpm run release --tag next--${{ steps.getSnapshotName.outputs.result }} > publish.output.txt 2>&1
+ echo "Release complete"
+ cat publish.output.txt
echo ::set-output name=result::`cat publish.output.txt`
env:
# Needs access to publish to npm
diff --git a/examples/basics/package.json b/examples/basics/package.json
index b9c2f8405..912e95290 100644
--- a/examples/basics/package.json
+++ b/examples/basics/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^3.2.0"
+ "astro": "^3.2.3"
}
}
diff --git a/examples/blog/package.json b/examples/blog/package.json
index f1d800c36..55e083973 100644
--- a/examples/blog/package.json
+++ b/examples/blog/package.json
@@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/mdx": "^1.1.0",
+ "@astrojs/mdx": "^1.1.1",
"@astrojs/rss": "^3.0.0",
- "@astrojs/sitemap": "^3.0.0",
- "astro": "^3.2.0"
+ "@astrojs/sitemap": "^3.0.1",
+ "astro": "^3.2.3"
}
}
diff --git a/examples/component/package.json b/examples/component/package.json
index 6476be5ac..701f1d180 100644
--- a/examples/component/package.json
+++ b/examples/component/package.json
@@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
- "astro": "^3.2.0"
+ "astro": "^3.2.3"
},
"peerDependencies": {
"astro": "^2.0.0-beta.0"
diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json
index b3f1cd709..732152d0b 100644
--- a/examples/framework-alpine/package.json
+++ b/examples/framework-alpine/package.json
@@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/alpinejs": "^0.3.0",
+ "@astrojs/alpinejs": "^0.3.1",
"@types/alpinejs": "^3.7.2",
"alpinejs": "^3.12.3",
- "astro": "^3.2.0"
+ "astro": "^3.2.3"
}
}
diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json
index 9b50c39cc..407227d7f 100644
--- a/examples/framework-lit/package.json
+++ b/examples/framework-lit/package.json
@@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/lit": "^3.0.0",
+ "@astrojs/lit": "^3.0.1",
"@webcomponents/template-shadowroot": "^0.2.1",
- "astro": "^3.2.0",
+ "astro": "^3.2.3",
"lit": "^2.8.0"
}
}
diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json
index 508e93a79..48cdd3aa5 100644
--- a/examples/framework-multiple/package.json
+++ b/examples/framework-multiple/package.json
@@ -11,12 +11,12 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/preact": "^3.0.0",
- "@astrojs/react": "^3.0.2",
- "@astrojs/solid-js": "^3.0.1",
- "@astrojs/svelte": "^4.0.2",
- "@astrojs/vue": "^3.0.0",
- "astro": "^3.2.0",
+ "@astrojs/preact": "^3.0.1",
+ "@astrojs/react": "^3.0.3",
+ "@astrojs/solid-js": "^3.0.2",
+ "@astrojs/svelte": "^4.0.3",
+ "@astrojs/vue": "^3.0.1",
+ "astro": "^3.2.3",
"preact": "^10.17.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 f1e16f0da..f57093b82 100644
--- a/examples/framework-preact/package.json
+++ b/examples/framework-preact/package.json
@@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/preact": "^3.0.0",
+ "@astrojs/preact": "^3.0.1",
"@preact/signals": "^1.2.1",
- "astro": "^3.2.0",
+ "astro": "^3.2.3",
"preact": "^10.17.1"
}
}
diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json
index fdd46e936..fc5c09440 100644
--- a/examples/framework-react/package.json
+++ b/examples/framework-react/package.json
@@ -11,10 +11,10 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/react": "^3.0.2",
+ "@astrojs/react": "^3.0.3",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
- "astro": "^3.2.0",
+ "astro": "^3.2.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 e5596fd97..652e66209 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.1",
- "astro": "^3.2.0",
+ "@astrojs/solid-js": "^3.0.2",
+ "astro": "^3.2.3",
"solid-js": "^1.7.11"
}
}
diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json
index 13c3b0048..cd6fcc4b4 100644
--- a/examples/framework-svelte/package.json
+++ b/examples/framework-svelte/package.json
@@ -11,8 +11,8 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/svelte": "^4.0.2",
- "astro": "^3.2.0",
+ "@astrojs/svelte": "^4.0.3",
+ "astro": "^3.2.3",
"svelte": "^4.2.0"
}
}
diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json
index 31b4a243e..c2a6900d0 100644
--- a/examples/framework-vue/package.json
+++ b/examples/framework-vue/package.json
@@ -11,8 +11,8 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/vue": "^3.0.0",
- "astro": "^3.2.0",
+ "@astrojs/vue": "^3.0.1",
+ "astro": "^3.2.3",
"vue": "^3.3.4"
}
}
diff --git a/examples/hackernews/package.json b/examples/hackernews/package.json
index 662bdfab4..01e390b65 100644
--- a/examples/hackernews/package.json
+++ b/examples/hackernews/package.json
@@ -11,7 +11,7 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/node": "^6.0.1",
- "astro": "^3.2.0"
+ "@astrojs/node": "^6.0.3",
+ "astro": "^3.2.3"
}
}
diff --git a/examples/integration/package.json b/examples/integration/package.json
index 438218492..01b9cba09 100644
--- a/examples/integration/package.json
+++ b/examples/integration/package.json
@@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
- "astro": "^3.2.0"
+ "astro": "^3.2.3"
},
"peerDependencies": {
"astro": "^2.0.0-beta.0"
diff --git a/examples/middleware/package.json b/examples/middleware/package.json
index d15f99ca5..e2c640532 100644
--- a/examples/middleware/package.json
+++ b/examples/middleware/package.json
@@ -12,8 +12,8 @@
"server": "node dist/server/entry.mjs"
},
"dependencies": {
- "@astrojs/node": "^6.0.1",
- "astro": "^3.2.0",
+ "@astrojs/node": "^6.0.3",
+ "astro": "^3.2.3",
"html-minifier": "^4.0.0"
}
}
diff --git a/examples/minimal/package.json b/examples/minimal/package.json
index 448adabe5..eb852999f 100644
--- a/examples/minimal/package.json
+++ b/examples/minimal/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^3.2.0"
+ "astro": "^3.2.3"
}
}
diff --git a/examples/non-html-pages/package.json b/examples/non-html-pages/package.json
index 0a99088be..7655413b5 100644
--- a/examples/non-html-pages/package.json
+++ b/examples/non-html-pages/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^3.2.0"
+ "astro": "^3.2.3"
}
}
diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json
index d3440479a..058b8a1fc 100644
--- a/examples/portfolio/package.json
+++ b/examples/portfolio/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^3.2.0"
+ "astro": "^3.2.3"
}
}
diff --git a/examples/ssr/package.json b/examples/ssr/package.json
index ac2732434..3873a6098 100644
--- a/examples/ssr/package.json
+++ b/examples/ssr/package.json
@@ -12,9 +12,9 @@
"server": "node dist/server/entry.mjs"
},
"dependencies": {
- "@astrojs/node": "^6.0.1",
- "@astrojs/svelte": "^4.0.2",
- "astro": "^3.2.0",
+ "@astrojs/node": "^6.0.3",
+ "@astrojs/svelte": "^4.0.3",
+ "astro": "^3.2.3",
"svelte": "^4.2.0"
}
}
diff --git a/examples/view-transitions/package.json b/examples/view-transitions/package.json
index ee1ff91e5..63afa93a2 100644
--- a/examples/view-transitions/package.json
+++ b/examples/view-transitions/package.json
@@ -10,8 +10,8 @@
"astro": "astro"
},
"devDependencies": {
- "@astrojs/tailwind": "^5.0.0",
- "@astrojs/node": "^6.0.1",
- "astro": "^3.2.0"
+ "@astrojs/tailwind": "^5.0.1",
+ "@astrojs/node": "^6.0.3",
+ "astro": "^3.2.3"
}
}
diff --git a/examples/with-markdoc/package.json b/examples/with-markdoc/package.json
index 3a05e55ef..47abbe3d7 100644
--- a/examples/with-markdoc/package.json
+++ b/examples/with-markdoc/package.json
@@ -11,7 +11,7 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/markdoc": "^0.5.0",
- "astro": "^3.2.0"
+ "@astrojs/markdoc": "^0.5.2",
+ "astro": "^3.2.3"
}
}
diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json
index c347f223f..fdf825dcb 100644
--- a/examples/with-markdown-plugins/package.json
+++ b/examples/with-markdown-plugins/package.json
@@ -11,8 +11,8 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/markdown-remark": "^3.2.0",
- "astro": "^3.2.0",
+ "@astrojs/markdown-remark": "^3.2.1",
+ "astro": "^3.2.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 17615e975..0da01ebdd 100644
--- a/examples/with-markdown-shiki/package.json
+++ b/examples/with-markdown-shiki/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^3.2.0"
+ "astro": "^3.2.3"
}
}
diff --git a/examples/with-mdx/package.json b/examples/with-mdx/package.json
index 4d65d87bb..a6d84a347 100644
--- a/examples/with-mdx/package.json
+++ b/examples/with-mdx/package.json
@@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/mdx": "^1.1.0",
- "@astrojs/preact": "^3.0.0",
- "astro": "^3.2.0",
+ "@astrojs/mdx": "^1.1.1",
+ "@astrojs/preact": "^3.0.1",
+ "astro": "^3.2.3",
"preact": "^10.17.1"
}
}
diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json
index f2d45cb96..9939e0779 100644
--- a/examples/with-nanostores/package.json
+++ b/examples/with-nanostores/package.json
@@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/preact": "^3.0.0",
+ "@astrojs/preact": "^3.0.1",
"@nanostores/preact": "^0.5.0",
- "astro": "^3.2.0",
+ "astro": "^3.2.3",
"nanostores": "^0.9.3",
"preact": "^10.17.1"
}
diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json
index 560674866..f6b4f9d25 100644
--- a/examples/with-tailwindcss/package.json
+++ b/examples/with-tailwindcss/package.json
@@ -11,10 +11,10 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/mdx": "^1.1.0",
- "@astrojs/tailwind": "^5.0.0",
+ "@astrojs/mdx": "^1.1.1",
+ "@astrojs/tailwind": "^5.0.1",
"@types/canvas-confetti": "^1.6.0",
- "astro": "^3.2.0",
+ "astro": "^3.2.3",
"autoprefixer": "^10.4.15",
"canvas-confetti": "^1.6.0",
"postcss": "^8.4.28",
diff --git a/examples/with-vite-plugin-pwa/package.json b/examples/with-vite-plugin-pwa/package.json
index 07dbc1a7c..aafacac3a 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.2.0",
+ "astro": "^3.2.3",
"vite-plugin-pwa": "0.16.4",
"workbox-window": "^7.0.0"
}
diff --git a/examples/with-vitest/package.json b/examples/with-vitest/package.json
index 421190d78..bcd760017 100644
--- a/examples/with-vitest/package.json
+++ b/examples/with-vitest/package.json
@@ -12,7 +12,7 @@
"test": "vitest"
},
"dependencies": {
- "astro": "^3.2.0",
+ "astro": "^3.2.3",
"vitest": "^0.34.2"
}
}
diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md
index 53c4c2097..0d48bc340 100644
--- a/packages/astro/CHANGELOG.md
+++ b/packages/astro/CHANGELOG.md
@@ -1,5 +1,46 @@
# astro
+## 3.2.3
+
+### Patch Changes
+
+- [#8737](https://github.com/withastro/astro/pull/8737) [`6f60da805`](https://github.com/withastro/astro/commit/6f60da805e0014bc50dd07bef972e91c73560c3c) Thanks [@ematipico](https://github.com/ematipico)! - Add provenance statement when publishing the library from CI
+
+- [#8747](https://github.com/withastro/astro/pull/8747) [`d78806dfe`](https://github.com/withastro/astro/commit/d78806dfe0301ea7ffe6c7c1f783bd415ac7cda9) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Improve error message when user attempts to render a dynamic component reference
+
+- [#8736](https://github.com/withastro/astro/pull/8736) [`d1c75fe15`](https://github.com/withastro/astro/commit/d1c75fe158839699c59728cf3a83888e8c72a459) Thanks [@bluwy](https://github.com/bluwy)! - Fix `tsconfig.json` update causing the server to crash
+
+- [#8743](https://github.com/withastro/astro/pull/8743) [`aa265d730`](https://github.com/withastro/astro/commit/aa265d73024422967c1b1c68ad268c419c6c798f) Thanks [@bluwy](https://github.com/bluwy)! - Remove unused CSS output files when inlined
+
+- [#8700](https://github.com/withastro/astro/pull/8700) [`78adbc443`](https://github.com/withastro/astro/commit/78adbc4433208458291e36713909762e148e1e5d) Thanks [@jacobthesheep](https://github.com/jacobthesheep)! - Update link for Netlify SSR
+
+- [#8729](https://github.com/withastro/astro/pull/8729) [`21e0757ea`](https://github.com/withastro/astro/commit/21e0757ea22a57d344c934045ca19db93b684436) Thanks [@lilnasy](https://github.com/lilnasy)! - Node-based adapters now create less server-side javascript
+
+- [#8730](https://github.com/withastro/astro/pull/8730) [`357270f2a`](https://github.com/withastro/astro/commit/357270f2a3d0bf2aa634ba7e52e9d17618eff4a7) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Improve `astro info` copy to clipboard compatability
+
+- Updated dependencies [[`21f482657`](https://github.com/withastro/astro/commit/21f4826576c2c812a1604e18717799da3470decd), [`6f60da805`](https://github.com/withastro/astro/commit/6f60da805e0014bc50dd07bef972e91c73560c3c), [`21e0757ea`](https://github.com/withastro/astro/commit/21e0757ea22a57d344c934045ca19db93b684436)]:
+ - @astrojs/markdown-remark@3.2.1
+ - @astrojs/internal-helpers@0.2.1
+ - @astrojs/telemetry@3.0.3
+
+## 3.2.2
+
+### Patch Changes
+
+- [#8724](https://github.com/withastro/astro/pull/8724) [`455af3235`](https://github.com/withastro/astro/commit/455af3235b3268852e6988accecc796f03f6d16e) Thanks [@bluwy](https://github.com/bluwy)! - Fix CSS styles on Windows
+
+- [#8710](https://github.com/withastro/astro/pull/8710) [`4c2bec681`](https://github.com/withastro/astro/commit/4c2bec681b0752e7215b8a32bd2d44bf477adac1) Thanks [@matthewp](https://github.com/matthewp)! - Fixes View transition styles being missing when component used multiple times
+
+## 3.2.1
+
+### Patch Changes
+
+- [#8680](https://github.com/withastro/astro/pull/8680) [`31c59ad8b`](https://github.com/withastro/astro/commit/31c59ad8b6a72f95c98a306ecf92d198c03110b4) Thanks [@bluwy](https://github.com/bluwy)! - Fix hydration on slow connection
+
+- [#8698](https://github.com/withastro/astro/pull/8698) [`47ea310f0`](https://github.com/withastro/astro/commit/47ea310f01d06ed1562c790bec348718a2fa8277) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Use a Node-specific image endpoint to resolve images in dev and Node SSR. This should fix many issues related to getting 404 from the \_image endpoint under certain configurations
+
+- [#8706](https://github.com/withastro/astro/pull/8706) [`345808170`](https://github.com/withastro/astro/commit/345808170fce783ddd3c9a4035a91fa64dcc5f46) Thanks [@bluwy](https://github.com/bluwy)! - Fix duplicated Astro and Vite injected styles
+
## 3.2.0
### Minor Changes
diff --git a/packages/astro/astro.js b/packages/astro/astro.js
index ef5349854..f227ae9e9 100755
--- a/packages/astro/astro.js
+++ b/packages/astro/astro.js
@@ -3,7 +3,6 @@
// ISOMORPHIC FILE: NO TOP-LEVEL IMPORT/REQUIRE() ALLOWED
// This file has to run as both ESM and CJS on older Node.js versions
-// Needed for Stackblitz: https://github.com/stackblitz/webcontainer-core/issues/281
const CI_INSTRUCTIONS = {
NETLIFY: 'https://docs.netlify.com/configure-builds/manage-dependencies/#node-js-and-javascript',
@@ -16,15 +15,11 @@ const CI_INSTRUCTIONS = {
const engines = '>=18.14.1';
const skipSemverCheckIfAbove = 19;
-// HACK (2023-08-18) Stackblitz does not support Node 18 yet, so we'll fake Node 16 support for some time until it's supported
-// TODO: Remove when Node 18 is supported on Stackblitz
-const isStackblitz = process.env.SHELL === '/bin/jsh' && process.versions.webcontainer != null;
-
/** `astro *` */
async function main() {
const version = process.versions.node;
// Fast-path for higher Node.js versions
- if (!isStackblitz && (parseInt(version) || 0) <= skipSemverCheckIfAbove) {
+ if ((parseInt(version) || 0) <= skipSemverCheckIfAbove) {
try {
const semver = await import('semver');
if (!semver.satisfies(version, engines)) {
diff --git a/packages/astro/e2e/css-sourcemaps.test.js b/packages/astro/e2e/css-sourcemaps.test.js
deleted file mode 100644
index 4ea3fc0e2..000000000
--- a/packages/astro/e2e/css-sourcemaps.test.js
+++ /dev/null
@@ -1,36 +0,0 @@
-import { expect } from '@playwright/test';
-import { testFactory } from './test-utils.js';
-
-const test = testFactory({
- root: './fixtures/css/',
-});
-
-let devServer;
-
-test.beforeAll(async ({ astro }) => {
- devServer = await astro.startDevServer();
-});
-
-test.afterAll(async () => {
- await devServer.stop();
-});
-
-test.describe('CSS Sourcemap HMR', () => {
- test('removes Astro-injected CSS once Vite-injected CSS loads', async ({ page, astro }) => {
- const html = await astro.fetch('/').then((res) => res.text());
-
- // style[data-astro-dev-id] should exist in initial SSR'd markup
- expect(html).toMatch('data-astro-dev-id');
-
- await page.goto(astro.resolveUrl('/'));
-
- // Ensure JS has initialized
- await page.waitForTimeout(500);
-
- // style[data-astro-dev-id] should NOT exist once JS runs
- expect(await page.locator('style[data-astro-dev-id]').count()).toEqual(0);
-
- // style[data-vite-dev-id] should exist now
- expect(await page.locator('style[data-vite-dev-id]').count()).toBeGreaterThan(0);
- });
-});
diff --git a/packages/astro/e2e/css.test.js b/packages/astro/e2e/css.test.js
index b302d9d90..3e0486d0f 100644
--- a/packages/astro/e2e/css.test.js
+++ b/packages/astro/e2e/css.test.js
@@ -29,21 +29,9 @@ test.describe('CSS HMR', () => {
await expect(h).toHaveCSS('color', 'rgb(0, 128, 0)');
});
- test('removes Astro-injected CSS once Vite-injected CSS loads', async ({ page, astro }) => {
+ test('removes Astro-injected CSS once Vite-injected CSS loads', async ({ astro }) => {
const html = await astro.fetch('/').then((res) => res.text());
-
- // style[data-astro-dev-id] should exist in initial SSR'd markup
- expect(html).toMatch('data-astro-dev-id');
-
- await page.goto(astro.resolveUrl('/'));
-
- // Ensure JS has initialized
- await page.waitForTimeout(500);
-
- // style[data-astro-dev-id] should NOT exist once JS runs
- expect(await page.locator('style[data-astro-dev-id]').count()).toEqual(0);
-
- // style[data-vite-dev-id] should exist now
- expect(await page.locator('style[data-vite-dev-id]').count()).toBeGreaterThan(0);
+ // style[data-vite-dev-id] should exist in initial SSR'd markup
+ expect(html).toMatch('data-vite-dev-id');
});
});
diff --git a/packages/astro/e2e/fixtures/css-sourcemaps/astro.config.mjs b/packages/astro/e2e/fixtures/css-sourcemaps/astro.config.mjs
deleted file mode 100644
index 7e8fac1e7..000000000
--- a/packages/astro/e2e/fixtures/css-sourcemaps/astro.config.mjs
+++ /dev/null
@@ -1,7 +0,0 @@
-export default {
- vite: {
- css: {
- devSourcemap: true,
- }
- }
-};
diff --git a/packages/astro/e2e/fixtures/css-sourcemaps/package.json b/packages/astro/e2e/fixtures/css-sourcemaps/package.json
deleted file mode 100644
index 1fa4c2c79..000000000
--- a/packages/astro/e2e/fixtures/css-sourcemaps/package.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "name": "@e2e/css-sourcemaps",
- "version": "0.0.0",
- "private": true,
- "dependencies": {
- "astro": "workspace:*"
- }
-}
diff --git a/packages/astro/e2e/fixtures/css-sourcemaps/src/env.d.ts b/packages/astro/e2e/fixtures/css-sourcemaps/src/env.d.ts
deleted file mode 100644
index 8c34fb45e..000000000
--- a/packages/astro/e2e/fixtures/css-sourcemaps/src/env.d.ts
+++ /dev/null
@@ -1 +0,0 @@
-///
Page 1
test go to 2 diff --git a/packages/astro/e2e/view-transitions.test.js b/packages/astro/e2e/view-transitions.test.js index 05a8f8ad0..31e3128f5 100644 --- a/packages/astro/e2e/view-transitions.test.js +++ b/packages/astro/e2e/view-transitions.test.js @@ -20,6 +20,20 @@ function scrollToBottom(page) { }); } +function collectPreloads(page) { + return page.evaluate(() => { + window.preloads = []; + const observer = new MutationObserver((mutations) => { + mutations.forEach((mutation) => + mutation.addedNodes.forEach((node) => { + if (node.nodeName === 'LINK' && node.rel === 'preload') preloads.push(node.href); + }) + ); + }); + observer.observe(document.head, { childList: true }); + }); +} + test.describe('View Transitions', () => { test('Moving from page 1 to page 2', async ({ page, astro }) => { const loads = []; @@ -170,11 +184,15 @@ test.describe('View Transitions', () => { let p = page.locator('#one'); await expect(p, 'should have content').toHaveText('Page 1'); + await collectPreloads(page); + // Go to page 2 await page.click('#click-two'); p = page.locator('#two'); await expect(p, 'should have content').toHaveText('Page 2'); await expect(p, 'imported CSS updated').toHaveCSS('font-size', '24px'); + const preloads = await page.evaluate(() => window.preloads); + expect(preloads.length === 1 && preloads[0].endsWith('/two.css')).toBeTruthy(); }); test('astro:page-load event fires when navigating to new page', async ({ page, astro }) => { @@ -631,7 +649,7 @@ test.describe('View Transitions', () => { }); test('client:only styles are retained on transition', async ({ page, astro }) => { - const totalExpectedStyles = 8; + const totalExpectedStyles = 7; // Go to page 1 await page.goto(astro.resolveUrl('/client-only-one')); diff --git a/packages/astro/package.json b/packages/astro/package.json index afa6a47d7..33bf6eb4f 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "astro", - "version": "3.2.0", + "version": "3.2.3", "description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.", "type": "module", "author": "withastro", @@ -56,7 +56,7 @@ "./components/*": "./components/*", "./assets": "./dist/assets/index.js", "./assets/utils": "./dist/assets/utils/index.js", - "./assets/image-endpoint": "./dist/assets/image-endpoint.js", + "./assets/endpoint/*": "./dist/assets/endpoint/*.js", "./assets/services/sharp": "./dist/assets/services/sharp.js", "./assets/services/squoosh": "./dist/assets/services/squoosh.js", "./assets/services/noop": "./dist/assets/services/noop.js", @@ -168,7 +168,6 @@ "string-width": "^6.1.0", "strip-ansi": "^7.1.0", "tsconfig-resolver": "^3.0.1", - "undici": "^5.23.0", "unist-util-visit": "^4.1.2", "vfile": "^5.3.7", "vite": "^4.4.9", @@ -226,5 +225,8 @@ "engines": { "node": ">=18.14.1", "npm": ">=6.14.0" + }, + "publishConfig": { + "provenance": true } } diff --git a/packages/astro/src/@types/astro.ts b/packages/astro/src/@types/astro.ts index 29123235f..2bacd5d53 100644 --- a/packages/astro/src/@types/astro.ts +++ b/packages/astro/src/@types/astro.ts @@ -636,7 +636,7 @@ export interface AstroUserConfig { * @see output * @description * - * Deploy to your favorite server, serverless, or edge host with build adapters. Import one of our first-party adapters for [Netlify](https://docs.astro.build/en/guides/deploy/netlify/#adapter-for-ssredge), [Vercel](https://docs.astro.build/en/guides/deploy/vercel/#adapter-for-ssr), and more to engage Astro SSR. + * Deploy to your favorite server, serverless, or edge host with build adapters. Import one of our first-party adapters for [Netlify](https://docs.astro.build/en/guides/deploy/netlify/#adapter-for-ssr), [Vercel](https://docs.astro.build/en/guides/deploy/vercel/#adapter-for-ssr), and more to engage Astro SSR. * * [See our Server-side Rendering guide](https://docs.astro.build/en/guides/server-side-rendering/) for more on SSR, and [our deployment guides](https://docs.astro.build/en/guides/deploy/) for a complete list of hosts. * @@ -1172,10 +1172,10 @@ export interface AstroUserConfig { * Pass [rehype plugins](https://github.com/remarkjs/remark-rehype) to customize how your Markdown's output HTML is processed. You can import and apply the plugin function (recommended), or pass the plugin name as a string. * * ```js - * import rehypeMinifyHtml from 'rehype-minify'; + * import { rehypeAccessibleEmojis } from 'rehype-accessible-emojis'; * { * markdown: { - * rehypePlugins: [rehypeMinifyHtml] + * rehypePlugins: [rehypeAccessibleEmojis] * } * } * ``` @@ -2213,7 +2213,7 @@ export interface SSRMetadata { hasRenderedHead: boolean; headInTree: boolean; extraHead: string[]; - propagators: Map