Skip to content

Commit 545b9c0

Browse files
[ci] release
1 parent 3a087d8 commit 545b9c0

File tree

7 files changed

+32
-31
lines changed

7 files changed

+32
-31
lines changed

.changeset/chilly-dolphins-clap.md

Lines changed: 0 additions & 24 deletions
This file was deleted.

examples/basics/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"astro": "astro"
1212
},
1313
"dependencies": {
14-
"@astrojs/starlight": "^0.33.2",
14+
"@astrojs/starlight": "^0.34.0",
1515
"astro": "^5.6.1",
1616
"sharp": "^0.32.5"
1717
}

examples/markdoc/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"dependencies": {
1414
"@astrojs/markdoc": "^0.13.3",
15-
"@astrojs/starlight": "^0.33.2",
15+
"@astrojs/starlight": "^0.34.0",
1616
"@astrojs/starlight-markdoc": "^0.3.1",
1717
"astro": "^5.6.1",
1818
"sharp": "^0.32.5"

examples/tailwind/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"astro": "astro"
1212
},
1313
"dependencies": {
14-
"@astrojs/starlight": "^0.33.2",
14+
"@astrojs/starlight": "^0.34.0",
1515
"@astrojs/starlight-tailwind": "^3.0.1",
1616
"@astrojs/tailwind": "^5.1.4",
1717
"astro": "^5.6.1",

packages/starlight/CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
11
# @astrojs/starlight
22

3+
## 0.34.0
4+
5+
### Minor Changes
6+
7+
- [#3122](https://github.com/withastro/starlight/pull/3122) [`3a087d8`](https://github.com/withastro/starlight/commit/3a087d8fbcd946336f8a0423203967e53e5678fe) Thanks [@delucis](https://github.com/delucis)! - Removes default `attrs` and `content` values from head entries parsed using Starlight’s schema.
8+
9+
Previously when adding `head` metadata via frontmatter or user config, Starlight would automatically add values for `attrs` and `content` if not provided. Now, these properties are left `undefined`.
10+
11+
This makes it simpler to add tags in route middleware for example as you no longer need to provide empty values for `attrs` and `content`:
12+
13+
```diff
14+
head.push({
15+
tag: 'style',
16+
content: 'div { color: red }'
17+
- attrs: {},
18+
});
19+
head.push({
20+
tag: 'link',
21+
- content: ''
22+
attrs: { rel: 'me', href: 'https://example.com' },
23+
});
24+
```
25+
26+
This is mostly an internal API but if you are overriding Starlight’s `Head` component or processing head entries in some way, you may wish to double check your handling of `Astro.locals.starlightRoute.head` is compatible with `attrs` and `content` potentially being `undefined`.
27+
328
## 0.33.2
429

530
### Patch Changes

packages/starlight/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@astrojs/starlight",
3-
"version": "0.33.2",
3+
"version": "0.34.0",
44
"description": "Build beautiful, high-performance documentation websites with Astro",
55
"scripts": {
66
"test": "vitest",

pnpm-lock.yaml

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)