Revert "[ci] release (#8671)" (#8696)

This reverts commit eada8ab8fa.
This commit is contained in:
Matthew Phillips 2023-09-29 01:57:54 +08:00 committed by GitHub
parent 0ba32e4402
commit 2167ffd72f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
44 changed files with 139 additions and 130 deletions

View file

@ -0,0 +1,34 @@
---
'astro': minor
---
Support adding integrations dynamically
Astro integrations can now themselves dynamically add and configure additional integrations during set-up. This makes it possible for integration authors to bundle integrations more intelligently for their users.
In the following example, a custom integration checks whether `@astrojs/sitemap` is already configured. If not, the integration adds Astros sitemap integration, passing any desired configuration options:
```ts
import sitemap from '@astrojs/sitemap';
import type { AstroIntegration } from 'astro';
const MyIntegration = (): AstroIntegration => {
return {
name: 'my-integration',
'astro:config:setup': ({ config, updateConfig }) => {
// Look for sitemap in user-configured integrations.
const userSitemap = config.integrations.find(
({ name }) => name === '@astrojs/sitemap'
);
if (!userSitemap) {
// If sitemap wasnt found, add it.
updateConfig({
integrations: [sitemap({ /* opts */ }],
});
}
},
};
};
```

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Fix logLevel passed to Vite build

View file

@ -0,0 +1,17 @@
---
'astro': minor
---
View transitions can now be triggered from JavaScript!
Import the client-side router from "astro:transitions/client" and enjoy your new remote control for navigation:
```js
import { navigate } from 'astro:transitions/client';
// Navigate to the selected option automatically.
document.querySelector('select').onchange = (ev) => {
let href = ev.target.value;
navigate(href);
};
```

View file

@ -0,0 +1,5 @@
---
"astro": patch
---
Fix NoImageMetadata image path error message

View file

@ -0,0 +1,11 @@
---
'astro': minor
---
Route Announcer in `<ViewTransitions />`
The View Transitions router now does route announcement. When transitioning between pages with a traditional MPA approach, assistive technologies will announce the page title when the page finishes loading. This does not automatically happen during client-side routing, so visitors relying on these technologies to announce routes are not aware when a page has changed.
The view transitions route announcer runs after the `astro:page-load` event, looking for the page `<title>` to announce. If one cannot be found, the announcer falls back to the first `<h1>` it finds, or otherwise announces the pathname. We recommend you always include a `<title>` in each page for accessibility.
See the [View Transitions docs](https://docs.astro.build/en/guides/view-transitions/) for more on how accessibility is handled.

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^3.2.0"
"astro": "^3.1.4"
}
}

View file

@ -14,6 +14,6 @@
"@astrojs/mdx": "^1.1.0",
"@astrojs/rss": "^3.0.0",
"@astrojs/sitemap": "^3.0.0",
"astro": "^3.2.0"
"astro": "^3.1.4"
}
}

View file

@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
"astro": "^3.2.0"
"astro": "^3.1.4"
},
"peerDependencies": {
"astro": "^2.0.0-beta.0"

View file

@ -10,7 +10,7 @@
"astro": "astro"
},
"dependencies": {
"astro": "^3.2.0"
"astro": "^3.1.4"
},
"devDependencies": {
"@astrojs/deno": "^5.0.1"

View file

@ -14,6 +14,6 @@
"@astrojs/alpinejs": "^0.3.0",
"@types/alpinejs": "^3.7.2",
"alpinejs": "^3.12.3",
"astro": "^3.2.0"
"astro": "^3.1.4"
}
}

View file

@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/lit": "^3.0.0",
"@webcomponents/template-shadowroot": "^0.2.1",
"astro": "^3.2.0",
"astro": "^3.1.4",
"lit": "^2.8.0"
}
}

View file

@ -16,7 +16,7 @@
"@astrojs/solid-js": "^3.0.1",
"@astrojs/svelte": "^4.0.2",
"@astrojs/vue": "^3.0.0",
"astro": "^3.2.0",
"astro": "^3.1.4",
"preact": "^10.17.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",

View file

@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/preact": "^3.0.0",
"@preact/signals": "^1.2.1",
"astro": "^3.2.0",
"astro": "^3.1.4",
"preact": "^10.17.1"
}
}

View file

@ -14,7 +14,7 @@
"@astrojs/react": "^3.0.2",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"astro": "^3.2.0",
"astro": "^3.1.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
}

View file

@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/solid-js": "^3.0.1",
"astro": "^3.2.0",
"astro": "^3.1.4",
"solid-js": "^1.7.11"
}
}

View file

@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/svelte": "^4.0.2",
"astro": "^3.2.0",
"astro": "^3.1.4",
"svelte": "^4.2.0"
}
}

View file

@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/vue": "^3.0.0",
"astro": "^3.2.0",
"astro": "^3.1.4",
"vue": "^3.3.4"
}
}

View file

@ -12,6 +12,6 @@
},
"dependencies": {
"@astrojs/node": "^6.0.1",
"astro": "^3.2.0"
"astro": "^3.1.4"
}
}

View file

@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
"astro": "^3.2.0"
"astro": "^3.1.4"
},
"peerDependencies": {
"astro": "^2.0.0-beta.0"

View file

@ -13,7 +13,7 @@
},
"dependencies": {
"@astrojs/node": "^6.0.1",
"astro": "^3.2.0",
"astro": "^3.1.4",
"html-minifier": "^4.0.0"
}
}

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^3.2.0"
"astro": "^3.1.4"
}
}

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^3.2.0"
"astro": "^3.1.4"
}
}

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^3.2.0"
"astro": "^3.1.4"
}
}

View file

@ -14,7 +14,7 @@
"dependencies": {
"@astrojs/node": "^6.0.1",
"@astrojs/svelte": "^4.0.2",
"astro": "^3.2.0",
"astro": "^3.1.4",
"svelte": "^4.2.0"
}
}

View file

@ -11,7 +11,7 @@
},
"devDependencies": {
"@astrojs/tailwind": "^5.0.0",
"@astrojs/node": "^6.0.1",
"astro": "^3.2.0"
"@astrojs/node": "^6.0.0",
"astro": "^3.1.1"
}
}

View file

@ -12,6 +12,6 @@
},
"dependencies": {
"@astrojs/markdoc": "^0.5.0",
"astro": "^3.2.0"
"astro": "^3.1.4"
}
}

View file

@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/markdown-remark": "^3.2.0",
"astro": "^3.2.0",
"astro": "^3.1.4",
"hast-util-select": "^5.0.5",
"rehype-autolink-headings": "^6.1.1",
"rehype-slug": "^5.1.0",

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^3.2.0"
"astro": "^3.1.4"
}
}

View file

@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/mdx": "^1.1.0",
"@astrojs/preact": "^3.0.0",
"astro": "^3.2.0",
"astro": "^3.1.4",
"preact": "^10.17.1"
}
}

View file

@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/preact": "^3.0.0",
"@nanostores/preact": "^0.5.0",
"astro": "^3.2.0",
"astro": "^3.1.4",
"nanostores": "^0.9.3",
"preact": "^10.17.1"
}

View file

@ -14,7 +14,7 @@
"@astrojs/mdx": "^1.1.0",
"@astrojs/tailwind": "^5.0.0",
"@types/canvas-confetti": "^1.6.0",
"astro": "^3.2.0",
"astro": "^3.1.4",
"autoprefixer": "^10.4.15",
"canvas-confetti": "^1.6.0",
"postcss": "^8.4.28",

View file

@ -11,7 +11,7 @@
"astro": "astro"
},
"dependencies": {
"astro": "^3.2.0",
"astro": "^3.1.4",
"vite-plugin-pwa": "0.16.4",
"workbox-window": "^7.0.0"
}

View file

@ -12,7 +12,7 @@
"test": "vitest"
},
"dependencies": {
"astro": "^3.2.0",
"astro": "^3.1.4",
"vitest": "^0.34.2"
}
}

View file

@ -1,68 +1,5 @@
# astro
## 3.2.0
### Minor Changes
- [#8672](https://github.com/withastro/astro/pull/8672) [`9b0114c7d`](https://github.com/withastro/astro/commit/9b0114c7d3f82914f4443c865ac38d5859fbbceb) Thanks [@delucis](https://github.com/delucis)! - Support adding integrations dynamically
Astro integrations can now themselves dynamically add and configure additional integrations during set-up. This makes it possible for integration authors to bundle integrations more intelligently for their users.
In the following example, a custom integration checks whether `@astrojs/sitemap` is already configured. If not, the integration adds Astros sitemap integration, passing any desired configuration options:
```ts
import sitemap from '@astrojs/sitemap';
import type { AstroIntegration } from 'astro';
const MyIntegration = (): AstroIntegration => {
return {
name: 'my-integration',
'astro:config:setup': ({ config, updateConfig }) => {
// Look for sitemap in user-configured integrations.
const userSitemap = config.integrations.find(
({ name }) => name === '@astrojs/sitemap'
);
if (!userSitemap) {
// If sitemap wasnt found, add it.
updateConfig({
integrations: [sitemap({ /* opts */ }],
});
}
},
};
};
```
- [#8571](https://github.com/withastro/astro/pull/8571) [`63bc37f2b`](https://github.com/withastro/astro/commit/63bc37f2b60cf5b093018ae30a2ae3c51da7d22d) Thanks [@martrapp](https://github.com/martrapp)! - View transitions can now be triggered from JavaScript!
Import the client-side router from "astro:transitions/client" and enjoy your new remote control for navigation:
```js
import { navigate } from 'astro:transitions/client';
// Navigate to the selected option automatically.
document.querySelector('select').onchange = (ev) => {
let href = ev.target.value;
navigate(href);
};
```
- [#8621](https://github.com/withastro/astro/pull/8621) [`e6be2d814`](https://github.com/withastro/astro/commit/e6be2d8146c3ada274cd3630e15cafc42ce80b2d) Thanks [@matthewp](https://github.com/matthewp)! - Route Announcer in `<ViewTransitions />`
The View Transitions router now does route announcement. When transitioning between pages with a traditional MPA approach, assistive technologies will announce the page title when the page finishes loading. This does not automatically happen during client-side routing, so visitors relying on these technologies to announce routes are not aware when a page has changed.
The view transitions route announcer runs after the `astro:page-load` event, looking for the page `<title>` to announce. If one cannot be found, the announcer falls back to the first `<h1>` it finds, or otherwise announces the pathname. We recommend you always include a `<title>` in each page for accessibility.
See the [View Transitions docs](https://docs.astro.build/en/guides/view-transitions/) for more on how accessibility is handled.
### Patch Changes
- [#8678](https://github.com/withastro/astro/pull/8678) [`e8495c853`](https://github.com/withastro/astro/commit/e8495c853b0fad805173783b5260ab9fb9def2f0) Thanks [@bluwy](https://github.com/bluwy)! - Fix logLevel passed to Vite build
- [#8666](https://github.com/withastro/astro/pull/8666) [`9fe4b9596`](https://github.com/withastro/astro/commit/9fe4b9596988dc8b498825eae266805daf4b435b) Thanks [@nolanlawson](https://github.com/nolanlawson)! - Fix NoImageMetadata image path error message
## 3.1.4
### Patch Changes

View file

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

View file

@ -47,7 +47,7 @@
"vite": "^4.4.9"
},
"peerDependencies": {
"astro": "workspace:^3.2.0"
"astro": "workspace:^3.1.4"
},
"devDependencies": {
"@types/iarna__toml": "^2.0.2",

View file

@ -75,7 +75,7 @@
"zod": "3.21.1"
},
"peerDependencies": {
"astro": "workspace:^3.2.0"
"astro": "workspace:^3.1.4"
},
"devDependencies": {
"@astrojs/markdown-remark": "workspace:*",

View file

@ -51,7 +51,7 @@
"vfile": "^5.3.7"
},
"peerDependencies": {
"astro": "workspace:^3.2.0"
"astro": "workspace:^3.1.4"
},
"devDependencies": {
"@types/chai": "^4.3.5",

View file

@ -37,7 +37,7 @@
"server-destroy": "^1.0.1"
},
"peerDependencies": {
"astro": "workspace:^3.2.0"
"astro": "workspace:^3.1.4"
},
"devDependencies": {
"@types/node": "^18.17.8",

View file

@ -48,7 +48,7 @@
"vite": "^4.4.9"
},
"peerDependencies": {
"astro": "workspace:^3.2.0",
"astro": "workspace:^3.1.4",
"svelte": "^3.55.0 || ^4.0.0"
},
"engines": {

View file

@ -43,7 +43,7 @@
"vite": "^4.4.9"
},
"peerDependencies": {
"astro": "workspace:^3.2.0",
"astro": "workspace:^3.1.4",
"tailwindcss": "^3.0.24"
}
}

View file

@ -61,7 +61,7 @@
"web-vitals": "^3.4.0"
},
"peerDependencies": {
"astro": "workspace:^3.2.0"
"astro": "workspace:^3.1.4"
},
"devDependencies": {
"@types/set-cookie-parser": "^2.4.3",

View file

@ -56,7 +56,7 @@
"vue": "^3.3.4"
},
"peerDependencies": {
"astro": "workspace:^3.2.0",
"astro": "workspace:^3.1.4",
"vue": "^3.2.30"
},
"engines": {

View file

@ -125,7 +125,7 @@ importers:
examples/basics:
dependencies:
astro:
specifier: ^3.2.0
specifier: ^3.1.4
version: link:../../packages/astro
examples/blog:
@ -140,19 +140,19 @@ importers:
specifier: ^3.0.0
version: link:../../packages/integrations/sitemap
astro:
specifier: ^3.2.0
specifier: ^3.1.4
version: link:../../packages/astro
examples/component:
devDependencies:
astro:
specifier: ^3.2.0
specifier: ^3.1.4
version: link:../../packages/astro
examples/deno:
dependencies:
astro:
specifier: ^3.2.0
specifier: ^3.1.4
version: link:../../packages/astro
devDependencies:
'@astrojs/deno':
@ -171,7 +171,7 @@ importers:
specifier: ^3.12.3
version: 3.12.3
astro:
specifier: ^3.2.0
specifier: ^3.1.4
version: link:../../packages/astro
examples/framework-lit:
@ -183,7 +183,7 @@ importers:
specifier: ^0.2.1
version: 0.2.1
astro:
specifier: ^3.2.0
specifier: ^3.1.4
version: link:../../packages/astro
lit:
specifier: ^2.8.0
@ -207,7 +207,7 @@ importers:
specifier: ^3.0.0
version: link:../../packages/integrations/vue
astro:
specifier: ^3.2.0
specifier: ^3.1.4
version: link:../../packages/astro
preact:
specifier: ^10.17.1
@ -237,7 +237,7 @@ importers:
specifier: ^1.2.1
version: 1.2.1(preact@10.17.1)
astro:
specifier: ^3.2.0
specifier: ^3.1.4
version: link:../../packages/astro
preact:
specifier: ^10.17.1
@ -255,7 +255,7 @@ importers:
specifier: ^18.2.7
version: 18.2.7
astro:
specifier: ^3.2.0
specifier: ^3.1.4
version: link:../../packages/astro
react:
specifier: ^18.2.0
@ -270,7 +270,7 @@ importers:
specifier: ^3.0.1
version: link:../../packages/integrations/solid
astro:
specifier: ^3.2.0
specifier: ^3.1.4
version: link:../../packages/astro
solid-js:
specifier: ^1.7.11
@ -282,7 +282,7 @@ importers:
specifier: ^4.0.2
version: link:../../packages/integrations/svelte
astro:
specifier: ^3.2.0
specifier: ^3.1.4
version: link:../../packages/astro
svelte:
specifier: ^4.2.0
@ -294,7 +294,7 @@ importers:
specifier: ^3.0.0
version: link:../../packages/integrations/vue
astro:
specifier: ^3.2.0
specifier: ^3.1.4
version: link:../../packages/astro
vue:
specifier: ^3.3.4
@ -306,13 +306,13 @@ importers:
specifier: ^6.0.1
version: link:../../packages/integrations/node
astro:
specifier: ^3.2.0
specifier: ^3.1.4
version: link:../../packages/astro
examples/integration:
devDependencies:
astro:
specifier: ^3.2.0
specifier: ^3.1.4
version: link:../../packages/astro
examples/middleware:
@ -321,7 +321,7 @@ importers:
specifier: ^6.0.1
version: link:../../packages/integrations/node
astro:
specifier: ^3.2.0
specifier: ^3.1.4
version: link:../../packages/astro
html-minifier:
specifier: ^4.0.0
@ -330,19 +330,19 @@ importers:
examples/minimal:
dependencies:
astro:
specifier: ^3.2.0
specifier: ^3.1.4
version: link:../../packages/astro
examples/non-html-pages:
dependencies:
astro:
specifier: ^3.2.0
specifier: ^3.1.4
version: link:../../packages/astro
examples/portfolio:
dependencies:
astro:
specifier: ^3.2.0
specifier: ^3.1.4
version: link:../../packages/astro
examples/ssr:
@ -354,7 +354,7 @@ importers:
specifier: ^4.0.2
version: link:../../packages/integrations/svelte
astro:
specifier: ^3.2.0
specifier: ^3.1.4
version: link:../../packages/astro
svelte:
specifier: ^4.2.0
@ -363,13 +363,13 @@ importers:
examples/view-transitions:
devDependencies:
'@astrojs/node':
specifier: ^6.0.1
specifier: ^6.0.0
version: link:../../packages/integrations/node
'@astrojs/tailwind':
specifier: ^5.0.0
version: link:../../packages/integrations/tailwind
astro:
specifier: ^3.2.0
specifier: ^3.1.1
version: link:../../packages/astro
examples/with-markdoc:
@ -378,7 +378,7 @@ importers:
specifier: ^0.5.0
version: link:../../packages/integrations/markdoc
astro:
specifier: ^3.2.0
specifier: ^3.1.4
version: link:../../packages/astro
examples/with-markdown-plugins:
@ -387,7 +387,7 @@ importers:
specifier: ^3.2.0
version: link:../../packages/markdown/remark
astro:
specifier: ^3.2.0
specifier: ^3.1.4
version: link:../../packages/astro
hast-util-select:
specifier: ^5.0.5
@ -408,7 +408,7 @@ importers:
examples/with-markdown-shiki:
dependencies:
astro:
specifier: ^3.2.0
specifier: ^3.1.4
version: link:../../packages/astro
examples/with-mdx:
@ -420,7 +420,7 @@ importers:
specifier: ^3.0.0
version: link:../../packages/integrations/preact
astro:
specifier: ^3.2.0
specifier: ^3.1.4
version: link:../../packages/astro
preact:
specifier: ^10.17.1
@ -435,7 +435,7 @@ importers:
specifier: ^0.5.0
version: 0.5.0(nanostores@0.9.3)(preact@10.17.1)
astro:
specifier: ^3.2.0
specifier: ^3.1.4
version: link:../../packages/astro
nanostores:
specifier: ^0.9.3
@ -456,7 +456,7 @@ importers:
specifier: ^1.6.0
version: 1.6.0
astro:
specifier: ^3.2.0
specifier: ^3.1.4
version: link:../../packages/astro
autoprefixer:
specifier: ^10.4.15
@ -474,7 +474,7 @@ importers:
examples/with-vite-plugin-pwa:
dependencies:
astro:
specifier: ^3.2.0
specifier: ^3.1.4
version: link:../../packages/astro
vite-plugin-pwa:
specifier: 0.16.4
@ -486,7 +486,7 @@ importers:
examples/with-vitest:
dependencies:
astro:
specifier: ^3.2.0
specifier: ^3.1.4
version: link:../../packages/astro
vitest:
specifier: ^0.34.2