From b8df22a59485c2ce3cde150b7cccce8f30b1ee27 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 11 Mar 2025 15:24:01 +0000 Subject: [PATCH 1/3] chore(deps): update dependency node to v22 --- .github/workflows/firebase-live.yml | 2 +- .github/workflows/firebase-preview.yml | 2 +- .github/workflows/refresh-index-chains.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/firebase-live.yml b/.github/workflows/firebase-live.yml index 38f38311..73dd08be 100644 --- a/.github/workflows/firebase-live.yml +++ b/.github/workflows/firebase-live.yml @@ -16,7 +16,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v4 with: - node-version: '20' + node-version: '22.14.0' cache: 'pnpm' - run: pnpm install diff --git a/.github/workflows/firebase-preview.yml b/.github/workflows/firebase-preview.yml index 3b97697c..71e7aeab 100644 --- a/.github/workflows/firebase-preview.yml +++ b/.github/workflows/firebase-preview.yml @@ -16,7 +16,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v4 with: - node-version: '20' + node-version: '22.14.0' cache: 'pnpm' - run: pnpm install diff --git a/.github/workflows/refresh-index-chains.yml b/.github/workflows/refresh-index-chains.yml index 13469017..e15cd939 100644 --- a/.github/workflows/refresh-index-chains.yml +++ b/.github/workflows/refresh-index-chains.yml @@ -22,7 +22,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v4 with: - node-version: '20' + node-version: '22.14.0' cache: 'pnpm' - run: pnpm install From b710bca4e36b0c22b0e924febb50c5a2931941f3 Mon Sep 17 00:00:00 2001 From: Derek Croote Date: Wed, 12 Mar 2025 21:59:55 -0700 Subject: [PATCH 2/3] fix: remove engines (node v20) from package.json --- package.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/package.json b/package.json index 9fb3ffda..14cbfbbd 100644 --- a/package.json +++ b/package.json @@ -3,9 +3,6 @@ "version": "1.0.0", "main": "index.js", "license": "MIT", - "engines": { - "node": "20" - }, "packageManager": "pnpm@9.15.2", "scripts": { "sync:VPFlyout": "cp docs/_components/vitepress/VPFlyout.vue node_modules/vitepress/dist/client/theme-default/components/VPFlyout.vue", From a8a30f892a22d33bdbda8831da722dde56f8a885 Mon Sep 17 00:00:00 2001 From: Derek Croote Date: Wed, 12 Mar 2025 22:06:26 -0700 Subject: [PATCH 3/3] fix: update other node v20 references --- CONTRIBUTING.md | 2 +- docs/dev/index.md | 11 +++-------- docs/dev/rosetta.md | 9 ++------- 3 files changed, 6 insertions(+), 16 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 63b06685..52a3f7fa 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -13,7 +13,7 @@ information about getting started and making a contribution to the API3 Docs. ### Pre-requisites -- [Node.js](https://nodejs.org/en/) (version 20 or higher). +- [Node.js](https://nodejs.org/en/) (version 22 or higher). - Unix/macOS/WSL for the scripts to work properly. ### Installation diff --git a/docs/dev/index.md b/docs/dev/index.md index 541b2cf6..39b53d83 100644 --- a/docs/dev/index.md +++ b/docs/dev/index.md @@ -12,18 +12,13 @@ tags: # {{$frontmatter.title}} -Use newer versions of Nodejs. Currently the builds on GitHub are using `v20`. +Use newer versions of Nodejs. Currently the builds on GitHub are using `v22`. Mac users (Apple silicon) should see the page [Rosetta, Nodejs, esbuild](/dev/rosetta.md) if you get an error. -::: info Nodejs `v20` +::: info Nodejs `v22` -It is best to use nodejs `v20` which gives the best performance and is the -engine described in the -[package.json](https://github.com/api3dao/vitepress-docs/blob/main/package.json) -file. - -::: +It is best to use nodejs `v22` as this is what is used in GitHub Actions ::: ## Clone the remote repo diff --git a/docs/dev/rosetta.md b/docs/dev/rosetta.md index 4adb27b4..9e4993a2 100644 --- a/docs/dev/rosetta.md +++ b/docs/dev/rosetta.md @@ -21,14 +21,9 @@ wrong [esbuild](https://esbuild.github.io/getting-started/) package. It is best to use a version of Nodejs and NPM installed with its installer or install it using your CLI with Rosetta deactivated. -::: info Nodejs `v20` +::: info Nodejs `v22` -It is best to use nodejs `v20` which gives the best performance and is the -engine described in the -[package.json](https://github.com/api3dao/vitepress-docs/blob/main/package.json) -file. - -::: +It is best to use nodejs `v22` as this is what is used in GitHub Actions ::: ```sh failed to load config from /Users/warren/DEV/vitepress-docs/docs/.vitepress/config.js