diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index bade1c2..cc79517 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -11,17 +11,17 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Use Node.js 20 + - name: Use Node.js 22 uses: actions/setup-node@v4 with: - node-version: 20.11.1 + node-version: 22.x - name: Use node_modules cache uses: actions/cache@v4 with: path: node_modules - key: yarn-node-20-lock-${{ hashFiles('yarn.lock') }} + key: yarn-node-22-lock-${{ hashFiles('yarn.lock') }} restore-keys: | - yarn-node-20-lock- + yarn-node-22-lock- - run: yarn install --frozen-lockfile - name: Run benchmark uses: CodSpeedHQ/action@v3 diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 3236df2..905036b 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -17,17 +17,17 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Use Node.js 20 + - name: Use Node.js 22 uses: actions/setup-node@v4 with: - node-version: 20.11.1 + node-version: 22.x - name: Use node_modules cache uses: actions/cache@v4 with: path: node_modules - key: yarn-node-20-lock-${{ hashFiles('yarn.lock') }} + key: yarn-node-22-lock-${{ hashFiles('yarn.lock') }} restore-keys: | - yarn-node-20-lock- + yarn-node-22-lock- - name: Initialize CodeQL uses: github/codeql-action/init@v3 with: diff --git a/.github/workflows/metrics-report.yml b/.github/workflows/metrics-report.yml index 9066b77..132b81f 100644 --- a/.github/workflows/metrics-report.yml +++ b/.github/workflows/metrics-report.yml @@ -9,29 +9,29 @@ jobs: pull-requests: write steps: - uses: actions/checkout@v4 - - name: Use Node.js 20 + - name: Use Node.js 22 uses: actions/setup-node@v4 with: - node-version: 20.11.1 + node-version: 22.x - name: Restore node_modules cache uses: actions/cache/restore@v4 with: path: node_modules - key: yarn-node-20-lock-${{ hashFiles('yarn.lock') }} + key: yarn-node-22-lock-${{ hashFiles('yarn.lock') }} restore-keys: | - yarn-node-20-lock- + yarn-node-22-lock- - run: yarn --frozen-lockfile - name: Save node_modules cache uses: actions/cache/save@v4 with: path: node_modules - key: yarn-node-20-lock-${{ hashFiles('yarn.lock') }} + key: yarn-node-22-lock-${{ hashFiles('yarn.lock') }} - name: Use node_modules cache for metrics-report-action uses: actions/cache@v4 with: path: .github/actions/metrics-report/node_modules - key: yarn-node-20-metrics-report-action-lock-${{ hashFiles('.github/actions/metrics-report/yarn.lock') }} + key: yarn-node-22-metrics-report-action-lock-${{ hashFiles('.github/actions/metrics-report/yarn.lock') }} restore-keys: | - yarn-node-20-metrics-report-action-lock- + yarn-node-22-metrics-report-action-lock- - run: yarn --cwd .github/actions/metrics-report install --frozen-lockfile - uses: ./.github/actions/metrics-report diff --git a/.github/workflows/npm-publish-dev.yml b/.github/workflows/npm-publish-dev.yml index 07a770b..740b928 100644 --- a/.github/workflows/npm-publish-dev.yml +++ b/.github/workflows/npm-publish-dev.yml @@ -11,19 +11,19 @@ jobs: id-token: write steps: - uses: actions/checkout@v4 - - name: Use Node.js 20 + - name: Use Node.js 22 uses: actions/setup-node@v4 with: - node-version: 20.11.1 + node-version: 22.x # More info: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages#publishing-packages-to-the-npm-registry registry-url: 'https://registry.npmjs.org' - name: Use node_modules cache uses: actions/cache@v4 with: path: node_modules - key: yarn-node-20-lock-${{ hashFiles('yarn.lock') }} + key: yarn-node-22-lock-${{ hashFiles('yarn.lock') }} restore-keys: | - yarn-node-20-lock- + yarn-node-22-lock- - run: yarn install --frozen-lockfile - run: yarn build - uses: actions/upload-artifact@v4 diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 81f9e07..7d2ad17 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -11,17 +11,17 @@ jobs: id-token: write steps: - uses: actions/checkout@v4 - - name: Use Node.js 20 + - name: Use Node.js 22 uses: actions/setup-node@v4 with: - node-version: 20.11.1 + node-version: 22.x - name: Use node_modules cache uses: actions/cache@v4 with: path: node_modules - key: yarn-node-20-lock-${{ hashFiles('yarn.lock') }} + key: yarn-node-22-lock-${{ hashFiles('yarn.lock') }} restore-keys: | - yarn-node-20-lock- + yarn-node-22-lock- - run: yarn install --frozen-lockfile - run: yarn lint - run: yarn test diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 15d204d..ef9ffd6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,17 +11,17 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Use Node.js 20 + - name: Use Node.js 22 uses: actions/setup-node@v4 with: - node-version: 20.11.1 + node-version: 22.x - name: Use node_modules cache uses: actions/cache@v4 with: path: node_modules - key: yarn-node-20-lock-${{ hashFiles('yarn.lock') }} + key: yarn-node-22-lock-${{ hashFiles('yarn.lock') }} restore-keys: | - yarn-node-20-lock- + yarn-node-22-lock- - run: yarn install --frozen-lockfile - run: yarn lint - run: yarn test diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 0000000..42738c5 --- /dev/null +++ b/.tool-versions @@ -0,0 +1 @@ +nodejs 22.12.0 diff --git a/scripts/rollup.config.mjs b/scripts/rollup.config.mjs index 7fba7d5..88ec88b 100644 --- a/scripts/rollup.config.mjs +++ b/scripts/rollup.config.mjs @@ -9,7 +9,7 @@ import { defineConfig } from 'rollup' import del from 'rollup-plugin-delete' import { dts } from 'rollup-plugin-dts' -import pkg from '../package.json' assert { type: 'json' } +import pkg from '../package.json' with { type: 'json' } export default defineConfig([ // Default entry point