mirror of
https://github.com/withastro/astro.git
synced 2025-04-14 23:51:49 -05:00
[ci] release (alpha) (#11962)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
f7f2338c2b
commit
f15922d177
35 changed files with 274 additions and 68 deletions
|
@ -34,16 +34,19 @@
|
|||
"changesets": [
|
||||
"afraid-apricots-buy",
|
||||
"blue-boats-relax",
|
||||
"brave-elephants-fly",
|
||||
"breezy-colts-promise",
|
||||
"chatty-teachers-sit",
|
||||
"chilly-terms-know",
|
||||
"clean-donuts-walk",
|
||||
"cuddly-shoes-press",
|
||||
"curvy-walls-kneel",
|
||||
"dry-worms-knock",
|
||||
"eighty-bags-cross",
|
||||
"eighty-boxes-applaud",
|
||||
"empty-spoons-kiss",
|
||||
"five-jars-hear",
|
||||
"forty-spies-train",
|
||||
"fluffy-jars-live",
|
||||
"fuzzy-pugs-live",
|
||||
"giant-rocks-thank",
|
||||
"healthy-ads-scream",
|
||||
"heavy-seahorses-poke",
|
||||
|
@ -55,6 +58,7 @@
|
|||
"long-months-rule",
|
||||
"many-garlics-lick",
|
||||
"mean-donkeys-switch",
|
||||
"mighty-stingrays-press",
|
||||
"modern-bears-deny",
|
||||
"moody-waves-think",
|
||||
"nasty-crabs-worry",
|
||||
|
@ -68,10 +72,15 @@
|
|||
"selfish-cats-crash",
|
||||
"selfish-impalas-grin",
|
||||
"sharp-worms-sniff",
|
||||
"slimy-queens-hang",
|
||||
"small-ties-sort",
|
||||
"spotty-garlics-cheat",
|
||||
"strange-sheep-film",
|
||||
"ten-students-repair",
|
||||
"ten-walls-tap",
|
||||
"twelve-comics-march",
|
||||
"twenty-cobras-push"
|
||||
"twenty-cobras-push",
|
||||
"unlucky-bobcats-sit",
|
||||
"violet-goats-grab"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -11,6 +11,6 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^5.0.0-alpha.6"
|
||||
"astro": "^5.0.0-alpha.7"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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.6"
|
||||
"astro": "^5.0.0-alpha.7"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
],
|
||||
"scripts": {},
|
||||
"devDependencies": {
|
||||
"astro": "^5.0.0-alpha.6"
|
||||
"astro": "^5.0.0-alpha.7"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"astro": "^4.0.0"
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
"test": "vitest run"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^5.0.0-alpha.6",
|
||||
"astro": "^5.0.0-alpha.7",
|
||||
"@astrojs/react": "^3.6.2",
|
||||
"react": "^18.3.1",
|
||||
"react-dom": "^18.3.1",
|
||||
|
|
|
@ -14,6 +14,6 @@
|
|||
"@astrojs/alpinejs": "^0.4.0",
|
||||
"@types/alpinejs": "^3.13.10",
|
||||
"alpinejs": "^3.14.1",
|
||||
"astro": "^5.0.0-alpha.6"
|
||||
"astro": "^5.0.0-alpha.7"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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.6",
|
||||
"astro": "^5.0.0-alpha.7",
|
||||
"preact": "^10.23.2",
|
||||
"react": "^18.3.1",
|
||||
"react-dom": "^18.3.1",
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
"dependencies": {
|
||||
"@astrojs/preact": "^3.5.3",
|
||||
"@preact/signals": "^1.3.0",
|
||||
"astro": "^5.0.0-alpha.6",
|
||||
"astro": "^5.0.0-alpha.7",
|
||||
"preact": "^10.23.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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.6",
|
||||
"astro": "^5.0.0-alpha.7",
|
||||
"react": "^18.3.1",
|
||||
"react-dom": "^18.3.1"
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@astrojs/solid-js": "^4.4.1",
|
||||
"astro": "^5.0.0-alpha.6",
|
||||
"astro": "^5.0.0-alpha.7",
|
||||
"solid-js": "^1.8.22"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@astrojs/svelte": "^6.0.0-alpha.0",
|
||||
"astro": "^5.0.0-alpha.6",
|
||||
"astro": "^5.0.0-alpha.7",
|
||||
"svelte": "^4.2.19"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@astrojs/vue": "^5.0.0-alpha.0",
|
||||
"astro": "^5.0.0-alpha.6",
|
||||
"astro": "^5.0.0-alpha.7",
|
||||
"vue": "^3.4.38"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,6 +12,6 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@astrojs/node": "^9.0.0-alpha.1",
|
||||
"astro": "^5.0.0-alpha.6"
|
||||
"astro": "^5.0.0-alpha.7"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
],
|
||||
"scripts": {},
|
||||
"devDependencies": {
|
||||
"astro": "^5.0.0-alpha.6"
|
||||
"astro": "^5.0.0-alpha.7"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"astro": "^4.0.0"
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@astrojs/node": "^9.0.0-alpha.1",
|
||||
"astro": "^5.0.0-alpha.6",
|
||||
"astro": "^5.0.0-alpha.7",
|
||||
"html-minifier": "^4.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
@ -11,6 +11,6 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^5.0.0-alpha.6"
|
||||
"astro": "^5.0.0-alpha.7"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,6 +11,6 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^5.0.0-alpha.6"
|
||||
"astro": "^5.0.0-alpha.7"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,6 +11,6 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^5.0.0-alpha.6"
|
||||
"astro": "^5.0.0-alpha.7"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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.6",
|
||||
"astro": "^5.0.0-alpha.7",
|
||||
"postcss": "^8.4.43",
|
||||
"react": "^18.3.1",
|
||||
"react-dom": "^18.3.1",
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
"dependencies": {
|
||||
"@astrojs/node": "^9.0.0-alpha.1",
|
||||
"@astrojs/svelte": "^6.0.0-alpha.0",
|
||||
"astro": "^5.0.0-alpha.6",
|
||||
"astro": "^5.0.0-alpha.7",
|
||||
"svelte": "^4.2.19"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^5.0.0-alpha.6",
|
||||
"astro": "^5.0.0-alpha.7",
|
||||
"sass": "^1.77.8",
|
||||
"sharp": "^0.33.3"
|
||||
}
|
||||
|
|
|
@ -15,6 +15,6 @@
|
|||
"./app": "./dist/app.js"
|
||||
},
|
||||
"devDependencies": {
|
||||
"astro": "^5.0.0-alpha.6"
|
||||
"astro": "^5.0.0-alpha.7"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,6 +12,6 @@
|
|||
"devDependencies": {
|
||||
"@astrojs/tailwind": "^6.0.0-alpha.0",
|
||||
"@astrojs/node": "^9.0.0-alpha.1",
|
||||
"astro": "^5.0.0-alpha.6"
|
||||
"astro": "^5.0.0-alpha.7"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,6 +12,6 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@astrojs/markdoc": "^1.0.0-alpha.1",
|
||||
"astro": "^5.0.0-alpha.6"
|
||||
"astro": "^5.0.0-alpha.7"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@astrojs/markdown-remark": "^6.0.0-alpha.1",
|
||||
"astro": "^5.0.0-alpha.6",
|
||||
"astro": "^5.0.0-alpha.7",
|
||||
"hast-util-select": "^6.0.2",
|
||||
"rehype-autolink-headings": "^7.1.0",
|
||||
"rehype-slug": "^6.0.0",
|
||||
|
|
|
@ -11,6 +11,6 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^5.0.0-alpha.6"
|
||||
"astro": "^5.0.0-alpha.7"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,8 +12,8 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@astrojs/mdx": "^4.0.0-alpha.2",
|
||||
"@astrojs/preact": "^3.5.2",
|
||||
"astro": "^5.0.0-alpha.6",
|
||||
"@astrojs/preact": "^3.5.3",
|
||||
"astro": "^5.0.0-alpha.7",
|
||||
"preact": "^10.23.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
"dependencies": {
|
||||
"@astrojs/preact": "^3.5.3",
|
||||
"@nanostores/preact": "^0.5.2",
|
||||
"astro": "^5.0.0-alpha.6",
|
||||
"astro": "^5.0.0-alpha.7",
|
||||
"nanostores": "^0.11.3",
|
||||
"preact": "^10.23.2"
|
||||
}
|
||||
|
|
|
@ -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.6",
|
||||
"astro": "^5.0.0-alpha.7",
|
||||
"autoprefixer": "^10.4.20",
|
||||
"canvas-confetti": "^1.9.3",
|
||||
"postcss": "^8.4.45",
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
"test": "vitest"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^5.0.0-alpha.6",
|
||||
"astro": "^5.0.0-alpha.7",
|
||||
"vitest": "^2.0.5"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,202 @@
|
|||
# astro
|
||||
|
||||
## 5.0.0-alpha.7
|
||||
|
||||
### Major Changes
|
||||
|
||||
- [#11864](https://github.com/withastro/astro/pull/11864) [`ee38b3a`](https://github.com/withastro/astro/commit/ee38b3a94697fe883ce8300eff9f001470b8adb6) Thanks [@ematipico](https://github.com/ematipico)! - ### [changed]: `entryPoint` type inside the hook `astro:build:ssr`
|
||||
In Astro v4.x, the `entryPoint` type was `RouteData`.
|
||||
|
||||
Astro v5.0 the `entryPoint` type is `IntegrationRouteData`, which contains a subset of the `RouteData` type. The fields `isIndex` and `fallbackRoutes` were removed.
|
||||
|
||||
#### What should I do?
|
||||
|
||||
Update your adapter to change the type of `entryPoint` from `RouteData` to `IntegrationRouteData`.
|
||||
|
||||
```diff
|
||||
-import type {RouteData} from 'astro';
|
||||
+import type {IntegrationRouteData} from "astro"
|
||||
|
||||
-function useRoute(route: RouteData) {
|
||||
+function useRoute(route: IntegrationRouteData) {
|
||||
|
||||
}
|
||||
```
|
||||
|
||||
- [#11908](https://github.com/withastro/astro/pull/11908) [`518433e`](https://github.com/withastro/astro/commit/518433e433fe69ee3bbbb1f069181cd9eb69ec9a) Thanks [@Princesseuh](https://github.com/Princesseuh)! - The `image.endpoint` config now allow customizing the route of the image endpoint in addition to the entrypoint. This can be useful in niche situations where the default route `/_image` conflicts with an existing route or your local server setup.
|
||||
|
||||
```js
|
||||
import { defineConfig } from 'astro/config';
|
||||
|
||||
defineConfig({
|
||||
image: {
|
||||
endpoint: {
|
||||
route: '/image',
|
||||
entrypoint: './src/image_endpoint.ts',
|
||||
},
|
||||
},
|
||||
});
|
||||
```
|
||||
|
||||
- [#11806](https://github.com/withastro/astro/pull/11806) [`f7f2338`](https://github.com/withastro/astro/commit/f7f2338c2b96975001b5c782f458710e9cc46d74) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Removes the `assets` property on `supportedAstroFeatures` for adapters, as it did not reflect reality properly in many cases.
|
||||
|
||||
Now, relating to assets, only a single `sharpImageService` property is available, determining if the adapter is compatible with the built-in sharp image service.
|
||||
|
||||
- [#11864](https://github.com/withastro/astro/pull/11864) [`ee38b3a`](https://github.com/withastro/astro/commit/ee38b3a94697fe883ce8300eff9f001470b8adb6) Thanks [@ematipico](https://github.com/ematipico)! - ### [changed]: `routes` type inside the hook `astro:build:done`
|
||||
In Astro v4.x, the `routes` type was `RouteData`.
|
||||
|
||||
Astro v5.0 the `routes` type is `IntegrationRouteData`, which contains a subset of the `RouteData` type. The fields `isIndex` and `fallbackRoutes` were removed.
|
||||
|
||||
#### What should I do?
|
||||
|
||||
Update your adapter to change the type of `routes` from `RouteData` to `IntegrationRouteData`.
|
||||
|
||||
```diff
|
||||
-import type {RouteData} from 'astro';
|
||||
+import type {IntegrationRouteData} from "astro"
|
||||
|
||||
-function useRoute(route: RouteData) {
|
||||
+function useRoute(route: IntegrationRouteData) {
|
||||
|
||||
}
|
||||
```
|
||||
|
||||
- [#11864](https://github.com/withastro/astro/pull/11864) [`ee38b3a`](https://github.com/withastro/astro/commit/ee38b3a94697fe883ce8300eff9f001470b8adb6) Thanks [@ematipico](https://github.com/ematipico)! - ### [changed]: `RouteData.distURL` is now an array
|
||||
In Astro v4.x, `RouteData.distURL` was `undefined` or a `URL`
|
||||
|
||||
Astro v5.0, `RouteData.distURL` is `undefined` or an array of `URL`. This was a bug, because a route can generate multiple files on disk, especially when using dynamic routes such as `[slug]` or `[...slug]`.
|
||||
|
||||
#### What should I do?
|
||||
|
||||
Update your code to handle `RouteData.distURL` as an array.
|
||||
|
||||
```diff
|
||||
if (route.distURL) {
|
||||
- if (route.distURL.endsWith('index.html')) {
|
||||
- // do something
|
||||
- }
|
||||
+ for (const url of route.distURL) {
|
||||
+ if (url.endsWith('index.html')) {
|
||||
+ // do something
|
||||
+ }
|
||||
+ }
|
||||
}
|
||||
```
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- [#11806](https://github.com/withastro/astro/pull/11806) [`f7f2338`](https://github.com/withastro/astro/commit/f7f2338c2b96975001b5c782f458710e9cc46d74) Thanks [@Princesseuh](https://github.com/Princesseuh)! - The value of the different properties on `supportedAstroFeatures` for adapters can now be objects, with a `support` and `message` properties. The content of the `message` property will be shown in the Astro CLI when the adapter is not compatible with the feature, allowing one to give a better informational message to the user.
|
||||
|
||||
This is notably useful with the new `limited` value, to explain to the user why support is limited.
|
||||
|
||||
- [#11955](https://github.com/withastro/astro/pull/11955) [`d813262`](https://github.com/withastro/astro/commit/d8132626b05f150341c0628d6078fdd86b89aaed) Thanks [@matthewp](https://github.com/matthewp)! - [Server Islands](https://astro.build/blog/future-of-astro-server-islands/) introduced behind an experimental flag in [v4.12.0](https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md#4120) is no longer experimental and is available for general use.
|
||||
|
||||
Server islands are Astro's solution for highly cacheable pages of mixed static and dynamic content. They allow you to specify components that should run on the server, allowing the rest of the page to be more aggressively cached, or even generated statically.
|
||||
|
||||
Turn any `.astro` component into a server island by adding the `server:defer` directive and optionally, fallback placeholder content. It will be rendered dynamically at runtime outside the context of the rest of the page, allowing you to add longer cache headers for the pages, or even prerender them.
|
||||
|
||||
```astro
|
||||
---
|
||||
import Avatar from '../components/Avatar.astro';
|
||||
import GenericUser from '../components/GenericUser.astro';
|
||||
---
|
||||
|
||||
<header>
|
||||
<h1>Page Title</h1>
|
||||
<div class="header-right">
|
||||
<Avatar server:defer>
|
||||
<GenericUser slot="fallback" />
|
||||
</Avatar>
|
||||
</div>
|
||||
</header>
|
||||
```
|
||||
|
||||
If you were previously using this feature, please remove the experimental flag from your Astro config:
|
||||
|
||||
```diff
|
||||
import { defineConfig } from 'astro/config';
|
||||
|
||||
export default defineConfig({
|
||||
experimental {
|
||||
- serverIslands: true,
|
||||
},
|
||||
});
|
||||
```
|
||||
|
||||
If you have been waiting for stabilization before using server islands, you can now do so.
|
||||
|
||||
Please see the [server island documentation](https://docs.astro.build/en/guides/server-islands/) for more about this feature.
|
||||
|
||||
- [#11806](https://github.com/withastro/astro/pull/11806) [`f7f2338`](https://github.com/withastro/astro/commit/f7f2338c2b96975001b5c782f458710e9cc46d74) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Adds a new `limited` value for the different properties of `supportedAstroFeatures` for adapters, which indicates that the adapter is compatible with the feature, but with some limitations. This is useful for adapters that support a feature, but not in all cases or with all options.
|
||||
|
||||
- [#11925](https://github.com/withastro/astro/pull/11925) [`74722cb`](https://github.com/withastro/astro/commit/74722cb81c46d4d29c8c5a2127f896da4d8d3235) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - Updates `astro/config` import to reference `astro/client` types
|
||||
|
||||
When importing `astro/config`, types from `astro/client` will be made automatically available to your project. If your project `tsconfig.json` changes how references behave, you'll still have access to these types after running `astro sync`.
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#11974](https://github.com/withastro/astro/pull/11974) [`60211de`](https://github.com/withastro/astro/commit/60211defbfb2992ba17d1369e71c146d8928b09a) Thanks [@ascorbic](https://github.com/ascorbic)! - Exports the `RenderResult` type
|
||||
|
||||
- [#11939](https://github.com/withastro/astro/pull/11939) [`7b09c62`](https://github.com/withastro/astro/commit/7b09c62b565cd7b50c35fb68d390729f936a43fb) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Adds support for Zod discriminated unions on Action form inputs. This allows forms with different inputs to be submitted to the same action, using a given input to decide which object should be used for validation.
|
||||
|
||||
This example accepts either a `create` or `update` form submission, and uses the `type` field to determine which object to validate against.
|
||||
|
||||
```ts
|
||||
import { defineAction } from 'astro:actions';
|
||||
import { z } from 'astro:schema';
|
||||
|
||||
export const server = {
|
||||
changeUser: defineAction({
|
||||
accept: 'form',
|
||||
input: z.discriminatedUnion('type', [
|
||||
z.object({
|
||||
type: z.literal('create'),
|
||||
name: z.string(),
|
||||
email: z.string().email(),
|
||||
}),
|
||||
z.object({
|
||||
type: z.literal('update'),
|
||||
id: z.number(),
|
||||
name: z.string(),
|
||||
email: z.string().email(),
|
||||
}),
|
||||
]),
|
||||
async handler(input) {
|
||||
if (input.type === 'create') {
|
||||
// input is { type: 'create', name: string, email: string }
|
||||
} else {
|
||||
// input is { type: 'update', id: number, name: string, email: string }
|
||||
}
|
||||
},
|
||||
}),
|
||||
};
|
||||
```
|
||||
|
||||
The corresponding `create` and `update` forms may look like this:
|
||||
|
||||
```astro
|
||||
---
|
||||
import { actions } from 'astro:actions';
|
||||
---
|
||||
|
||||
<!--Create-->
|
||||
<form action={actions.changeUser} method="POST">
|
||||
<input type="hidden" name="type" value="create" />
|
||||
<input type="text" name="name" required />
|
||||
<input type="email" name="email" required />
|
||||
<button type="submit">Create User</button>
|
||||
</form>
|
||||
|
||||
<!--Update-->
|
||||
<form action={actions.changeUser} method="POST">
|
||||
<input type="hidden" name="type" value="update" />
|
||||
<input type="hidden" name="id" value="user-123" />
|
||||
<input type="text" name="name" required />
|
||||
<input type="email" name="email" required />
|
||||
<button type="submit">Update User</button>
|
||||
</form>
|
||||
```
|
||||
|
||||
## 5.0.0-alpha.6
|
||||
|
||||
### Major Changes
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "astro",
|
||||
"version": "5.0.0-alpha.6",
|
||||
"version": "5.0.0-alpha.7",
|
||||
"description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.",
|
||||
"type": "module",
|
||||
"author": "withastro",
|
||||
|
|
|
@ -213,7 +213,7 @@ class AstroBuilder {
|
|||
|
||||
const hasServerIslands = this.settings.serverIslandNameMap.size > 0;
|
||||
// Error if there are server islands but no adapter provided.
|
||||
if(hasServerIslands && this.settings.buildOutput !== 'server') {
|
||||
if (hasServerIslands && this.settings.buildOutput !== 'server') {
|
||||
throw new AstroError(AstroErrorData.NoAdapterInstalledServerIslands);
|
||||
}
|
||||
|
||||
|
|
|
@ -69,7 +69,7 @@ describe('Server islands', () => {
|
|||
describe('build', () => {
|
||||
before(async () => {
|
||||
await fixture.build({
|
||||
adapter: testAdapter()
|
||||
adapter: testAdapter(),
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -89,10 +89,10 @@ describe('Server islands', () => {
|
|||
it('Errors during the build', async () => {
|
||||
try {
|
||||
await fixture.build({
|
||||
adapter: undefined
|
||||
adapter: undefined,
|
||||
});
|
||||
assert.equal(true, false, 'should not have succeeded');
|
||||
} catch(err) {
|
||||
} catch (err) {
|
||||
assert.equal(err.title, 'Cannot use Server Islands without an adapter.');
|
||||
}
|
||||
});
|
||||
|
|
60
pnpm-lock.yaml
generated
60
pnpm-lock.yaml
generated
|
@ -116,7 +116,7 @@ importers:
|
|||
examples/basics:
|
||||
dependencies:
|
||||
astro:
|
||||
specifier: ^5.0.0-alpha.6
|
||||
specifier: ^5.0.0-alpha.7
|
||||
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.6
|
||||
specifier: ^5.0.0-alpha.7
|
||||
version: link:../../packages/astro
|
||||
|
||||
examples/component:
|
||||
devDependencies:
|
||||
astro:
|
||||
specifier: ^5.0.0-alpha.6
|
||||
specifier: ^5.0.0-alpha.7
|
||||
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.6
|
||||
specifier: ^5.0.0-alpha.7
|
||||
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.6
|
||||
specifier: ^5.0.0-alpha.7
|
||||
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.6
|
||||
specifier: ^5.0.0-alpha.7
|
||||
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.6
|
||||
specifier: ^5.0.0-alpha.7
|
||||
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.6
|
||||
specifier: ^5.0.0-alpha.7
|
||||
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.6
|
||||
specifier: ^5.0.0-alpha.7
|
||||
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.6
|
||||
specifier: ^5.0.0-alpha.7
|
||||
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.6
|
||||
specifier: ^5.0.0-alpha.7
|
||||
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.6
|
||||
specifier: ^5.0.0-alpha.7
|
||||
version: link:../../packages/astro
|
||||
|
||||
examples/integration:
|
||||
devDependencies:
|
||||
astro:
|
||||
specifier: ^5.0.0-alpha.6
|
||||
specifier: ^5.0.0-alpha.7
|
||||
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.6
|
||||
specifier: ^5.0.0-alpha.7
|
||||
version: link:../../packages/astro
|
||||
html-minifier:
|
||||
specifier: ^4.0.0
|
||||
|
@ -331,19 +331,19 @@ importers:
|
|||
examples/minimal:
|
||||
dependencies:
|
||||
astro:
|
||||
specifier: ^5.0.0-alpha.6
|
||||
specifier: ^5.0.0-alpha.7
|
||||
version: link:../../packages/astro
|
||||
|
||||
examples/non-html-pages:
|
||||
dependencies:
|
||||
astro:
|
||||
specifier: ^5.0.0-alpha.6
|
||||
specifier: ^5.0.0-alpha.7
|
||||
version: link:../../packages/astro
|
||||
|
||||
examples/portfolio:
|
||||
dependencies:
|
||||
astro:
|
||||
specifier: ^5.0.0-alpha.6
|
||||
specifier: ^5.0.0-alpha.7
|
||||
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.6
|
||||
specifier: ^5.0.0-alpha.7
|
||||
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.6
|
||||
specifier: ^5.0.0-alpha.7
|
||||
version: link:../../packages/astro
|
||||
svelte:
|
||||
specifier: ^4.2.19
|
||||
|
@ -403,7 +403,7 @@ importers:
|
|||
examples/starlog:
|
||||
dependencies:
|
||||
astro:
|
||||
specifier: ^5.0.0-alpha.6
|
||||
specifier: ^5.0.0-alpha.7
|
||||
version: link:../../packages/astro
|
||||
sass:
|
||||
specifier: ^1.77.8
|
||||
|
@ -415,7 +415,7 @@ importers:
|
|||
examples/toolbar-app:
|
||||
devDependencies:
|
||||
astro:
|
||||
specifier: ^5.0.0-alpha.6
|
||||
specifier: ^5.0.0-alpha.7
|
||||
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.6
|
||||
specifier: ^5.0.0-alpha.7
|
||||
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.6
|
||||
specifier: ^5.0.0-alpha.7
|
||||
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.6
|
||||
specifier: ^5.0.0-alpha.7
|
||||
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.6
|
||||
specifier: ^5.0.0-alpha.7
|
||||
version: link:../../packages/astro
|
||||
|
||||
examples/with-mdx:
|
||||
|
@ -475,10 +475,10 @@ importers:
|
|||
specifier: ^4.0.0-alpha.2
|
||||
version: link:../../packages/integrations/mdx
|
||||
'@astrojs/preact':
|
||||
specifier: ^3.5.2
|
||||
specifier: ^3.5.3
|
||||
version: link:../../packages/integrations/preact
|
||||
astro:
|
||||
specifier: ^5.0.0-alpha.6
|
||||
specifier: ^5.0.0-alpha.7
|
||||
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.6
|
||||
specifier: ^5.0.0-alpha.7
|
||||
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.6
|
||||
specifier: ^5.0.0-alpha.7
|
||||
version: link:../../packages/astro
|
||||
autoprefixer:
|
||||
specifier: ^10.4.20
|
||||
|
@ -532,7 +532,7 @@ importers:
|
|||
examples/with-vitest:
|
||||
dependencies:
|
||||
astro:
|
||||
specifier: ^5.0.0-alpha.6
|
||||
specifier: ^5.0.0-alpha.7
|
||||
version: link:../../packages/astro
|
||||
vitest:
|
||||
specifier: ^2.0.5
|
||||
|
|
Loading…
Add table
Reference in a new issue