Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .changeset/silent-monkeys-admire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"starlight-latest-version": minor
---

Adds support for Astro v6, drops support for Astro v5.

⚠️ **BREAKING CHANGE:** The minimum supported version of Starlight is now `0.38.0`.

Please follow the [upgrade guide](https://github.com/withastro/starlight/releases/tag/%40astrojs%2Fstarlight%400.38.0) to update your project.
10 changes: 5 additions & 5 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@
"start": "astro dev"
},
"dependencies": {
"@astrojs/netlify": "^6.6.3",
"@astrojs/starlight": "^0.37.1",
"@astrojs/netlify": "^7.0.3",
"@astrojs/starlight": "^0.38.1",
"@trueberryless-org/starlight-plugins-docs-components": "^0.4.3",
"astro": "^5.16.5",
"astro": "^6.0.5",
"sharp": "^0.34.5",
"starlight-contributor-list": "^0.3.1",
"starlight-latest-version": "workspace:*",
"starlight-links-validator": "^0.19.2"
"starlight-links-validator": "^0.20.0"
},
"packageManager": "pnpm@10.10.0",
"engines": {
"node": "^18.17.1 || ^20.3.0 || >=21.0.0"
"node": ">=22.12.0"
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"private": true,
"description": "Show the latest released version of your package in your Starlight documentation.",
"homepage": "https://github.com/trueberryless-org/starlight-latest-version",
"homepage": "https://starlight-latest-version.trueberryless.org/",
"bugs": {
"url": "https://github.com/trueberryless-org/starlight-latest-version/issues"
},
Expand All @@ -26,6 +26,6 @@
},
"packageManager": "pnpm@10.10.0",
"engines": {
"node": "^18.17.1 || ^20.3.0 || >=21.0.0"
"node": ">=22.12.0"
}
}
6 changes: 3 additions & 3 deletions packages/starlight-latest-version/libs/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const configSchema = z.object({
.default("default"),
size: z.enum(["small", "medium", "large"]).default("medium"),
})
.default({}),
.prefault({}),
showInSiteTitle: z.enum(["false", "true", "deferred"]).default("false"),
regexPattern: z.string().optional(),
});
Expand All @@ -27,8 +27,8 @@ export function validateConfig(
const errors = config.error.flatten();

throw new AstroError(
`Invalid @trueberryless-org/starlight-latest-version configuration:
`Invalid starlight-latest-version configuration:

${errors.formErrors.map((formError) => ` - ${formError}`).join("\n")}
${Object.entries(errors.fieldErrors)
.map(
Expand Down
7 changes: 4 additions & 3 deletions packages/starlight-latest-version/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,16 @@
"test": "jest"
},
"devDependencies": {
"@astrojs/starlight": "^0.37.1",
"@astrojs/starlight": "^0.38.1",
"@jest/globals": "^29.7.0",
"@types/jest": "^29.5.14",
"astro": "^5.16.5",
"astro": "^6.0.4",
"jest": "^29.7.0",
"ts-jest": "^29.4.6"
},
"peerDependencies": {
"@astrojs/starlight": ">=0.32"
"astro": "^6.0.4",
"@astrojs/starlight": ">=0.38"
},
"engines": {
"node": ">=22.12.0"
Expand Down
Loading
Loading