From 4e2c3c01716a33ba38def05b08abf0187970f2d5 Mon Sep 17 00:00:00 2001 From: Shinigami92 Date: Tue, 6 May 2025 18:59:26 +0200 Subject: [PATCH] chore: upgrade node --- .github/workflows/ci.yml | 16 +++++++-------- .github/workflows/cockroach-test.yml | 2 +- .github/workflows/coverage.yml | 8 ++++---- .github/workflows/docs.yml | 4 ++-- .github/workflows/postgres-test.yml | 30 ++++++++++++++-------------- .github/workflows/publish.yml | 4 ++-- eslint.config.ts | 7 ++----- 7 files changed, 34 insertions(+), 37 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9f4faff88..896ee6056 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - node_version: [20, 22] + node_version: [20, 22, 24] fail-fast: false timeout-minutes: 10 @@ -45,7 +45,7 @@ jobs: lint: runs-on: ubuntu-latest timeout-minutes: 10 - name: 'Lint: node-20, ubuntu-latest' + name: 'Lint: node-22, ubuntu-latest' steps: - name: Checkout uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 @@ -55,10 +55,10 @@ jobs: - name: Install pnpm uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0 - - name: Set node version to 20 + - name: Set node version to 22 uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: - node-version: 20 + node-version: 22 cache: 'pnpm' - name: Install deps @@ -76,7 +76,7 @@ jobs: ts-check: runs-on: ubuntu-latest timeout-minutes: 10 - name: 'TS-Check: node-20, ubuntu-latest' + name: 'TS-Check: node-22, ubuntu-latest' steps: - name: Checkout uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 @@ -84,10 +84,10 @@ jobs: - name: Install pnpm uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0 - - name: Set node version to 20 + - name: Set node version to 22 uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: - node-version: 20 + node-version: 22 cache: 'pnpm' - name: Install deps @@ -103,7 +103,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node_version: [20] + node_version: [22] fail-fast: false timeout-minutes: 10 diff --git a/.github/workflows/cockroach-test.yml b/.github/workflows/cockroach-test.yml index d842d2074..50ced91ef 100644 --- a/.github/workflows/cockroach-test.yml +++ b/.github/workflows/cockroach-test.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node_version: [20] + node_version: [22] cockroach_version: [22.2.19, 23.2.20, 24.3.5] fail-fast: false timeout-minutes: 10 diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 46af4bf6d..7721caafa 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -17,10 +17,10 @@ jobs: - name: Install pnpm uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0 - - name: Set node version to 20 + - name: Set node version to 22 uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: - node-version: 20 + node-version: 22 cache: 'pnpm' - name: Install deps @@ -51,10 +51,10 @@ jobs: - name: Install pnpm uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0 - - name: Set node version to 20 + - name: Set node version to 22 uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: - node-version: 20 + node-version: 22 cache: 'pnpm' - name: Install deps diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 2d25ed239..8d3155ebe 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -31,10 +31,10 @@ jobs: - name: Install pnpm uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0 - - name: Set node version to 20 + - name: Set node version to 22 uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: - node-version: 20 + node-version: 22 cache: 'pnpm' - name: Setup Pages diff --git a/.github/workflows/postgres-test.yml b/.github/workflows/postgres-test.yml index 859c0e601..06754d904 100644 --- a/.github/workflows/postgres-test.yml +++ b/.github/workflows/postgres-test.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node_version: [20, 22] + node_version: [20, 22, 24] postgres_version: [13, 14, 15, 16, 17] fail-fast: false timeout-minutes: 10 @@ -69,7 +69,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node_version: [20] + node_version: [22] postgres_version: [17] fail-fast: false timeout-minutes: 10 @@ -137,7 +137,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node_version: [20] + node_version: [22] postgres_version: [17] fail-fast: false timeout-minutes: 10 @@ -203,7 +203,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node_version: [20] + node_version: [22] postgres_version: [17] fail-fast: false timeout-minutes: 10 @@ -262,7 +262,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node_version: [20] + node_version: [22] postgres_version: [17] fail-fast: false timeout-minutes: 10 @@ -324,7 +324,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node_version: [20] + node_version: [22] postgres_version: [17] fail-fast: false timeout-minutes: 10 @@ -380,7 +380,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node_version: [20] + node_version: [22] postgres_version: [17] fail-fast: false timeout-minutes: 10 @@ -448,7 +448,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node_version: [20] + node_version: [22] postgres_version: [17] fail-fast: false timeout-minutes: 10 @@ -506,7 +506,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node_version: [20] + node_version: [22] postgres_version: [17] fail-fast: false timeout-minutes: 10 @@ -562,7 +562,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node_version: [20] + node_version: [22] postgres_version: [17] fail-fast: false timeout-minutes: 10 @@ -618,7 +618,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node_version: [20] + node_version: [22] postgres_version: [17] fail-fast: false timeout-minutes: 10 @@ -673,7 +673,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node_version: [20] + node_version: [22] postgres_version: [17] fail-fast: false timeout-minutes: 10 @@ -728,7 +728,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node_version: [20] + node_version: [22] postgres_version: [17] fail-fast: false timeout-minutes: 10 @@ -783,7 +783,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node_version: [20] + node_version: [22] postgres_version: [17] fail-fast: false timeout-minutes: 10 @@ -838,7 +838,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node_version: [20] + node_version: [22] postgres_version: [17] fail-fast: false timeout-minutes: 10 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c3d0846d4..1d97a4505 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,10 +15,10 @@ jobs: - name: Install pnpm uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0 - - name: Set node version to 20 + - name: Set node version to 22 uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: - node-version: 20 + node-version: 22 cache: 'pnpm' - name: Prepare diff --git a/eslint.config.ts b/eslint.config.ts index f9410e832..f3c8eb125 100644 --- a/eslint.config.ts +++ b/eslint.config.ts @@ -6,13 +6,10 @@ import stylistic from '@stylistic/eslint-plugin'; import eslintPluginVitest from '@vitest/eslint-plugin'; import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'; import eslintPluginUnicorn from 'eslint-plugin-unicorn'; -import { dirname, resolve } from 'node:path'; -import { fileURLToPath } from 'node:url'; +import { resolve } from 'node:path'; import tseslint from 'typescript-eslint'; -const __filename = fileURLToPath(import.meta.url); -const __dirname = dirname(__filename); -const gitignorePath = resolve(__dirname, '.gitignore'); +const gitignorePath = resolve(import.meta.dirname, '.gitignore'); export default defineConfig( //#region global