mirror of
https://github.com/withastro/astro.git
synced 2024-12-30 22:03:56 -05:00
[ci] release (#11186)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
97fbe938a9
commit
48d53094cd
55 changed files with 410 additions and 270 deletions
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
"astro": patch
|
||||
---
|
||||
|
||||
Improves DX by throwing the original `AstroUserError` when an error is thrown inside a `.mdx` file.
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
"astro": patch
|
||||
---
|
||||
|
||||
Errors that are emitted during a rewrite are now bubbled up and shown to the user. A 404 response is not returned anymore.
|
|
@ -1,30 +0,0 @@
|
|||
---
|
||||
"@astrojs/preact": minor
|
||||
"@astrojs/svelte": minor
|
||||
"@astrojs/react": minor
|
||||
"@astrojs/solid-js": minor
|
||||
"@astrojs/lit": minor
|
||||
"@astrojs/mdx": minor
|
||||
"@astrojs/vue": minor
|
||||
"astro": patch
|
||||
---
|
||||
|
||||
The integration now exposes a function called `getContainerRenderer`, that can be used inside the Container APIs to load the relative renderer.
|
||||
|
||||
```js
|
||||
import { experimental_AstroContainer as AstroContainer } from 'astro/container';
|
||||
import ReactWrapper from '../src/components/ReactWrapper.astro';
|
||||
import { loadRenderers } from "astro:container";
|
||||
import { getContainerRenderer } from "@astrojs/react";
|
||||
|
||||
test('ReactWrapper with react renderer', async () => {
|
||||
const renderers = await loadRenderers([getContainerRenderer()])
|
||||
const container = await AstroContainer.create({
|
||||
renderers,
|
||||
});
|
||||
const result = await container.renderToString(ReactWrapper);
|
||||
|
||||
expect(result).toContain('Counter');
|
||||
expect(result).toContain('Count: <!-- -->5');
|
||||
});
|
||||
```
|
|
@ -1,36 +0,0 @@
|
|||
---
|
||||
"astro": patch
|
||||
---
|
||||
|
||||
**BREAKING CHANGE to the experimental Container API only**
|
||||
|
||||
Changes the **type** of the `renderers` option of the `AstroContainer::create` function and adds a dedicated function `loadRenderers()` to load the rendering scripts from renderer integration packages (`@astrojs/react`, `@astrojs/preact`, `@astrojs/solid-js`, `@astrojs/svelte`, `@astrojs/vue`, `@astrojs/lit`, and `@astrojs/mdx`).
|
||||
|
||||
You no longer need to know the individual, direct file paths to the client and server rendering scripts for each renderer integration package. Now, there is a dedicated function to load the renderer from each package, which is available from `getContainerRenderer()`:
|
||||
|
||||
```diff
|
||||
import { experimental_AstroContainer as AstroContainer } from 'astro/container';
|
||||
import ReactWrapper from '../src/components/ReactWrapper.astro';
|
||||
import { loadRenderers } from "astro:container";
|
||||
import { getContainerRenderer } from "@astrojs/react";
|
||||
|
||||
test('ReactWrapper with react renderer', async () => {
|
||||
+ const renderers = await loadRenderers([getContainerRenderer()])
|
||||
- const renderers = [
|
||||
- {
|
||||
- name: '@astrojs/react',
|
||||
- clientEntrypoint: '@astrojs/react/client.js',
|
||||
- serverEntrypoint: '@astrojs/react/server.js',
|
||||
- },
|
||||
- ];
|
||||
const container = await AstroContainer.create({
|
||||
renderers,
|
||||
});
|
||||
const result = await container.renderToString(ReactWrapper);
|
||||
|
||||
expect(result).toContain('Counter');
|
||||
expect(result).toContain('Count: <!-- -->5');
|
||||
});
|
||||
```
|
||||
|
||||
The new `loadRenderers()` helper function is available from `astro:container`, a virtual module that can be used when running the Astro container inside `vite`.
|
|
@ -1,7 +0,0 @@
|
|||
---
|
||||
"astro": patch
|
||||
---
|
||||
|
||||
It's not possible anymore to use `Astro.rewrite("/404")` inside static pages. This isn't counterproductive because Astro will end-up emitting a page that contains the HTML of 404 error page.
|
||||
|
||||
It's still possible to use `Astro.rewrite("/404")` inside on-demand pages, or pages that opt-out from prerendering.
|
|
@ -1,70 +0,0 @@
|
|||
---
|
||||
"astro": minor
|
||||
---
|
||||
|
||||
Adds experimental support for the `astro:env` API.
|
||||
|
||||
The `astro:env` API lets you configure a type-safe schema for your environment variables, and indicate whether they should be available on the server or the client. Import and use your defined variables from the appropriate `/client` or `/server` module:
|
||||
|
||||
```astro
|
||||
---
|
||||
import { PUBLIC_APP_ID } from "astro:env/client"
|
||||
import { PUBLIC_API_URL, getSecret } from "astro:env/server"
|
||||
const API_TOKEN = getSecret("API_TOKEN")
|
||||
|
||||
const data = await fetch(`${PUBLIC_API_URL}/users`, {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
"Authorization": `Bearer ${API_TOKEN}`
|
||||
},
|
||||
body: JSON.stringify({ appId: PUBLIC_APP_ID })
|
||||
})
|
||||
---
|
||||
```
|
||||
|
||||
To define the data type and properties of your environment variables, declare a schema in your Astro config in `experimental.env.schema`. The `envField` helper allows you define your variable as a string, number, or boolean and pass properties in an object:
|
||||
|
||||
```js
|
||||
// astro.config.mjs
|
||||
import { defineConfig, envField } from "astro/config"
|
||||
|
||||
export default defineConfig({
|
||||
experimental: {
|
||||
env: {
|
||||
schema: {
|
||||
PUBLIC_API_URL: envField.string({ context: "client", access: "public", optional: true }),
|
||||
PUBLIC_PORT: envField.number({ context: "server", access: "public", default: 4321 }),
|
||||
API_SECRET: envField.string({ context: "server", access: "secret" }),
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
```
|
||||
|
||||
There are three kinds of environment variables, determined by the combination of `context` (`client` or `server`) and `access` (`private` or `public`) settings defined in your [`env.schema`](#experimentalenvschema):
|
||||
|
||||
- **Public client variables**: These variables end up in both your final client and server bundles, and can be accessed from both client and server through the `astro:env/client` module:
|
||||
|
||||
```js
|
||||
import { PUBLIC_API_URL } from "astro:env/client"
|
||||
```
|
||||
|
||||
- **Public server variables**: These variables end up in your final server bundle and can be accessed on the server through the `astro:env/server` module:
|
||||
|
||||
```js
|
||||
import { PUBLIC_PORT } from "astro:env/server"
|
||||
```
|
||||
|
||||
- **Secret server variables**: These variables are not part of your final bundle and can be accessed on the server through the `getSecret()` helper function available from the `astro:env/server` module:
|
||||
|
||||
```js
|
||||
import { getSecret } from "astro:env/server"
|
||||
|
||||
const API_SECRET = getSecret("API_SECRET") // typed
|
||||
const SECRET_NOT_IN_SCHEMA = getSecret("SECRET_NOT_IN_SCHEMA") // string | undefined
|
||||
```
|
||||
|
||||
**Note:** Secret client variables are not supported because there is no safe way to send this data to the client. Therefore, it is not possible to configure both `context: "client"` and `access: "secret"` in your schema.
|
||||
|
||||
To learn more, check out [the documentation](https://docs.astro.build/en/reference/configuration-reference/#experimentalenv).
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
"astro": patch
|
||||
---
|
||||
|
||||
Fixes a case where `Astro.url` would be incorrect when having `build.format` set to `'preserve'` in the Astro config
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Fixes an issue where `Astro.rewrite` wasn't carrying over the body of a `Request` in on-demand pages.
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Fixes an issue where the function `getViteConfig` wasn't returning the correct merged Astro configuration
|
|
@ -11,6 +11,6 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^4.9.3"
|
||||
"astro": "^4.10.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/mdx": "^3.0.1",
|
||||
"@astrojs/mdx": "^3.1.0",
|
||||
"@astrojs/rss": "^4.0.6",
|
||||
"@astrojs/sitemap": "^3.1.5",
|
||||
"astro": "^4.9.3"
|
||||
"astro": "^4.10.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
],
|
||||
"scripts": {},
|
||||
"devDependencies": {
|
||||
"astro": "^4.9.3"
|
||||
"astro": "^4.10.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"astro": "^4.0.0"
|
||||
|
|
|
@ -12,8 +12,8 @@
|
|||
"test": "vitest run"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "experimental--container",
|
||||
"@astrojs/react": "experimental--container",
|
||||
"astro": "^4.10.0",
|
||||
"@astrojs/react": "^3.5.0",
|
||||
"react": "^18.3.1",
|
||||
"react-dom": "^18.3.1",
|
||||
"vitest": "^1.6.0"
|
||||
|
|
|
@ -14,6 +14,6 @@
|
|||
"@astrojs/alpinejs": "^0.4.0",
|
||||
"@types/alpinejs": "^3.13.10",
|
||||
"alpinejs": "^3.14.0",
|
||||
"astro": "^4.9.3"
|
||||
"astro": "^4.10.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/lit": "^4.1.0",
|
||||
"@astrojs/lit": "^4.2.0",
|
||||
"@webcomponents/template-shadowroot": "^0.2.1",
|
||||
"astro": "^4.9.3",
|
||||
"astro": "^4.10.0",
|
||||
"lit": "^3.1.3"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,14 +11,14 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/preact": "^3.3.0",
|
||||
"@astrojs/react": "^3.4.0",
|
||||
"@astrojs/solid-js": "^4.2.0",
|
||||
"@astrojs/svelte": "^5.4.0",
|
||||
"@astrojs/vue": "^4.3.0",
|
||||
"@astrojs/preact": "^3.4.0",
|
||||
"@astrojs/react": "^3.5.0",
|
||||
"@astrojs/solid-js": "^4.3.0",
|
||||
"@astrojs/svelte": "^5.5.0",
|
||||
"@astrojs/vue": "^4.4.0",
|
||||
"@types/react": "^18.3.3",
|
||||
"@types/react-dom": "^18.3.0",
|
||||
"astro": "^4.9.3",
|
||||
"astro": "^4.10.0",
|
||||
"preact": "^10.22.0",
|
||||
"react": "^18.3.1",
|
||||
"react-dom": "^18.3.1",
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/preact": "^3.3.0",
|
||||
"@astrojs/preact": "^3.4.0",
|
||||
"@preact/signals": "^1.2.3",
|
||||
"astro": "^4.9.3",
|
||||
"astro": "^4.10.0",
|
||||
"preact": "^10.22.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,10 +11,10 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/react": "^3.4.0",
|
||||
"@astrojs/react": "^3.5.0",
|
||||
"@types/react": "^18.3.3",
|
||||
"@types/react-dom": "^18.3.0",
|
||||
"astro": "^4.9.3",
|
||||
"astro": "^4.10.0",
|
||||
"react": "^18.3.1",
|
||||
"react-dom": "^18.3.1"
|
||||
}
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/solid-js": "^4.2.0",
|
||||
"astro": "^4.9.3",
|
||||
"@astrojs/solid-js": "^4.3.0",
|
||||
"astro": "^4.10.0",
|
||||
"solid-js": "^1.8.17"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/svelte": "^5.4.0",
|
||||
"astro": "^4.9.3",
|
||||
"@astrojs/svelte": "^5.5.0",
|
||||
"astro": "^4.10.0",
|
||||
"svelte": "^4.2.17"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/vue": "^4.3.0",
|
||||
"astro": "^4.9.3",
|
||||
"@astrojs/vue": "^4.4.0",
|
||||
"astro": "^4.10.0",
|
||||
"vue": "^3.4.27"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,6 +12,6 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@astrojs/node": "^8.2.5",
|
||||
"astro": "^4.9.3"
|
||||
"astro": "^4.10.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
],
|
||||
"scripts": {},
|
||||
"devDependencies": {
|
||||
"astro": "^4.9.3"
|
||||
"astro": "^4.10.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"astro": "^4.0.0"
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@astrojs/node": "^8.2.5",
|
||||
"astro": "^4.9.3",
|
||||
"astro": "^4.10.0",
|
||||
"html-minifier": "^4.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
@ -11,6 +11,6 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^4.9.3"
|
||||
"astro": "^4.10.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,6 +11,6 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^4.9.3"
|
||||
"astro": "^4.10.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,6 +11,6 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^4.9.3"
|
||||
"astro": "^4.10.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,8 +13,8 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@astrojs/node": "^8.2.5",
|
||||
"@astrojs/svelte": "^5.4.0",
|
||||
"astro": "^4.9.3",
|
||||
"@astrojs/svelte": "^5.5.0",
|
||||
"astro": "^4.10.0",
|
||||
"svelte": "^4.2.17"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^4.9.3",
|
||||
"astro": "^4.10.0",
|
||||
"sass": "^1.77.3",
|
||||
"sharp": "^0.33.3"
|
||||
}
|
||||
|
|
|
@ -15,6 +15,6 @@
|
|||
"./app": "./dist/app.js"
|
||||
},
|
||||
"devDependencies": {
|
||||
"astro": "^4.9.3"
|
||||
"astro": "^4.10.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,6 +12,6 @@
|
|||
"devDependencies": {
|
||||
"@astrojs/tailwind": "^5.1.0",
|
||||
"@astrojs/node": "^8.2.5",
|
||||
"astro": "^4.9.3"
|
||||
"astro": "^4.10.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,6 +12,6 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@astrojs/markdoc": "^0.11.0",
|
||||
"astro": "^4.9.3"
|
||||
"astro": "^4.10.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@astrojs/markdown-remark": "^5.1.0",
|
||||
"astro": "^4.9.3",
|
||||
"astro": "^4.10.0",
|
||||
"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": "^4.9.3"
|
||||
"astro": "^4.10.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/mdx": "^3.0.1",
|
||||
"@astrojs/preact": "^3.3.0",
|
||||
"astro": "^4.9.3",
|
||||
"@astrojs/mdx": "^3.1.0",
|
||||
"@astrojs/preact": "^3.4.0",
|
||||
"astro": "^4.10.0",
|
||||
"preact": "^10.22.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/preact": "^3.3.0",
|
||||
"@astrojs/preact": "^3.4.0",
|
||||
"@nanostores/preact": "^0.5.1",
|
||||
"astro": "^4.9.3",
|
||||
"astro": "^4.10.0",
|
||||
"nanostores": "^0.10.3",
|
||||
"preact": "^10.22.0"
|
||||
}
|
||||
|
|
|
@ -11,10 +11,10 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/mdx": "^3.0.1",
|
||||
"@astrojs/mdx": "^3.1.0",
|
||||
"@astrojs/tailwind": "^5.1.0",
|
||||
"@types/canvas-confetti": "^1.6.4",
|
||||
"astro": "^4.9.3",
|
||||
"astro": "^4.10.0",
|
||||
"autoprefixer": "^10.4.19",
|
||||
"canvas-confetti": "^1.9.3",
|
||||
"postcss": "^8.4.38",
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
"test": "vitest"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^4.9.3",
|
||||
"astro": "^4.10.0",
|
||||
"vitest": "^1.6.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,145 @@
|
|||
# astro
|
||||
|
||||
## 4.10.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- [#10974](https://github.com/withastro/astro/pull/10974) [`2668ef9`](https://github.com/withastro/astro/commit/2668ef984104574f25f29ef75e2572a0745d1666) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - Adds experimental support for the `astro:env` API.
|
||||
|
||||
The `astro:env` API lets you configure a type-safe schema for your environment variables, and indicate whether they should be available on the server or the client. Import and use your defined variables from the appropriate `/client` or `/server` module:
|
||||
|
||||
```astro
|
||||
---
|
||||
import { PUBLIC_APP_ID } from 'astro:env/client';
|
||||
import { PUBLIC_API_URL, getSecret } from 'astro:env/server';
|
||||
const API_TOKEN = getSecret('API_TOKEN');
|
||||
|
||||
const data = await fetch(`${PUBLIC_API_URL}/users`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
Authorization: `Bearer ${API_TOKEN}`,
|
||||
},
|
||||
body: JSON.stringify({ appId: PUBLIC_APP_ID }),
|
||||
});
|
||||
---
|
||||
```
|
||||
|
||||
To define the data type and properties of your environment variables, declare a schema in your Astro config in `experimental.env.schema`. The `envField` helper allows you define your variable as a string, number, or boolean and pass properties in an object:
|
||||
|
||||
```js
|
||||
// astro.config.mjs
|
||||
import { defineConfig, envField } from 'astro/config';
|
||||
|
||||
export default defineConfig({
|
||||
experimental: {
|
||||
env: {
|
||||
schema: {
|
||||
PUBLIC_API_URL: envField.string({ context: 'client', access: 'public', optional: true }),
|
||||
PUBLIC_PORT: envField.number({ context: 'server', access: 'public', default: 4321 }),
|
||||
API_SECRET: envField.string({ context: 'server', access: 'secret' }),
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
```
|
||||
|
||||
There are three kinds of environment variables, determined by the combination of `context` (`client` or `server`) and `access` (`private` or `public`) settings defined in your [`env.schema`](#experimentalenvschema):
|
||||
|
||||
- **Public client variables**: These variables end up in both your final client and server bundles, and can be accessed from both client and server through the `astro:env/client` module:
|
||||
|
||||
```js
|
||||
import { PUBLIC_API_URL } from 'astro:env/client';
|
||||
```
|
||||
|
||||
- **Public server variables**: These variables end up in your final server bundle and can be accessed on the server through the `astro:env/server` module:
|
||||
|
||||
```js
|
||||
import { PUBLIC_PORT } from 'astro:env/server';
|
||||
```
|
||||
|
||||
- **Secret server variables**: These variables are not part of your final bundle and can be accessed on the server through the `getSecret()` helper function available from the `astro:env/server` module:
|
||||
|
||||
```js
|
||||
import { getSecret } from 'astro:env/server';
|
||||
|
||||
const API_SECRET = getSecret('API_SECRET'); // typed
|
||||
const SECRET_NOT_IN_SCHEMA = getSecret('SECRET_NOT_IN_SCHEMA'); // string | undefined
|
||||
```
|
||||
|
||||
**Note:** Secret client variables are not supported because there is no safe way to send this data to the client. Therefore, it is not possible to configure both `context: "client"` and `access: "secret"` in your schema.
|
||||
|
||||
To learn more, check out [the documentation](https://docs.astro.build/en/reference/configuration-reference/#experimentalenv).
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#11192](https://github.com/withastro/astro/pull/11192) [`58b10a0`](https://github.com/withastro/astro/commit/58b10a073192030a251cff8ad706ab5b015180c9) Thanks [@liruifengv](https://github.com/liruifengv)! - Improves DX by throwing the original `AstroUserError` when an error is thrown inside a `.mdx` file.
|
||||
|
||||
- [#11136](https://github.com/withastro/astro/pull/11136) [`35ef53c`](https://github.com/withastro/astro/commit/35ef53c0897c0d360efc086a71c5f4406721d2fe) Thanks [@ematipico](https://github.com/ematipico)! - Errors that are emitted during a rewrite are now bubbled up and shown to the user. A 404 response is not returned anymore.
|
||||
|
||||
- [#11144](https://github.com/withastro/astro/pull/11144) [`803dd80`](https://github.com/withastro/astro/commit/803dd8061df02138b4928442bcb76e77dcf6f5e7) Thanks [@ematipico](https://github.com/ematipico)! - The integration now exposes a function called `getContainerRenderer`, that can be used inside the Container APIs to load the relative renderer.
|
||||
|
||||
```js
|
||||
import { experimental_AstroContainer as AstroContainer } from 'astro/container';
|
||||
import ReactWrapper from '../src/components/ReactWrapper.astro';
|
||||
import { loadRenderers } from 'astro:container';
|
||||
import { getContainerRenderer } from '@astrojs/react';
|
||||
|
||||
test('ReactWrapper with react renderer', async () => {
|
||||
const renderers = await loadRenderers([getContainerRenderer()]);
|
||||
const container = await AstroContainer.create({
|
||||
renderers,
|
||||
});
|
||||
const result = await container.renderToString(ReactWrapper);
|
||||
|
||||
expect(result).toContain('Counter');
|
||||
expect(result).toContain('Count: <!-- -->5');
|
||||
});
|
||||
```
|
||||
|
||||
- [#11144](https://github.com/withastro/astro/pull/11144) [`803dd80`](https://github.com/withastro/astro/commit/803dd8061df02138b4928442bcb76e77dcf6f5e7) Thanks [@ematipico](https://github.com/ematipico)! - **BREAKING CHANGE to the experimental Container API only**
|
||||
|
||||
Changes the **type** of the `renderers` option of the `AstroContainer::create` function and adds a dedicated function `loadRenderers()` to load the rendering scripts from renderer integration packages (`@astrojs/react`, `@astrojs/preact`, `@astrojs/solid-js`, `@astrojs/svelte`, `@astrojs/vue`, `@astrojs/lit`, and `@astrojs/mdx`).
|
||||
|
||||
You no longer need to know the individual, direct file paths to the client and server rendering scripts for each renderer integration package. Now, there is a dedicated function to load the renderer from each package, which is available from `getContainerRenderer()`:
|
||||
|
||||
```diff
|
||||
import { experimental_AstroContainer as AstroContainer } from 'astro/container';
|
||||
import ReactWrapper from '../src/components/ReactWrapper.astro';
|
||||
import { loadRenderers } from "astro:container";
|
||||
import { getContainerRenderer } from "@astrojs/react";
|
||||
|
||||
test('ReactWrapper with react renderer', async () => {
|
||||
+ const renderers = await loadRenderers([getContainerRenderer()])
|
||||
- const renderers = [
|
||||
- {
|
||||
- name: '@astrojs/react',
|
||||
- clientEntrypoint: '@astrojs/react/client.js',
|
||||
- serverEntrypoint: '@astrojs/react/server.js',
|
||||
- },
|
||||
- ];
|
||||
const container = await AstroContainer.create({
|
||||
renderers,
|
||||
});
|
||||
const result = await container.renderToString(ReactWrapper);
|
||||
|
||||
expect(result).toContain('Counter');
|
||||
expect(result).toContain('Count: <!-- -->5');
|
||||
});
|
||||
```
|
||||
|
||||
The new `loadRenderers()` helper function is available from `astro:container`, a virtual module that can be used when running the Astro container inside `vite`.
|
||||
|
||||
- [#11136](https://github.com/withastro/astro/pull/11136) [`35ef53c`](https://github.com/withastro/astro/commit/35ef53c0897c0d360efc086a71c5f4406721d2fe) Thanks [@ematipico](https://github.com/ematipico)! - It's not possible anymore to use `Astro.rewrite("/404")` inside static pages. This isn't counterproductive because Astro will end-up emitting a page that contains the HTML of 404 error page.
|
||||
|
||||
It's still possible to use `Astro.rewrite("/404")` inside on-demand pages, or pages that opt-out from prerendering.
|
||||
|
||||
- [#11191](https://github.com/withastro/astro/pull/11191) [`6e29a17`](https://github.com/withastro/astro/commit/6e29a172f153d15fac07320488fae01dece71748) Thanks [@matthewp](https://github.com/matthewp)! - Fixes a case where `Astro.url` would be incorrect when having `build.format` set to `'preserve'` in the Astro config
|
||||
|
||||
- [#11182](https://github.com/withastro/astro/pull/11182) [`40b0b4d`](https://github.com/withastro/astro/commit/40b0b4d1e4ef1aa95d5e9011652444b855ab0b9c) Thanks [@ematipico](https://github.com/ematipico)! - Fixes an issue where `Astro.rewrite` wasn't carrying over the body of a `Request` in on-demand pages.
|
||||
|
||||
- [#11194](https://github.com/withastro/astro/pull/11194) [`97fbe93`](https://github.com/withastro/astro/commit/97fbe938a9b07d52d61011da4bd5a8b5ad85a700) Thanks [@ematipico](https://github.com/ematipico)! - Fixes an issue where the function `getViteConfig` wasn't returning the correct merged Astro configuration
|
||||
|
||||
## 4.9.3
|
||||
|
||||
### Patch Changes
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "astro",
|
||||
"version": "4.9.3",
|
||||
"version": "4.10.0",
|
||||
"description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.",
|
||||
"type": "module",
|
||||
"author": "withastro",
|
||||
|
|
|
@ -1,5 +1,29 @@
|
|||
# @astrojs/lit
|
||||
|
||||
## 4.2.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- [#11144](https://github.com/withastro/astro/pull/11144) [`803dd80`](https://github.com/withastro/astro/commit/803dd8061df02138b4928442bcb76e77dcf6f5e7) Thanks [@ematipico](https://github.com/ematipico)! - The integration now exposes a function called `getContainerRenderer`, that can be used inside the Container APIs to load the relative renderer.
|
||||
|
||||
```js
|
||||
import { experimental_AstroContainer as AstroContainer } from 'astro/container';
|
||||
import ReactWrapper from '../src/components/ReactWrapper.astro';
|
||||
import { loadRenderers } from 'astro:container';
|
||||
import { getContainerRenderer } from '@astrojs/react';
|
||||
|
||||
test('ReactWrapper with react renderer', async () => {
|
||||
const renderers = await loadRenderers([getContainerRenderer()]);
|
||||
const container = await AstroContainer.create({
|
||||
renderers,
|
||||
});
|
||||
const result = await container.renderToString(ReactWrapper);
|
||||
|
||||
expect(result).toContain('Counter');
|
||||
expect(result).toContain('Count: <!-- -->5');
|
||||
});
|
||||
```
|
||||
|
||||
## 4.1.0
|
||||
|
||||
### Minor Changes
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@astrojs/lit",
|
||||
"version": "4.1.0",
|
||||
"version": "4.2.0",
|
||||
"description": "Use Lit components within Astro",
|
||||
"type": "module",
|
||||
"types": "./dist/index.d.ts",
|
||||
|
|
|
@ -1,5 +1,29 @@
|
|||
# @astrojs/mdx
|
||||
|
||||
## 3.1.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- [#11144](https://github.com/withastro/astro/pull/11144) [`803dd80`](https://github.com/withastro/astro/commit/803dd8061df02138b4928442bcb76e77dcf6f5e7) Thanks [@ematipico](https://github.com/ematipico)! - The integration now exposes a function called `getContainerRenderer`, that can be used inside the Container APIs to load the relative renderer.
|
||||
|
||||
```js
|
||||
import { experimental_AstroContainer as AstroContainer } from 'astro/container';
|
||||
import ReactWrapper from '../src/components/ReactWrapper.astro';
|
||||
import { loadRenderers } from 'astro:container';
|
||||
import { getContainerRenderer } from '@astrojs/react';
|
||||
|
||||
test('ReactWrapper with react renderer', async () => {
|
||||
const renderers = await loadRenderers([getContainerRenderer()]);
|
||||
const container = await AstroContainer.create({
|
||||
renderers,
|
||||
});
|
||||
const result = await container.renderToString(ReactWrapper);
|
||||
|
||||
expect(result).toContain('Counter');
|
||||
expect(result).toContain('Count: <!-- -->5');
|
||||
});
|
||||
```
|
||||
|
||||
## 3.0.1
|
||||
|
||||
### Patch Changes
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@astrojs/mdx",
|
||||
"description": "Add support for MDX pages in your Astro site",
|
||||
"version": "3.0.1",
|
||||
"version": "3.1.0",
|
||||
"type": "module",
|
||||
"types": "./dist/index.d.ts",
|
||||
"author": "withastro",
|
||||
|
|
|
@ -1,5 +1,29 @@
|
|||
# @astrojs/preact
|
||||
|
||||
## 3.4.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- [#11144](https://github.com/withastro/astro/pull/11144) [`803dd80`](https://github.com/withastro/astro/commit/803dd8061df02138b4928442bcb76e77dcf6f5e7) Thanks [@ematipico](https://github.com/ematipico)! - The integration now exposes a function called `getContainerRenderer`, that can be used inside the Container APIs to load the relative renderer.
|
||||
|
||||
```js
|
||||
import { experimental_AstroContainer as AstroContainer } from 'astro/container';
|
||||
import ReactWrapper from '../src/components/ReactWrapper.astro';
|
||||
import { loadRenderers } from 'astro:container';
|
||||
import { getContainerRenderer } from '@astrojs/react';
|
||||
|
||||
test('ReactWrapper with react renderer', async () => {
|
||||
const renderers = await loadRenderers([getContainerRenderer()]);
|
||||
const container = await AstroContainer.create({
|
||||
renderers,
|
||||
});
|
||||
const result = await container.renderToString(ReactWrapper);
|
||||
|
||||
expect(result).toContain('Counter');
|
||||
expect(result).toContain('Count: <!-- -->5');
|
||||
});
|
||||
```
|
||||
|
||||
## 3.3.0
|
||||
|
||||
### Minor Changes
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@astrojs/preact",
|
||||
"description": "Use Preact components within Astro",
|
||||
"version": "3.3.0",
|
||||
"version": "3.4.0",
|
||||
"type": "module",
|
||||
"types": "./dist/index.d.ts",
|
||||
"author": "withastro",
|
||||
|
|
|
@ -1,5 +1,29 @@
|
|||
# @astrojs/react
|
||||
|
||||
## 3.5.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- [#11144](https://github.com/withastro/astro/pull/11144) [`803dd80`](https://github.com/withastro/astro/commit/803dd8061df02138b4928442bcb76e77dcf6f5e7) Thanks [@ematipico](https://github.com/ematipico)! - The integration now exposes a function called `getContainerRenderer`, that can be used inside the Container APIs to load the relative renderer.
|
||||
|
||||
```js
|
||||
import { experimental_AstroContainer as AstroContainer } from 'astro/container';
|
||||
import ReactWrapper from '../src/components/ReactWrapper.astro';
|
||||
import { loadRenderers } from 'astro:container';
|
||||
import { getContainerRenderer } from '@astrojs/react';
|
||||
|
||||
test('ReactWrapper with react renderer', async () => {
|
||||
const renderers = await loadRenderers([getContainerRenderer()]);
|
||||
const container = await AstroContainer.create({
|
||||
renderers,
|
||||
});
|
||||
const result = await container.renderToString(ReactWrapper);
|
||||
|
||||
expect(result).toContain('Counter');
|
||||
expect(result).toContain('Count: <!-- -->5');
|
||||
});
|
||||
```
|
||||
|
||||
## 3.4.0
|
||||
|
||||
### Minor Changes
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@astrojs/react",
|
||||
"description": "Use React components within Astro",
|
||||
"version": "3.4.0",
|
||||
"version": "3.5.0",
|
||||
"type": "module",
|
||||
"types": "./dist/index.d.ts",
|
||||
"author": "withastro",
|
||||
|
|
|
@ -1,5 +1,29 @@
|
|||
# @astrojs/solid-js
|
||||
|
||||
## 4.3.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- [#11144](https://github.com/withastro/astro/pull/11144) [`803dd80`](https://github.com/withastro/astro/commit/803dd8061df02138b4928442bcb76e77dcf6f5e7) Thanks [@ematipico](https://github.com/ematipico)! - The integration now exposes a function called `getContainerRenderer`, that can be used inside the Container APIs to load the relative renderer.
|
||||
|
||||
```js
|
||||
import { experimental_AstroContainer as AstroContainer } from 'astro/container';
|
||||
import ReactWrapper from '../src/components/ReactWrapper.astro';
|
||||
import { loadRenderers } from 'astro:container';
|
||||
import { getContainerRenderer } from '@astrojs/react';
|
||||
|
||||
test('ReactWrapper with react renderer', async () => {
|
||||
const renderers = await loadRenderers([getContainerRenderer()]);
|
||||
const container = await AstroContainer.create({
|
||||
renderers,
|
||||
});
|
||||
const result = await container.renderToString(ReactWrapper);
|
||||
|
||||
expect(result).toContain('Counter');
|
||||
expect(result).toContain('Count: <!-- -->5');
|
||||
});
|
||||
```
|
||||
|
||||
## 4.2.0
|
||||
|
||||
### Minor Changes
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@astrojs/solid-js",
|
||||
"version": "4.2.0",
|
||||
"version": "4.3.0",
|
||||
"description": "Use Solid components within Astro",
|
||||
"type": "module",
|
||||
"types": "./dist/index.d.ts",
|
||||
|
|
|
@ -1,5 +1,29 @@
|
|||
# @astrojs/svelte
|
||||
|
||||
## 5.5.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- [#11144](https://github.com/withastro/astro/pull/11144) [`803dd80`](https://github.com/withastro/astro/commit/803dd8061df02138b4928442bcb76e77dcf6f5e7) Thanks [@ematipico](https://github.com/ematipico)! - The integration now exposes a function called `getContainerRenderer`, that can be used inside the Container APIs to load the relative renderer.
|
||||
|
||||
```js
|
||||
import { experimental_AstroContainer as AstroContainer } from 'astro/container';
|
||||
import ReactWrapper from '../src/components/ReactWrapper.astro';
|
||||
import { loadRenderers } from 'astro:container';
|
||||
import { getContainerRenderer } from '@astrojs/react';
|
||||
|
||||
test('ReactWrapper with react renderer', async () => {
|
||||
const renderers = await loadRenderers([getContainerRenderer()]);
|
||||
const container = await AstroContainer.create({
|
||||
renderers,
|
||||
});
|
||||
const result = await container.renderToString(ReactWrapper);
|
||||
|
||||
expect(result).toContain('Counter');
|
||||
expect(result).toContain('Count: <!-- -->5');
|
||||
});
|
||||
```
|
||||
|
||||
## 5.4.0
|
||||
|
||||
### Minor Changes
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@astrojs/svelte",
|
||||
"version": "5.4.0",
|
||||
"version": "5.5.0",
|
||||
"description": "Use Svelte components within Astro",
|
||||
"type": "module",
|
||||
"types": "./dist/index.d.ts",
|
||||
|
|
|
@ -1,5 +1,29 @@
|
|||
# @astrojs/vue
|
||||
|
||||
## 4.4.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- [#11144](https://github.com/withastro/astro/pull/11144) [`803dd80`](https://github.com/withastro/astro/commit/803dd8061df02138b4928442bcb76e77dcf6f5e7) Thanks [@ematipico](https://github.com/ematipico)! - The integration now exposes a function called `getContainerRenderer`, that can be used inside the Container APIs to load the relative renderer.
|
||||
|
||||
```js
|
||||
import { experimental_AstroContainer as AstroContainer } from 'astro/container';
|
||||
import ReactWrapper from '../src/components/ReactWrapper.astro';
|
||||
import { loadRenderers } from 'astro:container';
|
||||
import { getContainerRenderer } from '@astrojs/react';
|
||||
|
||||
test('ReactWrapper with react renderer', async () => {
|
||||
const renderers = await loadRenderers([getContainerRenderer()]);
|
||||
const container = await AstroContainer.create({
|
||||
renderers,
|
||||
});
|
||||
const result = await container.renderToString(ReactWrapper);
|
||||
|
||||
expect(result).toContain('Counter');
|
||||
expect(result).toContain('Count: <!-- -->5');
|
||||
});
|
||||
```
|
||||
|
||||
## 4.3.0
|
||||
|
||||
### Minor Changes
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@astrojs/vue",
|
||||
"version": "4.3.0",
|
||||
"version": "4.4.0",
|
||||
"description": "Use Vue components within Astro",
|
||||
"type": "module",
|
||||
"types": "./dist/index.d.ts",
|
||||
|
|
|
@ -128,13 +128,13 @@ importers:
|
|||
examples/basics:
|
||||
dependencies:
|
||||
astro:
|
||||
specifier: ^4.9.3
|
||||
specifier: ^4.10.0
|
||||
version: link:../../packages/astro
|
||||
|
||||
examples/blog:
|
||||
dependencies:
|
||||
'@astrojs/mdx':
|
||||
specifier: ^3.0.1
|
||||
specifier: ^3.1.0
|
||||
version: link:../../packages/integrations/mdx
|
||||
'@astrojs/rss':
|
||||
specifier: ^4.0.6
|
||||
|
@ -143,22 +143,22 @@ importers:
|
|||
specifier: ^3.1.5
|
||||
version: link:../../packages/integrations/sitemap
|
||||
astro:
|
||||
specifier: ^4.9.3
|
||||
specifier: ^4.10.0
|
||||
version: link:../../packages/astro
|
||||
|
||||
examples/component:
|
||||
devDependencies:
|
||||
astro:
|
||||
specifier: ^4.9.3
|
||||
specifier: ^4.10.0
|
||||
version: link:../../packages/astro
|
||||
|
||||
examples/container-with-vitest:
|
||||
dependencies:
|
||||
'@astrojs/react':
|
||||
specifier: experimental--container
|
||||
specifier: ^3.5.0
|
||||
version: link:../../packages/integrations/react
|
||||
astro:
|
||||
specifier: experimental--container
|
||||
specifier: ^4.10.0
|
||||
version: link:../../packages/astro
|
||||
react:
|
||||
specifier: ^18.3.1
|
||||
|
@ -189,19 +189,19 @@ importers:
|
|||
specifier: ^3.14.0
|
||||
version: 3.14.0
|
||||
astro:
|
||||
specifier: ^4.9.3
|
||||
specifier: ^4.10.0
|
||||
version: link:../../packages/astro
|
||||
|
||||
examples/framework-lit:
|
||||
dependencies:
|
||||
'@astrojs/lit':
|
||||
specifier: ^4.1.0
|
||||
specifier: ^4.2.0
|
||||
version: link:../../packages/integrations/lit
|
||||
'@webcomponents/template-shadowroot':
|
||||
specifier: ^0.2.1
|
||||
version: 0.2.1
|
||||
astro:
|
||||
specifier: ^4.9.3
|
||||
specifier: ^4.10.0
|
||||
version: link:../../packages/astro
|
||||
lit:
|
||||
specifier: ^3.1.3
|
||||
|
@ -210,19 +210,19 @@ importers:
|
|||
examples/framework-multiple:
|
||||
dependencies:
|
||||
'@astrojs/preact':
|
||||
specifier: ^3.3.0
|
||||
specifier: ^3.4.0
|
||||
version: link:../../packages/integrations/preact
|
||||
'@astrojs/react':
|
||||
specifier: ^3.4.0
|
||||
specifier: ^3.5.0
|
||||
version: link:../../packages/integrations/react
|
||||
'@astrojs/solid-js':
|
||||
specifier: ^4.2.0
|
||||
specifier: ^4.3.0
|
||||
version: link:../../packages/integrations/solid
|
||||
'@astrojs/svelte':
|
||||
specifier: ^5.4.0
|
||||
specifier: ^5.5.0
|
||||
version: link:../../packages/integrations/svelte
|
||||
'@astrojs/vue':
|
||||
specifier: ^4.3.0
|
||||
specifier: ^4.4.0
|
||||
version: link:../../packages/integrations/vue
|
||||
'@types/react':
|
||||
specifier: ^18.3.3
|
||||
|
@ -231,7 +231,7 @@ importers:
|
|||
specifier: ^18.3.0
|
||||
version: 18.3.0
|
||||
astro:
|
||||
specifier: ^4.9.3
|
||||
specifier: ^4.10.0
|
||||
version: link:../../packages/astro
|
||||
preact:
|
||||
specifier: ^10.22.0
|
||||
|
@ -255,13 +255,13 @@ importers:
|
|||
examples/framework-preact:
|
||||
dependencies:
|
||||
'@astrojs/preact':
|
||||
specifier: ^3.3.0
|
||||
specifier: ^3.4.0
|
||||
version: link:../../packages/integrations/preact
|
||||
'@preact/signals':
|
||||
specifier: ^1.2.3
|
||||
version: 1.2.3(preact@10.22.0)
|
||||
astro:
|
||||
specifier: ^4.9.3
|
||||
specifier: ^4.10.0
|
||||
version: link:../../packages/astro
|
||||
preact:
|
||||
specifier: ^10.22.0
|
||||
|
@ -270,7 +270,7 @@ importers:
|
|||
examples/framework-react:
|
||||
dependencies:
|
||||
'@astrojs/react':
|
||||
specifier: ^3.4.0
|
||||
specifier: ^3.5.0
|
||||
version: link:../../packages/integrations/react
|
||||
'@types/react':
|
||||
specifier: ^18.3.3
|
||||
|
@ -279,7 +279,7 @@ importers:
|
|||
specifier: ^18.3.0
|
||||
version: 18.3.0
|
||||
astro:
|
||||
specifier: ^4.9.3
|
||||
specifier: ^4.10.0
|
||||
version: link:../../packages/astro
|
||||
react:
|
||||
specifier: ^18.3.1
|
||||
|
@ -291,10 +291,10 @@ importers:
|
|||
examples/framework-solid:
|
||||
dependencies:
|
||||
'@astrojs/solid-js':
|
||||
specifier: ^4.2.0
|
||||
specifier: ^4.3.0
|
||||
version: link:../../packages/integrations/solid
|
||||
astro:
|
||||
specifier: ^4.9.3
|
||||
specifier: ^4.10.0
|
||||
version: link:../../packages/astro
|
||||
solid-js:
|
||||
specifier: ^1.8.17
|
||||
|
@ -303,10 +303,10 @@ importers:
|
|||
examples/framework-svelte:
|
||||
dependencies:
|
||||
'@astrojs/svelte':
|
||||
specifier: ^5.4.0
|
||||
specifier: ^5.5.0
|
||||
version: link:../../packages/integrations/svelte
|
||||
astro:
|
||||
specifier: ^4.9.3
|
||||
specifier: ^4.10.0
|
||||
version: link:../../packages/astro
|
||||
svelte:
|
||||
specifier: ^4.2.17
|
||||
|
@ -315,10 +315,10 @@ importers:
|
|||
examples/framework-vue:
|
||||
dependencies:
|
||||
'@astrojs/vue':
|
||||
specifier: ^4.3.0
|
||||
specifier: ^4.4.0
|
||||
version: link:../../packages/integrations/vue
|
||||
astro:
|
||||
specifier: ^4.9.3
|
||||
specifier: ^4.10.0
|
||||
version: link:../../packages/astro
|
||||
vue:
|
||||
specifier: ^3.4.27
|
||||
|
@ -330,13 +330,13 @@ importers:
|
|||
specifier: ^8.2.5
|
||||
version: link:../../packages/integrations/node
|
||||
astro:
|
||||
specifier: ^4.9.3
|
||||
specifier: ^4.10.0
|
||||
version: link:../../packages/astro
|
||||
|
||||
examples/integration:
|
||||
devDependencies:
|
||||
astro:
|
||||
specifier: ^4.9.3
|
||||
specifier: ^4.10.0
|
||||
version: link:../../packages/astro
|
||||
|
||||
examples/middleware:
|
||||
|
@ -345,7 +345,7 @@ importers:
|
|||
specifier: ^8.2.5
|
||||
version: link:../../packages/integrations/node
|
||||
astro:
|
||||
specifier: ^4.9.3
|
||||
specifier: ^4.10.0
|
||||
version: link:../../packages/astro
|
||||
html-minifier:
|
||||
specifier: ^4.0.0
|
||||
|
@ -358,19 +358,19 @@ importers:
|
|||
examples/minimal:
|
||||
dependencies:
|
||||
astro:
|
||||
specifier: ^4.9.3
|
||||
specifier: ^4.10.0
|
||||
version: link:../../packages/astro
|
||||
|
||||
examples/non-html-pages:
|
||||
dependencies:
|
||||
astro:
|
||||
specifier: ^4.9.3
|
||||
specifier: ^4.10.0
|
||||
version: link:../../packages/astro
|
||||
|
||||
examples/portfolio:
|
||||
dependencies:
|
||||
astro:
|
||||
specifier: ^4.9.3
|
||||
specifier: ^4.10.0
|
||||
version: link:../../packages/astro
|
||||
|
||||
examples/ssr:
|
||||
|
@ -379,10 +379,10 @@ importers:
|
|||
specifier: ^8.2.5
|
||||
version: link:../../packages/integrations/node
|
||||
'@astrojs/svelte':
|
||||
specifier: ^5.4.0
|
||||
specifier: ^5.5.0
|
||||
version: link:../../packages/integrations/svelte
|
||||
astro:
|
||||
specifier: ^4.9.3
|
||||
specifier: ^4.10.0
|
||||
version: link:../../packages/astro
|
||||
svelte:
|
||||
specifier: ^4.2.17
|
||||
|
@ -391,7 +391,7 @@ importers:
|
|||
examples/starlog:
|
||||
dependencies:
|
||||
astro:
|
||||
specifier: ^4.9.3
|
||||
specifier: ^4.10.0
|
||||
version: link:../../packages/astro
|
||||
sass:
|
||||
specifier: ^1.77.3
|
||||
|
@ -403,7 +403,7 @@ importers:
|
|||
examples/toolbar-app:
|
||||
devDependencies:
|
||||
astro:
|
||||
specifier: ^4.9.3
|
||||
specifier: ^4.10.0
|
||||
version: link:../../packages/astro
|
||||
|
||||
examples/view-transitions:
|
||||
|
@ -415,7 +415,7 @@ importers:
|
|||
specifier: ^5.1.0
|
||||
version: link:../../packages/integrations/tailwind
|
||||
astro:
|
||||
specifier: ^4.9.3
|
||||
specifier: ^4.10.0
|
||||
version: link:../../packages/astro
|
||||
|
||||
examples/with-markdoc:
|
||||
|
@ -424,7 +424,7 @@ importers:
|
|||
specifier: ^0.11.0
|
||||
version: link:../../packages/integrations/markdoc
|
||||
astro:
|
||||
specifier: ^4.9.3
|
||||
specifier: ^4.10.0
|
||||
version: link:../../packages/astro
|
||||
|
||||
examples/with-markdown-plugins:
|
||||
|
@ -433,7 +433,7 @@ importers:
|
|||
specifier: ^5.1.0
|
||||
version: link:../../packages/markdown/remark
|
||||
astro:
|
||||
specifier: ^4.9.3
|
||||
specifier: ^4.10.0
|
||||
version: link:../../packages/astro
|
||||
hast-util-select:
|
||||
specifier: ^6.0.2
|
||||
|
@ -454,19 +454,19 @@ importers:
|
|||
examples/with-markdown-shiki:
|
||||
dependencies:
|
||||
astro:
|
||||
specifier: ^4.9.3
|
||||
specifier: ^4.10.0
|
||||
version: link:../../packages/astro
|
||||
|
||||
examples/with-mdx:
|
||||
dependencies:
|
||||
'@astrojs/mdx':
|
||||
specifier: ^3.0.1
|
||||
specifier: ^3.1.0
|
||||
version: link:../../packages/integrations/mdx
|
||||
'@astrojs/preact':
|
||||
specifier: ^3.3.0
|
||||
specifier: ^3.4.0
|
||||
version: link:../../packages/integrations/preact
|
||||
astro:
|
||||
specifier: ^4.9.3
|
||||
specifier: ^4.10.0
|
||||
version: link:../../packages/astro
|
||||
preact:
|
||||
specifier: ^10.22.0
|
||||
|
@ -475,13 +475,13 @@ importers:
|
|||
examples/with-nanostores:
|
||||
dependencies:
|
||||
'@astrojs/preact':
|
||||
specifier: ^3.3.0
|
||||
specifier: ^3.4.0
|
||||
version: link:../../packages/integrations/preact
|
||||
'@nanostores/preact':
|
||||
specifier: ^0.5.1
|
||||
version: 0.5.1(nanostores@0.10.3)(preact@10.22.0)
|
||||
astro:
|
||||
specifier: ^4.9.3
|
||||
specifier: ^4.10.0
|
||||
version: link:../../packages/astro
|
||||
nanostores:
|
||||
specifier: ^0.10.3
|
||||
|
@ -493,7 +493,7 @@ importers:
|
|||
examples/with-tailwindcss:
|
||||
dependencies:
|
||||
'@astrojs/mdx':
|
||||
specifier: ^3.0.1
|
||||
specifier: ^3.1.0
|
||||
version: link:../../packages/integrations/mdx
|
||||
'@astrojs/tailwind':
|
||||
specifier: ^5.1.0
|
||||
|
@ -502,7 +502,7 @@ importers:
|
|||
specifier: ^1.6.4
|
||||
version: 1.6.4
|
||||
astro:
|
||||
specifier: ^4.9.3
|
||||
specifier: ^4.10.0
|
||||
version: link:../../packages/astro
|
||||
autoprefixer:
|
||||
specifier: ^10.4.19
|
||||
|
@ -520,7 +520,7 @@ importers:
|
|||
examples/with-vitest:
|
||||
dependencies:
|
||||
astro:
|
||||
specifier: ^4.9.3
|
||||
specifier: ^4.10.0
|
||||
version: link:../../packages/astro
|
||||
vitest:
|
||||
specifier: ^1.6.0
|
||||
|
|
Loading…
Reference in a new issue