mirror of
https://github.com/withastro/astro.git
synced 2025-03-24 23:21:57 -05:00
[ci] release (#10944)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
0ac090dca3
commit
770b9f06c3
77 changed files with 382 additions and 439 deletions
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
"@astrojs/mdx": patch
|
||||
---
|
||||
|
||||
Simplifies plain MDX components as hast element nodes to further improve HTML string inlining for the `optimize` option
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
"astro": patch
|
||||
---
|
||||
|
||||
Improve error message when accessing `clientAddress` on prerendered routes
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
"astro": patch
|
||||
---
|
||||
|
||||
Improves the error message when failed to render MDX components
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
"astro": patch
|
||||
---
|
||||
|
||||
Fixes a case where the local server would crash when the host also contained the port, eg. with `X-Forwarded-Host: hostname:8080` and `X-Forwarded-Port: 8080` headers
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
"@astrojs/mdx": major
|
||||
---
|
||||
|
||||
Refactors the MDX transformation to rely only on the unified pipeline. Babel and esbuild transformations are removed, which should result in faster build times. The refactor requires using Astro v4.8.0 but no other changes are necessary.
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
"astro": minor
|
||||
---
|
||||
|
||||
Exports `astro/jsx/rehype.js` with utilities to generate an Astro metadata object
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
"astro": minor
|
||||
---
|
||||
|
||||
Adds the ability for multiple pages to use the same component as an `entrypoint` when building an Astro integration. This change is purely internal, and aligns the build process with the behaviour in the development server.
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
"astro": patch
|
||||
---
|
||||
|
||||
Refactors internal handling of styles and scripts for content collections to improve build performance
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
"@astrojs/vercel": minor
|
||||
---
|
||||
|
||||
Implements the vercel skew protection
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
"@astrojs/mdx": patch
|
||||
---
|
||||
|
||||
Allows Vite plugins to transform `.mdx` files before the MDX plugin transforms it
|
|
@ -1,18 +0,0 @@
|
|||
---
|
||||
"@astrojs/preact": minor
|
||||
---
|
||||
|
||||
Adds a `devtools` option
|
||||
|
||||
You can enable [Preact devtools](https://preactjs.github.io/preact-devtools/) in development by setting `devtools: true` in your `preact()` integration config:
|
||||
|
||||
```js
|
||||
import { defineConfig } from "astro/config"
|
||||
import preact from "@astrojs/preact"
|
||||
|
||||
export default defineConfig({
|
||||
integrations: [
|
||||
preact({ devtools: true })
|
||||
]
|
||||
})
|
||||
```
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
"astro": minor
|
||||
---
|
||||
|
||||
Adds a new radio checkbox component to the dev toolbar UI library (`astro-dev-toolbar-radio-checkbox`)
|
|
@ -1,22 +0,0 @@
|
|||
---
|
||||
"astro": minor
|
||||
---
|
||||
|
||||
Adds support for passing an inline Astro configuration object to `getViteConfig()`
|
||||
|
||||
If you are using `getViteConfig()` to configure the Vitest test runner, you can now pass a second argument to control how Astro is configured. This makes it possible to configure unit tests with different Astro options when using [Vitest’s workspaces](https://vitest.dev/guide/workspace.html) feature.
|
||||
|
||||
```js
|
||||
// vitest.config.ts
|
||||
import { getViteConfig } from 'astro/config';
|
||||
|
||||
export default getViteConfig(
|
||||
/* Vite configuration */
|
||||
{ test: {} },
|
||||
/* Astro configuration */
|
||||
{
|
||||
site: 'https://example.com',
|
||||
trailingSlash: 'never',
|
||||
},
|
||||
);
|
||||
```
|
|
@ -1,24 +0,0 @@
|
|||
---
|
||||
"@astrojs/solid-js": minor
|
||||
---
|
||||
|
||||
Adds a `devtools` option
|
||||
|
||||
You can enable the [official Solid Devtools](https://github.com/thetarnav/solid-devtools) while working in development mode by setting `devtools: true` in your `solid()` integration config and adding `solid-devtools` to your project dependencies:
|
||||
|
||||
```bash
|
||||
npm install solid-devtools
|
||||
# yarn add solid-devtools
|
||||
# pnpm add solid-devtools
|
||||
```
|
||||
|
||||
```js
|
||||
import { defineConfig } from "astro/config"
|
||||
import solid from "@astrojs/solid-js"
|
||||
|
||||
export default defineConfig({
|
||||
integrations: [
|
||||
solid({ devtools: true })
|
||||
]
|
||||
})
|
||||
```
|
|
@ -1,49 +0,0 @@
|
|||
---
|
||||
"astro": minor
|
||||
---
|
||||
|
||||
Adds experimental rewriting in Astro with a new `rewrite()` function and the middleware `next()` function.
|
||||
|
||||
The feature is available via an experimental flag in `astro.config.mjs`:
|
||||
|
||||
```js
|
||||
export default defineConfig({
|
||||
experimental: {
|
||||
rewriting: true
|
||||
}
|
||||
})
|
||||
```
|
||||
|
||||
When enabled, you can use `rewrite()` to **render** another page without changing the URL of the browser in Astro pages and endpoints.
|
||||
|
||||
```astro
|
||||
---
|
||||
// src/pages/dashboard.astro
|
||||
if (!Astro.props.allowed) {
|
||||
return Astro.rewrite("/")
|
||||
}
|
||||
---
|
||||
```
|
||||
|
||||
```js
|
||||
// src/pages/api.js
|
||||
export function GET(ctx) {
|
||||
if (!ctx.locals.allowed) {
|
||||
return ctx.rewrite("/")
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
The middleware `next()` function now accepts a parameter with the same type as the `rewrite()` function. For example, with `next("/")`, you can call the next middleware function with a new `Request`.
|
||||
|
||||
```js
|
||||
// src/middleware.js
|
||||
export function onRequest(ctx, next) {
|
||||
if (!ctx.cookies.get("allowed")) {
|
||||
return next("/") // new signature
|
||||
}
|
||||
return next();
|
||||
}
|
||||
```
|
||||
|
||||
> **NOTE**: please [read the RFC](https://github.com/withastro/roadmap/blob/feat/reroute/proposals/0047-rerouting.md) to understand the current expectations of the new APIs.
|
|
@ -1,95 +0,0 @@
|
|||
---
|
||||
"astro": minor
|
||||
---
|
||||
|
||||
Adds experimental support for the Actions API. Actions let you define type-safe endpoints you can query from client components with progressive enhancement built in.
|
||||
|
||||
|
||||
Actions help you write type-safe backend functions you can call from anywhere. Enable server rendering [using the `output` property](https://docs.astro.build/en/basics/rendering-modes/#on-demand-rendered) and add the `actions` flag to the `experimental` object:
|
||||
|
||||
```js
|
||||
{
|
||||
output: 'hybrid', // or 'server'
|
||||
experimental: {
|
||||
actions: true,
|
||||
},
|
||||
}
|
||||
```
|
||||
|
||||
Declare all your actions in `src/actions/index.ts`. This file is the global actions handler.
|
||||
|
||||
Define an action using the `defineAction()` utility from the `astro:actions` module. These accept the `handler` property to define your server-side request handler. If your action accepts arguments, apply the `input` property to validate parameters with Zod.
|
||||
|
||||
This example defines two actions: `like` and `comment`. The `like` action accepts a JSON object with a `postId` string, while the `comment` action accepts [FormData](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest_API/Using_FormData_Objects) with `postId`, `author`, and `body` strings. Each `handler` updates your database and return a type-safe response.
|
||||
|
||||
```ts
|
||||
// src/actions/index.ts
|
||||
import { defineAction, z } from "astro:actions";
|
||||
|
||||
export const server = {
|
||||
like: defineAction({
|
||||
input: z.object({ postId: z.string() }),
|
||||
handler: async ({ postId }, context) => {
|
||||
// update likes in db
|
||||
|
||||
return likes;
|
||||
},
|
||||
}),
|
||||
comment: defineAction({
|
||||
accept: 'form',
|
||||
input: z.object({
|
||||
postId: z.string(),
|
||||
author: z.string(),
|
||||
body: z.string(),
|
||||
}),
|
||||
handler: async ({ postId }, context) => {
|
||||
// insert comments in db
|
||||
|
||||
return comment;
|
||||
},
|
||||
}),
|
||||
};
|
||||
```
|
||||
|
||||
Then, call an action from your client components using the `actions` object from `astro:actions`. You can pass a type-safe object when using JSON, or a [FormData](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest_API/Using_FormData_Objects) object when using `accept: 'form'` in your action definition:
|
||||
|
||||
```tsx "actions"
|
||||
// src/components/blog.tsx
|
||||
import { actions } from "astro:actions";
|
||||
import { useState } from "preact/hooks";
|
||||
|
||||
export function Like({ postId }: { postId: string }) {
|
||||
const [likes, setLikes] = useState(0);
|
||||
return (
|
||||
<button
|
||||
onClick={async () => {
|
||||
const newLikes = await actions.like({ postId });
|
||||
setLikes(newLikes);
|
||||
}}
|
||||
>
|
||||
{likes} likes
|
||||
</button>
|
||||
);
|
||||
}
|
||||
|
||||
export function Comment({ postId }: { postId: string }) {
|
||||
return (
|
||||
<form
|
||||
onSubmit={async (e) => {
|
||||
e.preventDefault();
|
||||
const formData = new FormData(e.target);
|
||||
const result = await actions.blog.comment(formData);
|
||||
// handle result
|
||||
}}
|
||||
>
|
||||
<input type="hidden" name="postId" value={postId} />
|
||||
<label for="author">Author</label>
|
||||
<input id="author" type="text" name="author" />
|
||||
<textarea rows={10} name="body"></textarea>
|
||||
<button type="submit">Post</button>
|
||||
</form>
|
||||
);
|
||||
}
|
||||
```
|
||||
|
||||
For a complete overview, and to give feedback on this experimental API, see the [Actions RFC](https://github.com/withastro/roadmap/blob/actions/proposals/0046-actions.md).
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
"@astrojs/react": patch
|
||||
---
|
||||
|
||||
Updates package to support React 19 beta
|
|
@ -1,7 +0,0 @@
|
|||
---
|
||||
"@astrojs/mdx": major
|
||||
---
|
||||
|
||||
Allows integrations after the MDX integration to update `markdown.remarkPlugins` and `markdown.rehypePlugins`, and have the plugins work in MDX too.
|
||||
|
||||
If your integration relies on Astro's previous behavior that prevents integrations from adding remark/rehype plugins for MDX, you will now need to configure `@astrojs/mdx` with `extendMarkdownConfig: false` and explicitly specify any `remarkPlugins` and `rehypePlugins` options instead.
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
"@astrojs/mdx": major
|
||||
---
|
||||
|
||||
Renames the `optimize.customComponentNames` option to `optimize.ignoreElementNames` to better reflect its usecase. Its behaviour is not changed and should continue to work as before.
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
"@astrojs/mdx": patch
|
||||
---
|
||||
|
||||
Updates the `optimize` option to group static sibling nodes as a `<Fragment />`. This reduces the number of AST nodes and simplifies runtime rendering of MDX pages.
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
"astro": patch
|
||||
---
|
||||
|
||||
Preserve content modules properly in cache
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
"astro": patch
|
||||
---
|
||||
|
||||
Handles `AstroUserError`s thrown while syncing content collections and exports `BaseSchema` and `CollectionConfig` types
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
"@astrojs/mdx": major
|
||||
---
|
||||
|
||||
Replaces the internal `remark-images-to-component` plugin with `rehype-images-to-component` to let users use additional rehype plugins for images
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
"@astrojs/mdx": patch
|
||||
---
|
||||
|
||||
Tags the MDX component export for quicker component checks while rendering
|
|
@ -1,18 +0,0 @@
|
|||
---
|
||||
"@astrojs/vue": minor
|
||||
---
|
||||
|
||||
Adds a `devtools` option
|
||||
|
||||
You can enable the [official Vue DevTools](https://devtools-next.vuejs.org/) while working in development mode by setting `devtools:true` in your `vue()` integration config:
|
||||
|
||||
```js
|
||||
import { defineConfig } from "astro/config"
|
||||
import vue from "@astrojs/vue"
|
||||
|
||||
export default defineConfig({
|
||||
integrations: [
|
||||
vue({ devtools: true })
|
||||
]
|
||||
})
|
||||
```
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
"@astrojs/db": patch
|
||||
---
|
||||
|
||||
Convert non-ISO date to UTC time
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
"@astrojs/web-vitals": patch
|
||||
---
|
||||
|
||||
Fixes a runtime issue where Vite was unintentionally pulled into the server code
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
"astro": minor
|
||||
---
|
||||
|
||||
Adds a new `buttonBorderRadius` property to the `astro-dev-toolbar-button` component for the dev toolbar component library. This property can be useful to make a fully rounded button with an icon in the center.
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
"@astrojs/mdx": patch
|
||||
---
|
||||
|
||||
Fixes `export const components` keys detection for the `optimize` option
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
"@astrojs/mdx": patch
|
||||
---
|
||||
|
||||
Improves `optimize` handling for MDX components with attributes and inline MDX components
|
|
@ -11,6 +11,6 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^4.7.1"
|
||||
"astro": "^4.8.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/mdx": "^2.3.1",
|
||||
"@astrojs/mdx": "^3.0.0",
|
||||
"@astrojs/rss": "^4.0.5",
|
||||
"@astrojs/sitemap": "^3.1.4",
|
||||
"astro": "^4.7.1"
|
||||
"astro": "^4.8.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
],
|
||||
"scripts": {},
|
||||
"devDependencies": {
|
||||
"astro": "^4.7.1"
|
||||
"astro": "^4.8.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"astro": "^4.0.0"
|
||||
|
|
|
@ -14,6 +14,6 @@
|
|||
"@astrojs/alpinejs": "^0.4.0",
|
||||
"@types/alpinejs": "^3.13.5",
|
||||
"alpinejs": "^3.13.3",
|
||||
"astro": "^4.7.1"
|
||||
"astro": "^4.8.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
"dependencies": {
|
||||
"@astrojs/lit": "^4.0.1",
|
||||
"@webcomponents/template-shadowroot": "^0.2.1",
|
||||
"astro": "^4.7.1",
|
||||
"astro": "^4.8.0",
|
||||
"lit": "^3.1.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,14 +11,14 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/preact": "^3.2.0",
|
||||
"@astrojs/react": "^3.3.2",
|
||||
"@astrojs/solid-js": "^4.1.0",
|
||||
"@astrojs/preact": "^3.3.0",
|
||||
"@astrojs/react": "^3.3.3",
|
||||
"@astrojs/solid-js": "^4.2.0",
|
||||
"@astrojs/svelte": "^5.4.0",
|
||||
"@astrojs/vue": "^4.1.0",
|
||||
"@astrojs/vue": "^4.2.0",
|
||||
"@types/react": "^18.2.37",
|
||||
"@types/react-dom": "^18.2.15",
|
||||
"astro": "^4.7.1",
|
||||
"astro": "^4.8.0",
|
||||
"preact": "^10.21.0",
|
||||
"react": "^18.3.1",
|
||||
"react-dom": "^18.3.1",
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/preact": "^3.2.0",
|
||||
"@astrojs/preact": "^3.3.0",
|
||||
"@preact/signals": "^1.2.3",
|
||||
"astro": "^4.7.1",
|
||||
"astro": "^4.8.0",
|
||||
"preact": "^10.21.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,10 +11,10 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/react": "^3.3.2",
|
||||
"@astrojs/react": "^3.3.3",
|
||||
"@types/react": "^18.2.37",
|
||||
"@types/react-dom": "^18.2.15",
|
||||
"astro": "^4.7.1",
|
||||
"astro": "^4.8.0",
|
||||
"react": "^18.3.1",
|
||||
"react-dom": "^18.3.1"
|
||||
}
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/solid-js": "^4.1.0",
|
||||
"astro": "^4.7.1",
|
||||
"@astrojs/solid-js": "^4.2.0",
|
||||
"astro": "^4.8.0",
|
||||
"solid-js": "^1.8.17"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@astrojs/svelte": "^5.4.0",
|
||||
"astro": "^4.7.1",
|
||||
"astro": "^4.8.0",
|
||||
"svelte": "^4.2.16"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/vue": "^4.1.0",
|
||||
"astro": "^4.7.1",
|
||||
"@astrojs/vue": "^4.2.0",
|
||||
"astro": "^4.8.0",
|
||||
"vue": "^3.4.27"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,6 +12,6 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@astrojs/node": "^8.2.5",
|
||||
"astro": "^4.7.1"
|
||||
"astro": "^4.8.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
],
|
||||
"scripts": {},
|
||||
"devDependencies": {
|
||||
"astro": "^4.7.1"
|
||||
"astro": "^4.8.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"astro": "^4.0.0"
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@astrojs/node": "^8.2.5",
|
||||
"astro": "^4.7.1",
|
||||
"astro": "^4.8.0",
|
||||
"html-minifier": "^4.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
@ -11,6 +11,6 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^4.7.1"
|
||||
"astro": "^4.8.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,6 +11,6 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^4.7.1"
|
||||
"astro": "^4.8.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,6 +11,6 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^4.7.1"
|
||||
"astro": "^4.8.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
"dependencies": {
|
||||
"@astrojs/node": "^8.2.5",
|
||||
"@astrojs/svelte": "^5.4.0",
|
||||
"astro": "^4.7.1",
|
||||
"astro": "^4.8.0",
|
||||
"svelte": "^4.2.16"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^4.7.1",
|
||||
"astro": "^4.8.0",
|
||||
"sass": "^1.77.0",
|
||||
"sharp": "^0.33.3"
|
||||
}
|
||||
|
|
|
@ -15,6 +15,6 @@
|
|||
"./app": "./dist/app.js"
|
||||
},
|
||||
"devDependencies": {
|
||||
"astro": "^4.7.1"
|
||||
"astro": "^4.8.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,6 +12,6 @@
|
|||
"devDependencies": {
|
||||
"@astrojs/tailwind": "^5.1.0",
|
||||
"@astrojs/node": "^8.2.5",
|
||||
"astro": "^4.7.1"
|
||||
"astro": "^4.8.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,6 +12,6 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@astrojs/markdoc": "^0.11.0",
|
||||
"astro": "^4.7.1"
|
||||
"astro": "^4.8.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@astrojs/markdown-remark": "^5.1.0",
|
||||
"astro": "^4.7.1",
|
||||
"astro": "^4.8.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.7.1"
|
||||
"astro": "^4.8.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/mdx": "^2.3.1",
|
||||
"@astrojs/preact": "^3.2.0",
|
||||
"astro": "^4.7.1",
|
||||
"@astrojs/mdx": "^3.0.0",
|
||||
"@astrojs/preact": "^3.3.0",
|
||||
"astro": "^4.8.0",
|
||||
"preact": "^10.21.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/preact": "^3.2.0",
|
||||
"@astrojs/preact": "^3.3.0",
|
||||
"@nanostores/preact": "^0.5.0",
|
||||
"astro": "^4.7.1",
|
||||
"astro": "^4.8.0",
|
||||
"nanostores": "^0.9.5",
|
||||
"preact": "^10.21.0"
|
||||
}
|
||||
|
|
|
@ -11,10 +11,10 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/mdx": "^2.3.1",
|
||||
"@astrojs/mdx": "^3.0.0",
|
||||
"@astrojs/tailwind": "^5.1.0",
|
||||
"@types/canvas-confetti": "^1.6.3",
|
||||
"astro": "^4.7.1",
|
||||
"astro": "^4.8.0",
|
||||
"autoprefixer": "^10.4.15",
|
||||
"canvas-confetti": "^1.9.1",
|
||||
"postcss": "^8.4.28",
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
"test": "vitest"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^4.7.1",
|
||||
"astro": "^4.8.0",
|
||||
"vitest": "^1.6.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,187 @@
|
|||
# astro
|
||||
|
||||
## 4.8.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- [#10935](https://github.com/withastro/astro/pull/10935) [`ddd8e49`](https://github.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@bluwy](https://github.com/bluwy)! - Exports `astro/jsx/rehype.js` with utilities to generate an Astro metadata object
|
||||
|
||||
- [#10625](https://github.com/withastro/astro/pull/10625) [`698c2d9`](https://github.com/withastro/astro/commit/698c2d9bb51e20b38de405b6076fd6488ddb5c2b) Thanks [@goulvenclech](https://github.com/goulvenclech)! - Adds the ability for multiple pages to use the same component as an `entrypoint` when building an Astro integration. This change is purely internal, and aligns the build process with the behaviour in the development server.
|
||||
|
||||
- [#10906](https://github.com/withastro/astro/pull/10906) [`7bbd664`](https://github.com/withastro/astro/commit/7bbd66459dd29a338ac1dfae0e4c984cb08f73b3) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Adds a new radio checkbox component to the dev toolbar UI library (`astro-dev-toolbar-radio-checkbox`)
|
||||
|
||||
- [#10963](https://github.com/withastro/astro/pull/10963) [`61f47a6`](https://github.com/withastro/astro/commit/61f47a684235a049cbfc4f2cbb5edff3befeced7) Thanks [@delucis](https://github.com/delucis)! - Adds support for passing an inline Astro configuration object to `getViteConfig()`
|
||||
|
||||
If you are using `getViteConfig()` to configure the Vitest test runner, you can now pass a second argument to control how Astro is configured. This makes it possible to configure unit tests with different Astro options when using [Vitest’s workspaces](https://vitest.dev/guide/workspace.html) feature.
|
||||
|
||||
```js
|
||||
// vitest.config.ts
|
||||
import { getViteConfig } from 'astro/config';
|
||||
|
||||
export default getViteConfig(
|
||||
/* Vite configuration */
|
||||
{ test: {} },
|
||||
/* Astro configuration */
|
||||
{
|
||||
site: 'https://example.com',
|
||||
trailingSlash: 'never',
|
||||
}
|
||||
);
|
||||
```
|
||||
|
||||
- [#10867](https://github.com/withastro/astro/pull/10867) [`47877a7`](https://github.com/withastro/astro/commit/47877a75404ccc8786bbea2171015fb088dc01a1) Thanks [@ematipico](https://github.com/ematipico)! - Adds experimental rewriting in Astro with a new `rewrite()` function and the middleware `next()` function.
|
||||
|
||||
The feature is available via an experimental flag in `astro.config.mjs`:
|
||||
|
||||
```js
|
||||
export default defineConfig({
|
||||
experimental: {
|
||||
rewriting: true,
|
||||
},
|
||||
});
|
||||
```
|
||||
|
||||
When enabled, you can use `rewrite()` to **render** another page without changing the URL of the browser in Astro pages and endpoints.
|
||||
|
||||
```astro
|
||||
---
|
||||
// src/pages/dashboard.astro
|
||||
if (!Astro.props.allowed) {
|
||||
return Astro.rewrite('/');
|
||||
}
|
||||
---
|
||||
```
|
||||
|
||||
```js
|
||||
// src/pages/api.js
|
||||
export function GET(ctx) {
|
||||
if (!ctx.locals.allowed) {
|
||||
return ctx.rewrite('/');
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
The middleware `next()` function now accepts a parameter with the same type as the `rewrite()` function. For example, with `next("/")`, you can call the next middleware function with a new `Request`.
|
||||
|
||||
```js
|
||||
// src/middleware.js
|
||||
export function onRequest(ctx, next) {
|
||||
if (!ctx.cookies.get('allowed')) {
|
||||
return next('/'); // new signature
|
||||
}
|
||||
return next();
|
||||
}
|
||||
```
|
||||
|
||||
> **NOTE**: please [read the RFC](https://github.com/withastro/roadmap/blob/feat/reroute/proposals/0047-rerouting.md) to understand the current expectations of the new APIs.
|
||||
|
||||
- [#10858](https://github.com/withastro/astro/pull/10858) [`c0c509b`](https://github.com/withastro/astro/commit/c0c509b6bf3f55562d22297fdcc2b3e57969734d) Thanks [@z.string(),](<https://github.com/z.string(),>)! - Adds experimental support for the Actions API. Actions let you define type-safe endpoints you can query from client components with progressive enhancement built in.
|
||||
|
||||
Actions help you write type-safe backend functions you can call from anywhere. Enable server rendering [using the `output` property](https://docs.astro.build/en/basics/rendering-modes/#on-demand-rendered) and add the `actions` flag to the `experimental` object:
|
||||
|
||||
```js
|
||||
{
|
||||
output: 'hybrid', // or 'server'
|
||||
experimental: {
|
||||
actions: true,
|
||||
},
|
||||
}
|
||||
```
|
||||
|
||||
Declare all your actions in `src/actions/index.ts`. This file is the global actions handler.
|
||||
|
||||
Define an action using the `defineAction()` utility from the `astro:actions` module. These accept the `handler` property to define your server-side request handler. If your action accepts arguments, apply the `input` property to validate parameters with Zod.
|
||||
|
||||
This example defines two actions: `like` and `comment`. The `like` action accepts a JSON object with a `postId` string, while the `comment` action accepts [FormData](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest_API/Using_FormData_Objects) with `postId`, `author`, and `body` strings. Each `handler` updates your database and return a type-safe response.
|
||||
|
||||
```ts
|
||||
// src/actions/index.ts
|
||||
import { defineAction, z } from 'astro:actions';
|
||||
|
||||
export const server = {
|
||||
like: defineAction({
|
||||
input: z.object({ postId: z.string() }),
|
||||
handler: async ({ postId }, context) => {
|
||||
// update likes in db
|
||||
|
||||
return likes;
|
||||
},
|
||||
}),
|
||||
comment: defineAction({
|
||||
accept: 'form',
|
||||
input: z.object({
|
||||
postId: z.string(),
|
||||
|
||||
body: z.string(),
|
||||
}),
|
||||
handler: async ({ postId }, context) => {
|
||||
// insert comments in db
|
||||
|
||||
return comment;
|
||||
},
|
||||
}),
|
||||
};
|
||||
```
|
||||
|
||||
Then, call an action from your client components using the `actions` object from `astro:actions`. You can pass a type-safe object when using JSON, or a [FormData](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest_API/Using_FormData_Objects) object when using `accept: 'form'` in your action definition:
|
||||
|
||||
```tsx "actions"
|
||||
// src/components/blog.tsx
|
||||
import { actions } from 'astro:actions';
|
||||
import { useState } from 'preact/hooks';
|
||||
|
||||
export function Like({ postId }: { postId: string }) {
|
||||
const [likes, setLikes] = useState(0);
|
||||
return (
|
||||
<button
|
||||
onClick={async () => {
|
||||
const newLikes = await actions.like({ postId });
|
||||
setLikes(newLikes);
|
||||
}}
|
||||
>
|
||||
{likes} likes
|
||||
</button>
|
||||
);
|
||||
}
|
||||
|
||||
export function Comment({ postId }: { postId: string }) {
|
||||
return (
|
||||
<form
|
||||
onSubmit={async (e) => {
|
||||
e.preventDefault();
|
||||
const formData = new FormData(e.target);
|
||||
const result = await actions.blog.comment(formData);
|
||||
// handle result
|
||||
}}
|
||||
>
|
||||
<input type="hidden" name="postId" value={postId} />
|
||||
<label for="author">Author</label>
|
||||
<input id="author" type="text" name="author" />
|
||||
<textarea rows={10} name="body"></textarea>
|
||||
<button type="submit">Post</button>
|
||||
</form>
|
||||
);
|
||||
}
|
||||
```
|
||||
|
||||
For a complete overview, and to give feedback on this experimental API, see the [Actions RFC](https://github.com/withastro/roadmap/blob/actions/proposals/0046-actions.md).
|
||||
|
||||
- [#10906](https://github.com/withastro/astro/pull/10906) [`7bbd664`](https://github.com/withastro/astro/commit/7bbd66459dd29a338ac1dfae0e4c984cb08f73b3) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Adds a new `buttonBorderRadius` property to the `astro-dev-toolbar-button` component for the dev toolbar component library. This property can be useful to make a fully rounded button with an icon in the center.
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#10977](https://github.com/withastro/astro/pull/10977) [`59571e8`](https://github.com/withastro/astro/commit/59571e8812ec637f5ea61be6c6adc0f45212d176) Thanks [@BryceRussell](https://github.com/BryceRussell)! - Improve error message when accessing `clientAddress` on prerendered routes
|
||||
|
||||
- [#10935](https://github.com/withastro/astro/pull/10935) [`ddd8e49`](https://github.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@bluwy](https://github.com/bluwy)! - Improves the error message when failed to render MDX components
|
||||
|
||||
- [#10917](https://github.com/withastro/astro/pull/10917) [`3412535`](https://github.com/withastro/astro/commit/3412535be4a0ec94cea18c5d186b7ffbd6f8209c) Thanks [@jakobhellermann](https://github.com/jakobhellermann)! - Fixes a case where the local server would crash when the host also contained the port, eg. with `X-Forwarded-Host: hostname:8080` and `X-Forwarded-Port: 8080` headers
|
||||
|
||||
- [#10959](https://github.com/withastro/astro/pull/10959) [`685fc22`](https://github.com/withastro/astro/commit/685fc22bc6247be69a34c3f6945dec058c19fd71) Thanks [@bluwy](https://github.com/bluwy)! - Refactors internal handling of styles and scripts for content collections to improve build performance
|
||||
|
||||
- [#10889](https://github.com/withastro/astro/pull/10889) [`4d905cc`](https://github.com/withastro/astro/commit/4d905ccef663f728fc981181f5bb9f1d157184ff) Thanks [@matthewp](https://github.com/matthewp)! - Preserve content modules properly in cache
|
||||
|
||||
- [#10955](https://github.com/withastro/astro/pull/10955) [`2978287`](https://github.com/withastro/astro/commit/2978287f92dbd135f5c3efc6a037ea1756064d35) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - Handles `AstroUserError`s thrown while syncing content collections and exports `BaseSchema` and `CollectionConfig` types
|
||||
|
||||
## 4.7.1
|
||||
|
||||
### Patch Changes
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "astro",
|
||||
"version": "4.7.1",
|
||||
"version": "4.8.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,11 @@
|
|||
# @astrojs/db
|
||||
|
||||
## 0.11.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#10967](https://github.com/withastro/astro/pull/10967) [`a134318`](https://github.com/withastro/astro/commit/a1343184da2a67439de4792e9e404d17ec3943df) Thanks [@matthewp](https://github.com/matthewp)! - Convert non-ISO date to UTC time
|
||||
|
||||
## 0.11.0
|
||||
|
||||
### Minor Changes
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@astrojs/db",
|
||||
"version": "0.11.0",
|
||||
"version": "0.11.1",
|
||||
"description": "Add libSQL and Astro Studio support to your Astro site",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
|
|
|
@ -1,5 +1,33 @@
|
|||
# @astrojs/mdx
|
||||
|
||||
## 3.0.0
|
||||
|
||||
### Major Changes
|
||||
|
||||
- [#10935](https://github.com/withastro/astro/pull/10935) [`ddd8e49`](https://github.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@bluwy](https://github.com/bluwy)! - Refactors the MDX transformation to rely only on the unified pipeline. Babel and esbuild transformations are removed, which should result in faster build times. The refactor requires using Astro v4.8.0 but no other changes are necessary.
|
||||
|
||||
- [#10935](https://github.com/withastro/astro/pull/10935) [`ddd8e49`](https://github.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@bluwy](https://github.com/bluwy)! - Allows integrations after the MDX integration to update `markdown.remarkPlugins` and `markdown.rehypePlugins`, and have the plugins work in MDX too.
|
||||
|
||||
If your integration relies on Astro's previous behavior that prevents integrations from adding remark/rehype plugins for MDX, you will now need to configure `@astrojs/mdx` with `extendMarkdownConfig: false` and explicitly specify any `remarkPlugins` and `rehypePlugins` options instead.
|
||||
|
||||
- [#10935](https://github.com/withastro/astro/pull/10935) [`ddd8e49`](https://github.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@bluwy](https://github.com/bluwy)! - Renames the `optimize.customComponentNames` option to `optimize.ignoreElementNames` to better reflect its usecase. Its behaviour is not changed and should continue to work as before.
|
||||
|
||||
- [#10935](https://github.com/withastro/astro/pull/10935) [`ddd8e49`](https://github.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@bluwy](https://github.com/bluwy)! - Replaces the internal `remark-images-to-component` plugin with `rehype-images-to-component` to let users use additional rehype plugins for images
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#10935](https://github.com/withastro/astro/pull/10935) [`ddd8e49`](https://github.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@bluwy](https://github.com/bluwy)! - Simplifies plain MDX components as hast element nodes to further improve HTML string inlining for the `optimize` option
|
||||
|
||||
- [#10935](https://github.com/withastro/astro/pull/10935) [`ddd8e49`](https://github.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@bluwy](https://github.com/bluwy)! - Allows Vite plugins to transform `.mdx` files before the MDX plugin transforms it
|
||||
|
||||
- [#10935](https://github.com/withastro/astro/pull/10935) [`ddd8e49`](https://github.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@bluwy](https://github.com/bluwy)! - Updates the `optimize` option to group static sibling nodes as a `<Fragment />`. This reduces the number of AST nodes and simplifies runtime rendering of MDX pages.
|
||||
|
||||
- [#10935](https://github.com/withastro/astro/pull/10935) [`ddd8e49`](https://github.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@bluwy](https://github.com/bluwy)! - Tags the MDX component export for quicker component checks while rendering
|
||||
|
||||
- [#10935](https://github.com/withastro/astro/pull/10935) [`ddd8e49`](https://github.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@bluwy](https://github.com/bluwy)! - Fixes `export const components` keys detection for the `optimize` option
|
||||
|
||||
- [#10935](https://github.com/withastro/astro/pull/10935) [`ddd8e49`](https://github.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@bluwy](https://github.com/bluwy)! - Improves `optimize` handling for MDX components with attributes and inline MDX components
|
||||
|
||||
## 2.3.1
|
||||
|
||||
### Patch Changes
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@astrojs/mdx",
|
||||
"description": "Add support for MDX pages in your Astro site",
|
||||
"version": "2.3.1",
|
||||
"version": "3.0.0",
|
||||
"type": "module",
|
||||
"types": "./dist/index.d.ts",
|
||||
"author": "withastro",
|
||||
|
|
|
@ -1,5 +1,22 @@
|
|||
# @astrojs/preact
|
||||
|
||||
## 3.3.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- [#10938](https://github.com/withastro/astro/pull/10938) [`fd508a0`](https://github.com/withastro/astro/commit/fd508a0fbb5148aafc180f1b14d3e47974777248) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - Adds a `devtools` option
|
||||
|
||||
You can enable [Preact devtools](https://preactjs.github.io/preact-devtools/) in development by setting `devtools: true` in your `preact()` integration config:
|
||||
|
||||
```js
|
||||
import { defineConfig } from 'astro/config';
|
||||
import preact from '@astrojs/preact';
|
||||
|
||||
export default defineConfig({
|
||||
integrations: [preact({ devtools: true })],
|
||||
});
|
||||
```
|
||||
|
||||
## 3.2.0
|
||||
|
||||
### Minor Changes
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@astrojs/preact",
|
||||
"description": "Use Preact components within Astro",
|
||||
"version": "3.2.0",
|
||||
"version": "3.3.0",
|
||||
"type": "module",
|
||||
"types": "./dist/index.d.ts",
|
||||
"author": "withastro",
|
||||
|
|
|
@ -1,5 +1,11 @@
|
|||
# @astrojs/react
|
||||
|
||||
## 3.3.3
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#10942](https://github.com/withastro/astro/pull/10942) [`d47baa4`](https://github.com/withastro/astro/commit/d47baa466aaeedde9c79ed5375d0be34762ac8b6) Thanks [@matthewp](https://github.com/matthewp)! - Updates package to support React 19 beta
|
||||
|
||||
## 3.3.2
|
||||
|
||||
### Patch Changes
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@astrojs/react",
|
||||
"description": "Use React components within Astro",
|
||||
"version": "3.3.2",
|
||||
"version": "3.3.3",
|
||||
"type": "module",
|
||||
"types": "./dist/index.d.ts",
|
||||
"author": "withastro",
|
||||
|
|
|
@ -1,5 +1,28 @@
|
|||
# @astrojs/solid-js
|
||||
|
||||
## 4.2.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- [#10937](https://github.com/withastro/astro/pull/10937) [`7179930`](https://github.com/withastro/astro/commit/7179930ac85828b1a32c0c07c7d4759ce60044f5) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - Adds a `devtools` option
|
||||
|
||||
You can enable the [official Solid Devtools](https://github.com/thetarnav/solid-devtools) while working in development mode by setting `devtools: true` in your `solid()` integration config and adding `solid-devtools` to your project dependencies:
|
||||
|
||||
```bash
|
||||
npm install solid-devtools
|
||||
# yarn add solid-devtools
|
||||
# pnpm add solid-devtools
|
||||
```
|
||||
|
||||
```js
|
||||
import { defineConfig } from 'astro/config';
|
||||
import solid from '@astrojs/solid-js';
|
||||
|
||||
export default defineConfig({
|
||||
integrations: [solid({ devtools: true })],
|
||||
});
|
||||
```
|
||||
|
||||
## 4.1.0
|
||||
|
||||
### Minor Changes
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@astrojs/solid-js",
|
||||
"version": "4.1.0",
|
||||
"version": "4.2.0",
|
||||
"description": "Use Solid components within Astro",
|
||||
"type": "module",
|
||||
"types": "./dist/index.d.ts",
|
||||
|
|
|
@ -1,5 +1,11 @@
|
|||
# @astrojs/vercel
|
||||
|
||||
## 7.6.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- [#10761](https://github.com/withastro/astro/pull/10761) [`f0acd30`](https://github.com/withastro/astro/commit/f0acd30a12c380830884108f7cad67a31d879339) Thanks [@ematipico](https://github.com/ematipico)! - Implements the vercel skew protection
|
||||
|
||||
## 7.5.4
|
||||
|
||||
### Patch Changes
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@astrojs/vercel",
|
||||
"description": "Deploy your site to Vercel",
|
||||
"version": "7.5.4",
|
||||
"version": "7.6.0",
|
||||
"type": "module",
|
||||
"author": "withastro",
|
||||
"license": "MIT",
|
||||
|
|
|
@ -1,5 +1,22 @@
|
|||
# @astrojs/vue
|
||||
|
||||
## 4.2.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- [#10929](https://github.com/withastro/astro/pull/10929) [`082abb8`](https://github.com/withastro/astro/commit/082abb82d574a200f9168ee5ae92c65c71e29eda) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - Adds a `devtools` option
|
||||
|
||||
You can enable the [official Vue DevTools](https://devtools-next.vuejs.org/) while working in development mode by setting `devtools:true` in your `vue()` integration config:
|
||||
|
||||
```js
|
||||
import { defineConfig } from 'astro/config';
|
||||
import vue from '@astrojs/vue';
|
||||
|
||||
export default defineConfig({
|
||||
integrations: [vue({ devtools: true })],
|
||||
});
|
||||
```
|
||||
|
||||
## 4.1.0
|
||||
|
||||
### Minor Changes
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@astrojs/vue",
|
||||
"version": "4.1.0",
|
||||
"version": "4.2.0",
|
||||
"description": "Use Vue components within Astro",
|
||||
"type": "module",
|
||||
"types": "./dist/index.d.ts",
|
||||
|
|
|
@ -1,5 +1,11 @@
|
|||
# @astrojs/web-vitals
|
||||
|
||||
## 0.1.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#10947](https://github.com/withastro/astro/pull/10947) [`e63e96b`](https://github.com/withastro/astro/commit/e63e96bf32bce270926da6e65c9a331cf9e462d4) Thanks [@delucis](https://github.com/delucis)! - Fixes a runtime issue where Vite was unintentionally pulled into the server code
|
||||
|
||||
## 0.1.0
|
||||
|
||||
### Minor Changes
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@astrojs/web-vitals",
|
||||
"description": "Track your website’s performance with Astro DB",
|
||||
"version": "0.1.0",
|
||||
"version": "0.1.1",
|
||||
"type": "module",
|
||||
"author": "withastro",
|
||||
"license": "MIT",
|
||||
|
|
82
pnpm-lock.yaml
generated
82
pnpm-lock.yaml
generated
|
@ -128,13 +128,13 @@ importers:
|
|||
examples/basics:
|
||||
dependencies:
|
||||
astro:
|
||||
specifier: ^4.7.1
|
||||
specifier: ^4.8.0
|
||||
version: link:../../packages/astro
|
||||
|
||||
examples/blog:
|
||||
dependencies:
|
||||
'@astrojs/mdx':
|
||||
specifier: ^2.3.1
|
||||
specifier: ^3.0.0
|
||||
version: link:../../packages/integrations/mdx
|
||||
'@astrojs/rss':
|
||||
specifier: ^4.0.5
|
||||
|
@ -143,13 +143,13 @@ importers:
|
|||
specifier: ^3.1.4
|
||||
version: link:../../packages/integrations/sitemap
|
||||
astro:
|
||||
specifier: ^4.7.1
|
||||
specifier: ^4.8.0
|
||||
version: link:../../packages/astro
|
||||
|
||||
examples/component:
|
||||
devDependencies:
|
||||
astro:
|
||||
specifier: ^4.7.1
|
||||
specifier: ^4.8.0
|
||||
version: link:../../packages/astro
|
||||
|
||||
examples/framework-alpine:
|
||||
|
@ -164,7 +164,7 @@ importers:
|
|||
specifier: ^3.13.3
|
||||
version: 3.13.3
|
||||
astro:
|
||||
specifier: ^4.7.1
|
||||
specifier: ^4.8.0
|
||||
version: link:../../packages/astro
|
||||
|
||||
examples/framework-lit:
|
||||
|
@ -176,7 +176,7 @@ importers:
|
|||
specifier: ^0.2.1
|
||||
version: 0.2.1
|
||||
astro:
|
||||
specifier: ^4.7.1
|
||||
specifier: ^4.8.0
|
||||
version: link:../../packages/astro
|
||||
lit:
|
||||
specifier: ^3.1.2
|
||||
|
@ -185,19 +185,19 @@ importers:
|
|||
examples/framework-multiple:
|
||||
dependencies:
|
||||
'@astrojs/preact':
|
||||
specifier: ^3.2.0
|
||||
specifier: ^3.3.0
|
||||
version: link:../../packages/integrations/preact
|
||||
'@astrojs/react':
|
||||
specifier: ^3.3.2
|
||||
specifier: ^3.3.3
|
||||
version: link:../../packages/integrations/react
|
||||
'@astrojs/solid-js':
|
||||
specifier: ^4.1.0
|
||||
specifier: ^4.2.0
|
||||
version: link:../../packages/integrations/solid
|
||||
'@astrojs/svelte':
|
||||
specifier: ^5.4.0
|
||||
version: link:../../packages/integrations/svelte
|
||||
'@astrojs/vue':
|
||||
specifier: ^4.1.0
|
||||
specifier: ^4.2.0
|
||||
version: link:../../packages/integrations/vue
|
||||
'@types/react':
|
||||
specifier: ^18.2.37
|
||||
|
@ -206,7 +206,7 @@ importers:
|
|||
specifier: ^18.2.15
|
||||
version: 18.3.0
|
||||
astro:
|
||||
specifier: ^4.7.1
|
||||
specifier: ^4.8.0
|
||||
version: link:../../packages/astro
|
||||
preact:
|
||||
specifier: ^10.21.0
|
||||
|
@ -230,13 +230,13 @@ importers:
|
|||
examples/framework-preact:
|
||||
dependencies:
|
||||
'@astrojs/preact':
|
||||
specifier: ^3.2.0
|
||||
specifier: ^3.3.0
|
||||
version: link:../../packages/integrations/preact
|
||||
'@preact/signals':
|
||||
specifier: ^1.2.3
|
||||
version: 1.2.3(preact@10.21.0)
|
||||
astro:
|
||||
specifier: ^4.7.1
|
||||
specifier: ^4.8.0
|
||||
version: link:../../packages/astro
|
||||
preact:
|
||||
specifier: ^10.21.0
|
||||
|
@ -245,7 +245,7 @@ importers:
|
|||
examples/framework-react:
|
||||
dependencies:
|
||||
'@astrojs/react':
|
||||
specifier: ^3.3.2
|
||||
specifier: ^3.3.3
|
||||
version: link:../../packages/integrations/react
|
||||
'@types/react':
|
||||
specifier: ^18.2.37
|
||||
|
@ -254,7 +254,7 @@ importers:
|
|||
specifier: ^18.2.15
|
||||
version: 18.3.0
|
||||
astro:
|
||||
specifier: ^4.7.1
|
||||
specifier: ^4.8.0
|
||||
version: link:../../packages/astro
|
||||
react:
|
||||
specifier: ^18.3.1
|
||||
|
@ -266,10 +266,10 @@ importers:
|
|||
examples/framework-solid:
|
||||
dependencies:
|
||||
'@astrojs/solid-js':
|
||||
specifier: ^4.1.0
|
||||
specifier: ^4.2.0
|
||||
version: link:../../packages/integrations/solid
|
||||
astro:
|
||||
specifier: ^4.7.1
|
||||
specifier: ^4.8.0
|
||||
version: link:../../packages/astro
|
||||
solid-js:
|
||||
specifier: ^1.8.17
|
||||
|
@ -281,7 +281,7 @@ importers:
|
|||
specifier: ^5.4.0
|
||||
version: link:../../packages/integrations/svelte
|
||||
astro:
|
||||
specifier: ^4.7.1
|
||||
specifier: ^4.8.0
|
||||
version: link:../../packages/astro
|
||||
svelte:
|
||||
specifier: ^4.2.16
|
||||
|
@ -290,10 +290,10 @@ importers:
|
|||
examples/framework-vue:
|
||||
dependencies:
|
||||
'@astrojs/vue':
|
||||
specifier: ^4.1.0
|
||||
specifier: ^4.2.0
|
||||
version: link:../../packages/integrations/vue
|
||||
astro:
|
||||
specifier: ^4.7.1
|
||||
specifier: ^4.8.0
|
||||
version: link:../../packages/astro
|
||||
vue:
|
||||
specifier: ^3.4.27
|
||||
|
@ -305,13 +305,13 @@ importers:
|
|||
specifier: ^8.2.5
|
||||
version: link:../../packages/integrations/node
|
||||
astro:
|
||||
specifier: ^4.7.1
|
||||
specifier: ^4.8.0
|
||||
version: link:../../packages/astro
|
||||
|
||||
examples/integration:
|
||||
devDependencies:
|
||||
astro:
|
||||
specifier: ^4.7.1
|
||||
specifier: ^4.8.0
|
||||
version: link:../../packages/astro
|
||||
|
||||
examples/middleware:
|
||||
|
@ -320,7 +320,7 @@ importers:
|
|||
specifier: ^8.2.5
|
||||
version: link:../../packages/integrations/node
|
||||
astro:
|
||||
specifier: ^4.7.1
|
||||
specifier: ^4.8.0
|
||||
version: link:../../packages/astro
|
||||
html-minifier:
|
||||
specifier: ^4.0.0
|
||||
|
@ -333,19 +333,19 @@ importers:
|
|||
examples/minimal:
|
||||
dependencies:
|
||||
astro:
|
||||
specifier: ^4.7.1
|
||||
specifier: ^4.8.0
|
||||
version: link:../../packages/astro
|
||||
|
||||
examples/non-html-pages:
|
||||
dependencies:
|
||||
astro:
|
||||
specifier: ^4.7.1
|
||||
specifier: ^4.8.0
|
||||
version: link:../../packages/astro
|
||||
|
||||
examples/portfolio:
|
||||
dependencies:
|
||||
astro:
|
||||
specifier: ^4.7.1
|
||||
specifier: ^4.8.0
|
||||
version: link:../../packages/astro
|
||||
|
||||
examples/ssr:
|
||||
|
@ -357,7 +357,7 @@ importers:
|
|||
specifier: ^5.4.0
|
||||
version: link:../../packages/integrations/svelte
|
||||
astro:
|
||||
specifier: ^4.7.1
|
||||
specifier: ^4.8.0
|
||||
version: link:../../packages/astro
|
||||
svelte:
|
||||
specifier: ^4.2.16
|
||||
|
@ -366,7 +366,7 @@ importers:
|
|||
examples/starlog:
|
||||
dependencies:
|
||||
astro:
|
||||
specifier: ^4.7.1
|
||||
specifier: ^4.8.0
|
||||
version: link:../../packages/astro
|
||||
sass:
|
||||
specifier: ^1.77.0
|
||||
|
@ -378,7 +378,7 @@ importers:
|
|||
examples/toolbar-app:
|
||||
devDependencies:
|
||||
astro:
|
||||
specifier: ^4.7.1
|
||||
specifier: ^4.8.0
|
||||
version: link:../../packages/astro
|
||||
|
||||
examples/view-transitions:
|
||||
|
@ -390,7 +390,7 @@ importers:
|
|||
specifier: ^5.1.0
|
||||
version: link:../../packages/integrations/tailwind
|
||||
astro:
|
||||
specifier: ^4.7.1
|
||||
specifier: ^4.8.0
|
||||
version: link:../../packages/astro
|
||||
|
||||
examples/with-markdoc:
|
||||
|
@ -399,7 +399,7 @@ importers:
|
|||
specifier: ^0.11.0
|
||||
version: link:../../packages/integrations/markdoc
|
||||
astro:
|
||||
specifier: ^4.7.1
|
||||
specifier: ^4.8.0
|
||||
version: link:../../packages/astro
|
||||
|
||||
examples/with-markdown-plugins:
|
||||
|
@ -408,7 +408,7 @@ importers:
|
|||
specifier: ^5.1.0
|
||||
version: link:../../packages/markdown/remark
|
||||
astro:
|
||||
specifier: ^4.7.1
|
||||
specifier: ^4.8.0
|
||||
version: link:../../packages/astro
|
||||
hast-util-select:
|
||||
specifier: ^6.0.2
|
||||
|
@ -429,19 +429,19 @@ importers:
|
|||
examples/with-markdown-shiki:
|
||||
dependencies:
|
||||
astro:
|
||||
specifier: ^4.7.1
|
||||
specifier: ^4.8.0
|
||||
version: link:../../packages/astro
|
||||
|
||||
examples/with-mdx:
|
||||
dependencies:
|
||||
'@astrojs/mdx':
|
||||
specifier: ^2.3.1
|
||||
specifier: ^3.0.0
|
||||
version: link:../../packages/integrations/mdx
|
||||
'@astrojs/preact':
|
||||
specifier: ^3.2.0
|
||||
specifier: ^3.3.0
|
||||
version: link:../../packages/integrations/preact
|
||||
astro:
|
||||
specifier: ^4.7.1
|
||||
specifier: ^4.8.0
|
||||
version: link:../../packages/astro
|
||||
preact:
|
||||
specifier: ^10.21.0
|
||||
|
@ -450,13 +450,13 @@ importers:
|
|||
examples/with-nanostores:
|
||||
dependencies:
|
||||
'@astrojs/preact':
|
||||
specifier: ^3.2.0
|
||||
specifier: ^3.3.0
|
||||
version: link:../../packages/integrations/preact
|
||||
'@nanostores/preact':
|
||||
specifier: ^0.5.0
|
||||
version: 0.5.1(nanostores@0.9.5)(preact@10.21.0)
|
||||
astro:
|
||||
specifier: ^4.7.1
|
||||
specifier: ^4.8.0
|
||||
version: link:../../packages/astro
|
||||
nanostores:
|
||||
specifier: ^0.9.5
|
||||
|
@ -468,7 +468,7 @@ importers:
|
|||
examples/with-tailwindcss:
|
||||
dependencies:
|
||||
'@astrojs/mdx':
|
||||
specifier: ^2.3.1
|
||||
specifier: ^3.0.0
|
||||
version: link:../../packages/integrations/mdx
|
||||
'@astrojs/tailwind':
|
||||
specifier: ^5.1.0
|
||||
|
@ -477,7 +477,7 @@ importers:
|
|||
specifier: ^1.6.3
|
||||
version: 1.6.4
|
||||
astro:
|
||||
specifier: ^4.7.1
|
||||
specifier: ^4.8.0
|
||||
version: link:../../packages/astro
|
||||
autoprefixer:
|
||||
specifier: ^10.4.15
|
||||
|
@ -495,7 +495,7 @@ importers:
|
|||
examples/with-vitest:
|
||||
dependencies:
|
||||
astro:
|
||||
specifier: ^4.7.1
|
||||
specifier: ^4.8.0
|
||||
version: link:../../packages/astro
|
||||
vitest:
|
||||
specifier: ^1.6.0
|
||||
|
|
Loading…
Add table
Reference in a new issue