diff --git a/.github/ISSUE_TEMPLATE/02_bug_report.yml b/.github/ISSUE_TEMPLATE/02_bug_report.yml index 123b5a95..753637af 100644 --- a/.github/ISSUE_TEMPLATE/02_bug_report.yml +++ b/.github/ISSUE_TEMPLATE/02_bug_report.yml @@ -43,4 +43,4 @@ body: attributes: label: Node.js Version description: "Output of `node --version`" - placeholder: "e.g. v18.16.0" + placeholder: "e.g. v22.0.0" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cfdb521c..45518fa6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -88,7 +88,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] - node-version: [20.x, 22.x, 24.x, 25.x] + node-version: [22.x, 24.x, 26.x] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -99,8 +99,7 @@ jobs: with: node-version: ${{ matrix.node-version }} - run: npm ci - # Run tests directly instead of using npm scripts with node --run which is not supported in older Node versions - - run: ./node_modules/.bin/vitest --reporter=verbose + - run: npm run test -- --reporter=verbose env: CI_OS: ${{ runner.os }} @@ -161,7 +160,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] - node-version: [20.x, 22.x, 24.x, 25.x] + node-version: [22.x, 24.x, 26.x] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -172,7 +171,6 @@ jobs: with: node-version: ${{ matrix.node-version }} - run: npm ci - # Run build directly instead of using npm scripts with node --run which is not supported in older Node versions - run: ./node_modules/.bin/rimraf lib && ./node_modules/.bin/tsc -p tsconfig.build.json --sourceMap --declaration - name: Remove dev dependencies run: npm prune --omit=dev diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index 296a08d3..c8ee6f3e 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -15,13 +15,13 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [18, 20, 22] + node-version: [22, 24, 26] include: - - node-version: 18 - test-case: "minimal" - - node-version: 20 - test-case: "basic" - node-version: 22 + test-case: "minimal" + - node-version: 24 + test-case: "basic" + - node-version: 26 test-case: "full" steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 diff --git a/llms-install.md b/llms-install.md index 34e09442..5cee172e 100644 --- a/llms-install.md +++ b/llms-install.md @@ -10,7 +10,7 @@ Repomix MCP server is a powerful tool that packages local or remote codebases in Before installation, you need: -1. Node.js 20.0.0 or higher +1. Node.js 22.0.0 or higher 2. npm (Node Package Manager) ## Installation and Configuration diff --git a/package-lock.json b/package-lock.json index f05a4a43..f275f40e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -59,7 +59,7 @@ "vitest": "^4.1.4" }, "engines": { - "node": ">=20.0.0", + "node": ">=22.0.0", "yarn": ">=1.22.22" } }, diff --git a/package.json b/package.json index ac16c3d6..384ae576 100644 --- a/package.json +++ b/package.json @@ -124,7 +124,7 @@ "vitest": "^4.1.4" }, "engines": { - "node": ">=20.0.0", + "node": ">=22.0.0", "yarn": ">=1.22.22" } } diff --git a/scripts/memory/package-lock.json b/scripts/memory/package-lock.json index 1a39445c..e2f81f7d 100644 --- a/scripts/memory/package-lock.json +++ b/scripts/memory/package-lock.json @@ -17,7 +17,7 @@ "typescript": "^6.0.3" }, "engines": { - "node": ">=18.0.0" + "node": ">=22.0.0" } }, "../..": { @@ -27,7 +27,7 @@ "@clack/prompts": "^0.11.0", "@modelcontextprotocol/sdk": "^1.29.0", "@repomix/strip-comments": "^2.4.2", - "@repomix/tree-sitter-wasms": "^0.1.16", + "@repomix/tree-sitter-wasms": "^0.1.17", "@secretlint/core": "^11.6.0", "@secretlint/secretlint-rule-preset-recommend": "^11.6.0", "commander": "^14.0.3", @@ -74,7 +74,7 @@ "vitest": "^4.1.4" }, "engines": { - "node": ">=20.0.0", + "node": ">=22.0.0", "yarn": ">=1.22.22" } }, diff --git a/scripts/memory/package.json b/scripts/memory/package.json index 0bd727bd..ef52f8fc 100644 --- a/scripts/memory/package.json +++ b/scripts/memory/package.json @@ -23,7 +23,7 @@ "typescript": "^6.0.3" }, "engines": { - "node": ">=18.0.0" + "node": ">=22.0.0" }, "keywords": [ "benchmark", diff --git a/website/client/.vitepress/config/configShard.ts b/website/client/.vitepress/config/configShard.ts index 9d4dba7b..e3d8890e 100644 --- a/website/client/.vitepress/config/configShard.ts +++ b/website/client/.vitepress/config/configShard.ts @@ -91,7 +91,7 @@ const jsonLd = { isAccessibleForFree: true, installUrl: npmUrl, downloadUrl: npmUrl, - softwareRequirements: 'Node.js 20.0.0 or higher', + softwareRequirements: 'Node.js 22.0.0 or higher', image: `${siteUrl}/images/repomix-logo.svg`, screenshot: ogImageUrl, author: { diff --git a/website/client/src/en/guide/development/index.md b/website/client/src/en/guide/development/index.md index 99c06c24..8c885d38 100644 --- a/website/client/src/en/guide/development/index.md +++ b/website/client/src/en/guide/development/index.md @@ -20,7 +20,7 @@ Thank you for your interest in **Repomix**! 🚀 We'd love your help to make it ### Prerequisites -- Node.js ≥ 20.0.0 +- Node.js ≥ 22.0.0 - Git - npm - Docker (optional, for running the website or containerized development) diff --git a/website/client/src/en/guide/faq.md b/website/client/src/en/guide/faq.md index 5bade7ee..537ecb64 100644 --- a/website/client/src/en/guide/faq.md +++ b/website/client/src/en/guide/faq.md @@ -15,7 +15,7 @@ Repomix packs a repository into a single AI-friendly file so you can give an AI ### Does Repomix work with C#, Python, Java, Go, Rust, or other languages? -Yes. Repomix can pack repositories written in any programming language because it reads files from your project and formats them for AI tools. Repomix itself runs on Node.js, so you need Node.js 20 or later when using the CLI. Some advanced features, such as Tree-sitter code compression, depend on language parser support and may vary by language. +Yes. Repomix can pack repositories written in any programming language because it reads files from your project and formats them for AI tools. Repomix itself runs on Node.js, so you need Node.js 22 or later when using the CLI. Some advanced features, such as Tree-sitter code compression, depend on language parser support and may vary by language. See [Installation](/guide/installation) for runtime requirements. diff --git a/website/client/src/hi/guide/github-actions.md b/website/client/src/hi/guide/github-actions.md index 773a0038..1a505a94 100644 --- a/website/client/src/hi/guide/github-actions.md +++ b/website/client/src/hi/guide/github-actions.md @@ -31,7 +31,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v3 with: - node-version: '20' + node-version: '22' - name: Run Repomix run: npx repomix --output-file repomix-output.xml @@ -71,7 +71,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v3 with: - node-version: '20' + node-version: '22' - name: Run Repomix run: | @@ -128,7 +128,7 @@ jobs: strategy: matrix: output-style: [xml, markdown, json, plain] - node-version: [20, 22] + node-version: [22, 24] steps: - uses: actions/checkout@v3 diff --git a/website/client/src/vi/guide/github-actions.md b/website/client/src/vi/guide/github-actions.md index e61e3e53..e2595b98 100644 --- a/website/client/src/vi/guide/github-actions.md +++ b/website/client/src/vi/guide/github-actions.md @@ -186,7 +186,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v3 with: - node-version: '20' + node-version: '22' - name: Install Repomix run: npm install -g repomix