diff --git a/.changeset/hot-dingos-dress.md b/.changeset/hot-dingos-dress.md new file mode 100644 index 0000000000000..8a70876433837 --- /dev/null +++ b/.changeset/hot-dingos-dress.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Fixes an issue where with `i18n` enabled, Astro couldn't render the `404.astro` component for non-existent routes. diff --git a/.changeset/unlucky-kids-compete.md b/.changeset/unlucky-kids-compete.md deleted file mode 100644 index e4b59791ea21e..0000000000000 --- a/.changeset/unlucky-kids-compete.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fixes a regression where Astro was trying to access `Request.headers` diff --git a/.github/scripts/announce.mjs b/.github/scripts/announce.mjs index 2e05a7ae8a201..df73040372ebd 100755 --- a/.github/scripts/announce.mjs +++ b/.github/scripts/announce.mjs @@ -6,7 +6,7 @@ import { setOutput } from './utils.mjs'; const { GITHUB_REF = 'main' } = process.env; const baseUrl = new URL(`https://github.com/withastro/astro/blob/${GITHUB_REF}/`); -const emojis = ['šŸŽ‰', 'šŸ„³', 'šŸš€', 'šŸ§‘ā€šŸš€', 'šŸŽŠ', 'šŸ†', 'āœ…', 'šŸ¤©', 'šŸ¤–', 'šŸ™Œ']; +const emojis = ['šŸŽ‰', 'šŸ„³', 'šŸš€', 'šŸ§‘', 'šŸŽŠ', 'šŸ†', 'āœ…', 'šŸ¤©', 'šŸ¤–', 'šŸ™Œ']; const descriptors = [ 'new releases', 'hot and fresh updates', @@ -141,7 +141,7 @@ async function generateMessage() { message += `\nAlso ${item(extraVerbs)}:`; const remainingPackages = packages.filter((p) => p.name !== name); - for (const { name, version, url } of remainingPackages) { + for (const { name, version, _url } of remainingPackages) { message += `\nā€¢ \`${name}@${version}\``; } @@ -159,7 +159,7 @@ async function generateMessage() { async function run() { const content = await generateMessage(); - console.log(content); + console.info(content); setOutput('DISCORD_MESSAGE', content); } diff --git a/benchmark/bench/_template.js b/benchmark/bench/_template.js index 867ecf13b6c33..ae96d72ad5229 100644 --- a/benchmark/bench/_template.js +++ b/benchmark/bench/_template.js @@ -6,7 +6,7 @@ export const defaultProject = 'project-name'; * Use `console.log` to report the results too. Logs that start with 10 `=` * and end with 10 `=` will be extracted by CI to display in the PR comment. * Usually after the first 10 `=` you'll want to add a title like `#### Test`. - * @param {URL} projectDir - * @param {URL} outputFile + * @param {URL} _projectDir + * @param {URL} _outputFile */ -export async function run(projectDir, outputFile) {} +export async function run(_projectDir, _outputFile) {} diff --git a/examples/basics/package.json b/examples/basics/package.json index c97f2010ed96c..6d8ae4597cf8d 100644 --- a/examples/basics/package.json +++ b/examples/basics/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.16.14" + "astro": "^4.16.15" } } diff --git a/examples/blog/package.json b/examples/blog/package.json index 2dea4dac49313..2525c7cdbedc4 100644 --- a/examples/blog/package.json +++ b/examples/blog/package.json @@ -14,6 +14,6 @@ "@astrojs/mdx": "^3.1.9", "@astrojs/rss": "^4.0.9", "@astrojs/sitemap": "^3.2.1", - "astro": "^4.16.14" + "astro": "^4.16.15" } } diff --git a/examples/component/package.json b/examples/component/package.json index 9d7678431369d..53c1507b90078 100644 --- a/examples/component/package.json +++ b/examples/component/package.json @@ -15,7 +15,7 @@ ], "scripts": {}, "devDependencies": { - "astro": "^4.16.14" + "astro": "^4.16.15" }, "peerDependencies": { "astro": "^4.0.0" diff --git a/examples/container-with-vitest/package.json b/examples/container-with-vitest/package.json index 9525e9627e263..fa74adc5c843e 100644 --- a/examples/container-with-vitest/package.json +++ b/examples/container-with-vitest/package.json @@ -12,7 +12,7 @@ "test": "vitest run" }, "dependencies": { - "astro": "^4.16.14", + "astro": "^4.16.15", "@astrojs/react": "^3.6.3", "react": "^18.3.1", "react-dom": "^18.3.1", diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json index ab1f6169e88f1..976fe2e5002a5 100644 --- a/examples/framework-alpine/package.json +++ b/examples/framework-alpine/package.json @@ -14,6 +14,6 @@ "@astrojs/alpinejs": "^0.4.0", "@types/alpinejs": "^3.13.10", "alpinejs": "^3.14.3", - "astro": "^4.16.14" + "astro": "^4.16.15" } } diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json index 1d7b9ca948b71..8a9e8f726b131 100644 --- a/examples/framework-lit/package.json +++ b/examples/framework-lit/package.json @@ -13,7 +13,7 @@ "dependencies": { "@astrojs/lit": "^4.3.0", "@webcomponents/template-shadowroot": "^0.2.1", - "astro": "^4.16.14", + "astro": "^4.16.15", "lit": "^3.2.1" } } diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json index fddfe3a6edec9..837404856c7a7 100644 --- a/examples/framework-multiple/package.json +++ b/examples/framework-multiple/package.json @@ -18,7 +18,7 @@ "@astrojs/vue": "^4.5.3", "@types/react": "^18.3.12", "@types/react-dom": "^18.3.1", - "astro": "^4.16.14", + "astro": "^4.16.15", "preact": "^10.24.3", "react": "^18.3.1", "react-dom": "^18.3.1", diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json index 13196eda3e84b..751ac89098d77 100644 --- a/examples/framework-preact/package.json +++ b/examples/framework-preact/package.json @@ -13,7 +13,7 @@ "dependencies": { "@astrojs/preact": "^3.5.4", "@preact/signals": "^1.3.0", - "astro": "^4.16.14", + "astro": "^4.16.15", "preact": "^10.24.3" } } diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index eaa28be2cbcfc..63c564fdc4a03 100644 --- a/examples/framework-react/package.json +++ b/examples/framework-react/package.json @@ -14,7 +14,7 @@ "@astrojs/react": "^3.6.3", "@types/react": "^18.3.12", "@types/react-dom": "^18.3.1", - "astro": "^4.16.14", + "astro": "^4.16.15", "react": "^18.3.1", "react-dom": "^18.3.1" } diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json index 839f263da28cb..1e3b7ece7d8f3 100644 --- a/examples/framework-solid/package.json +++ b/examples/framework-solid/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@astrojs/solid-js": "^4.4.4", - "astro": "^4.16.14", + "astro": "^4.16.15", "solid-js": "^1.9.3" } } diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json index b367c95883b33..c4020527d0299 100644 --- a/examples/framework-svelte/package.json +++ b/examples/framework-svelte/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@astrojs/svelte": "^6.0.2", - "astro": "^4.16.14", + "astro": "^4.16.15", "svelte": "^5.1.16" } } diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json index 72b1eae2d2c64..441314692eb9a 100644 --- a/examples/framework-vue/package.json +++ b/examples/framework-vue/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@astrojs/vue": "^4.5.3", - "astro": "^4.16.14", + "astro": "^4.16.15", "vue": "^3.5.12" } } diff --git a/examples/hackernews/package.json b/examples/hackernews/package.json index 7706bac81d137..f3479c3997b12 100644 --- a/examples/hackernews/package.json +++ b/examples/hackernews/package.json @@ -12,6 +12,6 @@ }, "dependencies": { "@astrojs/node": "^8.3.4", - "astro": "^4.16.14" + "astro": "^4.16.15" } } diff --git a/examples/integration/package.json b/examples/integration/package.json index 4d39c18f75b48..87744b0efec5e 100644 --- a/examples/integration/package.json +++ b/examples/integration/package.json @@ -15,7 +15,7 @@ ], "scripts": {}, "devDependencies": { - "astro": "^4.16.14" + "astro": "^4.16.15" }, "peerDependencies": { "astro": "^4.0.0" diff --git a/examples/minimal/package.json b/examples/minimal/package.json index dc0795709526c..231fca1a65368 100644 --- a/examples/minimal/package.json +++ b/examples/minimal/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.16.14" + "astro": "^4.16.15" } } diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json index 648b40582664c..d7c0cd880aed2 100644 --- a/examples/portfolio/package.json +++ b/examples/portfolio/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.16.14" + "astro": "^4.16.15" } } diff --git a/examples/ssr/package.json b/examples/ssr/package.json index 1401a29b7d9eb..ed9a728fbfc3b 100644 --- a/examples/ssr/package.json +++ b/examples/ssr/package.json @@ -14,7 +14,7 @@ "dependencies": { "@astrojs/node": "^8.3.4", "@astrojs/svelte": "^6.0.2", - "astro": "^4.16.14", + "astro": "^4.16.15", "svelte": "^5.1.16" } } diff --git a/examples/starlog/package.json b/examples/starlog/package.json index c515133a55bae..059139b9acb17 100644 --- a/examples/starlog/package.json +++ b/examples/starlog/package.json @@ -10,7 +10,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.16.14", + "astro": "^4.16.15", "sass": "^1.80.6", "sharp": "^0.33.3" } diff --git a/examples/toolbar-app/package.json b/examples/toolbar-app/package.json index 2d7584ea522fd..e6e693a4f9629 100644 --- a/examples/toolbar-app/package.json +++ b/examples/toolbar-app/package.json @@ -15,7 +15,7 @@ "./app": "./dist/app.js" }, "devDependencies": { - "astro": "^4.16.14", + "astro": "^4.16.15", "@types/node": "^18.17.8" } } diff --git a/examples/with-markdoc/package.json b/examples/with-markdoc/package.json index bd0e1cf9d04d2..513b46dec7f93 100644 --- a/examples/with-markdoc/package.json +++ b/examples/with-markdoc/package.json @@ -12,6 +12,6 @@ }, "dependencies": { "@astrojs/markdoc": "^0.11.5", - "astro": "^4.16.14" + "astro": "^4.16.15" } } diff --git a/examples/with-mdx/package.json b/examples/with-mdx/package.json index 12cb8963180fc..fc651bbd26696 100644 --- a/examples/with-mdx/package.json +++ b/examples/with-mdx/package.json @@ -13,7 +13,7 @@ "dependencies": { "@astrojs/mdx": "^3.1.9", "@astrojs/preact": "^3.5.4", - "astro": "^4.16.14", + "astro": "^4.16.15", "preact": "^10.24.3" } } diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json index 36260fd8ba559..9e82b2452d5b4 100644 --- a/examples/with-nanostores/package.json +++ b/examples/with-nanostores/package.json @@ -13,7 +13,7 @@ "dependencies": { "@astrojs/preact": "^3.5.4", "@nanostores/preact": "^0.5.2", - "astro": "^4.16.14", + "astro": "^4.16.15", "nanostores": "^0.11.3", "preact": "^10.24.3" } diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json index 0f4a99c373e35..79ffb00390b38 100644 --- a/examples/with-tailwindcss/package.json +++ b/examples/with-tailwindcss/package.json @@ -14,7 +14,7 @@ "@astrojs/mdx": "^3.1.9", "@astrojs/tailwind": "^5.1.2", "@types/canvas-confetti": "^1.6.4", - "astro": "^4.16.14", + "astro": "^4.16.15", "autoprefixer": "^10.4.20", "canvas-confetti": "^1.9.3", "postcss": "^8.4.47", diff --git a/examples/with-vitest/package.json b/examples/with-vitest/package.json index 14d77f5c68e37..bcc71704d6a63 100644 --- a/examples/with-vitest/package.json +++ b/examples/with-vitest/package.json @@ -12,7 +12,7 @@ "test": "vitest" }, "dependencies": { - "astro": "^4.16.14", + "astro": "^4.16.15", "vitest": "^2.1.4" } } diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index c873a77d5724a..3d66e82cb267d 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,11 @@ # astro +## 4.16.15 + +### Patch Changes + +- [#12498](https://github.com/withastro/astro/pull/12498) [`b140a3f`](https://github.com/withastro/astro/commit/b140a3f6d821127f927b7cb938294549e41c5168) Thanks [@ematipico](https://github.com/ematipico)! - Fixes a regression where Astro was trying to access `Request.headers` + ## 4.16.14 ### Patch Changes diff --git a/packages/astro/package.json b/packages/astro/package.json index 0a4d34f651974..6e0fb3a661c3c 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "astro", - "version": "4.16.14", + "version": "4.16.15", "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/i18n/middleware.ts b/packages/astro/src/i18n/middleware.ts index 097332805759a..f4649dce2d32a 100644 --- a/packages/astro/src/i18n/middleware.ts +++ b/packages/astro/src/i18n/middleware.ts @@ -1,6 +1,6 @@ import type { APIContext, MiddlewareHandler, SSRManifest } from '../@types/astro.js'; import type { SSRManifestI18n } from '../core/app/types.js'; -import { ROUTE_TYPE_HEADER } from '../core/constants.js'; +import { REROUTE_DIRECTIVE_HEADER, ROUTE_TYPE_HEADER } from '../core/constants.js'; import { type MiddlewarePayload, normalizeTheLocale, @@ -65,6 +65,12 @@ export function createI18nMiddleware( return async (context, next) => { const response = await next(); const type = response.headers.get(ROUTE_TYPE_HEADER); + + // This is case where we are internally rendering a 404/500, so we need to bypass checks that were done already + const isReroute = response.headers.get(REROUTE_DIRECTIVE_HEADER); + if (isReroute === 'no' && typeof i18n.fallback === 'undefined') { + return response; + } // If the route we're processing is not a page, then we ignore it if (type !== 'page' && type !== 'fallback') { return response; diff --git a/packages/astro/src/vite-plugin-astro-server/request.ts b/packages/astro/src/vite-plugin-astro-server/request.ts index b231bfde35c67..d45cf8b55c2ee 100644 --- a/packages/astro/src/vite-plugin-astro-server/request.ts +++ b/packages/astro/src/vite-plugin-astro-server/request.ts @@ -63,7 +63,6 @@ export async function handleRequest({ url, pathname: resolvedPathname, body, - origin, pipeline, manifestData, incomingRequest: incomingRequest, diff --git a/packages/astro/src/vite-plugin-astro-server/route.ts b/packages/astro/src/vite-plugin-astro-server/route.ts index 8de52d158bb03..5e888ceaf38f9 100644 --- a/packages/astro/src/vite-plugin-astro-server/route.ts +++ b/packages/astro/src/vite-plugin-astro-server/route.ts @@ -127,7 +127,6 @@ type HandleRoute = { url: URL; pathname: string; body: ArrayBuffer | undefined; - origin: string; manifestData: ManifestData; incomingRequest: http.IncomingMessage; incomingResponse: http.ServerResponse; @@ -139,7 +138,6 @@ export async function handleRoute({ url, pathname, body, - origin, pipeline, manifestData, incomingRequest, @@ -156,12 +154,10 @@ export async function handleRoute({ let request: Request; let renderContext: RenderContext; let mod: ComponentInstance | undefined = undefined; - let options: SSROptions | undefined = undefined; let route: RouteData; const middleware = (await loadMiddleware(loader)).onRequest; const locals = Reflect.get(incomingRequest, clientLocalsSymbol); - const filePath: URL | undefined = matchedRoute.filePath; const { preloadedComponent } = matchedRoute; route = matchedRoute.route; // Allows adapters to pass in locals in dev mode. @@ -181,15 +177,6 @@ export async function handleRoute({ if (value) incomingResponse.setHeader(name, value); } - options = { - pipeline, - filePath, - preload: preloadedComponent, - pathname, - request, - route, - }; - mod = preloadedComponent; renderContext = await RenderContext.create({ @@ -248,18 +235,17 @@ export async function handleRoute({ if (statusCode === 404 && response.headers.get(REROUTE_DIRECTIVE_HEADER) !== 'no') { const fourOhFourRoute = await matchRoute('/404', manifestData, pipeline); - if (options && options.route !== fourOhFourRoute?.route) - return handleRoute({ - ...options, - matchedRoute: fourOhFourRoute, - url: new URL(pathname, url), - body, - origin, + if (fourOhFourRoute) { + renderContext = await RenderContext.create({ + locals, pipeline, - manifestData, - incomingRequest, - incomingResponse, + pathname, + middleware: isDefaultPrerendered404(fourOhFourRoute.route) ? undefined : middleware, + request, + routeData: fourOhFourRoute.route, }); + response = await renderContext.render(fourOhFourRoute.preloadedComponent); + } } // We remove the internally-used header before we send the response to the user agent. diff --git a/packages/astro/test/fixtures/i18n-routing/src/pages/404.astro b/packages/astro/test/fixtures/i18n-routing/src/pages/404.astro index fce4a30b836c4..bfde753739fef 100644 --- a/packages/astro/test/fixtures/i18n-routing/src/pages/404.astro +++ b/packages/astro/test/fixtures/i18n-routing/src/pages/404.astro @@ -7,6 +7,7 @@ const currentLocale = Astro.currentLocale;

404 - Not Found

+

Custom 404

Current Locale: {currentLocale ? currentLocale : "none"}

diff --git a/packages/astro/test/i18n-routing.test.js b/packages/astro/test/i18n-routing.test.js index 8e6c672bee28b..b557038277fff 100644 --- a/packages/astro/test/i18n-routing.test.js +++ b/packages/astro/test/i18n-routing.test.js @@ -83,6 +83,12 @@ describe('[DEV] i18n routing', () => { assert.equal((await response.text()).includes('Endurance'), true); }); + it('should render the 404.astro file', async () => { + const response = await fixture.fetch('/do-not-exist'); + assert.equal(response.status, 404); + assert.match(await response.text(), /Custom 404/); + }); + it('should return the correct locale on 404 page for non existing default locale page', async () => { const response = await fixture.fetch('/es/nonexistent-page'); assert.equal(response.status, 404); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4e4df85e6e99e..366d99160c27e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -142,7 +142,7 @@ importers: examples/basics: dependencies: astro: - specifier: ^4.16.14 + specifier: ^4.16.15 version: link:../../packages/astro examples/blog: @@ -157,13 +157,13 @@ importers: specifier: ^3.2.1 version: link:../../packages/integrations/sitemap astro: - specifier: ^4.16.14 + specifier: ^4.16.15 version: link:../../packages/astro examples/component: devDependencies: astro: - specifier: ^4.16.14 + specifier: ^4.16.15 version: link:../../packages/astro examples/container-with-vitest: @@ -172,7 +172,7 @@ importers: specifier: ^3.6.3 version: link:../../packages/integrations/react astro: - specifier: ^4.16.14 + specifier: ^4.16.15 version: link:../../packages/astro react: specifier: ^18.3.1 @@ -203,7 +203,7 @@ importers: specifier: ^3.14.3 version: 3.14.3 astro: - specifier: ^4.16.14 + specifier: ^4.16.15 version: link:../../packages/astro examples/framework-lit: @@ -215,7 +215,7 @@ importers: specifier: ^0.2.1 version: 0.2.1 astro: - specifier: ^4.16.14 + specifier: ^4.16.15 version: link:../../packages/astro lit: specifier: ^3.2.1 @@ -245,7 +245,7 @@ importers: specifier: ^18.3.1 version: 18.3.1 astro: - specifier: ^4.16.14 + specifier: ^4.16.15 version: link:../../packages/astro preact: specifier: ^10.24.3 @@ -275,7 +275,7 @@ importers: specifier: ^1.3.0 version: 1.3.0(preact@10.24.3) astro: - specifier: ^4.16.14 + specifier: ^4.16.15 version: link:../../packages/astro preact: specifier: ^10.24.3 @@ -293,7 +293,7 @@ importers: specifier: ^18.3.1 version: 18.3.1 astro: - specifier: ^4.16.14 + specifier: ^4.16.15 version: link:../../packages/astro react: specifier: ^18.3.1 @@ -308,7 +308,7 @@ importers: specifier: ^4.4.4 version: link:../../packages/integrations/solid astro: - specifier: ^4.16.14 + specifier: ^4.16.15 version: link:../../packages/astro solid-js: specifier: ^1.9.3 @@ -320,7 +320,7 @@ importers: specifier: ^6.0.2 version: link:../../packages/integrations/svelte astro: - specifier: ^4.16.14 + specifier: ^4.16.15 version: link:../../packages/astro svelte: specifier: ^5.1.16 @@ -332,7 +332,7 @@ importers: specifier: ^4.5.3 version: link:../../packages/integrations/vue astro: - specifier: ^4.16.14 + specifier: ^4.16.15 version: link:../../packages/astro vue: specifier: ^3.5.12 @@ -344,25 +344,25 @@ importers: specifier: ^8.3.4 version: 8.3.4(astro@packages+astro) astro: - specifier: ^4.16.14 + specifier: ^4.16.15 version: link:../../packages/astro examples/integration: devDependencies: astro: - specifier: ^4.16.14 + specifier: ^4.16.15 version: link:../../packages/astro examples/minimal: dependencies: astro: - specifier: ^4.16.14 + specifier: ^4.16.15 version: link:../../packages/astro examples/portfolio: dependencies: astro: - specifier: ^4.16.14 + specifier: ^4.16.15 version: link:../../packages/astro examples/ssr: @@ -374,7 +374,7 @@ importers: specifier: ^6.0.2 version: link:../../packages/integrations/svelte astro: - specifier: ^4.16.14 + specifier: ^4.16.15 version: link:../../packages/astro svelte: specifier: ^5.1.16 @@ -383,7 +383,7 @@ importers: examples/starlog: dependencies: astro: - specifier: ^4.16.14 + specifier: ^4.16.15 version: link:../../packages/astro sass: specifier: ^1.80.6 @@ -398,7 +398,7 @@ importers: specifier: ^18.17.8 version: 18.19.50 astro: - specifier: ^4.16.14 + specifier: ^4.16.15 version: link:../../packages/astro examples/with-markdoc: @@ -407,7 +407,7 @@ importers: specifier: ^0.11.5 version: link:../../packages/integrations/markdoc astro: - specifier: ^4.16.14 + specifier: ^4.16.15 version: link:../../packages/astro examples/with-mdx: @@ -419,7 +419,7 @@ importers: specifier: ^3.5.4 version: link:../../packages/integrations/preact astro: - specifier: ^4.16.14 + specifier: ^4.16.15 version: link:../../packages/astro preact: specifier: ^10.24.3 @@ -434,7 +434,7 @@ importers: specifier: ^0.5.2 version: 0.5.2(nanostores@0.11.3)(preact@10.24.3) astro: - specifier: ^4.16.14 + specifier: ^4.16.15 version: link:../../packages/astro nanostores: specifier: ^0.11.3 @@ -455,7 +455,7 @@ importers: specifier: ^1.6.4 version: 1.6.4 astro: - specifier: ^4.16.14 + specifier: ^4.16.15 version: link:../../packages/astro autoprefixer: specifier: ^10.4.20 @@ -473,7 +473,7 @@ importers: examples/with-vitest: dependencies: astro: - specifier: ^4.16.14 + specifier: ^4.16.15 version: link:../../packages/astro vitest: specifier: ^2.1.4 diff --git a/scripts/cmd/build.js b/scripts/cmd/build.js index e1c7129938e05..3fd24c1da1c22 100644 --- a/scripts/cmd/build.js +++ b/scripts/cmd/build.js @@ -101,11 +101,11 @@ export default async function build(...args) { console.error(dim(`[${date}] `) + red(error || result.errors.join('\n'))); } else { if (result.warnings.length) { - console.log( - dim(`[${date}] `) + yellow('āš  updated with warnings:\n' + result.warnings.join('\n')), + console.info( + dim(`[${date}] `) + yellow('! updated with warnings:\n' + result.warnings.join('\n')), ); } - console.log(dim(`[${date}] `) + green('āœ” updated')); + console.info(dim(`[${date}] `) + green('āˆš updated')); } }); },