From 8d3d56f450a74e862a89acfe4754298a32c0f218 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 1 Nov 2026 07:11:17 +0000 Subject: [PATCH 1/2] chore(deps): bump the github-actions group with 2 updates (#104) Bumps the github-actions group with 2 updates: [actions/setup-node](https://github.com/actions/setup-node) and [actions/upload-artifact](https://github.com/actions/upload-artifact). Updates `actions/setup-node` from 7.0.0 to 7.1.0 - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/820762786026740c76f36085b0efc47a31fe5020...949feb2413d6458794dcd2491c4babbbce0c15c1) Updates `actions/upload-artifact` from 7.0.1 to 7.0.2 - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/043fb46d1a93c77aae656e7c1c64a875d1fc6a0a...cf430e030ddbb5b0abf93d22962f4752f3646cd9) --- updated-dependencies: - dependency-name: actions/setup-node dependency-version: 7.1.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: actions/upload-artifact dependency-version: 7.0.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/node-lint-test.yml | 10 +++++----- .github/workflows/node-release.yml | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/node-lint-test.yml b/.github/workflows/node-lint-test.yml index 336f3d9..30a7ac5 100644 --- a/.github/workflows/node-lint-test.yml +++ b/.github/workflows/node-lint-test.yml @@ -19,7 +19,7 @@ jobs: uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Setup Node.js - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 + uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: node-version: ${{ matrix.node-version }} cache: npm @@ -41,7 +41,7 @@ jobs: uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Setup Node.js - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 + uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: node-version: ${{ matrix.node-version }} cache: npm @@ -63,7 +63,7 @@ jobs: uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Setup Node.js - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 + uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: node-version: ${{ matrix.node-version }} cache: npm @@ -89,7 +89,7 @@ jobs: uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Setup Node.js - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 + uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: node-version: ${{ matrix.node-version }} cache: npm @@ -112,7 +112,7 @@ jobs: - name: Upload test results if: ${{ !cancelled() }} - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: playwright-report-node-${{ matrix.node-version }} path: playwright-report/ diff --git a/.github/workflows/node-release.yml b/.github/workflows/node-release.yml index 73f8561..177a96d 100644 --- a/.github/workflows/node-release.yml +++ b/.github/workflows/node-release.yml @@ -22,7 +22,7 @@ jobs: persist-credentials: false - name: Setup Node.js - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 + uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: node-version: 25 cache: npm From b4e0ede5a733eb5dffb8fb20f8a84444fc21241c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Alejandro=20Marug=C3=A1n?= Date: Mon, 2 Nov 2026 21:57:10 +0100 Subject: [PATCH 2/2] fix: update terminal refs in an effect instead of during render MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit eslint-config-next 16.4.3 enables react-hooks/refs, which flags writing langRef and tRef while rendering. That makes Lint fail on the dependabot bump in #105. Moving the writes into a useEffect keeps the refs current for the event handlers and passes the rule. Co-Authored-By: Claude Sonnet 5.5 Signed-off-by: Iván Alejandro Marugán --- src/components/terminal/Terminal.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/terminal/Terminal.tsx b/src/components/terminal/Terminal.tsx index 483ee79..33082db 100644 --- a/src/components/terminal/Terminal.tsx +++ b/src/components/terminal/Terminal.tsx @@ -13,8 +13,10 @@ export default function Terminal({ exerciseId, codeRef }: TerminalProps) { const { lang, t } = useT(); const langRef = useRef(lang); const tRef = useRef(t); - langRef.current = lang; - tRef.current = t; + useEffect(() => { + langRef.current = lang; + tRef.current = t; + }, [lang, t]); const terminalRef = useRef(null); const xtermRef = useRef(null); const inputBuffer = useRef("");