diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index dc9493a9..8a27dae5 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -49,7 +49,7 @@ jobs: pnpm build - name: Upload coverage to codecov - uses: codecov/codecov-action@v4 + uses: codecov/codecov-action@v5 with: files: ./coverage/coverage-final.json token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/check-pr-title.yaml b/.github/workflows/check-pr-title.yaml index 857825cf..2f0513e6 100644 --- a/.github/workflows/check-pr-title.yaml +++ b/.github/workflows/check-pr-title.yaml @@ -19,7 +19,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Comment PR - uses: thollander/actions-comment-pull-request@v2 + uses: thollander/actions-comment-pull-request@v3 if: failure() && steps.check_pr_title.outcome == 'failure' with: message: | diff --git a/.tool-versions b/.tool-versions index e8fc3f8e..42738c54 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1 +1 @@ -nodejs 20.18.1 +nodejs 22.12.0 diff --git a/package.json b/package.json index c8cf7d18..8bfc25f0 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "email": "info@pulsate.dev" }, "engines": { - "node": "20.18.1" + "node": "22.12.0" }, "scripts": { "start": "node --env-file=.env --enable-source-maps ./build/main.js", @@ -35,7 +35,7 @@ "@hono/swagger-ui": "^0.5.0", "@hono/zod-openapi": "^0.18.0", "@mikuroxina/mini-fn": "^6.3.1", - "@prisma/client": "5.22.0", + "@prisma/client": "6.0.1", "@scalar/hono-api-reference": "^0.5.0", "argon2": "^0.41.0", "blurhash": "^2.0.5", @@ -43,7 +43,7 @@ "hono": "^4.0.0", "ioredis": "^5.4.1", "jose": "^5.2.1", - "prisma": "^5.9.1", + "prisma": "^6.0.0", "sharp": "^0.33.4", "tslog": "^4.9.3", "typescript": "^5.3.3" @@ -51,7 +51,7 @@ "devDependencies": { "@biomejs/biome": "^1.8.3", "@ls-lint/ls-lint": "^2.2.3", - "@types/node": "^20.11.16", + "@types/node": "^22.0.0", "@vitest/coverage-v8": "^2.0.0", "esbuild": "^0.24.0", "glob": "^11.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 41f99618..e1fc7a17 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -21,8 +21,8 @@ importers: specifier: ^6.3.1 version: 6.7.0 '@prisma/client': - specifier: 5.22.0 - version: 5.22.0(prisma@5.22.0) + specifier: 6.0.1 + version: 6.0.1(prisma@6.0.1) '@scalar/hono-api-reference': specifier: ^0.5.0 version: 0.5.163(hono@4.6.13) @@ -45,8 +45,8 @@ importers: specifier: ^5.2.1 version: 5.9.6 prisma: - specifier: ^5.9.1 - version: 5.22.0 + specifier: ^6.0.0 + version: 6.0.1 sharp: specifier: ^0.33.4 version: 0.33.5 @@ -64,11 +64,11 @@ importers: specifier: ^2.2.3 version: 2.2.3 '@types/node': - specifier: ^20.11.16 - version: 20.17.10 + specifier: ^22.0.0 + version: 22.10.2 '@vitest/coverage-v8': specifier: ^2.0.0 - version: 2.1.8(vitest@2.1.8(@types/node@20.17.10)) + version: 2.1.8(vitest@2.1.8(@types/node@22.10.2)) esbuild: specifier: ^0.24.0 version: 0.24.0 @@ -86,7 +86,7 @@ importers: version: 1.9.2 vitest: specifier: ^2.0.0 - version: 2.1.8(@types/node@20.17.10) + version: 2.1.8(@types/node@22.10.2) packages: @@ -632,29 +632,29 @@ packages: resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} engines: {node: '>=14'} - '@prisma/client@5.22.0': - resolution: {integrity: sha512-M0SVXfyHnQREBKxCgyo7sffrKttwE6R8PMq330MIUF0pTwjUhLbW84pFDlf06B27XyCR++VtjugEnIHdr07SVA==} - engines: {node: '>=16.13'} + '@prisma/client@6.0.1': + resolution: {integrity: sha512-60w7kL6bUxz7M6Gs/V+OWMhwy94FshpngVmOY05TmGD0Lhk+Ac0ZgtjlL6Wll9TD4G03t4Sq1wZekNVy+Xdlbg==} + engines: {node: '>=18.18'} peerDependencies: prisma: '*' peerDependenciesMeta: prisma: optional: true - '@prisma/debug@5.22.0': - resolution: {integrity: sha512-AUt44v3YJeggO2ZU5BkXI7M4hu9BF2zzH2iF2V5pyXT/lRTyWiElZ7It+bRH1EshoMRxHgpYg4VB6rCM+mG5jQ==} + '@prisma/debug@6.0.1': + resolution: {integrity: sha512-jQylgSOf7ibTVxqBacnAlVGvek6fQxJIYCQOeX2KexsfypNzXjJQSS2o5s+Mjj2Np93iSOQUaw6TvPj8syhG4w==} - '@prisma/engines-version@5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2': - resolution: {integrity: sha512-2PTmxFR2yHW/eB3uqWtcgRcgAbG1rwG9ZriSvQw+nnb7c4uCr3RAcGMb6/zfE88SKlC1Nj2ziUvc96Z379mHgQ==} + '@prisma/engines-version@5.23.0-27.5dbef10bdbfb579e07d35cc85fb1518d357cb99e': + resolution: {integrity: sha512-JmIds0Q2/vsOmnuTJYxY4LE+sajqjYKhLtdOT6y4imojqv5d/aeVEfbBGC74t8Be1uSp0OP8lxIj2OqoKbLsfQ==} - '@prisma/engines@5.22.0': - resolution: {integrity: sha512-UNjfslWhAt06kVL3CjkuYpHAWSO6L4kDCVPegV6itt7nD1kSJavd3vhgAEhjglLJJKEdJ7oIqDJ+yHk6qO8gPA==} + '@prisma/engines@6.0.1': + resolution: {integrity: sha512-4hxzI+YQIR2uuDyVsDooFZGu5AtixbvM2psp+iayDZ4hRrAHo/YwgA17N23UWq7G6gRu18NvuNMb48qjP3DPQw==} - '@prisma/fetch-engine@5.22.0': - resolution: {integrity: sha512-bkrD/Mc2fSvkQBV5EpoFcZ87AvOgDxbG99488a5cexp5Ccny+UM6MAe/UFkUC0wLYD9+9befNOqGiIJhhq+HbA==} + '@prisma/fetch-engine@6.0.1': + resolution: {integrity: sha512-T36bWFVGeGYYSyYOj9d+O9G3sBC+pAyMC+jc45iSL63/Haq1GrYjQPgPMxrEj9m739taXrupoysRedQ+VyvM/Q==} - '@prisma/get-platform@5.22.0': - resolution: {integrity: sha512-pHhpQdr1UPFpt+zFfnPazhulaZYCUqeIcPpJViYoq9R+D/yw4fjE+CtnsnKzPYm0ddUbeXUzjGVGIRVgPDCk4Q==} + '@prisma/get-platform@6.0.1': + resolution: {integrity: sha512-zspC9vlxAqx4E6epMPMLLBMED2VD8axDe8sPnquZ8GOsn6tiacWK0oxrGK4UAHYzYUVuMVUApJbdXB2dFpLhvg==} '@rollup/rollup-android-arm-eabi@4.28.0': resolution: {integrity: sha512-wLJuPLT6grGZsy34g4N1yRfYeouklTgPhH1gWXCYspenKYD0s3cR99ZevOGw5BexMNywkbV3UkjADisozBmpPQ==} @@ -769,8 +769,8 @@ packages: '@types/estree@1.0.6': resolution: {integrity: sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==} - '@types/node@20.17.10': - resolution: {integrity: sha512-/jrvh5h6NXhEauFFexRin69nA0uHJ5gwk4iDivp/DeoEua3uwCUto6PC86IpRITBOs4+6i2I56K5x5b6WYGXHA==} + '@types/node@22.10.2': + resolution: {integrity: sha512-Xxr6BBRCAOQixvonOye19wnzyDiUtTeqldOOmj3CkeblonbccA12PFwlufvRdrpjXxqnmUaeiU5EOA+7s5diUQ==} '@unhead/schema@1.11.13': resolution: {integrity: sha512-fIpQx6GCpl99l4qJXsPqkXxO7suMccuLADbhaMSkeXnVEi4ZIle+l+Ri0z+GHAEpJj17FMaQdO5n9FMSOMUxkw==} @@ -1192,9 +1192,9 @@ packages: resolution: {integrity: sha512-OCVPnIObs4N29kxTjzLfUryOkvZEq+pf8jTF0lg8E7uETuWHA+v7j3c/xJmiqpX450191LlmZfUKkXxkTry7nA==} engines: {node: ^10 || ^12 || >=14} - prisma@5.22.0: - resolution: {integrity: sha512-vtpjW3XuYCSnMsNVBjLMNkTj6OZbudcPPTPYHqX0CJfpcdWciI1dM8uHETwmDxxiqEwCIE6WvXucWUetJgfu/A==} - engines: {node: '>=16.13'} + prisma@6.0.1: + resolution: {integrity: sha512-CaMNFHkf+DDq8zq3X/JJsQ4Koy7dyWwwtOKibkT/Am9j/tDxcfbg7+lB1Dzhx18G/+RQCMgjPYB61bhRqteNBQ==} + engines: {node: '>=18.18'} hasBin: true redis-errors@1.2.0: @@ -1316,8 +1316,8 @@ packages: resolution: {integrity: sha512-ZPtzy0hu4cZjv3z5NW9gfKnNLjoz4y6uv4HlelAjDK7sY/xOkKZv9xK/WQpcsBB3jEybChz9DPC2U/+cusjJVQ==} engines: {node: '>=18'} - undici-types@6.19.8: - resolution: {integrity: sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==} + undici-types@6.20.0: + resolution: {integrity: sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==} vite-node@2.1.8: resolution: {integrity: sha512-uPAwSr57kYjAUux+8E2j0q0Fxpn8M9VoyfGiRI8Kfktz9NcYMCenwY5RnZxnF1WTu3TGiYipirIzacLL3VVGFg==} @@ -1751,30 +1751,30 @@ snapshots: '@pkgjs/parseargs@0.11.0': optional: true - '@prisma/client@5.22.0(prisma@5.22.0)': + '@prisma/client@6.0.1(prisma@6.0.1)': optionalDependencies: - prisma: 5.22.0 + prisma: 6.0.1 - '@prisma/debug@5.22.0': {} + '@prisma/debug@6.0.1': {} - '@prisma/engines-version@5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2': {} + '@prisma/engines-version@5.23.0-27.5dbef10bdbfb579e07d35cc85fb1518d357cb99e': {} - '@prisma/engines@5.22.0': + '@prisma/engines@6.0.1': dependencies: - '@prisma/debug': 5.22.0 - '@prisma/engines-version': 5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2 - '@prisma/fetch-engine': 5.22.0 - '@prisma/get-platform': 5.22.0 + '@prisma/debug': 6.0.1 + '@prisma/engines-version': 5.23.0-27.5dbef10bdbfb579e07d35cc85fb1518d357cb99e + '@prisma/fetch-engine': 6.0.1 + '@prisma/get-platform': 6.0.1 - '@prisma/fetch-engine@5.22.0': + '@prisma/fetch-engine@6.0.1': dependencies: - '@prisma/debug': 5.22.0 - '@prisma/engines-version': 5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2 - '@prisma/get-platform': 5.22.0 + '@prisma/debug': 6.0.1 + '@prisma/engines-version': 5.23.0-27.5dbef10bdbfb579e07d35cc85fb1518d357cb99e + '@prisma/get-platform': 6.0.1 - '@prisma/get-platform@5.22.0': + '@prisma/get-platform@6.0.1': dependencies: - '@prisma/debug': 5.22.0 + '@prisma/debug': 6.0.1 '@rollup/rollup-android-arm-eabi@4.28.0': optional: true @@ -1848,16 +1848,16 @@ snapshots: '@types/estree@1.0.6': {} - '@types/node@20.17.10': + '@types/node@22.10.2': dependencies: - undici-types: 6.19.8 + undici-types: 6.20.0 '@unhead/schema@1.11.13': dependencies: hookable: 5.5.3 zhead: 2.2.4 - '@vitest/coverage-v8@2.1.8(vitest@2.1.8(@types/node@20.17.10))': + '@vitest/coverage-v8@2.1.8(vitest@2.1.8(@types/node@22.10.2))': dependencies: '@ampproject/remapping': 2.3.0 '@bcoe/v8-coverage': 0.2.3 @@ -1871,7 +1871,7 @@ snapshots: std-env: 3.8.0 test-exclude: 7.0.1 tinyrainbow: 1.2.0 - vitest: 2.1.8(@types/node@20.17.10) + vitest: 2.1.8(@types/node@22.10.2) transitivePeerDependencies: - supports-color @@ -1882,13 +1882,13 @@ snapshots: chai: 5.1.2 tinyrainbow: 1.2.0 - '@vitest/mocker@2.1.8(vite@5.4.11(@types/node@20.17.10))': + '@vitest/mocker@2.1.8(vite@5.4.11(@types/node@22.10.2))': dependencies: '@vitest/spy': 2.1.8 estree-walker: 3.0.3 magic-string: 0.30.14 optionalDependencies: - vite: 5.4.11(@types/node@20.17.10) + vite: 5.4.11(@types/node@22.10.2) '@vitest/pretty-format@2.1.8': dependencies: @@ -2299,9 +2299,9 @@ snapshots: picocolors: 1.1.1 source-map-js: 1.2.1 - prisma@5.22.0: + prisma@6.0.1: dependencies: - '@prisma/engines': 5.22.0 + '@prisma/engines': 6.0.1 optionalDependencies: fsevents: 2.3.3 @@ -2444,15 +2444,15 @@ snapshots: uint8array-extras@1.4.0: {} - undici-types@6.19.8: {} + undici-types@6.20.0: {} - vite-node@2.1.8(@types/node@20.17.10): + vite-node@2.1.8(@types/node@22.10.2): dependencies: cac: 6.7.14 debug: 4.3.7 es-module-lexer: 1.5.4 pathe: 1.1.2 - vite: 5.4.11(@types/node@20.17.10) + vite: 5.4.11(@types/node@22.10.2) transitivePeerDependencies: - '@types/node' - less @@ -2464,19 +2464,19 @@ snapshots: - supports-color - terser - vite@5.4.11(@types/node@20.17.10): + vite@5.4.11(@types/node@22.10.2): dependencies: esbuild: 0.21.5 postcss: 8.4.49 rollup: 4.28.0 optionalDependencies: - '@types/node': 20.17.10 + '@types/node': 22.10.2 fsevents: 2.3.3 - vitest@2.1.8(@types/node@20.17.10): + vitest@2.1.8(@types/node@22.10.2): dependencies: '@vitest/expect': 2.1.8 - '@vitest/mocker': 2.1.8(vite@5.4.11(@types/node@20.17.10)) + '@vitest/mocker': 2.1.8(vite@5.4.11(@types/node@22.10.2)) '@vitest/pretty-format': 2.1.8 '@vitest/runner': 2.1.8 '@vitest/snapshot': 2.1.8 @@ -2492,11 +2492,11 @@ snapshots: tinyexec: 0.3.1 tinypool: 1.0.2 tinyrainbow: 1.2.0 - vite: 5.4.11(@types/node@20.17.10) - vite-node: 2.1.8(@types/node@20.17.10) + vite: 5.4.11(@types/node@22.10.2) + vite-node: 2.1.8(@types/node@22.10.2) why-is-node-running: 2.3.0 optionalDependencies: - '@types/node': 20.17.10 + '@types/node': 22.10.2 transitivePeerDependencies: - less - lightningcss