Skip to content

Commit 62354db

Browse files
authored
chore(deps): upgrade dependencies for Astro 6 (DOCSDEV-60) (#218)
## PR Checklist - [x] Linked issue added (e.g., `Fixes #123`) - [x] I have run `bun run format` to ensure code is properly formatted - [x] I have verified that `bun run lint` passes without errors - [ ] If blog post was added: - [ ] Ensure images have been optimised - [ ] Update dates to reflect the actual publishing date when merged (file names, folder names, and frontmatter) ## Summary Upgrades all dependencies to support Astro 6. Relates to DOCSDEV-60. ### Changes - **Astro 6 upgrade**: astro 5.17.1 -> 6.1.8, starlight 0.37.5 -> 0.38.3, mdx 4.3.13 -> 5.0.3, node adapter 9.5.2 -> 10.0.5 - **Design system**: @interledger/docs-design-system 0.11.0 -> 0.12.0 - **Plugins**: starlight-links-validator 0.19.2 -> 0.23.0 - **Tooling**: eslint 9.x -> 10.2.1, prettier -> 3.8.3, and related packages to latest - **CI**: Node.js 18 -> 22, actions/checkout and actions/setup-node v3 -> v4 - **Zod migration**: moved `z` import from `astro:content` to `astro/zod` (Astro 6 ships Zod 4) - **Sidebar fix**: explicit `leftSidebarEnabled: true, rightSidebarEnabled: true` for starlightFullViewMode (Zod compat)
1 parent 7e31a68 commit 62354db

7 files changed

Lines changed: 250 additions & 280 deletions

File tree

.github/workflows/deploy_gcs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: Checkout your repository using git
22-
uses: actions/checkout@v3
23-
- uses: actions/setup-node@v3
22+
uses: actions/checkout@v4
23+
- uses: actions/setup-node@v4
2424
with:
25-
node-version: 18
25+
node-version: 22
2626

2727
- name: Authenticate to Google Cloud
2828
uses: google-github-actions/auth@v2

.github/workflows/test-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: Checkout your repository using git
19-
uses: actions/checkout@v3
20-
- uses: actions/setup-node@v3
19+
uses: actions/checkout@v4
20+
- uses: actions/setup-node@v4
2121
with:
22-
node-version: 18
22+
node-version: 22
2323

2424
- uses: oven-sh/setup-bun@v1
2525
- name: Install dependencies

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
lts/iron
1+
22

astro.config.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ export default defineConfig({
2424
starlightLinksValidator({
2525
exclude: ['/participation-guidelines']
2626
}),
27-
starlightFullViewMode({ leftSidebarEnabled: false })
27+
starlightFullViewMode({
28+
leftSidebarEnabled: true,
29+
rightSidebarEnabled: true
30+
})
2831
],
2932
head: [
3033
{

bun.lock

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

package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,30 @@
1111
"lint": "prettier --check '**/*.{js,mjs,ts,tsx,json,md,mdx,astro}' && eslint --max-warnings=0 ."
1212
},
1313
"dependencies": {
14-
"@astrojs/mdx": "^4.3.13",
15-
"@astrojs/node": "^9.5.2",
16-
"@astrojs/starlight": "^0.37.4",
17-
"@interledger/docs-design-system": "^0.11.0",
14+
"@astrojs/mdx": "^5.0.3",
15+
"@astrojs/node": "^10.0.5",
16+
"@astrojs/starlight": "^0.38.3",
17+
"@interledger/docs-design-system": "^0.12.0",
1818
"@types/showdown": "^2.0.6",
19-
"astro": "^5.17.1",
19+
"astro": "^6.1.8",
2020
"html-to-text": "^9.0.5",
21-
"markdown-it": "^14.1.0",
22-
"node-html-parser": "^7.0.2",
21+
"markdown-it": "^14.1.1",
22+
"node-html-parser": "^7.1.0",
2323
"sharp": "^0.34.5",
2424
"showdown": "^2.1.0",
2525
"starlight-fullview-mode": "^0.2.6",
26-
"starlight-links-validator": "^0.19.1"
26+
"starlight-links-validator": "^0.23.0"
2727
},
2828
"devDependencies": {
29-
"@eslint/js": "^9.39.2",
30-
"@typescript-eslint/parser": "^8.54.0",
31-
"astro-eslint-parser": "^1.2.2",
32-
"eslint": "^9.39.2",
29+
"@eslint/js": "^10.0.1",
30+
"@typescript-eslint/parser": "^8.59.0",
31+
"astro-eslint-parser": "^1.4.0",
32+
"eslint": "^10.2.1",
3333
"eslint-config-prettier": "^10.1.8",
34-
"eslint-plugin-astro": "^1.5.0",
35-
"globals": "^17.2.0",
36-
"prettier": "3.8.1",
37-
"prettier-plugin-astro": "0.14.1",
38-
"typescript-eslint": "^8.54.0"
34+
"eslint-plugin-astro": "^1.7.0",
35+
"globals": "^17.5.0",
36+
"prettier": "^3.8.3",
37+
"prettier-plugin-astro": "^0.14.1",
38+
"typescript-eslint": "^8.59.0"
3939
}
4040
}

src/content.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { defineCollection, z } from 'astro:content'
1+
import { defineCollection } from 'astro:content'
2+
import { z } from 'astro/zod'
23
import { docsLoader, i18nLoader } from '@astrojs/starlight/loaders'
34
import { docsSchema, i18nSchema } from '@astrojs/starlight/schema'
45
import { glob } from 'astro/loaders'

0 commit comments

Comments
 (0)