0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-30 22:03:56 -05:00

[ci] release (#10739)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Houston (Bot) 2024-04-11 04:24:47 -07:00 committed by GitHub
parent 908645d9dd
commit 66bc1041d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
64 changed files with 345 additions and 267 deletions

View file

@ -1,5 +0,0 @@
---
"astro": patch
---
Fixes an issue where functions could not be used as named slots.

View file

@ -1,42 +0,0 @@
---
"@astrojs/markdown-remark": minor
---
Adds a `data-language` attribute on the rendered `pre` elements to expose the highlighted syntax language.
For example, the following Markdown code block will expose `data-language="python"`:
```
\```python
def func():
print('Hello Astro!')
\```
```
This allows retrieving the language in a rehype plugin from `node.properties.dataLanguage` by accessing the `<pre>` element using `{ tagName: "pre" }`:
```js
// myRehypePre.js
import { visit } from "unist-util-visit";
export default function myRehypePre() {
return (tree) => {
visit(tree, { tagName: "pre" }, (node) => {
const lang = node.properties.dataLanguage;
[...]
});
};
}
```
Note: The `<pre>` element is not exposed when using Astro's `<Code />` component which outputs flattened HTML.
The `data-language` attribute may also be used in css rules:
```css
pre::before {
content: attr(data-language);
}
pre[data-language="javascript"] {
font-size: 2rem;
}
```

View file

@ -1,5 +0,0 @@
---
"astro": minor
---
Adds a new dev toolbar settings option to change the horizontal placement of the dev toolbar on your screen: bottom left, bottom center, or bottom right.

View file

@ -1,18 +0,0 @@
---
"@astrojs/markdoc": minor
"@astrojs/preact": minor
"@astrojs/svelte": minor
"@astrojs/react": minor
"@astrojs/solid-js": minor
"@astrojs/mdx": minor
"@astrojs/vue": minor
"create-astro": minor
"@astrojs/prism": minor
"@astrojs/telemetry": minor
"@astrojs/upgrade": minor
"astro": minor
---
Deprecate support for versions of Node.js older than `v18.17.1` for Node.js 18, older than `v20.0.3` for Node.js 20, and the complete Node.js v19 release line.
This change is in line with Astro's [Node.js support policy](https://docs.astro.build/en/upgrade-astro/#support).

View file

@ -1,24 +0,0 @@
---
"astro": minor
---
Adds a new experimental security option to prevent [Cross-Site Request Forgery (CSRF) attacks](https://owasp.org/www-community/attacks/csrf). This feature is available only for pages rendered on demand:
```js
import { defineConfig } from "astro/config"
export default defineConfig({
experimental: {
security: {
csrfProtection: {
origin: true
}
}
}
})
```
Enabling this setting performs a check that the "origin" header, automatically passed by all modern browsers, matches the URL sent by each `Request`.
This experimental "origin" check is executed only for pages rendered on demand, and only for the requests `POST, `PATCH`, `DELETE` and `PUT` with one of the following `content-type` headers: 'application/x-www-form-urlencoded', 'multipart/form-data', 'text/plain'.
It the "origin" header doesn't match the pathname of the request, Astro will return a 403 status code and won't render the page.

View file

@ -1,5 +0,0 @@
---
"astro": patch
---
Fixes a false positive for "Invalid `tabindex` on non-interactive element" rule for roleless elements ( `div` and `span` ).

View file

@ -1,5 +0,0 @@
---
"astro": patch
---
Fixes an issue where CLI commands could not report the reason for failure before exiting.

View file

@ -1,48 +0,0 @@
---
"astro": minor
---
Adds a new i18n routing option `manual` to allow you to write your own i18n middleware:
```js
import { defineConfig } from "astro/config"
// astro.config.mjs
export default defineConfig({
i18n: {
locales: ["en", "fr"],
defaultLocale: "fr",
routing: "manual"
}
})
```
Adding `routing: "manual"` to your i18n config disables Astro's own i18n middleware and provides you with helper functions to write your own: `redirectToDefaultLocale`, `notFound`, and `redirectToFallback`:
```js
// middleware.js
import { redirectToDefaultLocale } from "astro:i18n";
export const onRequest = defineMiddleware(async (context, next) => {
if (context.url.startsWith("/about")) {
return next()
} else {
return redirectToDefaultLocale(context, 302);
}
})
```
Also adds a `middleware` function that manually creates Astro's i18n middleware. This allows you to extend Astro's i18n routing instead of completely replacing it. Run `middleware` in combination with your own middleware, using the `sequence` utility to determine the order:
```js title="src/middleware.js"
import {defineMiddleware, sequence} from "astro:middleware";
import { middleware } from "astro:i18n"; // Astro's own i18n routing config
export const userMiddleware = defineMiddleware();
export const onRequest = sequence(
userMiddleware,
middleware({
redirectToDefaultLocale: false,
prefixDefaultLocale: true
})
)
```

View file

@ -1,5 +0,0 @@
---
"astro": minor
---
Adds the `httpOnly`, `sameSite`, and `secure` options when deleting a cookie

View file

@ -1,5 +0,0 @@
---
"astro": patch
---
Fixed errorOverlay theme toggle bug.

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.5.18"
"astro": "^4.6.0"
}
}

View file

@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/mdx": "^2.2.4",
"@astrojs/mdx": "^2.3.0",
"@astrojs/rss": "^4.0.5",
"@astrojs/sitemap": "^3.1.2",
"astro": "^4.5.18"
"astro": "^4.6.0"
}
}

View file

@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
"astro": "^4.5.18"
"astro": "^4.6.0"
},
"peerDependencies": {
"astro": "^4.0.0"

View file

@ -14,6 +14,6 @@
"@astrojs/alpinejs": "^0.4.0",
"@types/alpinejs": "^3.13.5",
"alpinejs": "^3.13.3",
"astro": "^4.5.18"
"astro": "^4.6.0"
}
}

View file

@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/lit": "^4.0.1",
"@webcomponents/template-shadowroot": "^0.2.1",
"astro": "^4.5.18",
"astro": "^4.6.0",
"lit": "^3.1.2"
}
}

View file

@ -11,14 +11,14 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/preact": "^3.1.2",
"@astrojs/react": "^3.2.0",
"@astrojs/solid-js": "^4.0.1",
"@astrojs/svelte": "^5.3.0",
"@astrojs/vue": "^4.0.11",
"@astrojs/preact": "^3.2.0",
"@astrojs/react": "^3.3.0",
"@astrojs/solid-js": "^4.1.0",
"@astrojs/svelte": "^5.4.0",
"@astrojs/vue": "^4.1.0",
"@types/react": "^18.2.37",
"@types/react-dom": "^18.2.15",
"astro": "^4.5.18",
"astro": "^4.6.0",
"preact": "^10.19.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",

View file

@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/preact": "^3.1.2",
"@astrojs/preact": "^3.2.0",
"@preact/signals": "^1.2.1",
"astro": "^4.5.18",
"astro": "^4.6.0",
"preact": "^10.19.2"
}
}

View file

@ -11,10 +11,10 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/react": "^3.2.0",
"@astrojs/react": "^3.3.0",
"@types/react": "^18.2.37",
"@types/react-dom": "^18.2.15",
"astro": "^4.5.18",
"astro": "^4.6.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
}

View file

@ -11,8 +11,8 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/solid-js": "^4.0.1",
"astro": "^4.5.18",
"@astrojs/solid-js": "^4.1.0",
"astro": "^4.6.0",
"solid-js": "^1.8.5"
}
}

View file

@ -11,8 +11,8 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/svelte": "^5.3.0",
"astro": "^4.5.18",
"@astrojs/svelte": "^5.4.0",
"astro": "^4.6.0",
"svelte": "^4.2.5"
}
}

View file

@ -11,8 +11,8 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/vue": "^4.0.11",
"astro": "^4.5.18",
"@astrojs/vue": "^4.1.0",
"astro": "^4.6.0",
"vue": "^3.3.8"
}
}

View file

@ -12,6 +12,6 @@
},
"dependencies": {
"@astrojs/node": "^8.2.5",
"astro": "^4.5.18"
"astro": "^4.6.0"
}
}

View file

@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
"astro": "^4.5.18"
"astro": "^4.6.0"
},
"peerDependencies": {
"astro": "^4.0.0"

View file

@ -13,7 +13,7 @@
},
"dependencies": {
"@astrojs/node": "^8.2.5",
"astro": "^4.5.18",
"astro": "^4.6.0",
"html-minifier": "^4.0.0"
},
"devDependencies": {

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.5.18"
"astro": "^4.6.0"
}
}

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.5.18"
"astro": "^4.6.0"
}
}

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.5.18"
"astro": "^4.6.0"
}
}

View file

@ -13,8 +13,8 @@
},
"dependencies": {
"@astrojs/node": "^8.2.5",
"@astrojs/svelte": "^5.3.0",
"astro": "^4.5.18",
"@astrojs/svelte": "^5.4.0",
"astro": "^4.6.0",
"svelte": "^4.2.5"
}
}

View file

@ -10,7 +10,7 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.5.18",
"astro": "^4.6.0",
"sass": "^1.69.5",
"sharp": "^0.32.6"
}

View file

@ -12,6 +12,6 @@
"devDependencies": {
"@astrojs/tailwind": "^5.1.0",
"@astrojs/node": "^8.2.5",
"astro": "^4.5.18"
"astro": "^4.6.0"
}
}

View file

@ -11,7 +11,7 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/markdoc": "^0.9.5",
"astro": "^4.5.18"
"@astrojs/markdoc": "^0.10.0",
"astro": "^4.6.0"
}
}

View file

@ -11,8 +11,8 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/markdown-remark": "^5.0.0",
"astro": "^4.5.18",
"@astrojs/markdown-remark": "^5.1.0",
"astro": "^4.6.0",
"hast-util-select": "^6.0.2",
"rehype-autolink-headings": "^7.1.0",
"rehype-slug": "^6.0.0",

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.5.18"
"astro": "^4.6.0"
}
}

View file

@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/mdx": "^2.2.4",
"@astrojs/preact": "^3.1.2",
"astro": "^4.5.18",
"@astrojs/mdx": "^2.3.0",
"@astrojs/preact": "^3.2.0",
"astro": "^4.6.0",
"preact": "^10.19.2"
}
}

View file

@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/preact": "^3.1.2",
"@astrojs/preact": "^3.2.0",
"@nanostores/preact": "^0.5.0",
"astro": "^4.5.18",
"astro": "^4.6.0",
"nanostores": "^0.9.5",
"preact": "^10.19.2"
}

View file

@ -11,10 +11,10 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/mdx": "^2.2.4",
"@astrojs/mdx": "^2.3.0",
"@astrojs/tailwind": "^5.1.0",
"@types/canvas-confetti": "^1.6.3",
"astro": "^4.5.18",
"astro": "^4.6.0",
"autoprefixer": "^10.4.15",
"canvas-confetti": "^1.9.1",
"postcss": "^8.4.28",

View file

@ -12,7 +12,7 @@
"test": "vitest"
},
"dependencies": {
"astro": "^4.5.18",
"astro": "^4.6.0",
"vitest": "^1.3.1"
}
}

View file

@ -1,5 +1,13 @@
# @astrojs/prism
## 3.1.0
### Minor Changes
- [#10689](https://github.com/withastro/astro/pull/10689) [`683d51a5eecafbbfbfed3910a3f1fbf0b3531b99`](https://github.com/withastro/astro/commit/683d51a5eecafbbfbfed3910a3f1fbf0b3531b99) Thanks [@ematipico](https://github.com/ematipico)! - Deprecate support for versions of Node.js older than `v18.17.1` for Node.js 18, older than `v20.0.3` for Node.js 20, and the complete Node.js v19 release line.
This change is in line with Astro's [Node.js support policy](https://docs.astro.build/en/upgrade-astro/#support).
## 3.0.0
### Major Changes

View file

@ -1,6 +1,6 @@
{
"name": "@astrojs/prism",
"version": "3.0.0",
"version": "3.1.0",
"description": "Add Prism syntax highlighting support to your Astro site",
"author": "withastro",
"type": "module",

View file

@ -1,5 +1,97 @@
# astro
## 4.6.0
### Minor Changes
- [#10591](https://github.com/withastro/astro/pull/10591) [`39988ef8e2c4c4888543c973e06d9b9939e4ac95`](https://github.com/withastro/astro/commit/39988ef8e2c4c4888543c973e06d9b9939e4ac95) Thanks [@mingjunlu](https://github.com/mingjunlu)! - Adds a new dev toolbar settings option to change the horizontal placement of the dev toolbar on your screen: bottom left, bottom center, or bottom right.
- [#10689](https://github.com/withastro/astro/pull/10689) [`683d51a5eecafbbfbfed3910a3f1fbf0b3531b99`](https://github.com/withastro/astro/commit/683d51a5eecafbbfbfed3910a3f1fbf0b3531b99) Thanks [@ematipico](https://github.com/ematipico)! - Deprecate support for versions of Node.js older than `v18.17.1` for Node.js 18, older than `v20.0.3` for Node.js 20, and the complete Node.js v19 release line.
This change is in line with Astro's [Node.js support policy](https://docs.astro.build/en/upgrade-astro/#support).
- [#10678](https://github.com/withastro/astro/pull/10678) [`2e53b5fff6d292b7acdf8c30a6ecf5e5696846a1`](https://github.com/withastro/astro/commit/2e53b5fff6d292b7acdf8c30a6ecf5e5696846a1) Thanks [@ematipico](https://github.com/ematipico)! - Adds a new experimental security option to prevent [Cross-Site Request Forgery (CSRF) attacks](https://owasp.org/www-community/attacks/csrf). This feature is available only for pages rendered on demand:
```js
import { defineConfig } from 'astro/config';
export default defineConfig({
experimental: {
security: {
csrfProtection: {
origin: true,
},
},
},
});
```
Enabling this setting performs a check that the "origin" header, automatically passed by all modern browsers, matches the URL sent by each `Request`.
This experimental "origin" check is executed only for pages rendered on demand, and only for the requests `POST, `PATCH`, `DELETE`and`PUT`with one of the following`content-type` headers: 'application/x-www-form-urlencoded', 'multipart/form-data', 'text/plain'.
It the "origin" header doesn't match the pathname of the request, Astro will return a 403 status code and won't render the page.
- [#10193](https://github.com/withastro/astro/pull/10193) [`440681e7b74511a17b152af0fd6e0e4dc4014025`](https://github.com/withastro/astro/commit/440681e7b74511a17b152af0fd6e0e4dc4014025) Thanks [@ematipico](https://github.com/ematipico)! - Adds a new i18n routing option `manual` to allow you to write your own i18n middleware:
```js
import { defineConfig } from 'astro/config';
// astro.config.mjs
export default defineConfig({
i18n: {
locales: ['en', 'fr'],
defaultLocale: 'fr',
routing: 'manual',
},
});
```
Adding `routing: "manual"` to your i18n config disables Astro's own i18n middleware and provides you with helper functions to write your own: `redirectToDefaultLocale`, `notFound`, and `redirectToFallback`:
```js
// middleware.js
import { redirectToDefaultLocale } from 'astro:i18n';
export const onRequest = defineMiddleware(async (context, next) => {
if (context.url.startsWith('/about')) {
return next();
} else {
return redirectToDefaultLocale(context, 302);
}
});
```
Also adds a `middleware` function that manually creates Astro's i18n middleware. This allows you to extend Astro's i18n routing instead of completely replacing it. Run `middleware` in combination with your own middleware, using the `sequence` utility to determine the order:
```js title="src/middleware.js"
import { defineMiddleware, sequence } from 'astro:middleware';
import { middleware } from 'astro:i18n'; // Astro's own i18n routing config
export const userMiddleware = defineMiddleware();
export const onRequest = sequence(
userMiddleware,
middleware({
redirectToDefaultLocale: false,
prefixDefaultLocale: true,
})
);
```
- [#10671](https://github.com/withastro/astro/pull/10671) [`9e14a78cb05667af9821948c630786f74680090d`](https://github.com/withastro/astro/commit/9e14a78cb05667af9821948c630786f74680090d) Thanks [@fshafiee](https://github.com/fshafiee)! - Adds the `httpOnly`, `sameSite`, and `secure` options when deleting a cookie
### Patch Changes
- [#10747](https://github.com/withastro/astro/pull/10747) [`994337c99f84304df1147a14504659439a9a7326`](https://github.com/withastro/astro/commit/994337c99f84304df1147a14504659439a9a7326) Thanks [@lilnasy](https://github.com/lilnasy)! - Fixes an issue where functions could not be used as named slots.
- [#10750](https://github.com/withastro/astro/pull/10750) [`7e825604ddf90c989537e07939a39dc249343897`](https://github.com/withastro/astro/commit/7e825604ddf90c989537e07939a39dc249343897) Thanks [@OliverSpeir](https://github.com/OliverSpeir)! - Fixes a false positive for "Invalid `tabindex` on non-interactive element" rule for roleless elements ( `div` and `span` ).
- [#10745](https://github.com/withastro/astro/pull/10745) [`d51951ce6278d4b59deed938d65e1cb72b5102df`](https://github.com/withastro/astro/commit/d51951ce6278d4b59deed938d65e1cb72b5102df) Thanks [@lilnasy](https://github.com/lilnasy)! - Fixes an issue where CLI commands could not report the reason for failure before exiting.
- [#10661](https://github.com/withastro/astro/pull/10661) [`e2cd7f4291912dadd4a654bc7917856c58a72a97`](https://github.com/withastro/astro/commit/e2cd7f4291912dadd4a654bc7917856c58a72a97) Thanks [@liruifengv](https://github.com/liruifengv)! - Fixed errorOverlay theme toggle bug.
- Updated dependencies [[`ccafa8d230f65c9302421a0ce0a0adc5824bfd55`](https://github.com/withastro/astro/commit/ccafa8d230f65c9302421a0ce0a0adc5824bfd55), [`683d51a5eecafbbfbfed3910a3f1fbf0b3531b99`](https://github.com/withastro/astro/commit/683d51a5eecafbbfbfed3910a3f1fbf0b3531b99)]:
- @astrojs/markdown-remark@5.1.0
- @astrojs/telemetry@3.1.0
## 4.5.18
### Patch Changes

View file

@ -1,6 +1,6 @@
{
"name": "astro",
"version": "4.5.18",
"version": "4.6.0",
"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,13 @@
# create-astro
## 4.8.0
### Minor Changes
- [#10689](https://github.com/withastro/astro/pull/10689) [`683d51a5eecafbbfbfed3910a3f1fbf0b3531b99`](https://github.com/withastro/astro/commit/683d51a5eecafbbfbfed3910a3f1fbf0b3531b99) Thanks [@ematipico](https://github.com/ematipico)! - Deprecate support for versions of Node.js older than `v18.17.1` for Node.js 18, older than `v20.0.3` for Node.js 20, and the complete Node.js v19 release line.
This change is in line with Astro's [Node.js support policy](https://docs.astro.build/en/upgrade-astro/#support).
## 4.7.5
### Patch Changes

View file

@ -1,6 +1,6 @@
{
"name": "create-astro",
"version": "4.7.5",
"version": "4.8.0",
"type": "module",
"author": "withastro",
"license": "MIT",

View file

@ -1,5 +1,19 @@
# @astrojs/markdoc
## 0.10.0
### Minor Changes
- [#10689](https://github.com/withastro/astro/pull/10689) [`683d51a5eecafbbfbfed3910a3f1fbf0b3531b99`](https://github.com/withastro/astro/commit/683d51a5eecafbbfbfed3910a3f1fbf0b3531b99) Thanks [@ematipico](https://github.com/ematipico)! - Deprecate support for versions of Node.js older than `v18.17.1` for Node.js 18, older than `v20.0.3` for Node.js 20, and the complete Node.js v19 release line.
This change is in line with Astro's [Node.js support policy](https://docs.astro.build/en/upgrade-astro/#support).
### Patch Changes
- Updated dependencies [[`ccafa8d230f65c9302421a0ce0a0adc5824bfd55`](https://github.com/withastro/astro/commit/ccafa8d230f65c9302421a0ce0a0adc5824bfd55), [`683d51a5eecafbbfbfed3910a3f1fbf0b3531b99`](https://github.com/withastro/astro/commit/683d51a5eecafbbfbfed3910a3f1fbf0b3531b99)]:
- @astrojs/markdown-remark@5.1.0
- @astrojs/prism@3.1.0
## 0.9.5
### Patch Changes

View file

@ -1,7 +1,7 @@
{
"name": "@astrojs/markdoc",
"description": "Add support for Markdoc in your Astro site",
"version": "0.9.5",
"version": "0.10.0",
"type": "module",
"types": "./dist/index.d.ts",
"author": "withastro",

View file

@ -1,5 +1,18 @@
# @astrojs/mdx
## 2.3.0
### Minor Changes
- [#10689](https://github.com/withastro/astro/pull/10689) [`683d51a5eecafbbfbfed3910a3f1fbf0b3531b99`](https://github.com/withastro/astro/commit/683d51a5eecafbbfbfed3910a3f1fbf0b3531b99) Thanks [@ematipico](https://github.com/ematipico)! - Deprecate support for versions of Node.js older than `v18.17.1` for Node.js 18, older than `v20.0.3` for Node.js 20, and the complete Node.js v19 release line.
This change is in line with Astro's [Node.js support policy](https://docs.astro.build/en/upgrade-astro/#support).
### Patch Changes
- Updated dependencies [[`ccafa8d230f65c9302421a0ce0a0adc5824bfd55`](https://github.com/withastro/astro/commit/ccafa8d230f65c9302421a0ce0a0adc5824bfd55)]:
- @astrojs/markdown-remark@5.1.0
## 2.2.4
### Patch Changes

View file

@ -1,7 +1,7 @@
{
"name": "@astrojs/mdx",
"description": "Add support for MDX pages in your Astro site",
"version": "2.2.4",
"version": "2.3.0",
"type": "module",
"types": "./dist/index.d.ts",
"author": "withastro",

View file

@ -1,5 +1,13 @@
# @astrojs/preact
## 3.2.0
### Minor Changes
- [#10689](https://github.com/withastro/astro/pull/10689) [`683d51a5eecafbbfbfed3910a3f1fbf0b3531b99`](https://github.com/withastro/astro/commit/683d51a5eecafbbfbfed3910a3f1fbf0b3531b99) Thanks [@ematipico](https://github.com/ematipico)! - Deprecate support for versions of Node.js older than `v18.17.1` for Node.js 18, older than `v20.0.3` for Node.js 20, and the complete Node.js v19 release line.
This change is in line with Astro's [Node.js support policy](https://docs.astro.build/en/upgrade-astro/#support).
## 3.1.2
### Patch Changes

View file

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

View file

@ -1,5 +1,13 @@
# @astrojs/react
## 3.3.0
### Minor Changes
- [#10689](https://github.com/withastro/astro/pull/10689) [`683d51a5eecafbbfbfed3910a3f1fbf0b3531b99`](https://github.com/withastro/astro/commit/683d51a5eecafbbfbfed3910a3f1fbf0b3531b99) Thanks [@ematipico](https://github.com/ematipico)! - Deprecate support for versions of Node.js older than `v18.17.1` for Node.js 18, older than `v20.0.3` for Node.js 20, and the complete Node.js v19 release line.
This change is in line with Astro's [Node.js support policy](https://docs.astro.build/en/upgrade-astro/#support).
## 3.2.0
### Minor Changes

View file

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

View file

@ -1,5 +1,13 @@
# @astrojs/solid-js
## 4.1.0
### Minor Changes
- [#10689](https://github.com/withastro/astro/pull/10689) [`683d51a5eecafbbfbfed3910a3f1fbf0b3531b99`](https://github.com/withastro/astro/commit/683d51a5eecafbbfbfed3910a3f1fbf0b3531b99) Thanks [@ematipico](https://github.com/ematipico)! - Deprecate support for versions of Node.js older than `v18.17.1` for Node.js 18, older than `v20.0.3` for Node.js 20, and the complete Node.js v19 release line.
This change is in line with Astro's [Node.js support policy](https://docs.astro.build/en/upgrade-astro/#support).
## 4.0.1
### Patch Changes

View file

@ -1,6 +1,6 @@
{
"name": "@astrojs/solid-js",
"version": "4.0.1",
"version": "4.1.0",
"description": "Use Solid components within Astro",
"type": "module",
"types": "./dist/index.d.ts",

View file

@ -1,5 +1,13 @@
# @astrojs/svelte
## 5.4.0
### Minor Changes
- [#10689](https://github.com/withastro/astro/pull/10689) [`683d51a5eecafbbfbfed3910a3f1fbf0b3531b99`](https://github.com/withastro/astro/commit/683d51a5eecafbbfbfed3910a3f1fbf0b3531b99) Thanks [@ematipico](https://github.com/ematipico)! - Deprecate support for versions of Node.js older than `v18.17.1` for Node.js 18, older than `v20.0.3` for Node.js 20, and the complete Node.js v19 release line.
This change is in line with Astro's [Node.js support policy](https://docs.astro.build/en/upgrade-astro/#support).
## 5.3.0
### Minor Changes

View file

@ -1,6 +1,6 @@
{
"name": "@astrojs/svelte",
"version": "5.3.0",
"version": "5.4.0",
"description": "Use Svelte components within Astro",
"type": "module",
"types": "./dist/index.d.ts",

View file

@ -1,5 +1,13 @@
# @astrojs/vue
## 4.1.0
### Minor Changes
- [#10689](https://github.com/withastro/astro/pull/10689) [`683d51a5eecafbbfbfed3910a3f1fbf0b3531b99`](https://github.com/withastro/astro/commit/683d51a5eecafbbfbfed3910a3f1fbf0b3531b99) Thanks [@ematipico](https://github.com/ematipico)! - Deprecate support for versions of Node.js older than `v18.17.1` for Node.js 18, older than `v20.0.3` for Node.js 20, and the complete Node.js v19 release line.
This change is in line with Astro's [Node.js support policy](https://docs.astro.build/en/upgrade-astro/#support).
## 4.0.11
### Patch Changes

View file

@ -1,6 +1,6 @@
{
"name": "@astrojs/vue",
"version": "4.0.11",
"version": "4.1.0",
"description": "Use Vue components within Astro",
"type": "module",
"types": "./dist/index.d.ts",

View file

@ -1,5 +1,54 @@
# @astrojs/markdown-remark
## 5.1.0
### Minor Changes
- [#10538](https://github.com/withastro/astro/pull/10538) [`ccafa8d230f65c9302421a0ce0a0adc5824bfd55`](https://github.com/withastro/astro/commit/ccafa8d230f65c9302421a0ce0a0adc5824bfd55) Thanks [@604qgc](https://github.com/604qgc)! - Adds a `data-language` attribute on the rendered `pre` elements to expose the highlighted syntax language.
For example, the following Markdown code block will expose `data-language="python"`:
````
\```python
def func():
print('Hello Astro!')
\```
````
This allows retrieving the language in a rehype plugin from `node.properties.dataLanguage` by accessing the `<pre>` element using `{ tagName: "pre" }`:
```js
// myRehypePre.js
import { visit } from "unist-util-visit";
export default function myRehypePre() {
return (tree) => {
visit(tree, { tagName: "pre" }, (node) => {
const lang = node.properties.dataLanguage;
[...]
});
};
}
```
Note: The `<pre>` element is not exposed when using Astro's `<Code />` component which outputs flattened HTML.
The `data-language` attribute may also be used in css rules:
```css
pre::before {
content: attr(data-language);
}
pre[data-language='javascript'] {
font-size: 2rem;
}
```
### Patch Changes
- Updated dependencies [[`683d51a5eecafbbfbfed3910a3f1fbf0b3531b99`](https://github.com/withastro/astro/commit/683d51a5eecafbbfbfed3910a3f1fbf0b3531b99)]:
- @astrojs/prism@3.1.0
## 5.0.0
### Major Changes

View file

@ -1,6 +1,6 @@
{
"name": "@astrojs/markdown-remark",
"version": "5.0.0",
"version": "5.1.0",
"type": "module",
"author": "withastro",
"license": "MIT",
@ -34,7 +34,7 @@
"test": "astro-scripts test \"test/**/*.test.js\""
},
"dependencies": {
"@astrojs/prism": "^3.0.0",
"@astrojs/prism": "^3.1.0",
"github-slugger": "^2.0.0",
"hast-util-from-html": "^2.0.0",
"hast-util-to-text": "^4.0.0",

View file

@ -1,5 +1,13 @@
# @astrojs/telemetry
## 3.1.0
### Minor Changes
- [#10689](https://github.com/withastro/astro/pull/10689) [`683d51a5eecafbbfbfed3910a3f1fbf0b3531b99`](https://github.com/withastro/astro/commit/683d51a5eecafbbfbfed3910a3f1fbf0b3531b99) Thanks [@ematipico](https://github.com/ematipico)! - Deprecate support for versions of Node.js older than `v18.17.1` for Node.js 18, older than `v20.0.3` for Node.js 20, and the complete Node.js v19 release line.
This change is in line with Astro's [Node.js support policy](https://docs.astro.build/en/upgrade-astro/#support).
## 3.0.4
### Patch Changes

View file

@ -1,6 +1,6 @@
{
"name": "@astrojs/telemetry",
"version": "3.0.4",
"version": "3.1.0",
"type": "module",
"types": "./dist/index.d.ts",
"author": "withastro",

View file

@ -1,5 +1,13 @@
# @astrojs/upgrade
## 0.3.0
### Minor Changes
- [#10689](https://github.com/withastro/astro/pull/10689) [`683d51a5eecafbbfbfed3910a3f1fbf0b3531b99`](https://github.com/withastro/astro/commit/683d51a5eecafbbfbfed3910a3f1fbf0b3531b99) Thanks [@ematipico](https://github.com/ematipico)! - Deprecate support for versions of Node.js older than `v18.17.1` for Node.js 18, older than `v20.0.3` for Node.js 20, and the complete Node.js v19 release line.
This change is in line with Astro's [Node.js support policy](https://docs.astro.build/en/upgrade-astro/#support).
## 0.2.3
### Patch Changes

View file

@ -1,6 +1,6 @@
{
"name": "@astrojs/upgrade",
"version": "0.2.3",
"version": "0.3.0",
"type": "module",
"author": "withastro",
"license": "MIT",

View file

@ -134,13 +134,13 @@ importers:
examples/basics:
dependencies:
astro:
specifier: ^4.5.18
specifier: ^4.6.0
version: link:../../packages/astro
examples/blog:
dependencies:
'@astrojs/mdx':
specifier: ^2.2.4
specifier: ^2.3.0
version: link:../../packages/integrations/mdx
'@astrojs/rss':
specifier: ^4.0.5
@ -149,13 +149,13 @@ importers:
specifier: ^3.1.2
version: link:../../packages/integrations/sitemap
astro:
specifier: ^4.5.18
specifier: ^4.6.0
version: link:../../packages/astro
examples/component:
devDependencies:
astro:
specifier: ^4.5.18
specifier: ^4.6.0
version: link:../../packages/astro
examples/framework-alpine:
@ -170,7 +170,7 @@ importers:
specifier: ^3.13.3
version: 3.13.8
astro:
specifier: ^4.5.18
specifier: ^4.6.0
version: link:../../packages/astro
examples/framework-lit:
@ -182,7 +182,7 @@ importers:
specifier: ^0.2.1
version: 0.2.1
astro:
specifier: ^4.5.18
specifier: ^4.6.0
version: link:../../packages/astro
lit:
specifier: ^3.1.2
@ -191,19 +191,19 @@ importers:
examples/framework-multiple:
dependencies:
'@astrojs/preact':
specifier: ^3.1.2
specifier: ^3.2.0
version: link:../../packages/integrations/preact
'@astrojs/react':
specifier: ^3.2.0
specifier: ^3.3.0
version: link:../../packages/integrations/react
'@astrojs/solid-js':
specifier: ^4.0.1
specifier: ^4.1.0
version: link:../../packages/integrations/solid
'@astrojs/svelte':
specifier: ^5.3.0
specifier: ^5.4.0
version: link:../../packages/integrations/svelte
'@astrojs/vue':
specifier: ^4.0.11
specifier: ^4.1.0
version: link:../../packages/integrations/vue
'@types/react':
specifier: ^18.2.37
@ -212,7 +212,7 @@ importers:
specifier: ^18.2.15
version: 18.2.24
astro:
specifier: ^4.5.18
specifier: ^4.6.0
version: link:../../packages/astro
preact:
specifier: ^10.19.2
@ -236,13 +236,13 @@ importers:
examples/framework-preact:
dependencies:
'@astrojs/preact':
specifier: ^3.1.2
specifier: ^3.2.0
version: link:../../packages/integrations/preact
'@preact/signals':
specifier: ^1.2.1
version: 1.2.1(preact@10.20.1)
astro:
specifier: ^4.5.18
specifier: ^4.6.0
version: link:../../packages/astro
preact:
specifier: ^10.19.2
@ -251,7 +251,7 @@ importers:
examples/framework-react:
dependencies:
'@astrojs/react':
specifier: ^3.2.0
specifier: ^3.3.0
version: link:../../packages/integrations/react
'@types/react':
specifier: ^18.2.37
@ -260,7 +260,7 @@ importers:
specifier: ^18.2.15
version: 18.2.24
astro:
specifier: ^4.5.18
specifier: ^4.6.0
version: link:../../packages/astro
react:
specifier: ^18.2.0
@ -272,10 +272,10 @@ importers:
examples/framework-solid:
dependencies:
'@astrojs/solid-js':
specifier: ^4.0.1
specifier: ^4.1.0
version: link:../../packages/integrations/solid
astro:
specifier: ^4.5.18
specifier: ^4.6.0
version: link:../../packages/astro
solid-js:
specifier: ^1.8.5
@ -284,10 +284,10 @@ importers:
examples/framework-svelte:
dependencies:
'@astrojs/svelte':
specifier: ^5.3.0
specifier: ^5.4.0
version: link:../../packages/integrations/svelte
astro:
specifier: ^4.5.18
specifier: ^4.6.0
version: link:../../packages/astro
svelte:
specifier: ^4.2.5
@ -296,10 +296,10 @@ importers:
examples/framework-vue:
dependencies:
'@astrojs/vue':
specifier: ^4.0.11
specifier: ^4.1.0
version: link:../../packages/integrations/vue
astro:
specifier: ^4.5.18
specifier: ^4.6.0
version: link:../../packages/astro
vue:
specifier: ^3.3.8
@ -311,13 +311,13 @@ importers:
specifier: ^8.2.5
version: link:../../packages/integrations/node
astro:
specifier: ^4.5.18
specifier: ^4.6.0
version: link:../../packages/astro
examples/integration:
devDependencies:
astro:
specifier: ^4.5.18
specifier: ^4.6.0
version: link:../../packages/astro
examples/middleware:
@ -326,7 +326,7 @@ importers:
specifier: ^8.2.5
version: link:../../packages/integrations/node
astro:
specifier: ^4.5.18
specifier: ^4.6.0
version: link:../../packages/astro
html-minifier:
specifier: ^4.0.0
@ -339,19 +339,19 @@ importers:
examples/minimal:
dependencies:
astro:
specifier: ^4.5.18
specifier: ^4.6.0
version: link:../../packages/astro
examples/non-html-pages:
dependencies:
astro:
specifier: ^4.5.18
specifier: ^4.6.0
version: link:../../packages/astro
examples/portfolio:
dependencies:
astro:
specifier: ^4.5.18
specifier: ^4.6.0
version: link:../../packages/astro
examples/ssr:
@ -360,10 +360,10 @@ importers:
specifier: ^8.2.5
version: link:../../packages/integrations/node
'@astrojs/svelte':
specifier: ^5.3.0
specifier: ^5.4.0
version: link:../../packages/integrations/svelte
astro:
specifier: ^4.5.18
specifier: ^4.6.0
version: link:../../packages/astro
svelte:
specifier: ^4.2.5
@ -372,7 +372,7 @@ importers:
examples/starlog:
dependencies:
astro:
specifier: ^4.5.18
specifier: ^4.6.0
version: link:../../packages/astro
sass:
specifier: ^1.69.5
@ -390,25 +390,25 @@ importers:
specifier: ^5.1.0
version: link:../../packages/integrations/tailwind
astro:
specifier: ^4.5.18
specifier: ^4.6.0
version: link:../../packages/astro
examples/with-markdoc:
dependencies:
'@astrojs/markdoc':
specifier: ^0.9.5
specifier: ^0.10.0
version: link:../../packages/integrations/markdoc
astro:
specifier: ^4.5.18
specifier: ^4.6.0
version: link:../../packages/astro
examples/with-markdown-plugins:
dependencies:
'@astrojs/markdown-remark':
specifier: ^5.0.0
specifier: ^5.1.0
version: link:../../packages/markdown/remark
astro:
specifier: ^4.5.18
specifier: ^4.6.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.5.18
specifier: ^4.6.0
version: link:../../packages/astro
examples/with-mdx:
dependencies:
'@astrojs/mdx':
specifier: ^2.2.4
specifier: ^2.3.0
version: link:../../packages/integrations/mdx
'@astrojs/preact':
specifier: ^3.1.2
specifier: ^3.2.0
version: link:../../packages/integrations/preact
astro:
specifier: ^4.5.18
specifier: ^4.6.0
version: link:../../packages/astro
preact:
specifier: ^10.19.2
@ -450,13 +450,13 @@ importers:
examples/with-nanostores:
dependencies:
'@astrojs/preact':
specifier: ^3.1.2
specifier: ^3.2.0
version: link:../../packages/integrations/preact
'@nanostores/preact':
specifier: ^0.5.0
version: 0.5.1(nanostores@0.9.5)(preact@10.20.1)
astro:
specifier: ^4.5.18
specifier: ^4.6.0
version: link:../../packages/astro
nanostores:
specifier: ^0.9.5
@ -468,7 +468,7 @@ importers:
examples/with-tailwindcss:
dependencies:
'@astrojs/mdx':
specifier: ^2.2.4
specifier: ^2.3.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.5.18
specifier: ^4.6.0
version: link:../../packages/astro
autoprefixer:
specifier: ^10.4.15
@ -495,7 +495,7 @@ importers:
examples/with-vitest:
dependencies:
astro:
specifier: ^4.5.18
specifier: ^4.6.0
version: link:../../packages/astro
vitest:
specifier: ^1.3.1
@ -5333,7 +5333,7 @@ importers:
packages/markdown/remark:
dependencies:
'@astrojs/prism':
specifier: ^3.0.0
specifier: ^3.1.0
version: link:../../astro-prism
github-slugger:
specifier: ^2.0.0