From 8e822b1daef978cc43758c18ea5e06f8ca2481af Mon Sep 17 00:00:00 2001 From: shigahi Date: Fri, 25 Sep 2026 21:42:57 +0200 Subject: [PATCH 1/2] Update Node.js from 20 to 24 Node.js 20 reached end of life in April 2026, and wrangler 4.131 needs Node.js 22+, so npm run dev and npm run deploy failed on the pinned version. Pin Node.js 24 in .nvmrc, require >=22.12.0 (Vite 8's minimum on the 22 line), and let the render check job use .nvmrc again. Closes #161 Co-Authored-By: Claude Opus 5.5 (1M context) --- .github/workflows/notion-monitor.yml | 3 +-- .nvmrc | 2 +- README.md | 2 +- package-lock.json | 2 +- package.json | 2 +- 5 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/notion-monitor.yml b/.github/workflows/notion-monitor.yml index 86ab8f7..1bfbe57 100644 --- a/.github/workflows/notion-monitor.yml +++ b/.github/workflows/notion-monitor.yml @@ -93,8 +93,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - # wrangler dev requires Node.js 22+ - node-version: 24 + node-version-file: ".nvmrc" cache: "npm" - name: Install dependencies diff --git a/.nvmrc b/.nvmrc index 209e3ef..a45fd52 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -20 +24 diff --git a/README.md b/README.md index d6121f5..610738a 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,7 @@ The Notion client loads several hundred JS chunks and API calls from your domain ## Development ```bash -nvm use 20 +nvm use 24 npm install npm start # Development server npm run build # Production build diff --git a/package-lock.json b/package-lock.json index 4c83947..187a596 100644 --- a/package-lock.json +++ b/package-lock.json @@ -25,7 +25,7 @@ "wrangler": "^4.131.2" }, "engines": { - "node": ">=20.0.0" + "node": ">=22.12.0" } }, "node_modules/@babel/code-frame": { diff --git a/package.json b/package.json index d816f89..dce4a9d 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ ], "type": "module", "engines": { - "node": ">=20.0.0" + "node": ">=22.12.0" }, "dependencies": { "@emotion/react": "^11.14.0", From 136874059c10c5ccf1e14138a4175e880f48c06d Mon Sep 17 00:00:00 2001 From: shigahi Date: Fri, 25 Sep 2026 21:52:20 +0200 Subject: [PATCH 2/2] Update GitHub Actions to Node 24 runtimes checkout, setup-node, upload-artifact, github-script and codeql-action majors that still ran on the deprecated Node 20 runtime were being forced onto Node 24 with warnings. Bump them to the current majors, and let Dependabot keep GitHub Actions up to date. Co-Authored-By: Claude Opus 5.5 (1M context) --- .github/dependabot.yml | 4 ++++ .github/workflows/ci.yml | 6 +++--- .github/workflows/codeql.yml | 6 +++--- .github/workflows/notion-monitor.yml | 10 +++++----- 4 files changed, 15 insertions(+), 11 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 42adb44..91560a1 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -9,3 +9,7 @@ updates: directory: "/" schedule: interval: "weekly" + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0e020d0..a8893ee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,10 +26,10 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v7 - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v7 with: node-version-file: ".nvmrc" cache: "npm" @@ -41,7 +41,7 @@ jobs: run: npm run build - name: Upload build artifacts - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: build path: build/ diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 60a6c82..f1740a2 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -37,15 +37,15 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v7 - name: Initialize CodeQL - uses: github/codeql-action/init@v3 + uses: github/codeql-action/init@v4 with: languages: ${{ matrix.language }} build-mode: ${{ matrix.build-mode }} - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v3 + uses: github/codeql-action/analyze@v4 with: category: "/language:${{matrix.language}}" diff --git a/.github/workflows/notion-monitor.yml b/.github/workflows/notion-monitor.yml index 1bfbe57..b2b1ba7 100644 --- a/.github/workflows/notion-monitor.yml +++ b/.github/workflows/notion-monitor.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v7 - name: Run monitor script id: monitor @@ -27,7 +27,7 @@ jobs: - name: Create or update issue if changes detected if: steps.monitor.outcome == 'failure' - uses: actions/github-script@v7 + uses: actions/github-script@v9 with: script: | const fs = require('fs'); @@ -88,10 +88,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v7 - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v7 with: node-version-file: ".nvmrc" cache: "npm" @@ -114,7 +114,7 @@ jobs: - name: Create or update issue if rendering broke if: steps.render.outputs.exit_code == '1' - uses: actions/github-script@v7 + uses: actions/github-script@v9 with: script: | const fs = require('fs');