forked from withastro/astro
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into arpan-withastro#12506-ref
- Loading branch information
Showing
77 changed files
with
773 additions
and
348 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'astro': patch | ||
--- | ||
|
||
Removes the misleading log message telling that a custom renderer is not recognized while it clearly is and works. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@astrojs/upgrade': patch | ||
--- | ||
|
||
Fixes an issue where running `upgrade` in a directory without `astro` installed shows a false success message |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'astro': patch | ||
--- | ||
|
||
Fixes an issue where the `experimental.svg` had incorrect type, resulting in some errors in the editors. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@astrojs/db': patch | ||
--- | ||
|
||
Fixes a bug that caused an error to be logged about invalid entrypoints |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'astro': patch | ||
--- | ||
|
||
Correctly handles images in content collections with uppercase file extensions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { fileURLToPath } from 'node:url'; | ||
import { exec } from 'tinyexec'; | ||
import { beforeAll, bench, describe } from 'vitest'; | ||
import { astroBin, makeProject } from './_util.js'; | ||
let streamingApp; | ||
let nonStreamingApp; | ||
beforeAll(async () => { | ||
const render = await makeProject('render-bench'); | ||
const root = fileURLToPath(render); | ||
await exec(astroBin, ['build'], { | ||
nodeOptions: { | ||
cwd: root, | ||
stdio: 'inherit', | ||
}, | ||
}); | ||
const entry = new URL('./dist/server/entry.mjs', `file://${root}`); | ||
const { manifest, createApp } = await import(entry); | ||
streamingApp = createApp(manifest, true); | ||
nonStreamingApp = createApp(manifest, false); | ||
}, 900000); | ||
|
||
describe('Bench rendering', () => { | ||
bench('Rendering: streaming [true], .astro file', async () => { | ||
const request = new Request(new URL('http://exmpale.com/astro')); | ||
await streamingApp.render(request); | ||
}); | ||
bench('Rendering: streaming [true], .md file', async () => { | ||
const request = new Request(new URL('http://exmpale.com/md')); | ||
await streamingApp.render(request); | ||
}); | ||
bench('Rendering: streaming [true], .mdx file', async () => { | ||
const request = new Request(new URL('http://exmpale.com/mdx')); | ||
await streamingApp.render(request); | ||
}); | ||
|
||
bench('Rendering: streaming [false], .astro file', async () => { | ||
const request = new Request(new URL('http://exmpale.com/astro')); | ||
await nonStreamingApp.render(request); | ||
}); | ||
bench('Rendering: streaming [false], .md file', async () => { | ||
const request = new Request(new URL('http://exmpale.com/md')); | ||
await nonStreamingApp.render(request); | ||
}); | ||
bench('Rendering: streaming [false], .mdx file', async () => { | ||
const request = new Request(new URL('http://exmpale.com/mdx')); | ||
await nonStreamingApp.render(request); | ||
}); | ||
}); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.