0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-30 22:03:56 -05:00

[ci] release (beta) (#12491)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Houston (Bot) 2024-11-21 08:12:29 -08:00 committed by GitHub
parent 23dc937435
commit 10beb174e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
29 changed files with 60 additions and 54 deletions

View file

@ -102,6 +102,7 @@
"proud-terms-swim", "proud-terms-swim",
"quick-ads-exercise", "quick-ads-exercise",
"quick-onions-leave", "quick-onions-leave",
"rotten-dodos-judge",
"rotten-phones-scream", "rotten-phones-scream",
"selfish-cats-crash", "selfish-cats-crash",
"selfish-impalas-grin", "selfish-impalas-grin",
@ -115,7 +116,6 @@
"spotty-garlics-cheat", "spotty-garlics-cheat",
"strange-sheep-film", "strange-sheep-film",
"strong-months-grab", "strong-months-grab",
"strong-stingrays-provide",
"sweet-timers-smash", "sweet-timers-smash",
"tall-waves-impress", "tall-waves-impress",
"tame-pumpkins-swim", "tame-pumpkins-swim",

View file

@ -10,6 +10,6 @@
"astro": "astro" "astro": "astro"
}, },
"dependencies": { "dependencies": {
"astro": "^5.0.0-beta.9" "astro": "^5.0.0-beta.10"
} }
} }

View file

@ -13,6 +13,6 @@
"@astrojs/mdx": "^4.0.0-beta.3", "@astrojs/mdx": "^4.0.0-beta.3",
"@astrojs/rss": "^4.0.9", "@astrojs/rss": "^4.0.9",
"@astrojs/sitemap": "^3.2.1", "@astrojs/sitemap": "^3.2.1",
"astro": "^5.0.0-beta.9" "astro": "^5.0.0-beta.10"
} }
} }

View file

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

View file

@ -11,7 +11,7 @@
"test": "vitest run" "test": "vitest run"
}, },
"dependencies": { "dependencies": {
"astro": "^5.0.0-beta.9", "astro": "^5.0.0-beta.10",
"@astrojs/react": "^3.6.3-beta.0", "@astrojs/react": "^3.6.3-beta.0",
"react": "^18.3.1", "react": "^18.3.1",
"react-dom": "^18.3.1", "react-dom": "^18.3.1",

View file

@ -13,6 +13,6 @@
"@astrojs/alpinejs": "^0.4.0", "@astrojs/alpinejs": "^0.4.0",
"@types/alpinejs": "^3.13.10", "@types/alpinejs": "^3.13.10",
"alpinejs": "^3.14.3", "alpinejs": "^3.14.3",
"astro": "^5.0.0-beta.9" "astro": "^5.0.0-beta.10"
} }
} }

View file

@ -17,7 +17,7 @@
"@astrojs/vue": "^5.0.0-beta.2", "@astrojs/vue": "^5.0.0-beta.2",
"@types/react": "^18.3.12", "@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1", "@types/react-dom": "^18.3.1",
"astro": "^5.0.0-beta.9", "astro": "^5.0.0-beta.10",
"preact": "^10.24.3", "preact": "^10.24.3",
"react": "^18.3.1", "react": "^18.3.1",
"react-dom": "^18.3.1", "react-dom": "^18.3.1",

View file

@ -12,7 +12,7 @@
"dependencies": { "dependencies": {
"@astrojs/preact": "^3.5.4-beta.0", "@astrojs/preact": "^3.5.4-beta.0",
"@preact/signals": "^1.3.0", "@preact/signals": "^1.3.0",
"astro": "^5.0.0-beta.9", "astro": "^5.0.0-beta.10",
"preact": "^10.24.3" "preact": "^10.24.3"
} }
} }

View file

@ -13,7 +13,7 @@
"@astrojs/react": "^3.6.3-beta.0", "@astrojs/react": "^3.6.3-beta.0",
"@types/react": "^18.3.12", "@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1", "@types/react-dom": "^18.3.1",
"astro": "^5.0.0-beta.9", "astro": "^5.0.0-beta.10",
"react": "^18.3.1", "react": "^18.3.1",
"react-dom": "^18.3.1" "react-dom": "^18.3.1"
} }

View file

@ -11,7 +11,7 @@
}, },
"dependencies": { "dependencies": {
"@astrojs/solid-js": "^4.4.4-beta.0", "@astrojs/solid-js": "^4.4.4-beta.0",
"astro": "^5.0.0-beta.9", "astro": "^5.0.0-beta.10",
"solid-js": "^1.9.3" "solid-js": "^1.9.3"
} }
} }

View file

@ -11,7 +11,7 @@
}, },
"dependencies": { "dependencies": {
"@astrojs/svelte": "^6.0.2-beta.0", "@astrojs/svelte": "^6.0.2-beta.0",
"astro": "^5.0.0-beta.9", "astro": "^5.0.0-beta.10",
"svelte": "^5.1.16" "svelte": "^5.1.16"
} }
} }

View file

@ -11,7 +11,7 @@
}, },
"dependencies": { "dependencies": {
"@astrojs/vue": "^5.0.0-beta.2", "@astrojs/vue": "^5.0.0-beta.2",
"astro": "^5.0.0-beta.9", "astro": "^5.0.0-beta.10",
"vue": "^3.5.12" "vue": "^3.5.12"
} }
} }

View file

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

View file

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

View file

@ -10,6 +10,6 @@
"astro": "astro" "astro": "astro"
}, },
"dependencies": { "dependencies": {
"astro": "^5.0.0-beta.9" "astro": "^5.0.0-beta.10"
} }
} }

View file

@ -10,6 +10,6 @@
"astro": "astro" "astro": "astro"
}, },
"dependencies": { "dependencies": {
"astro": "^5.0.0-beta.9" "astro": "^5.0.0-beta.10"
} }
} }

View file

@ -13,7 +13,7 @@
"dependencies": { "dependencies": {
"@astrojs/node": "^9.0.0-alpha.1", "@astrojs/node": "^9.0.0-alpha.1",
"@astrojs/svelte": "^6.0.2-beta.0", "@astrojs/svelte": "^6.0.2-beta.0",
"astro": "^5.0.0-beta.9", "astro": "^5.0.0-beta.10",
"svelte": "^5.1.16" "svelte": "^5.1.16"
} }
} }

View file

@ -9,7 +9,7 @@
"astro": "astro" "astro": "astro"
}, },
"dependencies": { "dependencies": {
"astro": "^5.0.0-beta.9", "astro": "^5.0.0-beta.10",
"sass": "^1.80.6", "sass": "^1.80.6",
"sharp": "^0.33.3" "sharp": "^0.33.3"
} }

View file

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

View file

@ -11,6 +11,6 @@
}, },
"dependencies": { "dependencies": {
"@astrojs/markdoc": "^0.12.0-beta.0", "@astrojs/markdoc": "^0.12.0-beta.0",
"astro": "^5.0.0-beta.9" "astro": "^5.0.0-beta.10"
} }
} }

View file

@ -12,7 +12,7 @@
"dependencies": { "dependencies": {
"@astrojs/mdx": "^4.0.0-beta.3", "@astrojs/mdx": "^4.0.0-beta.3",
"@astrojs/preact": "^3.5.4-beta.0", "@astrojs/preact": "^3.5.4-beta.0",
"astro": "^5.0.0-beta.9", "astro": "^5.0.0-beta.10",
"preact": "^10.24.3" "preact": "^10.24.3"
} }
} }

View file

@ -12,7 +12,7 @@
"dependencies": { "dependencies": {
"@astrojs/preact": "^3.5.4-beta.0", "@astrojs/preact": "^3.5.4-beta.0",
"@nanostores/preact": "^0.5.2", "@nanostores/preact": "^0.5.2",
"astro": "^5.0.0-beta.9", "astro": "^5.0.0-beta.10",
"nanostores": "^0.11.3", "nanostores": "^0.11.3",
"preact": "^10.24.3" "preact": "^10.24.3"
} }

View file

@ -13,7 +13,7 @@
"@astrojs/mdx": "^4.0.0-beta.3", "@astrojs/mdx": "^4.0.0-beta.3",
"@astrojs/tailwind": "^5.1.2", "@astrojs/tailwind": "^5.1.2",
"@types/canvas-confetti": "^1.6.4", "@types/canvas-confetti": "^1.6.4",
"astro": "^5.0.0-beta.9", "astro": "^5.0.0-beta.10",
"autoprefixer": "^10.4.20", "autoprefixer": "^10.4.20",
"canvas-confetti": "^1.9.3", "canvas-confetti": "^1.9.3",
"postcss": "^8.4.47", "postcss": "^8.4.47",

View file

@ -11,7 +11,7 @@
"test": "vitest" "test": "vitest"
}, },
"dependencies": { "dependencies": {
"astro": "^5.0.0-beta.9", "astro": "^5.0.0-beta.10",
"vitest": "^2.1.4" "vitest": "^2.1.4"
} }
} }

View file

@ -1,5 +1,11 @@
# astro # astro
## 5.0.0-beta.10
### Patch Changes
- [#12486](https://github.com/withastro/astro/pull/12486) [`dc3d842`](https://github.com/withastro/astro/commit/dc3d842e4c6f3b7e59da8a13447a1450013e10dc) Thanks [@matthewp](https://github.com/matthewp)! - Call server island early so it can set headers
## 5.0.0-beta.9 ## 5.0.0-beta.9
### Minor Changes ### Minor Changes

View file

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

View file

@ -138,9 +138,9 @@ export function createEndpoint(manifest: SSRManifest) {
// `self` which is needed to force the runtime to wait // `self` which is needed to force the runtime to wait
// on the component before sending out the response headers. // on the component before sending out the response headers.
// This allows the island to set headers (cookies). // This allows the island to set headers (cookies).
if(isAstroComponentFactory(Component)) { if (isAstroComponentFactory(Component)) {
const ServerIsland = Component; const ServerIsland = Component;
Component = function(this: typeof ServerIsland, ...args: Parameters<typeof ServerIsland>) { Component = function (this: typeof ServerIsland, ...args: Parameters<typeof ServerIsland>) {
return ServerIsland.apply(this, args); return ServerIsland.apply(this, args);
}; };
Object.assign(Component, ServerIsland); Object.assign(Component, ServerIsland);

View file

@ -41,10 +41,10 @@ describe('Server islands', () => {
const res = await fixture.fetch('/_server-islands/Island', { const res = await fixture.fetch('/_server-islands/Island', {
method: 'POST', method: 'POST',
body: JSON.stringify({ body: JSON.stringify({
componentExport: 'default', componentExport: 'default',
encryptedProps: 'FC8337AF072BE5B1641501E1r8mLIhmIME1AV7UO9XmW9OLD', encryptedProps: 'FC8337AF072BE5B1641501E1r8mLIhmIME1AV7UO9XmW9OLD',
slots: {}, slots: {},
}) }),
}); });
const works = res.headers.get('X-Works'); const works = res.headers.get('X-Works');
assert.equal(works, 'true', 'able to set header from server island'); assert.equal(works, 'true', 'able to set header from server island');

View file

@ -146,7 +146,7 @@ importers:
examples/basics: examples/basics:
dependencies: dependencies:
astro: astro:
specifier: ^5.0.0-beta.9 specifier: ^5.0.0-beta.10
version: link:../../packages/astro version: link:../../packages/astro
examples/blog: examples/blog:
@ -161,13 +161,13 @@ importers:
specifier: ^3.2.1 specifier: ^3.2.1
version: link:../../packages/integrations/sitemap version: link:../../packages/integrations/sitemap
astro: astro:
specifier: ^5.0.0-beta.9 specifier: ^5.0.0-beta.10
version: link:../../packages/astro version: link:../../packages/astro
examples/component: examples/component:
devDependencies: devDependencies:
astro: astro:
specifier: ^5.0.0-beta.9 specifier: ^5.0.0-beta.10
version: link:../../packages/astro version: link:../../packages/astro
examples/container-with-vitest: examples/container-with-vitest:
@ -176,7 +176,7 @@ importers:
specifier: ^3.6.3-beta.0 specifier: ^3.6.3-beta.0
version: link:../../packages/integrations/react version: link:../../packages/integrations/react
astro: astro:
specifier: ^5.0.0-beta.9 specifier: ^5.0.0-beta.10
version: link:../../packages/astro version: link:../../packages/astro
react: react:
specifier: ^18.3.1 specifier: ^18.3.1
@ -207,7 +207,7 @@ importers:
specifier: ^3.14.3 specifier: ^3.14.3
version: 3.14.3 version: 3.14.3
astro: astro:
specifier: ^5.0.0-beta.9 specifier: ^5.0.0-beta.10
version: link:../../packages/astro version: link:../../packages/astro
examples/framework-multiple: examples/framework-multiple:
@ -234,7 +234,7 @@ importers:
specifier: ^18.3.1 specifier: ^18.3.1
version: 18.3.1 version: 18.3.1
astro: astro:
specifier: ^5.0.0-beta.9 specifier: ^5.0.0-beta.10
version: link:../../packages/astro version: link:../../packages/astro
preact: preact:
specifier: ^10.24.3 specifier: ^10.24.3
@ -264,7 +264,7 @@ importers:
specifier: ^1.3.0 specifier: ^1.3.0
version: 1.3.0(preact@10.24.3) version: 1.3.0(preact@10.24.3)
astro: astro:
specifier: ^5.0.0-beta.9 specifier: ^5.0.0-beta.10
version: link:../../packages/astro version: link:../../packages/astro
preact: preact:
specifier: ^10.24.3 specifier: ^10.24.3
@ -282,7 +282,7 @@ importers:
specifier: ^18.3.1 specifier: ^18.3.1
version: 18.3.1 version: 18.3.1
astro: astro:
specifier: ^5.0.0-beta.9 specifier: ^5.0.0-beta.10
version: link:../../packages/astro version: link:../../packages/astro
react: react:
specifier: ^18.3.1 specifier: ^18.3.1
@ -297,7 +297,7 @@ importers:
specifier: ^4.4.4-beta.0 specifier: ^4.4.4-beta.0
version: link:../../packages/integrations/solid version: link:../../packages/integrations/solid
astro: astro:
specifier: ^5.0.0-beta.9 specifier: ^5.0.0-beta.10
version: link:../../packages/astro version: link:../../packages/astro
solid-js: solid-js:
specifier: ^1.9.3 specifier: ^1.9.3
@ -309,7 +309,7 @@ importers:
specifier: ^6.0.2-beta.0 specifier: ^6.0.2-beta.0
version: link:../../packages/integrations/svelte version: link:../../packages/integrations/svelte
astro: astro:
specifier: ^5.0.0-beta.9 specifier: ^5.0.0-beta.10
version: link:../../packages/astro version: link:../../packages/astro
svelte: svelte:
specifier: ^5.1.16 specifier: ^5.1.16
@ -321,7 +321,7 @@ importers:
specifier: ^5.0.0-beta.2 specifier: ^5.0.0-beta.2
version: link:../../packages/integrations/vue version: link:../../packages/integrations/vue
astro: astro:
specifier: ^5.0.0-beta.9 specifier: ^5.0.0-beta.10
version: link:../../packages/astro version: link:../../packages/astro
vue: vue:
specifier: ^3.5.12 specifier: ^3.5.12
@ -333,25 +333,25 @@ importers:
specifier: ^9.0.0-alpha.1 specifier: ^9.0.0-alpha.1
version: 9.0.0-alpha.1(astro@packages+astro) version: 9.0.0-alpha.1(astro@packages+astro)
astro: astro:
specifier: ^5.0.0-beta.9 specifier: ^5.0.0-beta.10
version: link:../../packages/astro version: link:../../packages/astro
examples/integration: examples/integration:
devDependencies: devDependencies:
astro: astro:
specifier: ^5.0.0-beta.9 specifier: ^5.0.0-beta.10
version: link:../../packages/astro version: link:../../packages/astro
examples/minimal: examples/minimal:
dependencies: dependencies:
astro: astro:
specifier: ^5.0.0-beta.9 specifier: ^5.0.0-beta.10
version: link:../../packages/astro version: link:../../packages/astro
examples/portfolio: examples/portfolio:
dependencies: dependencies:
astro: astro:
specifier: ^5.0.0-beta.9 specifier: ^5.0.0-beta.10
version: link:../../packages/astro version: link:../../packages/astro
examples/ssr: examples/ssr:
@ -363,7 +363,7 @@ importers:
specifier: ^6.0.2-beta.0 specifier: ^6.0.2-beta.0
version: link:../../packages/integrations/svelte version: link:../../packages/integrations/svelte
astro: astro:
specifier: ^5.0.0-beta.9 specifier: ^5.0.0-beta.10
version: link:../../packages/astro version: link:../../packages/astro
svelte: svelte:
specifier: ^5.1.16 specifier: ^5.1.16
@ -372,7 +372,7 @@ importers:
examples/starlog: examples/starlog:
dependencies: dependencies:
astro: astro:
specifier: ^5.0.0-beta.9 specifier: ^5.0.0-beta.10
version: link:../../packages/astro version: link:../../packages/astro
sass: sass:
specifier: ^1.80.6 specifier: ^1.80.6
@ -384,7 +384,7 @@ importers:
examples/toolbar-app: examples/toolbar-app:
devDependencies: devDependencies:
astro: astro:
specifier: ^5.0.0-beta.9 specifier: ^5.0.0-beta.10
version: link:../../packages/astro version: link:../../packages/astro
examples/with-markdoc: examples/with-markdoc:
@ -393,7 +393,7 @@ importers:
specifier: ^0.12.0-beta.0 specifier: ^0.12.0-beta.0
version: link:../../packages/integrations/markdoc version: link:../../packages/integrations/markdoc
astro: astro:
specifier: ^5.0.0-beta.9 specifier: ^5.0.0-beta.10
version: link:../../packages/astro version: link:../../packages/astro
examples/with-mdx: examples/with-mdx:
@ -405,7 +405,7 @@ importers:
specifier: ^3.5.4-beta.0 specifier: ^3.5.4-beta.0
version: link:../../packages/integrations/preact version: link:../../packages/integrations/preact
astro: astro:
specifier: ^5.0.0-beta.9 specifier: ^5.0.0-beta.10
version: link:../../packages/astro version: link:../../packages/astro
preact: preact:
specifier: ^10.24.3 specifier: ^10.24.3
@ -420,7 +420,7 @@ importers:
specifier: ^0.5.2 specifier: ^0.5.2
version: 0.5.2(nanostores@0.11.3)(preact@10.24.3) version: 0.5.2(nanostores@0.11.3)(preact@10.24.3)
astro: astro:
specifier: ^5.0.0-beta.9 specifier: ^5.0.0-beta.10
version: link:../../packages/astro version: link:../../packages/astro
nanostores: nanostores:
specifier: ^0.11.3 specifier: ^0.11.3
@ -441,7 +441,7 @@ importers:
specifier: ^1.6.4 specifier: ^1.6.4
version: 1.6.4 version: 1.6.4
astro: astro:
specifier: ^5.0.0-beta.9 specifier: ^5.0.0-beta.10
version: link:../../packages/astro version: link:../../packages/astro
autoprefixer: autoprefixer:
specifier: ^10.4.20 specifier: ^10.4.20
@ -459,7 +459,7 @@ importers:
examples/with-vitest: examples/with-vitest:
dependencies: dependencies:
astro: astro:
specifier: ^5.0.0-beta.9 specifier: ^5.0.0-beta.10
version: link:../../packages/astro version: link:../../packages/astro
vitest: vitest:
specifier: ^2.1.4 specifier: ^2.1.4