From 4be9a43d5b97167a9141fe40ad3e113b96a829e0 Mon Sep 17 00:00:00 2001 From: Jacek Wielemborek Date: Tue, 28 Oct 2025 06:03:25 +0000 Subject: [PATCH] chore: upgrade to Node.js 25 and add fnm support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Update package.json to require Node.js >=25 - Add .nvmrc file with Node.js version 25 - Update README.md with Node.js 25 requirements - Add fnm installation and usage instructions - Update both English and Polish documentation sections 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .nvmrc | 1 + README.md | 28 ++++++++++++++++++++++++++-- package.json | 3 +++ 3 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 .nvmrc diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..2e3b5f6 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +25 diff --git a/README.md b/README.md index 982a2f7..1fed11f 100644 --- a/README.md +++ b/README.md @@ -21,9 +21,21 @@ Firefox: https://addons.mozilla.org/en-US/firefox/addon/rentgen/ ### Pre-requirements - OS: Linux x86_64 -- Node.js: 16.x version +- Node.js: 25.x version (recommended: use [fnm](https://github.com/Schniz/fnm) for automatic version management) - npm: 7.x version or higher +**Using fnm (recommended):** + +If you're using fnm, it will automatically use the correct Node.js version specified in `.nvmrc`: + +```bash +# Install fnm (if not already installed) +curl -fsSL https://fnm.vercel.app/install | bash + +# In the project directory, fnm will automatically use Node.js 25 +fnm use +``` + ### Build steps 1. Pull repository or download a zip package @@ -82,9 +94,21 @@ Firefox: https://addons.mozilla.org/pl/firefox/addon/rentgen/ ### Wymagania wstępne - System operacyjny: Linux x86_64 -- Node.js: 16.x +- Node.js: 25.x (zalecane: użyj [fnm](https://github.com/Schniz/fnm) do automatycznego zarządzania wersją) - npm: 7.x lub wyższy +**Używanie fnm (zalecane):** + +Jeśli używasz fnm, automatycznie użyje prawidłowej wersji Node.js określonej w `.nvmrc`: + +```bash +# Zainstaluj fnm (jeśli nie jest zainstalowane) +curl -fsSL https://fnm.vercel.app/install | bash + +# W katalogu projektu fnm automatycznie użyje Node.js 25 +fnm use +``` + ### Proces budowy 1. Pobierz repozytorium przez `git pull https://git.internet-czas-dzialac.pl/icd/rentgen.git` lub pobierz archwium zip diff --git a/package.json b/package.json index 8766095..c36d187 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,9 @@ "homepage": "https://git.internet-czas-dzialac.pl/icd/rentgen", "author": "Kuba Orlik, Arkadiusz Wieczorek", "license": "GPL-3.0-or-later", + "engines": { + "node": ">=25" + }, "dependencies": { "@iabtcf/core": "^1.3.1", "@types/proposal-relative-indexing-method": "^0.1.0",