diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e745faec0..fb887c91f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,7 +28,7 @@ jobs: strategy: matrix: - node-version: [20.x, 22.x] + node-version: [22.x] steps: - name: Check out Git repository @@ -80,7 +80,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 check-latest: true cache: 'pnpm' @@ -126,7 +126,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 check-latest: true cache: 'pnpm' diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 82695ebc2..f435ced3c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -24,13 +24,13 @@ - 開発言語 - [TypeScript](https://www.typescriptlang.org/) - JavaScriptのランタイム - - [Node.js](https://nodejs.org): v20+ + - [Node.js](https://nodejs.org): v22.x - 汎用フレームワーク - - [SvelteKit](https://kit.svelte.dev/) + - [SvelteKit](https://kit.svelte.dev/): v5.xに移行予定。 - UIライブラリ - [shadcn-svelte](https://www.shadcn-svelte.com/): 主にData Tableを使用予定。将来的には、以下のライブラリを使って実装している部分を置き換える。 - [Flowbite Svelte](https://flowbite-svelte.com/) - - [STWUI](https://stwui.vercel.app/) + - [STWUI](https://stwui.vercel.app/): 開発が事実上終了した可能性が高いため、使用しているコンポーネントを調べて別のライブラリに移行する。 - テスティングフレームワーク - [Vitest](https://vitest.dev/): 単体テスト (ユーティリティ、コンポーネント) - [Playwright](https://playwright.dev/): e2eテスト diff --git a/Dockerfile b/Dockerfile index 6d3b419db..59deef916 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # See: # https://github.com/devcontainers/images/tree/main/src/javascript-node -ARG NODE_VERSION=20 +ARG NODE_VERSION=22 FROM mcr.microsoft.com/devcontainers/javascript-node:${NODE_VERSION} WORKDIR /usr/src/app diff --git a/package.json b/package.json index 01e21e074..8bb723e81 100644 --- a/package.json +++ b/package.json @@ -93,5 +93,5 @@ "vercel": "39.2.2", "xss": "1.0.15" }, - "packageManager": "pnpm@9.13.2" + "packageManager": "pnpm@9.15.2" } diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 543ef8f8c..42a7d0f85 100755 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -5,7 +5,7 @@ // https://www.prisma.io/docs/concepts/components/prisma-schema/generators generator client { provider = "prisma-client-js" - binaryTargets = ["native", "rhel-openssl-1.0.x", "rhel-openssl-3.0.x"] + binaryTargets = ["native", "rhel-openssl-3.0.x"] } // See: diff --git a/src/test/lib/utils/time.test.ts b/src/test/lib/utils/time.test.ts index e282508d5..5d1c4fb76 100644 --- a/src/test/lib/utils/time.test.ts +++ b/src/test/lib/utils/time.test.ts @@ -4,11 +4,11 @@ import { delay } from '$lib/utils/time'; describe('Delay', () => { it('expected to be resolved after the specified delay', async () => { const start = performance.now(); - const milliseconds = 80; // Increased threshold for CI environment reliability. + const milliseconds = 50; // Increased threshold for CI environment reliability. await delay(milliseconds); const end = performance.now(); - expect(end - start).toBeGreaterThanOrEqual(milliseconds); + expect(end - start).toBeGreaterThanOrEqual(milliseconds - 5); // Extend tolerance. }); it('expected to be resolved immediately if the delay duration is zero', async () => {