[ci] release (#6977)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Houston (Bot) 2023-05-04 09:49:17 -07:00 committed by GitHub
parent 818252acda
commit 51c8e7fe29
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
31 changed files with 143 additions and 127 deletions

View file

@ -1,5 +0,0 @@
---
'@astrojs/sitemap': minor
---
Adds support to SSR routes to sitemap generation.

View file

@ -1,5 +0,0 @@
---
'astro': minor
---
Generated optimized images are now cached inside the `node_modules/.astro/assets` folder. The cached images will be used to avoid doing extra work and speed up subsequent builds.

View file

@ -1,5 +0,0 @@
---
'astro': minor
---
Implement Inline Stylesheets RFC as experimental

View file

@ -1,21 +0,0 @@
---
'astro': minor
---
Implements a new class-based scoping strategy
This implements the [Scoping RFC](https://github.com/withastro/roadmap/pull/543), providing a way to opt in to increased style specificity for Astro component styles.
This prevents bugs where global styles override Astro component styles due to CSS ordering and the use of element selectors.
To enable class-based scoping, you can set it in your config:
```js
import { defineConfig } from 'astro/config';
export default defineConfig({
scopedStyleStrategy: 'class'
});
```
Note that the 0-specificity `:where` pseudo-selector is still the default strategy. The intent is to change `'class'` to be the default in 3.0.

View file

@ -1,5 +0,0 @@
---
'@astrojs/react': patch
---
Prevent ID collisions in React.useId

View file

@ -1,5 +0,0 @@
---
'astro': minor
---
Support `<Code inline />` to output inline code HTML (no `pre` tag)

View file

@ -1,47 +0,0 @@
---
'astro': minor
---
Implements a new experimental middleware in Astro.
The middleware is available under the following experimental flag:
```js
export default defineConfig({
experimental: {
middleware: true
}
})
```
Or via CLI, using the new argument `--experimental-middleware`.
Create a file called `middleware.{js,ts}` inside the `src` folder, and
export a `onRequest` function.
From `astro/middleware`, use the `defineMiddleware` utility to take advantage of type-safety, and use
the `sequence` utility to chain multiple middleware functions.
Example:
```ts
import {defineMiddleware, sequence} from "astro/middleware";
const redirects = defineMiddleware((context, next) => {
if (context.request.url.endsWith("/old-url")) {
return context.redirect("/new-url")
}
return next();
});
const minify = defineMiddleware(async (context, next) => {
const repsonse = await next();
const minifiedHtml = await minifyHtml(response.text());
return new Response(minifiedHtml, {
status: 200,
headers: response.headers
});
})
export const onRequest = sequence(redirects, minify);
```

View file

@ -1,8 +0,0 @@
---
'@astrojs/markdoc': patch
'@astrojs/mdx': patch
'@astrojs/markdown-remark': minor
'astro': minor
---
Upgrade shiki to v0.14.1. This updates the shiki theme colors and adds the theme name to the `pre` tag, e.g. `<pre class="astro-code github-dark">`.

View file

@ -1,5 +0,0 @@
---
'astro': patch
---
Ensure multiple cookies set in dev result in multiple set-cookie headers

View file

@ -1,5 +1,86 @@
# astro # astro
## 2.4.0
### Minor Changes
- [#6990](https://github.com/withastro/astro/pull/6990) [`818252acd`](https://github.com/withastro/astro/commit/818252acda3c00499cea51ffa0f26d4c2ccd3a02) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Generated optimized images are now cached inside the `node_modules/.astro/assets` folder. The cached images will be used to avoid doing extra work and speed up subsequent builds.
- [#6659](https://github.com/withastro/astro/pull/6659) [`80e3d4d3d`](https://github.com/withastro/astro/commit/80e3d4d3d0f7719d8eae5435bba3805503057511) Thanks [@lilnasy](https://github.com/lilnasy)! - Implement Inline Stylesheets RFC as experimental
- [#6771](https://github.com/withastro/astro/pull/6771) [`3326492b9`](https://github.com/withastro/astro/commit/3326492b94f76ed2b0154dd9b9a1a9eb883c1e31) Thanks [@matthewp](https://github.com/matthewp)! - Implements a new class-based scoping strategy
This implements the [Scoping RFC](https://github.com/withastro/roadmap/pull/543), providing a way to opt in to increased style specificity for Astro component styles.
This prevents bugs where global styles override Astro component styles due to CSS ordering and the use of element selectors.
To enable class-based scoping, you can set it in your config:
```js
import { defineConfig } from 'astro/config';
export default defineConfig({
scopedStyleStrategy: 'class',
});
```
Note that the 0-specificity `:where` pseudo-selector is still the default strategy. The intent is to change `'class'` to be the default in 3.0.
- [#6959](https://github.com/withastro/astro/pull/6959) [`cac4a321e`](https://github.com/withastro/astro/commit/cac4a321e814fb805eb0e3ced469e25261a50885) Thanks [@bluwy](https://github.com/bluwy)! - Support `<Code inline />` to output inline code HTML (no `pre` tag)
- [#6721](https://github.com/withastro/astro/pull/6721) [`831b67cdb`](https://github.com/withastro/astro/commit/831b67cdb8250f93f66e3b171fab024652bf80f2) Thanks [@ematipico](https://github.com/ematipico)! - Implements a new experimental middleware in Astro.
The middleware is available under the following experimental flag:
```js
export default defineConfig({
experimental: {
middleware: true,
},
});
```
Or via CLI, using the new argument `--experimental-middleware`.
Create a file called `middleware.{js,ts}` inside the `src` folder, and
export a `onRequest` function.
From `astro/middleware`, use the `defineMiddleware` utility to take advantage of type-safety, and use
the `sequence` utility to chain multiple middleware functions.
Example:
```ts
import { defineMiddleware, sequence } from 'astro/middleware';
const redirects = defineMiddleware((context, next) => {
if (context.request.url.endsWith('/old-url')) {
return context.redirect('/new-url');
}
return next();
});
const minify = defineMiddleware(async (context, next) => {
const repsonse = await next();
const minifiedHtml = await minifyHtml(response.text());
return new Response(minifiedHtml, {
status: 200,
headers: response.headers,
});
});
export const onRequest = sequence(redirects, minify);
```
- [#6932](https://github.com/withastro/astro/pull/6932) [`49514e4ce`](https://github.com/withastro/astro/commit/49514e4ce40fedb39bf7decd2c296258efbdafc7) Thanks [@bluwy](https://github.com/bluwy)! - Upgrade shiki to v0.14.1. This updates the shiki theme colors and adds the theme name to the `pre` tag, e.g. `<pre class="astro-code github-dark">`.
### Patch Changes
- [#6973](https://github.com/withastro/astro/pull/6973) [`0883fd487`](https://github.com/withastro/astro/commit/0883fd4875548a613df122f0b87a1ca8b7a7cf7d) Thanks [@matthewp](https://github.com/matthewp)! - Ensure multiple cookies set in dev result in multiple set-cookie headers
- Updated dependencies [[`49514e4ce`](https://github.com/withastro/astro/commit/49514e4ce40fedb39bf7decd2c296258efbdafc7)]:
- @astrojs/markdown-remark@2.2.0
## 2.3.4 ## 2.3.4
### Patch Changes ### Patch Changes

View file

@ -1,6 +1,6 @@
{ {
"name": "astro", "name": "astro",
"version": "2.3.4", "version": "2.4.0",
"description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.", "description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.",
"type": "module", "type": "module",
"author": "withastro", "author": "withastro",
@ -112,7 +112,7 @@
"dependencies": { "dependencies": {
"@astrojs/compiler": "^1.4.0", "@astrojs/compiler": "^1.4.0",
"@astrojs/language-server": "^1.0.0", "@astrojs/language-server": "^1.0.0",
"@astrojs/markdown-remark": "^2.1.4", "@astrojs/markdown-remark": "^2.2.0",
"@astrojs/telemetry": "^2.1.1", "@astrojs/telemetry": "^2.1.1",
"@astrojs/webapi": "^2.1.1", "@astrojs/webapi": "^2.1.1",
"@babel/core": "^7.18.2", "@babel/core": "^7.18.2",

View file

@ -38,7 +38,7 @@
"tiny-glob": "^0.2.9" "tiny-glob": "^0.2.9"
}, },
"peerDependencies": { "peerDependencies": {
"astro": "workspace:^2.3.4" "astro": "workspace:^2.4.0"
}, },
"devDependencies": { "devDependencies": {
"astro": "workspace:*", "astro": "workspace:*",

View file

@ -33,7 +33,7 @@
"esbuild": "^0.15.18" "esbuild": "^0.15.18"
}, },
"peerDependencies": { "peerDependencies": {
"astro": "workspace:^2.3.4" "astro": "workspace:^2.4.0"
}, },
"devDependencies": { "devDependencies": {
"astro": "workspace:*", "astro": "workspace:*",

View file

@ -62,7 +62,7 @@
"vite": "^4.3.1" "vite": "^4.3.1"
}, },
"peerDependencies": { "peerDependencies": {
"astro": "workspace:^2.3.4", "astro": "workspace:^2.4.0",
"sharp": ">=0.31.0" "sharp": ">=0.31.0"
}, },
"peerDependenciesMeta": { "peerDependenciesMeta": {

View file

@ -1,5 +1,14 @@
# @astrojs/markdoc # @astrojs/markdoc
## 0.1.2
### Patch Changes
- [#6932](https://github.com/withastro/astro/pull/6932) [`49514e4ce`](https://github.com/withastro/astro/commit/49514e4ce40fedb39bf7decd2c296258efbdafc7) Thanks [@bluwy](https://github.com/bluwy)! - Upgrade shiki to v0.14.1. This updates the shiki theme colors and adds the theme name to the `pre` tag, e.g. `<pre class="astro-code github-dark">`.
- Updated dependencies [[`818252acd`](https://github.com/withastro/astro/commit/818252acda3c00499cea51ffa0f26d4c2ccd3a02), [`80e3d4d3d`](https://github.com/withastro/astro/commit/80e3d4d3d0f7719d8eae5435bba3805503057511), [`3326492b9`](https://github.com/withastro/astro/commit/3326492b94f76ed2b0154dd9b9a1a9eb883c1e31), [`cac4a321e`](https://github.com/withastro/astro/commit/cac4a321e814fb805eb0e3ced469e25261a50885), [`831b67cdb`](https://github.com/withastro/astro/commit/831b67cdb8250f93f66e3b171fab024652bf80f2), [`49514e4ce`](https://github.com/withastro/astro/commit/49514e4ce40fedb39bf7decd2c296258efbdafc7), [`0883fd487`](https://github.com/withastro/astro/commit/0883fd4875548a613df122f0b87a1ca8b7a7cf7d)]:
- astro@2.4.0
## 0.1.1 ## 0.1.1
### Patch Changes ### Patch Changes

View file

@ -1,7 +1,7 @@
{ {
"name": "@astrojs/markdoc", "name": "@astrojs/markdoc",
"description": "Add support for Markdoc pages in your Astro site", "description": "Add support for Markdoc pages in your Astro site",
"version": "0.1.1", "version": "0.1.2",
"type": "module", "type": "module",
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"author": "withastro", "author": "withastro",
@ -41,7 +41,7 @@
"zod": "^3.17.3" "zod": "^3.17.3"
}, },
"peerDependencies": { "peerDependencies": {
"astro": "workspace:^2.3.4" "astro": "workspace:^2.4.0"
}, },
"devDependencies": { "devDependencies": {
"@types/chai": "^4.3.1", "@types/chai": "^4.3.1",

View file

@ -1,5 +1,14 @@
# @astrojs/mdx # @astrojs/mdx
## 0.19.1
### Patch Changes
- [#6932](https://github.com/withastro/astro/pull/6932) [`49514e4ce`](https://github.com/withastro/astro/commit/49514e4ce40fedb39bf7decd2c296258efbdafc7) Thanks [@bluwy](https://github.com/bluwy)! - Upgrade shiki to v0.14.1. This updates the shiki theme colors and adds the theme name to the `pre` tag, e.g. `<pre class="astro-code github-dark">`.
- Updated dependencies [[`49514e4ce`](https://github.com/withastro/astro/commit/49514e4ce40fedb39bf7decd2c296258efbdafc7)]:
- @astrojs/markdown-remark@2.2.0
## 0.19.0 ## 0.19.0
### Minor Changes ### Minor Changes

View file

@ -1,7 +1,7 @@
{ {
"name": "@astrojs/mdx", "name": "@astrojs/mdx",
"description": "Add support for MDX pages in your Astro site", "description": "Add support for MDX pages in your Astro site",
"version": "0.19.0", "version": "0.19.1",
"type": "module", "type": "module",
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"author": "withastro", "author": "withastro",
@ -30,7 +30,7 @@
"test:match": "mocha --timeout 20000 -g" "test:match": "mocha --timeout 20000 -g"
}, },
"dependencies": { "dependencies": {
"@astrojs/markdown-remark": "^2.1.4", "@astrojs/markdown-remark": "^2.2.0",
"@astrojs/prism": "^2.1.1", "@astrojs/prism": "^2.1.1",
"@mdx-js/mdx": "^2.3.0", "@mdx-js/mdx": "^2.3.0",
"@mdx-js/rollup": "^2.3.0", "@mdx-js/rollup": "^2.3.0",

View file

@ -39,7 +39,7 @@
"esbuild": "^0.15.18" "esbuild": "^0.15.18"
}, },
"peerDependencies": { "peerDependencies": {
"astro": "workspace:^2.3.4" "astro": "workspace:^2.4.0"
}, },
"devDependencies": { "devDependencies": {
"@netlify/edge-functions": "^2.0.0", "@netlify/edge-functions": "^2.0.0",

View file

@ -35,7 +35,7 @@
"server-destroy": "^1.0.1" "server-destroy": "^1.0.1"
}, },
"peerDependencies": { "peerDependencies": {
"astro": "workspace:^2.3.4" "astro": "workspace:^2.4.0"
}, },
"devDependencies": { "devDependencies": {
"@types/send": "^0.17.1", "@types/send": "^0.17.1",

View file

@ -1,5 +1,11 @@
# @astrojs/react # @astrojs/react
## 2.1.3
### Patch Changes
- [#6976](https://github.com/withastro/astro/pull/6976) [`ca329bbca`](https://github.com/withastro/astro/commit/ca329bbcae7a6075af4f428f6f64466e9d152c8f) Thanks [@SudoCat](https://github.com/SudoCat)! - Prevent ID collisions in React.useId
## 2.1.2 ## 2.1.2
### Patch Changes ### Patch Changes

View file

@ -1,7 +1,7 @@
{ {
"name": "@astrojs/react", "name": "@astrojs/react",
"description": "Use React components within Astro", "description": "Use React components within Astro",
"version": "2.1.2", "version": "2.1.3",
"type": "module", "type": "module",
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"author": "withastro", "author": "withastro",

View file

@ -1,5 +1,11 @@
# @astrojs/sitemap # @astrojs/sitemap
## 1.3.0
### Minor Changes
- [#6534](https://github.com/withastro/astro/pull/6534) [`ad907196c`](https://github.com/withastro/astro/commit/ad907196cb42f21d9540ae0d77aa742bf7adf030) Thanks [@atilafassina](https://github.com/atilafassina)! - Adds support to SSR routes to sitemap generation.
## 1.2.2 ## 1.2.2
### Patch Changes ### Patch Changes

View file

@ -1,7 +1,7 @@
{ {
"name": "@astrojs/sitemap", "name": "@astrojs/sitemap",
"description": "Generate a sitemap for your Astro site", "description": "Generate a sitemap for your Astro site",
"version": "1.2.2", "version": "1.3.0",
"type": "module", "type": "module",
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"author": "withastro", "author": "withastro",

View file

@ -43,7 +43,7 @@
"vite": "^4.3.1" "vite": "^4.3.1"
}, },
"peerDependencies": { "peerDependencies": {
"astro": "workspace:^2.3.4", "astro": "workspace:^2.4.0",
"svelte": "^3.54.0" "svelte": "^3.54.0"
}, },
"engines": { "engines": {

View file

@ -40,7 +40,7 @@
"vite": "^4.3.1" "vite": "^4.3.1"
}, },
"peerDependencies": { "peerDependencies": {
"astro": "workspace:^2.3.4", "astro": "workspace:^2.4.0",
"tailwindcss": "^3.0.24" "tailwindcss": "^3.0.24"
}, },
"pnpm": { "pnpm": {

View file

@ -55,7 +55,7 @@
"web-vitals": "^3.1.1" "web-vitals": "^3.1.1"
}, },
"peerDependencies": { "peerDependencies": {
"astro": "workspace:^2.3.4" "astro": "workspace:^2.4.0"
}, },
"devDependencies": { "devDependencies": {
"@types/set-cookie-parser": "^2.4.2", "@types/set-cookie-parser": "^2.4.2",

View file

@ -50,7 +50,7 @@
"vue": "^3.2.37" "vue": "^3.2.37"
}, },
"peerDependencies": { "peerDependencies": {
"astro": "workspace:^2.3.4", "astro": "workspace:^2.4.0",
"vue": "^3.2.30" "vue": "^3.2.30"
}, },
"engines": { "engines": {

View file

@ -1,5 +1,16 @@
# @astrojs/markdown-remark # @astrojs/markdown-remark
## 2.2.0
### Minor Changes
- [#6932](https://github.com/withastro/astro/pull/6932) [`49514e4ce`](https://github.com/withastro/astro/commit/49514e4ce40fedb39bf7decd2c296258efbdafc7) Thanks [@bluwy](https://github.com/bluwy)! - Upgrade shiki to v0.14.1. This updates the shiki theme colors and adds the theme name to the `pre` tag, e.g. `<pre class="astro-code github-dark">`.
### Patch Changes
- Updated dependencies [[`818252acd`](https://github.com/withastro/astro/commit/818252acda3c00499cea51ffa0f26d4c2ccd3a02), [`80e3d4d3d`](https://github.com/withastro/astro/commit/80e3d4d3d0f7719d8eae5435bba3805503057511), [`3326492b9`](https://github.com/withastro/astro/commit/3326492b94f76ed2b0154dd9b9a1a9eb883c1e31), [`cac4a321e`](https://github.com/withastro/astro/commit/cac4a321e814fb805eb0e3ced469e25261a50885), [`831b67cdb`](https://github.com/withastro/astro/commit/831b67cdb8250f93f66e3b171fab024652bf80f2), [`49514e4ce`](https://github.com/withastro/astro/commit/49514e4ce40fedb39bf7decd2c296258efbdafc7), [`0883fd487`](https://github.com/withastro/astro/commit/0883fd4875548a613df122f0b87a1ca8b7a7cf7d)]:
- astro@2.4.0
## 2.1.4 ## 2.1.4
### Patch Changes ### Patch Changes

View file

@ -1,6 +1,6 @@
{ {
"name": "@astrojs/markdown-remark", "name": "@astrojs/markdown-remark",
"version": "2.1.4", "version": "2.2.0",
"type": "module", "type": "module",
"author": "withastro", "author": "withastro",
"license": "MIT", "license": "MIT",
@ -25,7 +25,7 @@
"test": "mocha --exit --timeout 20000" "test": "mocha --exit --timeout 20000"
}, },
"peerDependencies": { "peerDependencies": {
"astro": "workspace:^2.3.0" "astro": "workspace:^2.4.0"
}, },
"dependencies": { "dependencies": {
"@astrojs/prism": "^2.1.0", "@astrojs/prism": "^2.1.0",

View file

@ -559,7 +559,7 @@ importers:
specifier: ^1.0.0 specifier: ^1.0.0
version: 1.0.0 version: 1.0.0
'@astrojs/markdown-remark': '@astrojs/markdown-remark':
specifier: ^2.1.4 specifier: ^2.2.0
version: link:../markdown/remark version: link:../markdown/remark
'@astrojs/telemetry': '@astrojs/telemetry':
specifier: ^2.1.1 specifier: ^2.1.1
@ -3994,7 +3994,7 @@ importers:
packages/integrations/mdx: packages/integrations/mdx:
dependencies: dependencies:
'@astrojs/markdown-remark': '@astrojs/markdown-remark':
specifier: ^2.1.4 specifier: ^2.2.0
version: link:../../markdown/remark version: link:../../markdown/remark
'@astrojs/prism': '@astrojs/prism':
specifier: ^2.1.1 specifier: ^2.1.1