0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-03-24 23:21:57 -05:00

[ci] release (alpha) (#11926)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Houston (Bot) 2024-09-09 08:09:25 -07:00 committed by GitHub
parent 0a269b63e5
commit 26dc381f71
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
35 changed files with 116 additions and 67 deletions

View file

@ -35,6 +35,7 @@
"blue-boats-relax",
"breezy-colts-promise",
"chatty-teachers-sit",
"chilly-terms-know",
"clean-donuts-walk",
"curvy-walls-kneel",
"eighty-boxes-applaud",
@ -46,6 +47,7 @@
"hungry-jokes-try",
"itchy-toys-march",
"large-zebras-sniff",
"long-lions-do",
"long-months-rule",
"many-garlics-lick",
"mean-donkeys-switch",
@ -55,10 +57,12 @@
"neat-dots-hear",
"old-zebras-teach",
"perfect-fans-fly",
"pink-yaks-exercise",
"poor-frogs-dream",
"quick-ads-exercise",
"selfish-cats-crash",
"selfish-impalas-grin",
"sharp-worms-sniff",
"small-ties-sort",
"spotty-garlics-cheat",
"ten-students-repair",

View file

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

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.4"
"astro": "^5.0.0-alpha.5"
}
}

View file

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

View file

@ -12,7 +12,7 @@
"test": "vitest run"
},
"dependencies": {
"astro": "^5.0.0-alpha.4",
"astro": "^5.0.0-alpha.5",
"@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.4"
"astro": "^5.0.0-alpha.5"
}
}

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.4",
"astro": "^5.0.0-alpha.5",
"preact": "^10.23.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",

View file

@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/preact": "^3.5.2",
"@preact/signals": "^1.3.0",
"astro": "^5.0.0-alpha.4",
"astro": "^5.0.0-alpha.5",
"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.4",
"astro": "^5.0.0-alpha.5",
"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.4",
"astro": "^5.0.0-alpha.5",
"solid-js": "^1.8.22"
}
}

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -17,7 +17,7 @@
"@tailwindcss/forms": "^0.5.8",
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0",
"astro": "^5.0.0-alpha.4",
"astro": "^5.0.0-alpha.5",
"postcss": "^8.4.43",
"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.4",
"astro": "^5.0.0-alpha.5",
"svelte": "^4.2.19"
}
}

View file

@ -10,7 +10,7 @@
"astro": "astro"
},
"dependencies": {
"astro": "^5.0.0-alpha.4",
"astro": "^5.0.0-alpha.5",
"sass": "^1.77.8",
"sharp": "^0.33.3"
}

View file

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

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.4"
"astro": "^5.0.0-alpha.5"
}
}

View file

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

View file

@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/markdown-remark": "^6.0.0-alpha.1",
"astro": "^5.0.0-alpha.4",
"astro": "^5.0.0-alpha.5",
"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.4"
"astro": "^5.0.0-alpha.5"
}
}

View file

@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/mdx": "^4.0.0-alpha.2",
"@astrojs/preact": "^3.5.2",
"astro": "^5.0.0-alpha.4",
"astro": "^5.0.0-alpha.5",
"preact": "^10.23.2"
}
}

View file

@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/preact": "^3.5.2",
"@nanostores/preact": "^0.5.2",
"astro": "^5.0.0-alpha.4",
"astro": "^5.0.0-alpha.5",
"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.4",
"astro": "^5.0.0-alpha.5",
"autoprefixer": "^10.4.20",
"canvas-confetti": "^1.9.3",
"postcss": "^8.4.43",

View file

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

View file

@ -1,5 +1,48 @@
# astro
## 5.0.0-alpha.5
### Major Changes
- [#11916](https://github.com/withastro/astro/pull/11916) [`46ea29f`](https://github.com/withastro/astro/commit/46ea29f91df83ea638ecbc544ce99375538636d4) Thanks [@bluwy](https://github.com/bluwy)! - Updates how the `build.client` and `build.server` option values get resolved to match existing documentation. With this fix, the option values will now correctly resolve relative to the `outDir` option. So if `outDir` is set to `./dist/nested/`, then by default:
- `build.client` will resolve to `<root>/dist/nested/client/`
- `build.server` will resolve to `<root>/dist/nested/server/`
Previously the values were incorrectly resolved:
- `build.client` was resolved to `<root>/dist/nested/dist/client/`
- `build.server` was resolved to `<root>/dist/nested/dist/server/`
If you were relying on the previous build paths, make sure that your project code is updated to the new build paths.
### Minor Changes
- [#11875](https://github.com/withastro/astro/pull/11875) [`a8a3d2c`](https://github.com/withastro/astro/commit/a8a3d2cde813d891dd9c63f07f91ce4e77d4f93b) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - Adds a new property `isPrerendered` to the globals `Astro` and `APIContext` . This boolean value represents whether or not the current page is prerendered:
```astro
---
// src/pages/index.astro
export const prerender = true;
---
```
```js
// src/middleware.js
export const onRequest = (ctx, next) => {
console.log(ctx.isPrerendered); // it will log true
return next();
};
```
### Patch Changes
- [#11927](https://github.com/withastro/astro/pull/11927) [`5b4e3ab`](https://github.com/withastro/astro/commit/5b4e3abbb152146b71c1af05d33c96211000b2a6) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - Updates the `env` configuration reference docs to include a full API reference for `envField`.
- [#11943](https://github.com/withastro/astro/pull/11943) [`fa4671c`](https://github.com/withastro/astro/commit/fa4671ca283266092cf4f52357836d2f57817089) Thanks [@sarah11918](https://github.com/sarah11918)! - Updates error messages that assume content collections are located in `src/content/` with more generic language
## 5.0.0-alpha.4
### Major Changes

View file

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

View file

@ -1452,12 +1452,12 @@ export interface AstroUserConfig {
* }
* })
* ```
*
*
* `envField` supports four data types: string, number, enum, and boolean. `context` and `access` are required properties for all data types. The following shows the complete list of properties available for each data type:
*
*
* ```js
* import { envField } from "astro/config"
*
*
* envField.string({
* // context & access
* optional: true,

View file

@ -148,11 +148,13 @@ describe('build assets (server)', () => {
assets: 'custom-assets',
inlineStylesheets: 'never',
},
adapter: testAdapter({extendAdapter: {
adapterFeatures: {
forceServerOutput: false,
}
}}),
adapter: testAdapter({
extendAdapter: {
adapterFeatures: {
forceServerOutput: false,
},
},
}),
});
await fixture.build();
});

58
pnpm-lock.yaml generated
View file

@ -116,7 +116,7 @@ importers:
examples/basics:
dependencies:
astro:
specifier: ^5.0.0-alpha.4
specifier: ^5.0.0-alpha.5
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.4
specifier: ^5.0.0-alpha.5
version: link:../../packages/astro
examples/component:
devDependencies:
astro:
specifier: ^5.0.0-alpha.4
specifier: ^5.0.0-alpha.5
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.4
specifier: ^5.0.0-alpha.5
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.4
specifier: ^5.0.0-alpha.5
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.4
specifier: ^5.0.0-alpha.5
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.4
specifier: ^5.0.0-alpha.5
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.4
specifier: ^5.0.0-alpha.5
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.4
specifier: ^5.0.0-alpha.5
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.4
specifier: ^5.0.0-alpha.5
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.4
specifier: ^5.0.0-alpha.5
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.4
specifier: ^5.0.0-alpha.5
version: link:../../packages/astro
examples/integration:
devDependencies:
astro:
specifier: ^5.0.0-alpha.4
specifier: ^5.0.0-alpha.5
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.4
specifier: ^5.0.0-alpha.5
version: link:../../packages/astro
html-minifier:
specifier: ^4.0.0
@ -331,19 +331,19 @@ importers:
examples/minimal:
dependencies:
astro:
specifier: ^5.0.0-alpha.4
specifier: ^5.0.0-alpha.5
version: link:../../packages/astro
examples/non-html-pages:
dependencies:
astro:
specifier: ^5.0.0-alpha.4
specifier: ^5.0.0-alpha.5
version: link:../../packages/astro
examples/portfolio:
dependencies:
astro:
specifier: ^5.0.0-alpha.4
specifier: ^5.0.0-alpha.5
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.4
specifier: ^5.0.0-alpha.5
version: link:../../packages/astro
postcss:
specifier: ^8.4.43
@ -394,7 +394,7 @@ importers:
specifier: ^6.0.0-alpha.0
version: link:../../packages/integrations/svelte
astro:
specifier: ^5.0.0-alpha.4
specifier: ^5.0.0-alpha.5
version: link:../../packages/astro
svelte:
specifier: ^4.2.19
@ -403,7 +403,7 @@ importers:
examples/starlog:
dependencies:
astro:
specifier: ^5.0.0-alpha.4
specifier: ^5.0.0-alpha.5
version: link:../../packages/astro
sass:
specifier: ^1.77.8
@ -415,7 +415,7 @@ importers:
examples/toolbar-app:
devDependencies:
astro:
specifier: ^5.0.0-alpha.4
specifier: ^5.0.0-alpha.5
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.4
specifier: ^5.0.0-alpha.5
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.4
specifier: ^5.0.0-alpha.5
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.4
specifier: ^5.0.0-alpha.5
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.4
specifier: ^5.0.0-alpha.5
version: link:../../packages/astro
examples/with-mdx:
@ -478,7 +478,7 @@ importers:
specifier: ^3.5.2
version: link:../../packages/integrations/preact
astro:
specifier: ^5.0.0-alpha.4
specifier: ^5.0.0-alpha.5
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.4
specifier: ^5.0.0-alpha.5
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.4
specifier: ^5.0.0-alpha.5
version: link:../../packages/astro
autoprefixer:
specifier: ^10.4.20
@ -532,7 +532,7 @@ importers:
examples/with-vitest:
dependencies:
astro:
specifier: ^5.0.0-alpha.4
specifier: ^5.0.0-alpha.5
version: link:../../packages/astro
vitest:
specifier: ^2.0.5