Skip to content

Commit a8b8873

Browse files
authored
Merge branch 'main' into feat/components-exports-wildcard
2 parents 418cdde + 924070d commit a8b8873

93 files changed

Lines changed: 2681 additions & 2809 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/agile-eyes-fold.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
'@astrojs/starlight': minor
3+
---
4+
5+
Adds support for Astro v6, drops support for Astro v5.
6+
7+
#### Upgrade Astro and dependencies
8+
9+
⚠️ **BREAKING CHANGE:** Astro v5 is no longer supported. Make sure you [update Astro](https://docs.astro.build/en/guides/upgrade-to/v6/) and any other official integrations at the same time as updating Starlight:
10+
11+
```sh
12+
npx @astrojs/upgrade
13+
```
14+
15+
_Community Starlight plugins and Astro integrations may also need to be manually updated to work with Astro v6. If you encounter any issues, please reach out to the plugin or integration author to see if it is a known issue or if an updated version is being worked on._
16+
17+
#### Update your collections
18+
19+
⚠️ **BREAKING CHANGE:** Drops support for content collections backwards compatibility.
20+
21+
In Astro 5.x, projects could delay upgrading to the new Content Layer API introduced for content collections because of some existing automatic backwards compatibility that was not previously behind a flag. This meant that it was possible to upgrade from Astro 4 to Astro 5 without updating your content collections, even if you had not enabled the `legacy.collections` flag. Projects would continue to build, and no errors or warnings would be displayed.
22+
23+
Astro v6.0 now removes this automatic legacy content collections support, along with the `legacy.collections` flag.
24+
25+
If you experience content collections errors after updating to v6, [check your project for any removed legacy features](https://docs.astro.build/en/guides/upgrade-to/v6/#if-you-have) that may need updating to the Content Layer API. See [the Starlight v0.30.0 upgrade guide](https://github.com/withastro/starlight/blob/main/packages/starlight/CHANGELOG.md#0300) for detailed instructions on upgrading legacy collections to the new Content Layer API.
26+
27+
If you are unable to make any changes to your collections at this time, including Starlight's default `docs` and `i18n` collections, you can enable the [`legacy.collectionsBackwardsCompat` flag](https://docs.astro.build/en/reference/legacy-flags/#collectionsbackwardscompat) to upgrade to v6 without updating your collections. This temporary flag preserves some legacy v4 content collections features, and will allow you to keep your collections in their current state until the legacy flag is no longer supported.

.changeset/dry-bikes-beg.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
'@astrojs/starlight-markdoc': minor
3+
---
4+
5+
⚠️ **BREAKING CHANGE:** The minimum supported version of Starlight is now 0.38.0
6+
7+
Please use the `@astrojs/upgrade` command to upgrade your project:
8+
9+
```sh
10+
npx @astrojs/upgrade
11+
```

.changeset/hot-dryers-drop.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
'@astrojs/starlight-tailwind': major
3+
---
4+
5+
⚠️ **BREAKING CHANGE:** The minimum supported version of Starlight is now 0.38.0
6+
7+
Please use the `@astrojs/upgrade` command to upgrade your project:
8+
9+
```sh
10+
npx @astrojs/upgrade
11+
```

.changeset/spicy-moons-sell.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@astrojs/starlight-docsearch': minor
3+
---
4+
5+
⚠️ **BREAKING CHANGE:** The minimum supported version of Starlight is now 0.38.0
6+
7+
Please use the `@astrojs/upgrade` command to upgrade your project:
8+
9+
```sh
10+
npx @astrojs/upgrade
11+
```
12+

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Based on https://github.com/withastro/astro/blob/main/.devcontainer/Dockerfile
2-
FROM mcr.microsoft.com/devcontainers/javascript-node:0-18
2+
FROM mcr.microsoft.com/devcontainers/javascript-node:0-22
33

44
# We uninstall pnpm here, since we enable the corepack version in the postCreateCommand
55
# This ensures we respect the "packageManager" version in package.json

.github/ISSUE_TEMPLATE/---01-bug-report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ body:
99
Thank you for taking the time to file a bug report! Please fill out this form as completely as possible.
1010
1111
✅ I am using the **latest versions of Starlight and Astro**.
12-
✅ I am using a version of Node that supports ESM (`v14.18.0+`, or `v16.12.0+`).
12+
✅ I am using a compatible version of Node.js (`v22.12.0+`).
1313
- type: input
1414
id: starlight-version
1515
attributes:

.github/workflows/ci.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ concurrency:
1313
cancel-in-progress: true
1414

1515
env:
16-
NODE_VERSION: 18
16+
NODE_VERSION: 22
1717
ASTRO_TELEMETRY_DISABLED: true
1818

1919
jobs:
@@ -69,9 +69,6 @@ jobs:
6969
- run: pnpm i
7070
- name: Test packages
7171
run: pnpm -r test:coverage
72-
- name: Test legacy collections support
73-
working-directory: packages/starlight
74-
run: pnpm test:legacy
7572

7673
e2e-test:
7774
name: 'Run E2E tests (${{ matrix.os }})'

.github/workflows/file-icons.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Setup Node
2525
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
2626
with:
27-
node-version: 18.20.8
27+
node-version: 22.12.0
2828
cache: 'pnpm'
2929

3030
- name: Install Dependencies

.github/workflows/format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
1919
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
2020
with:
21-
node-version: 18.20.8
21+
node-version: 22.12.0
2222
cache: 'pnpm'
2323
- run: pnpm i
2424
- name: Format with Prettier

.github/workflows/lunaria.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- name: Setup Node
3333
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
3434
with:
35-
node-version: 20.19.4
35+
node-version: 22.12.0
3636
cache: pnpm
3737

3838
- name: Install dependencies

0 commit comments

Comments
 (0)