{runtime}
+ + \ No newline at end of file diff --git a/packages/astro/test/fixtures/custom-404-locals/src/pages/index.astro b/packages/astro/test/fixtures/custom-404-locals/src/pages/index.astro new file mode 100644 index 0000000000..cf5ef9b586 --- /dev/null +++ b/packages/astro/test/fixtures/custom-404-locals/src/pages/index.astro @@ -0,0 +1,11 @@ +--- +--- + + + ++ + locale - {locale} +
diff --git a/packages/astro/test/fixtures/jsx/package.json b/packages/astro/test/fixtures/jsx/package.json index d6051421d0..8071b6125b 100644 --- a/packages/astro/test/fixtures/jsx/package.json +++ b/packages/astro/test/fixtures/jsx/package.json @@ -12,11 +12,11 @@ "astro": "workspace:*" }, "dependencies": { - "preact": "^10.25.0", + "preact": "^10.25.4", "react": "^18.3.1", "react-dom": "^18.3.1", - "solid-js": "^1.9.3", - "svelte": "^5.2.9", + "solid-js": "^1.9.4", + "svelte": "^5.17.3", "vue": "^3.5.13" } } diff --git a/packages/astro/test/fixtures/large-array/package.json b/packages/astro/test/fixtures/large-array/package.json index bb8972194c..2680bf914a 100644 --- a/packages/astro/test/fixtures/large-array/package.json +++ b/packages/astro/test/fixtures/large-array/package.json @@ -5,6 +5,6 @@ "dependencies": { "@astrojs/solid-js": "workspace:*", "astro": "workspace:*", - "solid-js": "^1.9.3" + "solid-js": "^1.9.4" } } diff --git a/packages/astro/test/fixtures/legacy-content-collections/src/pages/collections.json.js b/packages/astro/test/fixtures/legacy-content-collections/src/pages/collections.json.js index 67bafdb93e..16350c5ad3 100644 --- a/packages/astro/test/fixtures/legacy-content-collections/src/pages/collections.json.js +++ b/packages/astro/test/fixtures/legacy-content-collections/src/pages/collections.json.js @@ -9,8 +9,17 @@ export async function GET() { const withUnionSchema = stripAllRenderFn(await getCollection('with-union-schema')); const withSymlinkedContent = stripAllRenderFn(await getCollection('with-symlinked-content')); const withSymlinkedData = stripAllRenderFn(await getCollection('with-symlinked-data')); + const filtered = stripAllRenderFn(await getCollection('without-config', (entry) => entry.slug)); return new Response( - devalue.stringify({ withoutConfig, withSchemaConfig, withSlugConfig, withUnionSchema, withSymlinkedContent, withSymlinkedData }), + devalue.stringify({ + withoutConfig, + withSchemaConfig, + withSlugConfig, + withUnionSchema, + withSymlinkedContent, + withSymlinkedData, + filtered, + }), ); } diff --git a/packages/astro/test/fixtures/middleware-full-ssr/src/error.js b/packages/astro/test/fixtures/middleware-full-ssr/src/error.js index 6eed03a82c..711404e780 100644 --- a/packages/astro/test/fixtures/middleware-full-ssr/src/error.js +++ b/packages/astro/test/fixtures/middleware-full-ssr/src/error.js @@ -1 +1 @@ -throw new Error("Shoud not error at build time") +throw new Error("Should not error at build time") diff --git a/packages/astro/test/fixtures/postcss/package.json b/packages/astro/test/fixtures/postcss/package.json index c104422c23..52a4201c7b 100644 --- a/packages/astro/test/fixtures/postcss/package.json +++ b/packages/astro/test/fixtures/postcss/package.json @@ -9,11 +9,11 @@ "astro": "workspace:*", "autoprefixer": "^10.4.20", "postcss": "^8.4.49", - "solid-js": "^1.9.3", - "svelte": "^5.2.9", + "solid-js": "^1.9.4", + "svelte": "^5.17.3", "vue": "^3.5.13" }, "devDependencies": { - "postcss-preset-env": "^10.1.1" + "postcss-preset-env": "^10.1.3" } } diff --git a/packages/astro/test/fixtures/preact-compat-component/package.json b/packages/astro/test/fixtures/preact-compat-component/package.json index e09aa89e77..a0810945e7 100644 --- a/packages/astro/test/fixtures/preact-compat-component/package.json +++ b/packages/astro/test/fixtures/preact-compat-component/package.json @@ -6,6 +6,6 @@ "@astrojs/preact": "workspace:*", "@test/react-lib": "workspace:*", "astro": "workspace:*", - "preact": "^10.25.0" + "preact": "^10.25.4" } } diff --git a/packages/astro/test/fixtures/preact-component/package.json b/packages/astro/test/fixtures/preact-component/package.json index 377cb63b7e..798131eb4c 100644 --- a/packages/astro/test/fixtures/preact-component/package.json +++ b/packages/astro/test/fixtures/preact-component/package.json @@ -4,8 +4,8 @@ "private": true, "dependencies": { "@astrojs/preact": "workspace:*", - "@preact/signals": "1.3.0", + "@preact/signals": "2.0.1", "astro": "workspace:*", - "preact": "^10.25.0" + "preact": "^10.25.4" } } diff --git a/packages/astro/test/fixtures/react-and-solid/package.json b/packages/astro/test/fixtures/react-and-solid/package.json index aa436e4b6e..ce939bce3f 100644 --- a/packages/astro/test/fixtures/react-and-solid/package.json +++ b/packages/astro/test/fixtures/react-and-solid/package.json @@ -7,6 +7,6 @@ "astro": "workspace:*", "react": "^18.3.1", "react-dom": "^18.3.1", - "solid-js": "^1.9.3" + "solid-js": "^1.9.4" } } diff --git a/packages/astro/test/fixtures/reexport-astro-containing-client-component/package.json b/packages/astro/test/fixtures/reexport-astro-containing-client-component/package.json index 8c6a3152be..eb510949e6 100644 --- a/packages/astro/test/fixtures/reexport-astro-containing-client-component/package.json +++ b/packages/astro/test/fixtures/reexport-astro-containing-client-component/package.json @@ -4,6 +4,6 @@ "dependencies": { "@astrojs/preact": "workspace:", "astro": "workspace:", - "preact": "^10.25.0" + "preact": "^10.25.4" } } diff --git a/packages/astro/test/fixtures/rewrite-runtime-error-custom500/package.json b/packages/astro/test/fixtures/rewrite-runtime-error-custom500/package.json index 6d844adc4e..20f535354b 100644 --- a/packages/astro/test/fixtures/rewrite-runtime-error-custom500/package.json +++ b/packages/astro/test/fixtures/rewrite-runtime-error-custom500/package.json @@ -1,5 +1,5 @@ { - "name": "@test/rewrite-runtime-errror-custom500", + "name": "@test/rewrite-runtime-error-custom500", "version": "0.0.0", "private": true, "dependencies": { diff --git a/packages/astro/test/fixtures/rewrite-runtime-error/package.json b/packages/astro/test/fixtures/rewrite-runtime-error/package.json index af8c42709f..e371b302c8 100644 --- a/packages/astro/test/fixtures/rewrite-runtime-error/package.json +++ b/packages/astro/test/fixtures/rewrite-runtime-error/package.json @@ -1,5 +1,5 @@ { - "name": "@test/rewrite-runtime-errror", + "name": "@test/rewrite-runtime-error", "version": "0.0.0", "private": true, "dependencies": { diff --git a/packages/astro/test/fixtures/routing-priority/src/pages/empty-paths/[...slug].astro b/packages/astro/test/fixtures/routing-priority/src/pages/empty-paths/[...slug].astro new file mode 100644 index 0000000000..67130d51e8 --- /dev/null +++ b/packages/astro/test/fixtures/routing-priority/src/pages/empty-paths/[...slug].astro @@ -0,0 +1,18 @@ +--- +export function getStaticPaths() { + return [] +} +const { slug } = Astro.params +--- + + + + + +slug: {slug}
+ + diff --git a/packages/astro/test/fixtures/server-islands/hybrid/package.json b/packages/astro/test/fixtures/server-islands/hybrid/package.json index c68cb6d96a..75c476b1dc 100644 --- a/packages/astro/test/fixtures/server-islands/hybrid/package.json +++ b/packages/astro/test/fixtures/server-islands/hybrid/package.json @@ -5,6 +5,6 @@ "dependencies": { "@astrojs/svelte": "workspace:*", "astro": "workspace:*", - "svelte": "^5.2.9" + "svelte": "^5.17.3" } } diff --git a/packages/astro/test/fixtures/server-islands/ssr/package.json b/packages/astro/test/fixtures/server-islands/ssr/package.json index ace5daf9fc..dab3a77e38 100644 --- a/packages/astro/test/fixtures/server-islands/ssr/package.json +++ b/packages/astro/test/fixtures/server-islands/ssr/package.json @@ -5,6 +5,6 @@ "dependencies": { "@astrojs/svelte": "workspace:*", "astro": "workspace:*", - "svelte": "^5.2.9" + "svelte": "^5.17.3" } } diff --git a/packages/astro/test/fixtures/server-islands/ssr/src/components/ComponentWithProps.astro b/packages/astro/test/fixtures/server-islands/ssr/src/components/ComponentWithProps.astro new file mode 100644 index 0000000000..b1eeff5446 --- /dev/null +++ b/packages/astro/test/fixtures/server-islands/ssr/src/components/ComponentWithProps.astro @@ -0,0 +1,11 @@ +--- +await new Promise(resolve => setTimeout(resolve, 1)); +Astro.response.headers.set('X-Works', 'true'); +export type Props = { + greeting?: string; +}; +const greeting = Astro.props?.greeting ? Astro.props.greeting : 'default greeting'; +--- +