0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

[ci] release (alpha) (#12010)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Houston (Bot) 2024-09-16 14:15:36 -07:00 committed by GitHub
parent cfdaab257c
commit 948ad8eecf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
35 changed files with 92 additions and 83 deletions

View file

@ -50,6 +50,7 @@
"eighty-boxes-applaud",
"five-jars-hear",
"fluffy-jars-live",
"fresh-pandas-drive",
"fuzzy-pugs-live",
"giant-rocks-thank",
"healthy-ads-scream",
@ -77,6 +78,7 @@
"selfish-cats-crash",
"selfish-impalas-grin",
"sharp-worms-sniff",
"slimy-mice-dance",
"slimy-queens-hang",
"small-ties-sort",
"spotty-garlics-cheat",

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^5.0.0-alpha.8"
"astro": "^5.0.0-alpha.9"
}
}

View file

@ -14,6 +14,6 @@
"@astrojs/mdx": "^4.0.0-alpha.2",
"@astrojs/rss": "^4.0.7",
"@astrojs/sitemap": "^3.1.6",
"astro": "^5.0.0-alpha.8"
"astro": "^5.0.0-alpha.9"
}
}

View file

@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
"astro": "^5.0.0-alpha.8"
"astro": "^5.0.0-alpha.9"
},
"peerDependencies": {
"astro": "^4.0.0"

View file

@ -12,7 +12,7 @@
"test": "vitest run"
},
"dependencies": {
"astro": "^5.0.0-alpha.8",
"astro": "^5.0.0-alpha.9",
"@astrojs/react": "^3.6.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",

View file

@ -14,6 +14,6 @@
"@astrojs/alpinejs": "^0.4.0",
"@types/alpinejs": "^3.13.10",
"alpinejs": "^3.14.1",
"astro": "^5.0.0-alpha.8"
"astro": "^5.0.0-alpha.9"
}
}

View file

@ -18,7 +18,7 @@
"@astrojs/vue": "^5.0.0-alpha.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"astro": "^5.0.0-alpha.8",
"astro": "^5.0.0-alpha.9",
"preact": "^10.23.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",

View file

@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/preact": "^3.5.3",
"@preact/signals": "^1.3.0",
"astro": "^5.0.0-alpha.8",
"astro": "^5.0.0-alpha.9",
"preact": "^10.23.2"
}
}

View file

@ -14,7 +14,7 @@
"@astrojs/react": "^3.6.2",
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0",
"astro": "^5.0.0-alpha.8",
"astro": "^5.0.0-alpha.9",
"react": "^18.3.1",
"react-dom": "^18.3.1"
}

View file

@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/solid-js": "^4.4.1",
"astro": "^5.0.0-alpha.8",
"astro": "^5.0.0-alpha.9",
"solid-js": "^1.8.22"
}
}

View file

@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/svelte": "^6.0.0-alpha.0",
"astro": "^5.0.0-alpha.8",
"astro": "^5.0.0-alpha.9",
"svelte": "^4.2.19"
}
}

View file

@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/vue": "^5.0.0-alpha.0",
"astro": "^5.0.0-alpha.8",
"astro": "^5.0.0-alpha.9",
"vue": "^3.4.38"
}
}

View file

@ -12,6 +12,6 @@
},
"dependencies": {
"@astrojs/node": "^9.0.0-alpha.1",
"astro": "^5.0.0-alpha.8"
"astro": "^5.0.0-alpha.9"
}
}

View file

@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
"astro": "^5.0.0-alpha.8"
"astro": "^5.0.0-alpha.9"
},
"peerDependencies": {
"astro": "^4.0.0"

View file

@ -13,7 +13,7 @@
},
"dependencies": {
"@astrojs/node": "^9.0.0-alpha.1",
"astro": "^5.0.0-alpha.8",
"astro": "^5.0.0-alpha.9",
"html-minifier": "^4.0.0"
},
"devDependencies": {

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^5.0.0-alpha.8"
"astro": "^5.0.0-alpha.9"
}
}

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^5.0.0-alpha.8"
"astro": "^5.0.0-alpha.9"
}
}

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^5.0.0-alpha.8"
"astro": "^5.0.0-alpha.9"
}
}

View file

@ -17,7 +17,7 @@
"@tailwindcss/forms": "^0.5.9",
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0",
"astro": "^5.0.0-alpha.8",
"astro": "^5.0.0-alpha.9",
"postcss": "^8.4.45",
"react": "^18.3.1",
"react-dom": "^18.3.1",

View file

@ -14,7 +14,7 @@
"dependencies": {
"@astrojs/node": "^9.0.0-alpha.1",
"@astrojs/svelte": "^6.0.0-alpha.0",
"astro": "^5.0.0-alpha.8",
"astro": "^5.0.0-alpha.9",
"svelte": "^4.2.19"
}
}

View file

@ -10,7 +10,7 @@
"astro": "astro"
},
"dependencies": {
"astro": "^5.0.0-alpha.8",
"astro": "^5.0.0-alpha.9",
"sass": "^1.78.0",
"sharp": "^0.33.3"
}

View file

@ -15,6 +15,6 @@
"./app": "./dist/app.js"
},
"devDependencies": {
"astro": "^5.0.0-alpha.8"
"astro": "^5.0.0-alpha.9"
}
}

View file

@ -12,6 +12,6 @@
"devDependencies": {
"@astrojs/tailwind": "^6.0.0-alpha.0",
"@astrojs/node": "^9.0.0-alpha.1",
"astro": "^5.0.0-alpha.8"
"astro": "^5.0.0-alpha.9"
}
}

View file

@ -12,6 +12,6 @@
},
"dependencies": {
"@astrojs/markdoc": "^1.0.0-alpha.1",
"astro": "^5.0.0-alpha.8"
"astro": "^5.0.0-alpha.9"
}
}

View file

@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/markdown-remark": "^6.0.0-alpha.1",
"astro": "^5.0.0-alpha.8",
"astro": "^5.0.0-alpha.9",
"hast-util-select": "^6.0.2",
"rehype-autolink-headings": "^7.1.0",
"rehype-slug": "^6.0.0",

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^5.0.0-alpha.8"
"astro": "^5.0.0-alpha.9"
}
}

View file

@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/mdx": "^4.0.0-alpha.2",
"@astrojs/preact": "^3.5.3",
"astro": "^5.0.0-alpha.8",
"astro": "^5.0.0-alpha.9",
"preact": "^10.23.2"
}
}

View file

@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/preact": "^3.5.3",
"@nanostores/preact": "^0.5.2",
"astro": "^5.0.0-alpha.8",
"astro": "^5.0.0-alpha.9",
"nanostores": "^0.11.3",
"preact": "^10.23.2"
}

View file

@ -14,7 +14,7 @@
"@astrojs/mdx": "^4.0.0-alpha.2",
"@astrojs/tailwind": "^6.0.0-alpha.0",
"@types/canvas-confetti": "^1.6.4",
"astro": "^5.0.0-alpha.8",
"astro": "^5.0.0-alpha.9",
"autoprefixer": "^10.4.20",
"canvas-confetti": "^1.9.3",
"postcss": "^8.4.45",

View file

@ -12,7 +12,7 @@
"test": "vitest"
},
"dependencies": {
"astro": "^5.0.0-alpha.8",
"astro": "^5.0.0-alpha.9",
"vitest": "^2.0.5"
}
}

View file

@ -1,5 +1,13 @@
# astro
## 5.0.0-alpha.9
### Patch Changes
- [#12011](https://github.com/withastro/astro/pull/12011) [`cfdaab2`](https://github.com/withastro/astro/commit/cfdaab257cd167e0d4631ab66d9406754b3c1836) Thanks [@ArmandPhilippot](https://github.com/ArmandPhilippot)! - Fixes a type and an example in documenting the `security.checkOrigin` property of Astro config.
- [#12009](https://github.com/withastro/astro/pull/12009) [`f10a3b7`](https://github.com/withastro/astro/commit/f10a3b7fe6892bd2f4f98ad602a64cfe6efde061) Thanks [@matthewp](https://github.com/matthewp)! - Fixes use of Vitest with Astro 5
## 5.0.0-alpha.8
### Major Changes

View file

@ -1,6 +1,6 @@
{
"name": "astro",
"version": "5.0.0-alpha.8",
"version": "5.0.0-alpha.9",
"description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.",
"type": "module",
"author": "withastro",

View file

@ -49,13 +49,16 @@ type CreateViteOptions = {
fs?: typeof nodeFs;
sync: boolean;
manifest: ManifestData;
} & ({
mode: 'dev';
ssrManifest: SSRManifest;
} | {
mode: 'build';
ssrManifest?: SSRManifest;
});
} & (
| {
mode: 'dev';
ssrManifest: SSRManifest;
}
| {
mode: 'build';
ssrManifest?: SSRManifest;
}
);
const ALWAYS_NOEXTERNAL = [
// This is only because Vite's native ESM doesn't resolve "exports" correctly.
@ -138,8 +141,7 @@ export async function createVite(
astroScriptsPlugin({ settings }),
// The server plugin is for dev only and having it run during the build causes
// the build to run very slow as the filewatcher is triggered often.
mode === 'dev' &&
vitePluginAstroServer({ settings, logger, fs, manifest, ssrManifest }), // ssrManifest is only required in dev mode, where it gets created before a Vite instance is created, and get passed to this function
mode === 'dev' && vitePluginAstroServer({ settings, logger, fs, manifest, ssrManifest }), // ssrManifest is only required in dev mode, where it gets created before a Vite instance is created, and get passed to this function
envVitePlugin({ settings }),
astroEnv({ settings, mode, sync }),
markdownVitePlugin({ settings, logger }),

View file

@ -1,24 +1,23 @@
import assert from 'node:assert/strict';
import { describe, it } from 'node:test';
import { fileURLToPath } from 'node:url';
import { createVitest } from 'vitest/node'
import { createVitest } from 'vitest/node';
describe('vitest', () => {
it('basics', async () => {
const config = new URL('./fixtures/vitest/vitest.config.js', import.meta.url);
const config = new URL('./fixtures/vitest/vitest.config.js', import.meta.url);
const vitest = await createVitest('test', {
config: fileURLToPath(config),
root: fileURLToPath(new URL('./fixtures/vitest/', import.meta.url)),
watch: false
});
const vitest = await createVitest('test', {
config: fileURLToPath(config),
root: fileURLToPath(new URL('./fixtures/vitest/', import.meta.url)),
watch: false,
});
try {
await vitest.start();
} catch(_) {
assert.ok(false, 'test failed');
} finally {
try {
await vitest.start();
} catch (_) {
assert.ok(false, 'test failed');
} finally {
await vitest.close();
}
});

View file

@ -116,7 +116,7 @@ importers:
examples/basics:
dependencies:
astro:
specifier: ^5.0.0-alpha.8
specifier: ^5.0.0-alpha.9
version: link:../../packages/astro
examples/blog:
@ -131,13 +131,13 @@ importers:
specifier: ^3.1.6
version: link:../../packages/integrations/sitemap
astro:
specifier: ^5.0.0-alpha.8
specifier: ^5.0.0-alpha.9
version: link:../../packages/astro
examples/component:
devDependencies:
astro:
specifier: ^5.0.0-alpha.8
specifier: ^5.0.0-alpha.9
version: link:../../packages/astro
examples/container-with-vitest:
@ -146,7 +146,7 @@ importers:
specifier: ^3.6.2
version: link:../../packages/integrations/react
astro:
specifier: ^5.0.0-alpha.8
specifier: ^5.0.0-alpha.9
version: link:../../packages/astro
react:
specifier: ^18.3.1
@ -177,7 +177,7 @@ importers:
specifier: ^3.14.1
version: 3.14.1
astro:
specifier: ^5.0.0-alpha.8
specifier: ^5.0.0-alpha.9
version: link:../../packages/astro
examples/framework-multiple:
@ -204,7 +204,7 @@ importers:
specifier: ^18.3.0
version: 18.3.0
astro:
specifier: ^5.0.0-alpha.8
specifier: ^5.0.0-alpha.9
version: link:../../packages/astro
preact:
specifier: ^10.23.2
@ -234,7 +234,7 @@ importers:
specifier: ^1.3.0
version: 1.3.0(preact@10.23.2)
astro:
specifier: ^5.0.0-alpha.8
specifier: ^5.0.0-alpha.9
version: link:../../packages/astro
preact:
specifier: ^10.23.2
@ -252,7 +252,7 @@ importers:
specifier: ^18.3.0
version: 18.3.0
astro:
specifier: ^5.0.0-alpha.8
specifier: ^5.0.0-alpha.9
version: link:../../packages/astro
react:
specifier: ^18.3.1
@ -267,7 +267,7 @@ importers:
specifier: ^4.4.1
version: link:../../packages/integrations/solid
astro:
specifier: ^5.0.0-alpha.8
specifier: ^5.0.0-alpha.9
version: link:../../packages/astro
solid-js:
specifier: ^1.8.22
@ -279,7 +279,7 @@ importers:
specifier: ^6.0.0-alpha.0
version: link:../../packages/integrations/svelte
astro:
specifier: ^5.0.0-alpha.8
specifier: ^5.0.0-alpha.9
version: link:../../packages/astro
svelte:
specifier: ^4.2.19
@ -291,7 +291,7 @@ importers:
specifier: ^5.0.0-alpha.0
version: link:../../packages/integrations/vue
astro:
specifier: ^5.0.0-alpha.8
specifier: ^5.0.0-alpha.9
version: link:../../packages/astro
vue:
specifier: ^3.4.38
@ -303,13 +303,13 @@ importers:
specifier: ^9.0.0-alpha.1
version: 9.0.0-alpha.1(astro@packages+astro)
astro:
specifier: ^5.0.0-alpha.8
specifier: ^5.0.0-alpha.9
version: link:../../packages/astro
examples/integration:
devDependencies:
astro:
specifier: ^5.0.0-alpha.8
specifier: ^5.0.0-alpha.9
version: link:../../packages/astro
examples/middleware:
@ -318,7 +318,7 @@ importers:
specifier: ^9.0.0-alpha.1
version: 9.0.0-alpha.1(astro@packages+astro)
astro:
specifier: ^5.0.0-alpha.8
specifier: ^5.0.0-alpha.9
version: link:../../packages/astro
html-minifier:
specifier: ^4.0.0
@ -331,19 +331,19 @@ importers:
examples/minimal:
dependencies:
astro:
specifier: ^5.0.0-alpha.8
specifier: ^5.0.0-alpha.9
version: link:../../packages/astro
examples/non-html-pages:
dependencies:
astro:
specifier: ^5.0.0-alpha.8
specifier: ^5.0.0-alpha.9
version: link:../../packages/astro
examples/portfolio:
dependencies:
astro:
specifier: ^5.0.0-alpha.8
specifier: ^5.0.0-alpha.9
version: link:../../packages/astro
examples/server-islands:
@ -370,7 +370,7 @@ importers:
specifier: ^18.3.0
version: 18.3.0
astro:
specifier: ^5.0.0-alpha.8
specifier: ^5.0.0-alpha.9
version: link:../../packages/astro
postcss:
specifier: ^8.4.45
@ -394,7 +394,7 @@ importers:
specifier: ^6.0.0-alpha.0
version: link:../../packages/integrations/svelte
astro:
specifier: ^5.0.0-alpha.8
specifier: ^5.0.0-alpha.9
version: link:../../packages/astro
svelte:
specifier: ^4.2.19
@ -403,7 +403,7 @@ importers:
examples/starlog:
dependencies:
astro:
specifier: ^5.0.0-alpha.8
specifier: ^5.0.0-alpha.9
version: link:../../packages/astro
sass:
specifier: ^1.78.0
@ -415,7 +415,7 @@ importers:
examples/toolbar-app:
devDependencies:
astro:
specifier: ^5.0.0-alpha.8
specifier: ^5.0.0-alpha.9
version: link:../../packages/astro
examples/view-transitions:
@ -427,7 +427,7 @@ importers:
specifier: ^6.0.0-alpha.0
version: link:../../packages/integrations/tailwind
astro:
specifier: ^5.0.0-alpha.8
specifier: ^5.0.0-alpha.9
version: link:../../packages/astro
examples/with-markdoc:
@ -436,7 +436,7 @@ importers:
specifier: ^1.0.0-alpha.1
version: link:../../packages/integrations/markdoc
astro:
specifier: ^5.0.0-alpha.8
specifier: ^5.0.0-alpha.9
version: link:../../packages/astro
examples/with-markdown-plugins:
@ -445,7 +445,7 @@ importers:
specifier: ^6.0.0-alpha.1
version: link:../../packages/markdown/remark
astro:
specifier: ^5.0.0-alpha.8
specifier: ^5.0.0-alpha.9
version: link:../../packages/astro
hast-util-select:
specifier: ^6.0.2
@ -466,7 +466,7 @@ importers:
examples/with-markdown-shiki:
dependencies:
astro:
specifier: ^5.0.0-alpha.8
specifier: ^5.0.0-alpha.9
version: link:../../packages/astro
examples/with-mdx:
@ -478,7 +478,7 @@ importers:
specifier: ^3.5.3
version: link:../../packages/integrations/preact
astro:
specifier: ^5.0.0-alpha.8
specifier: ^5.0.0-alpha.9
version: link:../../packages/astro
preact:
specifier: ^10.23.2
@ -493,7 +493,7 @@ importers:
specifier: ^0.5.2
version: 0.5.2(nanostores@0.11.3)(preact@10.23.2)
astro:
specifier: ^5.0.0-alpha.8
specifier: ^5.0.0-alpha.9
version: link:../../packages/astro
nanostores:
specifier: ^0.11.3
@ -514,7 +514,7 @@ importers:
specifier: ^1.6.4
version: 1.6.4
astro:
specifier: ^5.0.0-alpha.8
specifier: ^5.0.0-alpha.9
version: link:../../packages/astro
autoprefixer:
specifier: ^10.4.20
@ -532,7 +532,7 @@ importers:
examples/with-vitest:
dependencies:
astro:
specifier: ^5.0.0-alpha.8
specifier: ^5.0.0-alpha.9
version: link:../../packages/astro
vitest:
specifier: ^2.0.5
@ -8806,12 +8806,10 @@ packages:
libsql@0.3.19:
resolution: {integrity: sha512-Aj5cQ5uk/6fHdmeW0TiXK42FqUlwx7ytmMLPSaUQPin5HKKKuUPD62MAbN4OEweGBBI7q1BekoEN4gPUEL6MZA==}
cpu: [x64, arm64, wasm32]
os: [darwin, linux, win32]
libsql@0.4.1:
resolution: {integrity: sha512-qZlR9Yu1zMBeLChzkE/cKfoKV3Esp9cn9Vx5Zirn4AVhDWPcjYhKwbtJcMuHehgk3mH+fJr9qW+3vesBWbQpBg==}
cpu: [x64, arm64, wasm32]
os: [darwin, linux, win32]
lilconfig@2.1.0: