From b536d72c869e47eb048fc54746e4d2f384706d2f Mon Sep 17 00:00:00 2001 From: bashonly <88596187+bashonly@users.noreply.github.com> Date: Sun, 24 May 2026 17:56:27 -0500 Subject: [PATCH] [ie/youtube] Drop support for `node<22` (#16787) Closes #16765 Authored by: bashonly --- .github/workflows/challenge-tests.yml | 2 +- yt_dlp/utils/_jsruntime.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/challenge-tests.yml b/.github/workflows/challenge-tests.yml index c76b9fa84c..36f973f9b7 100644 --- a/.github/workflows/challenge-tests.yml +++ b/.github/workflows/challenge-tests.yml @@ -60,7 +60,7 @@ jobs: - name: Install Node uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: - node-version: '20.0' # minimum supported version + node-version: '22.0' # minimum supported version - name: Install QuickJS (Linux) if: matrix.os == 'ubuntu-latest' shell: bash diff --git a/yt_dlp/utils/_jsruntime.py b/yt_dlp/utils/_jsruntime.py index 0abd6f4280..a1a647e670 100644 --- a/yt_dlp/utils/_jsruntime.py +++ b/yt_dlp/utils/_jsruntime.py @@ -117,7 +117,7 @@ class BunJsRuntime(JsRuntime): class NodeJsRuntime(JsRuntime): - MIN_SUPPORTED_VERSION = (20, 0, 0) + MIN_SUPPORTED_VERSION = (22, 0, 0) def _info(self): path = _determine_runtime_path(self._path, 'node')