[ci] release (#4228)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Fred K. Bot 2022-08-10 13:54:12 -07:00 committed by GitHub
parent a9baa45af3
commit 1ee08baf91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
43 changed files with 109 additions and 195 deletions

View file

@ -1,5 +0,0 @@
---
'astro': patch
---
Return 404 status code for 404.astro in SSR

View file

@ -1,5 +0,0 @@
---
"@astrojs/cloudflare": patch
---
Update README

View file

@ -1,5 +0,0 @@
---
'astro': patch
---
Properly invalidate Astro modules when a child script updates in HMR

View file

@ -1,5 +0,0 @@
---
'@astrojs/mdx': patch
---
Update "Astro.props.content" -> "Astro.props.frontmatter" in README

View file

@ -1,5 +0,0 @@
---
'astro': patch
---
Remove dev server during build

View file

@ -1,5 +0,0 @@
---
'astro': patch
---
Bump Vite to 3.0.5

View file

@ -1,5 +0,0 @@
---
'@astrojs/preact': patch
---
Fix compat support for libraries

View file

@ -1,5 +0,0 @@
---
'astro': patch
---
`astro add` now supports `-y`

View file

@ -10,6 +10,6 @@
"astro": "astro"
},
"devDependencies": {
"astro": "^1.0.1"
"astro": "^1.0.2"
}
}

View file

@ -10,8 +10,8 @@
"astro": "astro"
},
"devDependencies": {
"@astrojs/preact": "^1.0.0",
"astro": "^1.0.1"
"@astrojs/preact": "^1.0.1",
"astro": "^1.0.2"
},
"dependencies": {
"preact": "^10.7.3"

View file

@ -11,6 +11,6 @@
},
"devDependencies": {
"@example/my-component": "workspace:*",
"astro": "^1.0.1"
"astro": "^1.0.2"
}
}

View file

@ -8,6 +8,6 @@
"serve": "astro --root demo preview"
},
"devDependencies": {
"astro": "^1.0.1"
"astro": "^1.0.2"
}
}

View file

@ -19,8 +19,8 @@
"react-dom": "^18.1.0"
},
"devDependencies": {
"@astrojs/preact": "^1.0.0",
"@astrojs/preact": "^1.0.1",
"@astrojs/react": "^1.0.0",
"astro": "^1.0.1"
"astro": "^1.0.2"
}
}

View file

@ -10,6 +10,6 @@
"astro": "astro"
},
"devDependencies": {
"astro": "^1.0.1"
"astro": "^1.0.2"
}
}

View file

@ -11,7 +11,7 @@
},
"devDependencies": {
"@types/alpinejs": "^3.7.0",
"astro": "^1.0.1"
"astro": "^1.0.2"
},
"dependencies": {
"alpinejs": "^3.10.2"

View file

@ -11,7 +11,7 @@
},
"devDependencies": {
"@astrojs/lit": "^1.0.0",
"astro": "^1.0.1"
"astro": "^1.0.2"
},
"dependencies": {
"@webcomponents/template-shadowroot": "^0.1.0",

View file

@ -10,12 +10,12 @@
"astro": "astro"
},
"devDependencies": {
"@astrojs/preact": "^1.0.0",
"@astrojs/preact": "^1.0.1",
"@astrojs/react": "^1.0.0",
"@astrojs/solid-js": "^1.0.0",
"@astrojs/svelte": "^1.0.0",
"@astrojs/vue": "^1.0.0",
"astro": "^1.0.1"
"astro": "^1.0.2"
},
"dependencies": {
"preact": "^10.7.3",

View file

@ -10,8 +10,8 @@
"astro": "astro"
},
"devDependencies": {
"@astrojs/preact": "^1.0.0",
"astro": "^1.0.1"
"@astrojs/preact": "^1.0.1",
"astro": "^1.0.2"
},
"dependencies": {
"preact": "^10.7.3"

View file

@ -13,7 +13,7 @@
"@astrojs/react": "^1.0.0",
"@types/react": "^18.0.10",
"@types/react-dom": "^18.0.5",
"astro": "^1.0.1"
"astro": "^1.0.2"
},
"dependencies": {
"react": "^18.1.0",

View file

@ -11,7 +11,7 @@
},
"devDependencies": {
"@astrojs/solid-js": "^1.0.0",
"astro": "^1.0.1"
"astro": "^1.0.2"
},
"dependencies": {
"solid-js": "^1.4.3"

View file

@ -11,7 +11,7 @@
},
"devDependencies": {
"@astrojs/svelte": "^1.0.0",
"astro": "^1.0.1"
"astro": "^1.0.2"
},
"dependencies": {
"svelte": "^3.48.0"

View file

@ -11,7 +11,7 @@
},
"devDependencies": {
"@astrojs/vue": "^1.0.0",
"astro": "^1.0.1"
"astro": "^1.0.2"
},
"dependencies": {
"vue": "^3.2.37"

View file

@ -10,6 +10,6 @@
"astro": "astro"
},
"devDependencies": {
"astro": "^1.0.1"
"astro": "^1.0.2"
}
}

View file

@ -10,6 +10,6 @@
"astro": "astro"
},
"devDependencies": {
"astro": "^1.0.1"
"astro": "^1.0.2"
}
}

View file

@ -10,8 +10,8 @@
"astro": "astro"
},
"devDependencies": {
"@astrojs/preact": "^1.0.0",
"astro": "^1.0.1",
"@astrojs/preact": "^1.0.1",
"astro": "^1.0.2",
"sass": "^1.52.2"
},
"dependencies": {

View file

@ -13,7 +13,7 @@
"devDependencies": {
"@astrojs/node": "^1.0.0",
"@astrojs/svelte": "^1.0.0",
"astro": "^1.0.1",
"astro": "^1.0.2",
"concurrently": "^7.2.1",
"lightcookie": "^1.0.25",
"unocss": "^0.15.6",

View file

@ -11,7 +11,7 @@
},
"devDependencies": {
"@astrojs/react": "^1.0.0",
"astro": "^1.0.1"
"astro": "^1.0.2"
},
"dependencies": {
"react": "^18.1.0",

View file

@ -11,7 +11,7 @@
},
"devDependencies": {
"@astrojs/markdown-remark": "^1.0.0",
"astro": "^1.0.1",
"astro": "^1.0.2",
"hast-util-select": "5.0.1",
"rehype-autolink-headings": "^6.1.1",
"rehype-slug": "^5.0.1",

View file

@ -11,6 +11,6 @@
},
"devDependencies": {
"@astrojs/markdown-remark": "^1.0.0",
"astro": "^1.0.1"
"astro": "^1.0.2"
}
}

View file

@ -10,9 +10,9 @@
"astro": "astro"
},
"devDependencies": {
"@astrojs/mdx": "^0.8.1",
"@astrojs/preact": "^1.0.0",
"astro": "^1.0.1",
"@astrojs/mdx": "^0.8.2",
"@astrojs/preact": "^1.0.1",
"astro": "^1.0.2",
"preact": "^10.6.5"
}
}

View file

@ -15,7 +15,7 @@
"preact": "^10.7.3"
},
"devDependencies": {
"@astrojs/preact": "^1.0.0",
"astro": "^1.0.1"
"@astrojs/preact": "^1.0.1",
"astro": "^1.0.2"
}
}

View file

@ -11,7 +11,7 @@
},
"devDependencies": {
"@astrojs/tailwind": "^1.0.0",
"astro": "^1.0.1",
"astro": "^1.0.2",
"autoprefixer": "^10.4.7",
"canvas-confetti": "^1.5.1",
"postcss": "^8.4.14",

View file

@ -10,7 +10,7 @@
"astro": "astro"
},
"devDependencies": {
"astro": "^1.0.1",
"astro": "^1.0.2",
"vite-plugin-pwa": "0.11.11",
"workbox-window": "^6.5.3"
}

View file

@ -12,7 +12,7 @@
"test": "vitest"
},
"devDependencies": {
"astro": "^1.0.1",
"astro": "^1.0.2",
"vitest": "^0.20.3"
}
}

View file

@ -1,5 +1,19 @@
# astro
## 1.0.2
### Patch Changes
- [#4247](https://github.com/withastro/astro/pull/4247) [`714a8399e`](https://github.com/withastro/astro/commit/714a8399e20f334d2ba341c98d8ef5d590af9c39) Thanks [@matthewp](https://github.com/matthewp)! - Return 404 status code for 404.astro in SSR
* [#4240](https://github.com/withastro/astro/pull/4240) [`561a34d91`](https://github.com/withastro/astro/commit/561a34d91209c9d4959f74beaa17008edb27ff5d) Thanks [@matthewp](https://github.com/matthewp)! - Properly invalidate Astro modules when a child script updates in HMR
- [#4234](https://github.com/withastro/astro/pull/4234) [`c38e7f189`](https://github.com/withastro/astro/commit/c38e7f1890ba5bc97ddacee91ea196bcfc7652e6) Thanks [@bluwy](https://github.com/bluwy)! - Remove dev server during build
* [#4213](https://github.com/withastro/astro/pull/4213) [`f8e385339`](https://github.com/withastro/astro/commit/f8e3853394c2f2f48fac4b5eb2284e1960e59a13) Thanks [@bluwy](https://github.com/bluwy)! - Bump Vite to 3.0.5
- [#4225](https://github.com/withastro/astro/pull/4225) [`e918b3883`](https://github.com/withastro/astro/commit/e918b3883e156a0de2148517b619a2cf451917d2) Thanks [@mayank99](https://github.com/mayank99)! - `astro add` now supports `-y`
## 1.0.1
### Patch Changes
@ -456,18 +470,7 @@ The **Astro v1.0.0 Release Candidate** comes includes new features, tons of bug
Astro supports streaming in its templates. Any time Astro encounters an async boundary it will stream out HTML that occurs before it. For example:
```astro
---
import LoadTodos from '../components/LoadTodos.astro';
---
<html>
<head>
<title>App</title>
</head>
<body>
<LoadTodos />
</body>
</html>
```
In this arbtrary example Astro will streaming out the `<head>` section and everything else until it encounters `<LoadTodos />` and then stop. LoadTodos, which is also an Astro component will stream its contents as well; stopping and waiting at any other asynchronous components.
@ -475,15 +478,7 @@ The **Astro v1.0.0 Release Candidate** comes includes new features, tons of bug
As part of this Astro also now supports async iterables within its templates. This means you can do this:
```astro
<ul>
{(async function* () {
for (const number of numbers) {
await wait(1000);
yield <li>Number: {number}</li>;
yield '\n';
}
})()}
</ul>
```
Which will stream out `<li>`s one at a time, waiting a second between each.
@ -2618,9 +2613,7 @@ For convenience, you may now also move your `astro.config.js` file to a top-leve
This change adds support for hoisted scripts, allowing you to bundle scripts together for a page and hoist them to the top (in the head):
```astro
<script hoist>
// Anything goes here!
</script>
```
- Updated dependencies [5d2ea578]
@ -2722,21 +2715,7 @@ For convenience, you may now also move your `astro.config.js` file to a top-leve
An example usage:
```astro
---
import BarChart from '../components/BarChart.jsx';
---
<BarChart client:only />
<!--
If multiple renderers are included in the Astro config, this will ensure that the component is hydrated with * the Preact renderer.
-->
<BarChart client:only="preact" />
<!--
If a custom renderer is required, use the same name provided in the Astro config.
-->
<BarChart client:only="my-custom-renderer" />
```
This allows you to import a chart component dependent on d3.js while making sure that the component isn't rendered at all at build time.
@ -2760,16 +2739,7 @@ For convenience, you may now also move your `astro.config.js` file to a top-leve
An example usage:
```astro
---
import BarChart from '../components/BarChart.jsx';
---
<BarChart client:only />
/** * If multiple renderers are included in the Astro config, * this will ensure that the
component is hydrated with * the Preact renderer. */
<BarChart client:only="preact" />
/** * If a custom renderer is required, use the same name * provided in the Astro config. */
<BarChart client:only="my-custom-renderer" />
```
This allows you to import a chart component dependent on d3.js while making sure that the component isn't rendered at all at build time.
@ -2917,11 +2887,7 @@ For convenience, you may now also move your `astro.config.js` file to a top-leve
The new `client:media` hydrator allows you to define a component that should only be loaded when a media query matches. An example usage:
```astro
---
import Sidebar from '../components/Sidebar.jsx';
---
<Sidebar client:media="(max-width: 700px)" />
```
This allows you to define components which, for example, only run on mobile devices. A common example is a slide-in sidebar that is needed to add navigation to a mobile app, but is never displayed in desktop view.
@ -2939,12 +2905,7 @@ For convenience, you may now also move your `astro.config.js` file to a top-leve
**index.astro**
```astro
---
import Sidebar from '../components/Sidebar.jsx';
import { MOBILE } from '../media.js';
---
<Sidebar client:media={MOBILE} />;
```
### Patch Changes
@ -3069,11 +3030,7 @@ For convenience, you may now also move your `astro.config.js` file to a top-leve
The new `client:media` hydrator allows you to define a component that should only be loaded when a media query matches. An example usage:
```astro
---
import Sidebar from '../components/Sidebar.jsx';
---
<Sidebar client:media="(max-width: 700px)" />
```
This allows you to define components which, for example, only run on mobile devices. A common example is a slide-in sidebar that is needed to add navigation to a mobile app, but is never displayed in desktop view.
@ -3091,12 +3048,7 @@ For convenience, you may now also move your `astro.config.js` file to a top-leve
**index.astro**
```astro
---
import Sidebar from '../components/Sidebar.jsx';
import { MOBILE } from '../media.js';
---
<Sidebar client:media={MOBILE} />
```
### Patch Changes
@ -3265,12 +3217,7 @@ For convenience, you may now also move your `astro.config.js` file to a top-leve
Astro frontmatter scripts are TypeScript! Because of this, we can leverage TypeScript types to define the shape of your props.
```astro
---
export interface Props {
text?: string;
}
const { text = 'Hello world!' } = Astro.props as Props;
---
```
> **Note** Casting `Astro.props as Props` is a temporary workaround. We expect our Language Server to handle this automatically soon!
@ -3280,13 +3227,7 @@ For convenience, you may now also move your `astro.config.js` file to a top-leve
One of the great things about this change is that it's straight-forward to access _any_ props. Just use `...props`!
```astro
---
export interface Props {
text?: string;
[attr: string]: unknown;
}
const { text = 'Hello world!', ...props } = Astro.props as Props;
---
```
### What about prop validation?
@ -3294,12 +3235,7 @@ For convenience, you may now also move your `astro.config.js` file to a top-leve
We considered building prop validation into Astro, but decided to leave that implementation up to you! This way, you can use any set of tools you like.
```astro
---
const { text = 'Hello world!' } = Astro.props;
if (typeof text !== 'string')
throw new Error(`Expected "text" to be of type "string" but recieved "${typeof string}"!`);
---
```
### Patch Changes

View file

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

View file

@ -1,5 +1,11 @@
# @astrojs/cloudflare
## 1.0.1
### Patch Changes
- [#4232](https://github.com/withastro/astro/pull/4232) [`bfbd32588`](https://github.com/withastro/astro/commit/bfbd32588f7e2c0a9e43cd1a571a0dc9c5f7e645) Thanks [@Ekwuno](https://github.com/Ekwuno)! - Update README
## 1.0.0
### Major Changes
@ -58,7 +64,7 @@
The new `Astro.clientAddress` property allows you to get the IP address of the requested user.
```astro
<div>Your address {Astro.clientAddress}</div>
```
This property is only available when building for SSR, and only if the adapter you are using supports providing the IP address. If you attempt to access the property in a SSG app it will throw an error.

View file

@ -1,7 +1,7 @@
{
"name": "@astrojs/cloudflare",
"description": "Deploy your site to cloudflare pages functions",
"version": "1.0.0",
"version": "1.0.1",
"type": "module",
"types": "./dist/index.d.ts",
"author": "withastro",

View file

@ -1,5 +1,11 @@
# @astrojs/mdx
## 0.8.2
### Patch Changes
- [#4237](https://github.com/withastro/astro/pull/4237) [`9d5ab5508`](https://github.com/withastro/astro/commit/9d5ab55086964fbede17da3d78c209c6d8d13711) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Update "Astro.props.content" -> "Astro.props.frontmatter" in README
## 0.8.1
### Patch Changes

View file

@ -1,7 +1,7 @@
{
"name": "@astrojs/mdx",
"description": "Use MDX within Astro",
"version": "0.8.1",
"version": "0.8.2",
"type": "module",
"types": "./dist/index.d.ts",
"author": "withastro",

View file

@ -1,5 +1,11 @@
# @astrojs/preact
## 1.0.1
### Patch Changes
- [#4213](https://github.com/withastro/astro/pull/4213) [`f8e385339`](https://github.com/withastro/astro/commit/f8e3853394c2f2f48fac4b5eb2284e1960e59a13) Thanks [@bluwy](https://github.com/bluwy)! - Fix compat support for libraries
## 1.0.0
### Major Changes

View file

@ -1,7 +1,7 @@
{
"name": "@astrojs/preact",
"description": "Use Preact components within Astro",
"version": "1.0.0",
"version": "1.0.1",
"type": "module",
"types": "./dist/index.d.ts",
"author": "withastro",

View file

@ -56,14 +56,14 @@ importers:
examples/basics:
specifiers:
astro: ^1.0.1
astro: ^1.0.2
devDependencies:
astro: link:../../packages/astro
examples/blog:
specifiers:
'@astrojs/preact': ^1.0.0
astro: ^1.0.1
'@astrojs/preact': ^1.0.1
astro: ^1.0.2
preact: ^10.7.3
dependencies:
preact: 10.10.2
@ -73,14 +73,14 @@ importers:
examples/component:
specifiers:
astro: ^1.0.1
astro: ^1.0.2
devDependencies:
astro: link:../../packages/astro
examples/component/demo:
specifiers:
'@example/my-component': workspace:*
astro: ^1.0.1
astro: ^1.0.2
devDependencies:
'@example/my-component': link:../packages/my-component
astro: link:../../../packages/astro
@ -91,12 +91,12 @@ importers:
examples/docs:
specifiers:
'@algolia/client-search': ^4.13.1
'@astrojs/preact': ^1.0.0
'@astrojs/preact': ^1.0.1
'@astrojs/react': ^1.0.0
'@docsearch/css': ^3.1.0
'@docsearch/react': ^3.1.0
'@types/react': ^17.0.45
astro: ^1.0.1
astro: ^1.0.2
preact: ^10.7.3
react: ^18.1.0
react-dom: ^18.1.0
@ -115,7 +115,7 @@ importers:
examples/env-vars:
specifiers:
astro: ^1.0.1
astro: ^1.0.2
devDependencies:
astro: link:../../packages/astro
@ -123,7 +123,7 @@ importers:
specifiers:
'@types/alpinejs': ^3.7.0
alpinejs: ^3.10.2
astro: ^1.0.1
astro: ^1.0.2
dependencies:
alpinejs: 3.10.3
devDependencies:
@ -134,7 +134,7 @@ importers:
specifiers:
'@astrojs/lit': ^1.0.0
'@webcomponents/template-shadowroot': ^0.1.0
astro: ^1.0.1
astro: ^1.0.2
lit: ^2.2.5
dependencies:
'@webcomponents/template-shadowroot': 0.1.0
@ -145,12 +145,12 @@ importers:
examples/framework-multiple:
specifiers:
'@astrojs/preact': ^1.0.0
'@astrojs/preact': ^1.0.1
'@astrojs/react': ^1.0.0
'@astrojs/solid-js': ^1.0.0
'@astrojs/svelte': ^1.0.0
'@astrojs/vue': ^1.0.0
astro: ^1.0.1
astro: ^1.0.2
preact: ^10.7.3
react: ^18.1.0
react-dom: ^18.1.0
@ -174,8 +174,8 @@ importers:
examples/framework-preact:
specifiers:
'@astrojs/preact': ^1.0.0
astro: ^1.0.1
'@astrojs/preact': ^1.0.1
astro: ^1.0.2
preact: ^10.7.3
dependencies:
preact: 10.10.2
@ -188,7 +188,7 @@ importers:
'@astrojs/react': ^1.0.0
'@types/react': ^18.0.10
'@types/react-dom': ^18.0.5
astro: ^1.0.1
astro: ^1.0.2
react: ^18.1.0
react-dom: ^18.1.0
dependencies:
@ -203,7 +203,7 @@ importers:
examples/framework-solid:
specifiers:
'@astrojs/solid-js': ^1.0.0
astro: ^1.0.1
astro: ^1.0.2
solid-js: ^1.4.3
dependencies:
solid-js: 1.4.8
@ -214,7 +214,7 @@ importers:
examples/framework-svelte:
specifiers:
'@astrojs/svelte': ^1.0.0
astro: ^1.0.1
astro: ^1.0.2
svelte: ^3.48.0
dependencies:
svelte: 3.49.0
@ -225,7 +225,7 @@ importers:
examples/framework-vue:
specifiers:
'@astrojs/vue': ^1.0.0
astro: ^1.0.1
astro: ^1.0.2
vue: ^3.2.37
dependencies:
vue: 3.2.37
@ -235,20 +235,20 @@ importers:
examples/minimal:
specifiers:
astro: ^1.0.1
astro: ^1.0.2
devDependencies:
astro: link:../../packages/astro
examples/non-html-pages:
specifiers:
astro: ^1.0.1
astro: ^1.0.2
devDependencies:
astro: link:../../packages/astro
examples/portfolio:
specifiers:
'@astrojs/preact': ^1.0.0
astro: ^1.0.1
'@astrojs/preact': ^1.0.1
astro: ^1.0.2
preact: ^10.7.3
sass: ^1.52.2
dependencies:
@ -262,7 +262,7 @@ importers:
specifiers:
'@astrojs/node': ^1.0.0
'@astrojs/svelte': ^1.0.0
astro: ^1.0.1
astro: ^1.0.2
concurrently: ^7.2.1
lightcookie: ^1.0.25
svelte: ^3.48.0
@ -282,7 +282,7 @@ importers:
examples/subpath:
specifiers:
'@astrojs/react': ^1.0.0
astro: ^1.0.1
astro: ^1.0.2
react: ^18.1.0
react-dom: ^18.1.0
dependencies:
@ -295,7 +295,7 @@ importers:
examples/with-markdown-plugins:
specifiers:
'@astrojs/markdown-remark': ^1.0.0
astro: ^1.0.1
astro: ^1.0.2
hast-util-select: 5.0.1
rehype-autolink-headings: ^6.1.1
rehype-slug: ^5.0.1
@ -313,16 +313,16 @@ importers:
examples/with-markdown-shiki:
specifiers:
'@astrojs/markdown-remark': ^1.0.0
astro: ^1.0.1
astro: ^1.0.2
devDependencies:
'@astrojs/markdown-remark': link:../../packages/markdown/remark
astro: link:../../packages/astro
examples/with-mdx:
specifiers:
'@astrojs/mdx': ^0.8.1
'@astrojs/preact': ^1.0.0
astro: ^1.0.1
'@astrojs/mdx': ^0.8.2
'@astrojs/preact': ^1.0.1
astro: ^1.0.2
preact: ^10.6.5
devDependencies:
'@astrojs/mdx': link:../../packages/integrations/mdx
@ -332,9 +332,9 @@ importers:
examples/with-nanostores:
specifiers:
'@astrojs/preact': ^1.0.0
'@astrojs/preact': ^1.0.1
'@nanostores/preact': ^0.1.3
astro: ^1.0.1
astro: ^1.0.2
nanostores: ^0.5.12
preact: ^10.7.3
dependencies:
@ -348,7 +348,7 @@ importers:
examples/with-tailwindcss:
specifiers:
'@astrojs/tailwind': ^1.0.0
astro: ^1.0.1
astro: ^1.0.2
autoprefixer: ^10.4.7
canvas-confetti: ^1.5.1
postcss: ^8.4.14
@ -363,7 +363,7 @@ importers:
examples/with-vite-plugin-pwa:
specifiers:
astro: ^1.0.1
astro: ^1.0.2
vite-plugin-pwa: 0.11.11
workbox-window: ^6.5.3
devDependencies:
@ -373,7 +373,7 @@ importers:
examples/with-vitest:
specifiers:
astro: ^1.0.1
astro: ^1.0.2
vitest: ^0.20.3
devDependencies:
astro: link:../../packages/astro