-
-
Notifications
You must be signed in to change notification settings - Fork 968
Astro 6 support #3644
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Astro 6 support #3644
Changes from all commits
Commits
Show all changes
70 commits
Select commit
Hold shift + click to select a range
2a022e4
chore: update dependencies
HiDeoo 22c7fa9
feat: zod 3 → 4
HiDeoo 8974131
fix: remove useless zod descriptions
HiDeoo 3a6d055
refactor: zod `.describe()` → `.meta()`
HiDeoo 1ce3f0a
feat: remove `legacy.collections` support
HiDeoo cb6c2b5
chore: add todo for `legacy.collectionsBackwardsCompat`
HiDeoo 312fc51
chore: update to `alpha.2`
HiDeoo f18123a
chore: update to `alpha.3`
HiDeoo 5d4f5b4
feat: remove `headingIdCompat` experimental flag
HiDeoo 7ba56fd
fix: error map
HiDeoo 2f07584
test: remove deprecated vitest workspaces
HiDeoo d9c43b9
chore: update vitest to version `3.2.4`
HiDeoo 6dd6ff1
fix: plugin hooks schema output
HiDeoo 6830896
fix: `z.Schema` → `z.ZodType`
HiDeoo 34ba7a3
chore: bump node.js version
HiDeoo 986f226
docs: remove `z` references related to `astro:content`
HiDeoo 6206617
test: disable `legacy-collection-config-file` test temporarily
HiDeoo 1edbd99
chor: update to `alpha.4`
HiDeoo 2e91c01
feat: update docsearch plugin
HiDeoo 1b0ef81
fix: bump tailwind css example version
HiDeoo fc6a885
feat: vite plugin hook filters
HiDeoo 84834fd
fix: docsearch config type
HiDeoo 7df2bb4
test: fix a11y node.js issues
HiDeoo 4a8ee42
ci: size-limit node version
HiDeoo 3e35fe8
chore: update to `alpha.5`
HiDeoo e78143c
feat: add `legacy.collectionsBackwardsCompat` support
HiDeoo a9eb8ec
test: remove `.only` test
HiDeoo 78009fd
Merge branch 'main' into hd/astro-v6
HiDeoo 0e24c3b
fix: warning on importing `node:module` on recent Node.js 22 versions
HiDeoo 09ad2c2
chore: update playwright
HiDeoo 770105c
chore: update to `beta.1`
HiDeoo 42551db
Merge branch 'main' into hd/astro-v6
HiDeoo 7289055
chore: update `@astro-community/astro-embed-youtube`
HiDeoo 5edab04
chore: update `astro-expressive-code`
HiDeoo 05df5ad
Merge branch 'main' into hd/astro-v6
HiDeoo adcfb7f
chore: update to `beta.5`
HiDeoo 70d83bd
test: ignore EC `landmark-unique` a11y violation
HiDeoo 102b50d
Merge branch 'main' into hd/astro-v6
HiDeoo f7f69d6
Merge branch 'main' into hd/astro-v6
HiDeoo a3de009
chore: update to `beta.6`
HiDeoo 46c368d
fix: remove deprecated `@ts-expect-error`
HiDeoo 5883fd2
Merge branch 'main' into hd/astro-v6
HiDeoo e3ba95b
Merge branch 'main' into hd/astro-v6
HiDeoo e1d931a
chore: update to `beta.8`
HiDeoo d252f62
Add placeholder changesets
delucis 5a324c5
chore: update to `beta.14`
HiDeoo d338e16
Merge branch 'main' into hd/astro-v6
delucis e6827e9
fix: add temporary patch for `starlight-links-validator`
HiDeoo c4bdad0
chore: tweak size-limit
HiDeoo bf6b764
chore: update changesets
HiDeoo b85b269
test: update vitest to `4.1.0-beta.6`
HiDeoo dd23c1f
test: update test mocking a constructor
HiDeoo 50d3667
test: fix coverage
HiDeoo a8b8975
Merge branch 'main' into hd/astro-v6
HiDeoo 84224b7
chore: fix linting issue due to better vitest 4 types
HiDeoo 2a8bde3
Merge branch 'main' into hd/astro-v6
HiDeoo cab4256
chore: update to `beta.20`
HiDeoo 3e55341
fix: add non-compatible node env workarounds
HiDeoo 3c2f168
chore: rename changeset
HiDeoo 32c1acd
fix: support new collection config file with `legacy.collectionsBackw…
HiDeoo 35b6944
chore: update changeset upgrade guide link
HiDeoo c29706f
refactor: `vitePluginStarlightUserConfig` context argument
HiDeoo 06cfcaa
fix: cf `optimizeDeps`
HiDeoo 74db5a3
docs: cf `nodejs_compat`
HiDeoo 73d578f
Update deps to stable versions
delucis b7dc270
`pnpm dedupe vite`
delucis 71f24be
Update two more version ranges I missed
delucis b21eeb3
chore: update changeset
HiDeoo 0587417
chore: bump `@astrojs/starlight` peer dependency
HiDeoo 290622f
Fix two more v6 upgrade guide links in the the changeset
delucis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| --- | ||
| '@astrojs/starlight': minor | ||
| --- | ||
|
|
||
| Adds support for Astro v6, drops support for Astro v5. | ||
|
|
||
| #### Upgrade Astro and dependencies | ||
|
|
||
| ⚠️ **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: | ||
|
|
||
| ```sh | ||
| npx @astrojs/upgrade | ||
| ``` | ||
|
|
||
| _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._ | ||
|
|
||
| #### Update your collections | ||
|
|
||
| ⚠️ **BREAKING CHANGE:** Drops support for content collections backwards compatibility. | ||
|
|
||
| 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. | ||
|
|
||
| Astro v6.0 now removes this automatic legacy content collections support, along with the `legacy.collections` flag. | ||
|
|
||
| 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. | ||
|
|
||
| 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| --- | ||
| '@astrojs/starlight-markdoc': minor | ||
| --- | ||
|
|
||
| ⚠️ **BREAKING CHANGE:** The minimum supported version of Starlight is now 0.38.0 | ||
|
|
||
| Please use the `@astrojs/upgrade` command to upgrade your project: | ||
|
|
||
| ```sh | ||
| npx @astrojs/upgrade | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| --- | ||
| '@astrojs/starlight-tailwind': major | ||
| --- | ||
|
|
||
| ⚠️ **BREAKING CHANGE:** The minimum supported version of Starlight is now 0.38.0 | ||
|
|
||
| Please use the `@astrojs/upgrade` command to upgrade your project: | ||
|
|
||
| ```sh | ||
| npx @astrojs/upgrade | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| --- | ||
| '@astrojs/starlight-docsearch': minor | ||
| --- | ||
|
|
||
| ⚠️ **BREAKING CHANGE:** The minimum supported version of Starlight is now 0.38.0 | ||
|
|
||
| Please use the `@astrojs/upgrade` command to upgrade your project: | ||
|
|
||
| ```sh | ||
| npx @astrojs/upgrade | ||
| ``` | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note from T&D: would be good to open an issue for this so we don’t forget
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You meant creating an issue in the EC repo, right? That's what I initially understood but now I'm not sure if you may have meant creating an issue in the Starlight repo instead. Just want to clarify before proceeding.