Skip to content

Commit 868163a

Browse files
authored
Chore: update packages (#2311)
* upgrade to nodejs 24 * dedupe lockfile * update some package versions * update caniuse browserslist * upgrade eslint version * modify semver modifier for prettier and typescript (^) * remove category file that only has one default value * pin tooling to specific versions, at copilot's suggestion * bump to node v24 in README requirements section * fix mixed yarn/npm/npx use, remove unused link definition * a couple minor version updates * move crowdin cli to dev dependencies (we should probably remove it altogether?)
1 parent 1882069 commit 868163a

11 files changed

Lines changed: 287 additions & 357 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node
33
{
44
"name": "Stellar Docs - Docusaurus/Yarn",
5-
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-22",
5+
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-24",
66
"hostRequirements": {
77
"cpus": 2
88
},

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Setup Node
2121
uses: actions/setup-node@v4
2222
with:
23-
node-version: '22'
23+
node-version: '24'
2424
cache: 'yarn'
2525
cache-dependency-path: '**/yarn.lock'
2626

.github/workflows/crowdin-download-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
- name: Set up Node.js
7272
uses: actions/setup-node@v4
7373
with:
74-
node-version: "22"
74+
node-version: "24"
7575

7676
- name: Install dependencies
7777
run: yarn install --frozen-lockfile

.github/workflows/crowdin-upload-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Setup Node
1717
uses: actions/setup-node@v4
1818
with:
19-
node-version: "22"
19+
node-version: "24"
2020
cache: "yarn"
2121
cache-dependency-path: "**/yarn.lock"
2222

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Setup Node
2727
uses: actions/setup-node@v4
2828
with:
29-
node-version: '22'
29+
node-version: '24'
3030
cache: 'yarn'
3131
cache-dependency-path: '**/yarn.lock'
3232

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v22
1+
v24

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ENV DEBIAN_FRONTEND=noninteractive
88
ENV INLINE_RUNTIME_CHUNK=false
99
RUN apt-get update && apt-get install --no-install-recommends -y gpg curl git make ca-certificates apt-transport-https && \
1010
curl -sSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key|gpg --dearmor >/etc/apt/trusted.gpg.d/nodesource-key.gpg && \
11-
echo "deb https://deb.nodesource.com/node_22.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list && \
11+
echo "deb https://deb.nodesource.com/node_24.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list && \
1212
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg |gpg --dearmor >/etc/apt/trusted.gpg.d/yarnpkg.gpg && \
1313
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
1414
apt-get update && apt-get install -y nodejs yarn && apt-get clean

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ If you have questions, feel free to ask in the [Stellar Developer Discord](https
6161

6262
To begin development on the documentation, you will first need to install the following:
6363

64-
- Node.js (v22, or higher): see https://nodejs.org/en/download/package-manager for details for your system
64+
- Node.js (v24, or higher): see https://nodejs.org/en/download/package-manager for details for your system
6565
- npm: e.g. `sudo apt install npm` on Ubuntu
6666
- yarn: `npm install yarn`
6767
- If you're getting dependency errors, try using `npm install yarn --legacy-peer-deps`
@@ -75,7 +75,7 @@ Once all the prerequisites have been installed, you can run the following comman
7575
git clone https://github.com/stellar/stellar-docs
7676
cd stellar-docs
7777
yarn install
78-
npx docusaurus start
78+
yarn start
7979
```
8080

8181
This will begin the development server, and open a browser window/tab pointing
@@ -86,8 +86,8 @@ After you've made your changes, use the following commands to ensure the consist
8686
MDX file formatting and style across the repository:
8787

8888
```bash
89-
npm run check:mdx # this will search for problems in the MDX files
90-
npm run format:mdx # this will fix any problems that were found
89+
yarn check:mdx # this will search for problems in the MDX files
90+
yarn format:mdx # this will fix any problems that were found
9191
```
9292

9393
After that you need to build the `routes.txt` file, to do that run the next command
@@ -258,7 +258,6 @@ export const CODE_LANGS = {
258258
[commonmark]: https://commonmark.org/help/
259259
[tutorial]: https://www.markdowntutorial.com/
260260
[guide]: https://www.markdownguide.org/
261-
[alert-example]: https://developers.stellar.org/docs/anchoring-assets/enabling-cross-border-payments/setting-up-test-server
262261
[prism]: https://github.com/FormidableLabs/prism-react-renderer
263262
[open-in-github-codespaces]: https://github.com/codespaces/new?repo=stellar/stellar-docs&editor=web
264263
[open-in-code-anywhere]: https://app.codeanywhere.com/#https://github.com/stellar/stellar-docs

docs/data/apis/horizon/api-reference/_category_.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
"crowdin:sync": "docusaurus write-translations && crowdin upload --no-progress --delete-obsolete && crowdin download --no-progress"
3838
},
3939
"dependencies": {
40-
"@crowdin/cli": "^4.12.0",
4140
"@docusaurus/core": "3.9.2",
4241
"@docusaurus/faster": "3.9.2",
4342
"@docusaurus/preset-classic": "3.9.2",
@@ -56,11 +55,11 @@
5655
"js-yaml": "^4.1.1",
5756
"patch-package": "^8.0.1",
5857
"prism-react-renderer": "^2.4.1",
59-
"react": "^19.2.3",
60-
"react-dom": "^19.2.3",
58+
"react": "^19.2.4",
59+
"react-dom": "^19.2.4",
6160
"rehype-katex": "^7.0.1",
6261
"remark-math": "^6.0.0",
63-
"sass": "^1.97.1"
62+
"sass": "^1.98.0"
6463
},
6564
"browserslist": {
6665
"production": [
@@ -75,22 +74,23 @@
7574
]
7675
},
7776
"devDependencies": {
77+
"@crowdin/cli": "^4.14.1",
7878
"@docusaurus/eslint-plugin": "3.9.2",
7979
"@docusaurus/module-type-aliases": "3.9.2",
8080
"@docusaurus/tsconfig": "3.9.2",
8181
"@docusaurus/types": "3.9.2",
82-
"@eslint/eslintrc": "3.3.3",
83-
"@eslint/js": "9.39.2",
84-
"@redocly/cli": "2.14.1",
82+
"@eslint/eslintrc": "3.3.5",
83+
"@eslint/js": "10.0.1",
84+
"@redocly/cli": "2.25.1",
8585
"@stellar/prettier-config": "^1.2.0",
86-
"eslint": "9.39.2",
87-
"glob":"^13.0.6",
86+
"eslint": "10.1.0",
87+
"glob": "^13.0.6",
8888
"husky": "^9.1.7",
89-
"prettier": "3.7.4",
89+
"prettier": "3.8.1",
9090
"typescript": "5.9.3"
9191
},
9292
"engines": {
93-
"node": ">=22"
93+
"node": ">=24"
9494
},
9595
"packageManager": "yarn@1.22.19+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447"
9696
}

0 commit comments

Comments
 (0)