diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3c208ac..ae2b9fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: - uses: pnpm/action-setup@v4 - uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 24 cache: 'pnpm' - name: Validate PR title (Conventional Commits) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 59e7328..3169142 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,7 +15,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 24 - uses: pnpm/action-setup@v4 - run: pnpm install - run: pnpm test diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 356ee03..f9230ee 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -4,7 +4,7 @@ Thank you for contributing! This project uses a PR-based workflow with required ## Requirements -Node.js >= 20 and pnpm >= 10. +Node.js >= 24 and pnpm >= 10. TypeScript strict mode, Biome for formatting, Vitest for tests. ## Scripts diff --git a/README.md b/README.md index 735bd83..deac8f1 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ npm install @sigrea/react @sigrea/core react react-dom ``` -Requires React 18+ and Node.js 20 or later. +Requires React 18+ and Node.js 24 or later. ## Quick Start @@ -224,7 +224,7 @@ createRoot(document.getElementById("root")!).render(); ## Development -This repo targets Node.js 20 or later. +This repo targets Node.js 24 or later. If you use mise: diff --git a/mise.toml b/mise.toml index 72706a4..9125bd0 100644 --- a/mise.toml +++ b/mise.toml @@ -2,8 +2,8 @@ pnpm = "10.0.0" [tasks.check_node] -description = "Ensure Node.js version is >= 20" -run = "node -e 'const major = Number(process.versions.node.split(\".\")[0]); if (major < 20) { console.error(`Node.js >= 20 is required (current: ${process.versions.node})`); process.exit(1); }'" +description = "Ensure Node.js version is >= 24" +run = "node -e 'const major = Number(process.versions.node.split(\".\")[0]); if (major < 24) { console.error(`Node.js >= 24 is required (current: ${process.versions.node})`); process.exit(1); }'" [tasks.ci] description = "Run CI-equivalent checks (install/test/typecheck/build/format)" diff --git a/package.json b/package.json index 5b206b3..583657f 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "url": "https://github.com/sigrea/react/issues" }, "engines": { - "node": ">=20" + "node": ">=24" }, "sideEffects": false, "exports": { @@ -45,13 +45,13 @@ "cicheck": "pnpm test && pnpm typecheck && pnpm format:fix" }, "peerDependencies": { - "@sigrea/core": "^0.5.0", + "@sigrea/core": "^0.6.0", "react": "^18.0.0 || ^19.0.0", "react-dom": "^18.0.0 || ^19.0.0" }, "devDependencies": { "@biomejs/biome": "1.9.4", - "@sigrea/core": "^0.5.0", + "@sigrea/core": "^0.6.0", "@types/react": "^19.0.0", "@types/react-dom": "^19.0.0", "@vitejs/plugin-react": "^4.3.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b2162a4..5b36617 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,8 +12,8 @@ importers: specifier: 1.9.4 version: 1.9.4 '@sigrea/core': - specifier: ^0.5.0 - version: 0.5.0 + specifier: ^0.6.0 + version: 0.6.0 '@types/react': specifier: ^19.0.0 version: 19.2.2 @@ -726,9 +726,9 @@ packages: cpu: [x64] os: [win32] - '@sigrea/core@0.5.0': - resolution: {integrity: sha512-wDZSwlmjwFLK8Zofd9jIWEMUNEyTxAhlAiuktoZWnyuw/3m5cClt79tFggk4bCzsLTN/d/fSoU4lvPew2p72iA==} - engines: {node: '>=20'} + '@sigrea/core@0.6.0': + resolution: {integrity: sha512-0zofSNihnmFiJ+4MNh6EvWo96bvpCMeTuNAaAx/X1bmosQZ2zztXRS7iEAqHX604cucEIahNBD54Babw5598ug==} + engines: {node: '>=24'} '@types/babel__core@7.20.5': resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==} @@ -2571,7 +2571,7 @@ snapshots: '@rollup/rollup-win32-x64-msvc@4.52.5': optional: true - '@sigrea/core@0.5.0': + '@sigrea/core@0.6.0': dependencies: alien-signals: 3.1.1