diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f9f16ab60..c2837fcd3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,11 +8,11 @@ concurrency: jobs: checks: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 timeout-minutes: 10 strategy: matrix: - node_version: [16, 18, 20] + node_version: [ 18, 20, 22 ] steps: - uses: actions/checkout@v4 - uses: aboutbits/github-actions-node/setup-and-install@v2 @@ -26,11 +26,11 @@ jobs: shell: bash test: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 timeout-minutes: 10 strategy: matrix: - node_version: [16, 18, 20] + node_version: [ 18, 20, 22 ] steps: - uses: actions/checkout@v4 - uses: aboutbits/github-actions-node/setup-and-install@v2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c761b5108..f0ce5d434 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,11 +6,11 @@ on: - 'v*' env: - NODE_VERSION: 20 + NODE_VERSION: 22 jobs: build: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 timeout-minutes: 10 steps: - uses: actions/checkout@v4 diff --git a/.node-version b/.node-version new file mode 100644 index 000000000..8fdd954df --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +22 \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 726758271..b0a62df40 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,12 +29,12 @@ "typescript": "^5.4.3" }, "engines": { - "node": ">=16", - "npm": ">=8" + "node": ">=18", + "npm": ">=10" }, "peerDependencies": { - "react": "^16.8.0 || ^17.0.0 || ^18.0.0", - "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" + "react": "^16.0.0 || ^17.0.0 || ^18.0.0", + "react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0" } }, "node_modules/@aashutoshrathi/word-wrap": { diff --git a/package.json b/package.json index 886f2ed17..a81db8ee2 100644 --- a/package.json +++ b/package.json @@ -27,8 +27,8 @@ "dist/**/*" ], "engines": { - "npm": ">=8", - "node": ">=16" + "npm": ">=10", + "node": ">=18" }, "scripts": { "build": "tsc",