Skip to content

Commit

Permalink
ci: release (#16)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Dec 17, 2024
1 parent ecd96ed commit 95e854e
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 29 deletions.
28 changes: 0 additions & 28 deletions .changeset/silent-dodos-develop.md

This file was deleted.

30 changes: 30 additions & 0 deletions packages/starlight-versions/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# starlight-versions

## 0.4.0

### Minor Changes

- [#15](https://github.com/HiDeoo/starlight-versions/pull/15) [`ecd96ed`](https://github.com/HiDeoo/starlight-versions/commit/ecd96ed4aa4474bb418669e8113bb9e1af0f7536) Thanks [@HiDeoo](https://github.com/HiDeoo)! - Adds support for Astro v5, drops support for Astro v4.

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

Please follow the [upgrade guide](https://github.com/withastro/starlight/releases/tag/%40astrojs/starlight%400.30.0) to update your project.

After upgrading, you will also need to update the `versions` collection in your `src/content.config.ts` file to use the new `docsVersionsLoader`:

```diff
// src/content.config.ts
import { defineCollection } from "astro:content";
import { docsLoader } from "@astrojs/starlight/loaders";
import { docsSchema } from "@astrojs/starlight/schema";
-import { docsVersionsSchema } from 'starlight-versions/schema'
+import { docsVersionsLoader } from 'starlight-versions/loader'

export const collections = {
docs: defineCollection({ loader: docsLoader(), schema: docsSchema() }),
- versions: defineCollection({ type: 'data', schema: docsVersionsSchema() }),
+ versions: defineCollection({ loader: docsVersionsLoader() }),
};
```

Note that the [`legacy.collections` flag](https://docs.astro.build/en/reference/legacy-flags/#collections) is not supported by this plugin and you should update your collections to use Astro's new Content Layer API.
2 changes: 1 addition & 1 deletion packages/starlight-versions/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "starlight-versions",
"version": "0.3.1",
"version": "0.4.0",
"license": "MIT",
"description": "Starlight plugin to version documentation pages.",
"author": "HiDeoo <github@hideoo.dev> (https://hideoo.dev)",
Expand Down

0 comments on commit 95e854e

Please sign in to comment.