From d315c6fee19240ec244d9d4b1d9f73e8dae54dd0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 8 Jan 2025 18:40:29 +0000 Subject: [PATCH 01/10] chore(deps): bump next in the npm_and_yarn group across 1 directory Bumps the npm_and_yarn group with 1 update in the / directory: [next](https://github.com/vercel/next.js). Updates `next` from 15.1.3 to 15.1.4 - [Release notes](https://github.com/vercel/next.js/releases) - [Changelog](https://github.com/vercel/next.js/blob/canary/release.js) - [Commits](https://github.com/vercel/next.js/compare/v15.1.3...v15.1.4) --- updated-dependencies: - dependency-name: next dependency-type: direct:production dependency-group: npm_and_yarn ... Signed-off-by: dependabot[bot] --- apps/api/package.json | 2 +- apps/app/package.json | 2 +- apps/status/package.json | 2 +- apps/www/package.json | 2 +- package.json | 2 +- pnpm-lock.yaml | 209 +++++++++++++++------------------------ 6 files changed, 86 insertions(+), 133 deletions(-) diff --git a/apps/api/package.json b/apps/api/package.json index 5de6328..95933b0 100644 --- a/apps/api/package.json +++ b/apps/api/package.json @@ -31,7 +31,7 @@ "hono": "^4.6.9", "nanoid": "^5.0.9", - "next": "15.1.3", + "next": "15.1.4", "prisma": "^5.22.0", "react": "19.0.0-rc-02c0e824-20241028", diff --git a/apps/app/package.json b/apps/app/package.json index 8a5626a..f7261b7 100644 --- a/apps/app/package.json +++ b/apps/app/package.json @@ -54,7 +54,7 @@ "input-otp": "^1.4.1", "lucide-react": "^0.454.0", "motion": "^11.12.0", - "next": "15.1.3", + "next": "15.1.4", "next-themes": "^0.4.3", "react": "19.0.0-rc-02c0e824-20241028", "react-beautiful-dnd": "^13.1.1", diff --git a/apps/status/package.json b/apps/status/package.json index cb6546c..b14682d 100644 --- a/apps/status/package.json +++ b/apps/status/package.json @@ -19,7 +19,7 @@ "clsx": "^2.1.1", "geist": "^1.3.1", "lucide-react": "^0.454.0", - "next": "15.1.3", + "next": "15.1.4", "next-themes": "^0.4.3", "react": "19.0.0-rc-66855b96-20241106", "react-dom": "19.0.0-rc-66855b96-20241106", diff --git a/apps/www/package.json b/apps/www/package.json index 320b9df..8c18134 100644 --- a/apps/www/package.json +++ b/apps/www/package.json @@ -44,7 +44,7 @@ "geist": "^1.3.1", "lucide-react": "^0.454.0", "motion": "^11.13.1", - "next": "15.1.3", + "next": "15.1.4", "next-themes": "^0.4.3", "profanity-validator": "^1.3.6", "react": "19.0.0-rc-02c0e824-20241028", diff --git a/package.json b/package.json index 3c4dcfc..0c93719 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "eslint": "^8", "eslint-config-next": "15.0.2", "hono": "^4.6.9", - "next": "15.1.3", + "next": "15.1.4", "next-auth": "5.0.0-beta.25", "postcss": "^8", "posthog-js": "^1.184.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7d7a970..27d99d2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -30,11 +30,11 @@ importers: specifier: ^4.6.9 version: 4.6.16 next: - specifier: 15.1.3 - version: 15.1.3(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106) + specifier: 15.1.4 + version: 15.1.4(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106) next-auth: specifier: 5.0.0-beta.25 - version: 5.0.0-beta.25(next@15.1.3(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106) + version: 5.0.0-beta.25(next@15.1.4(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106) postcss: specifier: ^8 version: 8.4.49 @@ -115,8 +115,8 @@ importers: specifier: ^5.0.9 version: 5.0.9 next: - specifier: 15.1.3 - version: 15.1.3(@babel/core@7.26.0)(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0-rc-02c0e824-20241028(react@19.0.0-rc-02c0e824-20241028))(react@19.0.0-rc-02c0e824-20241028) + specifier: 15.1.4 + version: 15.1.4(@babel/core@7.26.0)(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0-rc-02c0e824-20241028(react@19.0.0-rc-02c0e824-20241028))(react@19.0.0-rc-02c0e824-20241028) prisma: specifier: ^5.22.0 version: 5.22.0 @@ -255,7 +255,7 @@ importers: version: 11.16.1(react-dom@19.0.0-rc-02c0e824-20241028(react@19.0.0-rc-02c0e824-20241028))(react@19.0.0-rc-02c0e824-20241028) geist: specifier: ^1.3.1 - version: 1.3.1(next@15.1.3(@babel/core@7.26.0)(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0-rc-02c0e824-20241028(react@19.0.0-rc-02c0e824-20241028))(react@19.0.0-rc-02c0e824-20241028)) + version: 1.3.1(next@15.1.4(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0-rc-02c0e824-20241028(react@19.0.0-rc-02c0e824-20241028))(react@19.0.0-rc-02c0e824-20241028)) input-otp: specifier: ^1.4.1 version: 1.4.2(react-dom@19.0.0-rc-02c0e824-20241028(react@19.0.0-rc-02c0e824-20241028))(react@19.0.0-rc-02c0e824-20241028) @@ -266,8 +266,8 @@ importers: specifier: ^11.12.0 version: 11.16.1(react-dom@19.0.0-rc-02c0e824-20241028(react@19.0.0-rc-02c0e824-20241028))(react@19.0.0-rc-02c0e824-20241028) next: - specifier: 15.1.3 - version: 15.1.3(@babel/core@7.26.0)(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0-rc-02c0e824-20241028(react@19.0.0-rc-02c0e824-20241028))(react@19.0.0-rc-02c0e824-20241028) + specifier: 15.1.4 + version: 15.1.4(@babel/core@7.26.0)(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0-rc-02c0e824-20241028(react@19.0.0-rc-02c0e824-20241028))(react@19.0.0-rc-02c0e824-20241028) next-themes: specifier: ^0.4.3 version: 0.4.4(react-dom@19.0.0-rc-02c0e824-20241028(react@19.0.0-rc-02c0e824-20241028))(react@19.0.0-rc-02c0e824-20241028) @@ -288,7 +288,7 @@ importers: version: 9.14.1(react-dom@19.0.0-rc-02c0e824-20241028(react@19.0.0-rc-02c0e824-20241028))(react@19.0.0-rc-02c0e824-20241028) react-scan: specifier: ^0.0.54 - version: 0.0.54(next@15.1.3(@babel/core@7.26.0)(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0-rc-02c0e824-20241028(react@19.0.0-rc-02c0e824-20241028))(react@19.0.0-rc-02c0e824-20241028))(react-dom@19.0.0-rc-02c0e824-20241028(react@19.0.0-rc-02c0e824-20241028))(react@19.0.0-rc-02c0e824-20241028)(rollup@4.30.1) + version: 0.0.54(next@15.1.4(@babel/core@7.26.0)(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0-rc-02c0e824-20241028(react@19.0.0-rc-02c0e824-20241028))(react@19.0.0-rc-02c0e824-20241028))(react-dom@19.0.0-rc-02c0e824-20241028(react@19.0.0-rc-02c0e824-20241028))(react@19.0.0-rc-02c0e824-20241028)(rollup@4.30.1) react-spinners: specifier: ^0.14.1 version: 0.14.1(react-dom@19.0.0-rc-02c0e824-20241028(react@19.0.0-rc-02c0e824-20241028))(react@19.0.0-rc-02c0e824-20241028) @@ -364,13 +364,13 @@ importers: version: 2.1.1 geist: specifier: ^1.3.1 - version: 1.3.1(next@15.1.3(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106)) + version: 1.3.1(next@15.1.4(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106)) lucide-react: specifier: ^0.454.0 version: 0.454.0(react@19.0.0-rc-66855b96-20241106) next: - specifier: 15.1.3 - version: 15.1.3(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106) + specifier: 15.1.4 + version: 15.1.4(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106) next-themes: specifier: ^0.4.3 version: 0.4.4(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106) @@ -497,7 +497,7 @@ importers: version: 11.16.1(react-dom@19.0.0-rc-02c0e824-20241028(react@19.0.0-rc-02c0e824-20241028))(react@19.0.0-rc-02c0e824-20241028) geist: specifier: ^1.3.1 - version: 1.3.1(next@15.1.3(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0-rc-02c0e824-20241028(react@19.0.0-rc-02c0e824-20241028))(react@19.0.0-rc-02c0e824-20241028)) + version: 1.3.1(next@15.1.4(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0-rc-02c0e824-20241028(react@19.0.0-rc-02c0e824-20241028))(react@19.0.0-rc-02c0e824-20241028)) lucide-react: specifier: ^0.454.0 version: 0.454.0(react@19.0.0-rc-02c0e824-20241028) @@ -505,8 +505,8 @@ importers: specifier: ^11.13.1 version: 11.16.1(react-dom@19.0.0-rc-02c0e824-20241028(react@19.0.0-rc-02c0e824-20241028))(react@19.0.0-rc-02c0e824-20241028) next: - specifier: 15.1.3 - version: 15.1.3(@babel/core@7.26.0)(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0-rc-02c0e824-20241028(react@19.0.0-rc-02c0e824-20241028))(react@19.0.0-rc-02c0e824-20241028) + specifier: 15.1.4 + version: 15.1.4(@babel/core@7.26.0)(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0-rc-02c0e824-20241028(react@19.0.0-rc-02c0e824-20241028))(react@19.0.0-rc-02c0e824-20241028) next-themes: specifier: ^0.4.3 version: 0.4.4(react-dom@19.0.0-rc-02c0e824-20241028(react@19.0.0-rc-02c0e824-20241028))(react@19.0.0-rc-02c0e824-20241028) @@ -2297,8 +2297,8 @@ packages: '@next/env@14.2.10': resolution: {integrity: sha512-dZIu93Bf5LUtluBXIv4woQw2cZVZ2DJTjax5/5DOs3lzEOeKLy7GxRSr4caK9/SCPdaW6bCgpye6+n4Dh9oJPw==} - '@next/env@15.1.3': - resolution: {integrity: sha512-Q1tXwQCGWyA3ehMph3VO+E6xFPHDKdHFYosadt0F78EObYxPio0S09H9UGYznDe6Wc8eLKLG89GqcFJJDiK5xw==} + '@next/env@15.1.4': + resolution: {integrity: sha512-2fZ5YZjedi5AGaeoaC0B20zGntEHRhi2SdWcu61i48BllODcAmmtj8n7YarSPt4DaTsJaBFdxQAVEVzgmx2Zpw==} '@next/eslint-plugin-next@15.0.2': resolution: {integrity: sha512-R9Jc7T6Ge0txjmqpPwqD8vx6onQjynO9JT73ArCYiYPvSrwYXepH/UY/WdKDY8JPWJl72sAE4iGMHPeQ5xdEWg==} @@ -2312,8 +2312,8 @@ packages: cpu: [arm64] os: [darwin] - '@next/swc-darwin-arm64@15.1.3': - resolution: {integrity: sha512-aZtmIh8jU89DZahXQt1La0f2EMPt/i7W+rG1sLtYJERsP7GRnNFghsciFpQcKHcGh4dUiyTB5C1X3Dde/Gw8gg==} + '@next/swc-darwin-arm64@15.1.4': + resolution: {integrity: sha512-wBEMBs+np+R5ozN1F8Y8d/Dycns2COhRnkxRc+rvnbXke5uZBHkUGFgWxfTXn5rx7OLijuUhyfB+gC/ap58dDw==} engines: {node: '>= 10'} cpu: [arm64] os: [darwin] @@ -2324,8 +2324,8 @@ packages: cpu: [x64] os: [darwin] - '@next/swc-darwin-x64@15.1.3': - resolution: {integrity: sha512-aw8901rjkVBK5mbq5oV32IqkJg+CQa6aULNlN8zyCWSsePzEG3kpDkAFkkTOh3eJ0p95KbkLyWBzslQKamXsLA==} + '@next/swc-darwin-x64@15.1.4': + resolution: {integrity: sha512-7sgf5rM7Z81V9w48F02Zz6DgEJulavC0jadab4ZsJ+K2sxMNK0/BtF8J8J3CxnsJN3DGcIdC260wEKssKTukUw==} engines: {node: '>= 10'} cpu: [x64] os: [darwin] @@ -2336,8 +2336,8 @@ packages: cpu: [arm64] os: [linux] - '@next/swc-linux-arm64-gnu@15.1.3': - resolution: {integrity: sha512-YbdaYjyHa4fPK4GR4k2XgXV0p8vbU1SZh7vv6El4bl9N+ZSiMfbmqCuCuNU1Z4ebJMumafaz6UCC2zaJCsdzjw==} + '@next/swc-linux-arm64-gnu@15.1.4': + resolution: {integrity: sha512-JaZlIMNaJenfd55kjaLWMfok+vWBlcRxqnRoZrhFQrhM1uAehP3R0+Aoe+bZOogqlZvAz53nY/k3ZyuKDtT2zQ==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] @@ -2348,8 +2348,8 @@ packages: cpu: [arm64] os: [linux] - '@next/swc-linux-arm64-musl@15.1.3': - resolution: {integrity: sha512-qgH/aRj2xcr4BouwKG3XdqNu33SDadqbkqB6KaZZkozar857upxKakbRllpqZgWl/NDeSCBYPmUAZPBHZpbA0w==} + '@next/swc-linux-arm64-musl@15.1.4': + resolution: {integrity: sha512-7EBBjNoyTO2ipMDgCiORpwwOf5tIueFntKjcN3NK+GAQD7OzFJe84p7a2eQUeWdpzZvhVXuAtIen8QcH71ZCOQ==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] @@ -2360,8 +2360,8 @@ packages: cpu: [x64] os: [linux] - '@next/swc-linux-x64-gnu@15.1.3': - resolution: {integrity: sha512-uzafnTFwZCPN499fNVnS2xFME8WLC9y7PLRs/yqz5lz1X/ySoxfaK2Hbz74zYUdEg+iDZPd8KlsWaw9HKkLEVw==} + '@next/swc-linux-x64-gnu@15.1.4': + resolution: {integrity: sha512-9TGEgOycqZFuADyFqwmK/9g6S0FYZ3tphR4ebcmCwhL8Y12FW8pIBKJvSwV+UBjMkokstGNH+9F8F031JZKpHw==} engines: {node: '>= 10'} cpu: [x64] os: [linux] @@ -2372,8 +2372,8 @@ packages: cpu: [x64] os: [linux] - '@next/swc-linux-x64-musl@15.1.3': - resolution: {integrity: sha512-el6GUFi4SiDYnMTTlJJFMU+GHvw0UIFnffP1qhurrN1qJV3BqaSRUjkDUgVV44T6zpw1Lc6u+yn0puDKHs+Sbw==} + '@next/swc-linux-x64-musl@15.1.4': + resolution: {integrity: sha512-0578bLRVDJOh+LdIoKvgNDz77+Bd85c5JrFgnlbI1SM3WmEQvsjxTA8ATu9Z9FCiIS/AliVAW2DV/BDwpXbtiQ==} engines: {node: '>= 10'} cpu: [x64] os: [linux] @@ -2384,8 +2384,8 @@ packages: cpu: [arm64] os: [win32] - '@next/swc-win32-arm64-msvc@15.1.3': - resolution: {integrity: sha512-6RxKjvnvVMM89giYGI1qye9ODsBQpHSHVo8vqA8xGhmRPZHDQUE4jcDbhBwK0GnFMqBnu+XMg3nYukNkmLOLWw==} + '@next/swc-win32-arm64-msvc@15.1.4': + resolution: {integrity: sha512-JgFCiV4libQavwII+kncMCl30st0JVxpPOtzWcAI2jtum4HjYaclobKhj+JsRu5tFqMtA5CJIa0MvYyuu9xjjQ==} engines: {node: '>= 10'} cpu: [arm64] os: [win32] @@ -2402,8 +2402,8 @@ packages: cpu: [x64] os: [win32] - '@next/swc-win32-x64-msvc@15.1.3': - resolution: {integrity: sha512-VId/f5blObG7IodwC5Grf+aYP0O8Saz1/aeU3YcWqNdIUAmFQY3VEPKPaIzfv32F/clvanOb2K2BR5DtDs6XyQ==} + '@next/swc-win32-x64-msvc@15.1.4': + resolution: {integrity: sha512-xxsJy9wzq7FR5SqPCUqdgSXiNXrMuidgckBa8nH9HtjjxsilgcN6VgXF6tZ3uEWuVEadotQJI8/9EQ6guTC4Yw==} engines: {node: '>= 10'} cpu: [x64] os: [win32] @@ -6745,8 +6745,8 @@ packages: sass: optional: true - next@15.1.3: - resolution: {integrity: sha512-5igmb8N8AEhWDYzogcJvtcRDU6n4cMGtBklxKD4biYv4LXN8+awc/bbQ2IM2NQHdVPgJ6XumYXfo3hBtErg1DA==} + next@15.1.4: + resolution: {integrity: sha512-mTaq9dwaSuwwOrcu3ebjDYObekkxRnXpuVL21zotM8qE2W0HBOdVIdg2Li9QjMEZrj73LN96LcWcz62V19FjAg==} engines: {node: ^18.18.0 || ^19.8.0 || >= 20.0.0} hasBin: true peerDependencies: @@ -9608,7 +9608,7 @@ snapshots: '@next/env@14.2.10': {} - '@next/env@15.1.3': {} + '@next/env@15.1.4': {} '@next/eslint-plugin-next@15.0.2': dependencies: @@ -9621,43 +9621,43 @@ snapshots: '@next/swc-darwin-arm64@14.2.10': optional: true - '@next/swc-darwin-arm64@15.1.3': + '@next/swc-darwin-arm64@15.1.4': optional: true '@next/swc-darwin-x64@14.2.10': optional: true - '@next/swc-darwin-x64@15.1.3': + '@next/swc-darwin-x64@15.1.4': optional: true '@next/swc-linux-arm64-gnu@14.2.10': optional: true - '@next/swc-linux-arm64-gnu@15.1.3': + '@next/swc-linux-arm64-gnu@15.1.4': optional: true '@next/swc-linux-arm64-musl@14.2.10': optional: true - '@next/swc-linux-arm64-musl@15.1.3': + '@next/swc-linux-arm64-musl@15.1.4': optional: true '@next/swc-linux-x64-gnu@14.2.10': optional: true - '@next/swc-linux-x64-gnu@15.1.3': + '@next/swc-linux-x64-gnu@15.1.4': optional: true '@next/swc-linux-x64-musl@14.2.10': optional: true - '@next/swc-linux-x64-musl@15.1.3': + '@next/swc-linux-x64-musl@15.1.4': optional: true '@next/swc-win32-arm64-msvc@14.2.10': optional: true - '@next/swc-win32-arm64-msvc@15.1.3': + '@next/swc-win32-arm64-msvc@15.1.4': optional: true '@next/swc-win32-ia32-msvc@14.2.10': @@ -9666,7 +9666,7 @@ snapshots: '@next/swc-win32-x64-msvc@14.2.10': optional: true - '@next/swc-win32-x64-msvc@15.1.3': + '@next/swc-win32-x64-msvc@15.1.4': optional: true '@nicolo-ribaudo/eslint-scope-5-internals@5.1.1-v1': @@ -12262,7 +12262,7 @@ snapshots: axios@1.7.4(debug@4.4.0): dependencies: follow-redirects: 1.15.9(debug@4.4.0) - form-data: 4.0.0 + form-data: 4.0.1 proxy-from-env: 1.1.0 transitivePeerDependencies: - debug @@ -13121,7 +13121,7 @@ snapshots: '@typescript-eslint/parser': 7.18.0(eslint@8.57.1)(typescript@5.7.2) eslint: 8.57.1 eslint-import-resolver-node: 0.3.9 - eslint-import-resolver-typescript: 3.7.0(eslint-plugin-import@2.31.0(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.7.2))(eslint@8.57.1))(eslint@8.57.1) + eslint-import-resolver-typescript: 3.7.0(eslint-plugin-import@2.31.0)(eslint@8.57.1) eslint-plugin-import: 2.31.0(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.7.2))(eslint-import-resolver-typescript@3.7.0)(eslint@8.57.1) eslint-plugin-jsx-a11y: 6.10.2(eslint@8.57.1) eslint-plugin-react: 7.37.3(eslint@8.57.1) @@ -13141,7 +13141,7 @@ snapshots: '@typescript-eslint/parser': 7.18.0(eslint@8.57.1)(typescript@5.7.2) eslint: 8.57.1 eslint-import-resolver-node: 0.3.9 - eslint-import-resolver-typescript: 3.7.0(eslint-plugin-import@2.31.0(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.7.2))(eslint@8.57.1))(eslint@8.57.1) + eslint-import-resolver-typescript: 3.7.0(eslint-plugin-import@2.31.0)(eslint@8.57.1) eslint-plugin-import: 2.31.0(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.7.2))(eslint-import-resolver-typescript@3.7.0)(eslint@8.57.1) eslint-plugin-jsx-a11y: 6.10.2(eslint@8.57.1) eslint-plugin-react: 7.37.3(eslint@8.57.1) @@ -13174,22 +13174,6 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-import-resolver-typescript@3.7.0(eslint-plugin-import@2.31.0(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.7.2))(eslint@8.57.1))(eslint@8.57.1): - dependencies: - '@nolyfill/is-core-module': 1.0.39 - debug: 4.4.0 - enhanced-resolve: 5.18.0 - eslint: 8.57.1 - fast-glob: 3.3.3 - get-tsconfig: 4.8.1 - is-bun-module: 1.3.0 - is-glob: 4.0.3 - stable-hash: 0.0.4 - optionalDependencies: - eslint-plugin-import: 2.31.0(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.7.2))(eslint-import-resolver-typescript@3.7.0)(eslint@8.57.1) - transitivePeerDependencies: - - supports-color - eslint-import-resolver-typescript@3.7.0(eslint-plugin-import@2.31.0)(eslint@8.57.1): dependencies: '@nolyfill/is-core-module': 1.0.39 @@ -13202,7 +13186,7 @@ snapshots: is-glob: 4.0.3 stable-hash: 0.0.4 optionalDependencies: - eslint-plugin-import: 2.31.0(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.5.4))(eslint@8.57.1) + eslint-plugin-import: 2.31.0(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.7.2))(eslint-import-resolver-typescript@3.7.0)(eslint@8.57.1) transitivePeerDependencies: - supports-color @@ -13216,14 +13200,14 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-module-utils@2.12.0(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.7.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.7.0(eslint-plugin-import@2.31.0(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.7.2))(eslint@8.57.1))(eslint@8.57.1))(eslint@8.57.1): + eslint-module-utils@2.12.0(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.7.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.7.0)(eslint@8.57.1): dependencies: debug: 3.2.7 optionalDependencies: '@typescript-eslint/parser': 7.18.0(eslint@8.57.1)(typescript@5.7.2) eslint: 8.57.1 eslint-import-resolver-node: 0.3.9 - eslint-import-resolver-typescript: 3.7.0(eslint-plugin-import@2.31.0(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.7.2))(eslint@8.57.1))(eslint@8.57.1) + eslint-import-resolver-typescript: 3.7.0(eslint-plugin-import@2.31.0)(eslint@8.57.1) transitivePeerDependencies: - supports-color @@ -13273,7 +13257,7 @@ snapshots: doctrine: 2.1.0 eslint: 8.57.1 eslint-import-resolver-node: 0.3.9 - eslint-module-utils: 2.12.0(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.7.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.7.0(eslint-plugin-import@2.31.0(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.7.2))(eslint@8.57.1))(eslint@8.57.1))(eslint@8.57.1) + eslint-module-utils: 2.12.0(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.7.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.7.0)(eslint@8.57.1) hasown: 2.0.2 is-core-module: 2.16.1 is-glob: 4.0.3 @@ -13694,17 +13678,13 @@ snapshots: functions-have-names@1.2.3: {} - geist@1.3.1(next@15.1.3(@babel/core@7.26.0)(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0-rc-02c0e824-20241028(react@19.0.0-rc-02c0e824-20241028))(react@19.0.0-rc-02c0e824-20241028)): - dependencies: - next: 15.1.3(@babel/core@7.26.0)(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0-rc-02c0e824-20241028(react@19.0.0-rc-02c0e824-20241028))(react@19.0.0-rc-02c0e824-20241028) - - geist@1.3.1(next@15.1.3(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0-rc-02c0e824-20241028(react@19.0.0-rc-02c0e824-20241028))(react@19.0.0-rc-02c0e824-20241028)): + geist@1.3.1(next@15.1.4(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0-rc-02c0e824-20241028(react@19.0.0-rc-02c0e824-20241028))(react@19.0.0-rc-02c0e824-20241028)): dependencies: - next: 15.1.3(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0-rc-02c0e824-20241028(react@19.0.0-rc-02c0e824-20241028))(react@19.0.0-rc-02c0e824-20241028) + next: 15.1.4(@babel/core@7.26.0)(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0-rc-02c0e824-20241028(react@19.0.0-rc-02c0e824-20241028))(react@19.0.0-rc-02c0e824-20241028) - geist@1.3.1(next@15.1.3(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106)): + geist@1.3.1(next@15.1.4(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106)): dependencies: - next: 15.1.3(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106) + next: 15.1.4(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106) gensync@1.0.0-beta.2: {} @@ -13953,7 +13933,7 @@ snapshots: isstream: 0.1.2 jsonwebtoken: 9.0.2 mime-types: 2.1.35 - retry-axios: 2.6.0(axios@1.7.4(debug@4.4.0)) + retry-axios: 2.6.0(axios@1.7.4) tough-cookie: 4.1.4 transitivePeerDependencies: - supports-color @@ -14909,10 +14889,10 @@ snapshots: negotiator@0.6.3: {} - next-auth@5.0.0-beta.25(next@15.1.3(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106): + next-auth@5.0.0-beta.25(next@15.1.4(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106): dependencies: '@auth/core': 0.37.2 - next: 15.1.3(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106) + next: 15.1.4(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106) react: 19.0.0-rc-66855b96-20241106 next-themes@0.4.4(react-dom@19.0.0-rc-02c0e824-20241028(react@19.0.0-rc-02c0e824-20241028))(react@19.0.0-rc-02c0e824-20241028): @@ -14952,36 +14932,9 @@ snapshots: - '@babel/core' - babel-plugin-macros - next@15.1.3(@babel/core@7.26.0)(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0-rc-02c0e824-20241028(react@19.0.0-rc-02c0e824-20241028))(react@19.0.0-rc-02c0e824-20241028): - dependencies: - '@next/env': 15.1.3 - '@swc/counter': 0.1.3 - '@swc/helpers': 0.5.15 - busboy: 1.6.0 - caniuse-lite: 1.0.30001690 - postcss: 8.4.31 - react: 19.0.0-rc-02c0e824-20241028 - react-dom: 19.0.0-rc-02c0e824-20241028(react@19.0.0-rc-02c0e824-20241028) - styled-jsx: 5.1.6(@babel/core@7.26.0)(react@19.0.0-rc-02c0e824-20241028) - optionalDependencies: - '@next/swc-darwin-arm64': 15.1.3 - '@next/swc-darwin-x64': 15.1.3 - '@next/swc-linux-arm64-gnu': 15.1.3 - '@next/swc-linux-arm64-musl': 15.1.3 - '@next/swc-linux-x64-gnu': 15.1.3 - '@next/swc-linux-x64-musl': 15.1.3 - '@next/swc-win32-arm64-msvc': 15.1.3 - '@next/swc-win32-x64-msvc': 15.1.3 - '@opentelemetry/api': 1.9.0 - '@playwright/test': 1.49.1 - sharp: 0.33.5 - transitivePeerDependencies: - - '@babel/core' - - babel-plugin-macros - - next@15.1.3(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0-rc-02c0e824-20241028(react@19.0.0-rc-02c0e824-20241028))(react@19.0.0-rc-02c0e824-20241028): + next@15.1.4(@babel/core@7.26.0)(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0-rc-02c0e824-20241028(react@19.0.0-rc-02c0e824-20241028))(react@19.0.0-rc-02c0e824-20241028): dependencies: - '@next/env': 15.1.3 + '@next/env': 15.1.4 '@swc/counter': 0.1.3 '@swc/helpers': 0.5.15 busboy: 1.6.0 @@ -14991,14 +14944,14 @@ snapshots: react-dom: 19.0.0-rc-02c0e824-20241028(react@19.0.0-rc-02c0e824-20241028) styled-jsx: 5.1.6(@babel/core@7.26.0)(react@19.0.0-rc-02c0e824-20241028) optionalDependencies: - '@next/swc-darwin-arm64': 15.1.3 - '@next/swc-darwin-x64': 15.1.3 - '@next/swc-linux-arm64-gnu': 15.1.3 - '@next/swc-linux-arm64-musl': 15.1.3 - '@next/swc-linux-x64-gnu': 15.1.3 - '@next/swc-linux-x64-musl': 15.1.3 - '@next/swc-win32-arm64-msvc': 15.1.3 - '@next/swc-win32-x64-msvc': 15.1.3 + '@next/swc-darwin-arm64': 15.1.4 + '@next/swc-darwin-x64': 15.1.4 + '@next/swc-linux-arm64-gnu': 15.1.4 + '@next/swc-linux-arm64-musl': 15.1.4 + '@next/swc-linux-x64-gnu': 15.1.4 + '@next/swc-linux-x64-musl': 15.1.4 + '@next/swc-win32-arm64-msvc': 15.1.4 + '@next/swc-win32-x64-msvc': 15.1.4 '@opentelemetry/api': 1.9.0 '@playwright/test': 1.49.1 sharp: 0.33.5 @@ -15006,9 +14959,9 @@ snapshots: - '@babel/core' - babel-plugin-macros - next@15.1.3(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106): + next@15.1.4(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106): dependencies: - '@next/env': 15.1.3 + '@next/env': 15.1.4 '@swc/counter': 0.1.3 '@swc/helpers': 0.5.15 busboy: 1.6.0 @@ -15018,14 +14971,14 @@ snapshots: react-dom: 19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106) styled-jsx: 5.1.6(react@19.0.0-rc-66855b96-20241106) optionalDependencies: - '@next/swc-darwin-arm64': 15.1.3 - '@next/swc-darwin-x64': 15.1.3 - '@next/swc-linux-arm64-gnu': 15.1.3 - '@next/swc-linux-arm64-musl': 15.1.3 - '@next/swc-linux-x64-gnu': 15.1.3 - '@next/swc-linux-x64-musl': 15.1.3 - '@next/swc-win32-arm64-msvc': 15.1.3 - '@next/swc-win32-x64-msvc': 15.1.3 + '@next/swc-darwin-arm64': 15.1.4 + '@next/swc-darwin-x64': 15.1.4 + '@next/swc-linux-arm64-gnu': 15.1.4 + '@next/swc-linux-arm64-musl': 15.1.4 + '@next/swc-linux-x64-gnu': 15.1.4 + '@next/swc-linux-x64-musl': 15.1.4 + '@next/swc-win32-arm64-msvc': 15.1.4 + '@next/swc-win32-x64-msvc': 15.1.4 '@opentelemetry/api': 1.9.0 '@playwright/test': 1.49.1 sharp: 0.33.5 @@ -15571,7 +15524,7 @@ snapshots: optionalDependencies: '@types/react': 18.0.26 - react-scan@0.0.54(next@15.1.3(@babel/core@7.26.0)(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0-rc-02c0e824-20241028(react@19.0.0-rc-02c0e824-20241028))(react@19.0.0-rc-02c0e824-20241028))(react-dom@19.0.0-rc-02c0e824-20241028(react@19.0.0-rc-02c0e824-20241028))(react@19.0.0-rc-02c0e824-20241028)(rollup@4.30.1): + react-scan@0.0.54(next@15.1.4(@babel/core@7.26.0)(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0-rc-02c0e824-20241028(react@19.0.0-rc-02c0e824-20241028))(react@19.0.0-rc-02c0e824-20241028))(react-dom@19.0.0-rc-02c0e824-20241028(react@19.0.0-rc-02c0e824-20241028))(react@19.0.0-rc-02c0e824-20241028)(rollup@4.30.1): dependencies: '@babel/core': 7.26.0 '@babel/generator': 7.26.3 @@ -15592,7 +15545,7 @@ snapshots: react-dom: 19.0.0-rc-02c0e824-20241028(react@19.0.0-rc-02c0e824-20241028) tsx: 4.19.2 optionalDependencies: - next: 15.1.3(@babel/core@7.26.0)(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0-rc-02c0e824-20241028(react@19.0.0-rc-02c0e824-20241028))(react@19.0.0-rc-02c0e824-20241028) + next: 15.1.4(@babel/core@7.26.0)(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@19.0.0-rc-02c0e824-20241028(react@19.0.0-rc-02c0e824-20241028))(react@19.0.0-rc-02c0e824-20241028) unplugin: 2.1.0 transitivePeerDependencies: - rollup @@ -15885,7 +15838,7 @@ snapshots: onetime: 5.1.2 signal-exit: 3.0.7 - retry-axios@2.6.0(axios@1.7.4(debug@4.4.0)): + retry-axios@2.6.0(axios@1.7.4): dependencies: axios: 1.7.4(debug@4.4.0) From d173942ccbd43687d8004992c9e390964204e4a0 Mon Sep 17 00:00:00 2001 From: Saidev Dhal Date: Thu, 9 Jan 2025 00:36:05 +0530 Subject: [PATCH 02/10] fix schema --- packages/db/package.json | 7 ++++-- .../20250108190401_onboarding/migration.sql | 11 +++++++++ .../db/prisma/migrations/migration_lock.toml | 2 +- packages/db/prisma/schema.prisma | 23 ++++++++++--------- 4 files changed, 29 insertions(+), 14 deletions(-) create mode 100644 packages/db/prisma/migrations/20250108190401_onboarding/migration.sql diff --git a/packages/db/package.json b/packages/db/package.json index cb386ce..32c0ffe 100644 --- a/packages/db/package.json +++ b/packages/db/package.json @@ -6,8 +6,11 @@ ".": "./src/index.ts" }, "scripts": { - "db:generate": "prisma generate --no-engine", - "db:push": "prisma db push --skip-generate" + "db:studio": "prisma studio", + "db:validate": "prisma validate", + "db:generate": "pnpm db:validate && prisma generate --no-engine", + "db:push": "prisma db push --skip-generate", + "db:migrate": "pnpm db:validate && prisma migrate dev" }, "dependencies": { "@prisma/client": "^6.0.1", diff --git a/packages/db/prisma/migrations/20250108190401_onboarding/migration.sql b/packages/db/prisma/migrations/20250108190401_onboarding/migration.sql new file mode 100644 index 0000000..0050c47 --- /dev/null +++ b/packages/db/prisma/migrations/20250108190401_onboarding/migration.sql @@ -0,0 +1,11 @@ +/* + Warnings: + + - Added the required column `userId` to the `Project` table without a default value. This is not possible if the table is not empty. + +*/ +-- AlterTable +ALTER TABLE "Project" ADD COLUMN "userId" TEXT NOT NULL; + +-- AddForeignKey +ALTER TABLE "Project" ADD CONSTRAINT "Project_userId_fkey" FOREIGN KEY ("userId") REFERENCES "user"("id") ON DELETE CASCADE ON UPDATE CASCADE; diff --git a/packages/db/prisma/migrations/migration_lock.toml b/packages/db/prisma/migrations/migration_lock.toml index fbffa92..648c57f 100644 --- a/packages/db/prisma/migrations/migration_lock.toml +++ b/packages/db/prisma/migrations/migration_lock.toml @@ -1,3 +1,3 @@ # Please do not edit this file manually -# It should be added in your version-control system (i.e. Git) +# It should be added in your version-control system (e.g., Git) provider = "postgresql" \ No newline at end of file diff --git a/packages/db/prisma/schema.prisma b/packages/db/prisma/schema.prisma index 2b2d141..b2b67a0 100644 --- a/packages/db/prisma/schema.prisma +++ b/packages/db/prisma/schema.prisma @@ -21,6 +21,7 @@ model User { sessions Session[] accounts Account[] workspaces Workspace[] + projects Project[] role String @default("user") @@unique([email]) @@ -91,14 +92,14 @@ model Workspace { } model Project { - id String @id @default(uuid()) - name String - ownerId String - slug String - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - workspaceId String - workspace Workspace @relation(fields: [workspaceId], references: [id], onDelete: Cascade) - user User @relation(fields: [userId], references: [id], onDelete: Cascade) - -} \ No newline at end of file + id String @id @default(uuid()) + name String + ownerId String + slug String + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt + workspaceId String + workspace Workspace @relation(fields: [workspaceId], references: [id], onDelete: Cascade) + userId String + user User @relation(fields: [userId], references: [id], onDelete: Cascade) +} From 6e9294c61ff6117c15315e26a921aa22ccaafadc Mon Sep 17 00:00:00 2001 From: Saidev Dhal Date: Thu, 9 Jan 2025 00:45:33 +0530 Subject: [PATCH 03/10] fix schema --- packages/db/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/db/package.json b/packages/db/package.json index 32c0ffe..f07f67e 100644 --- a/packages/db/package.json +++ b/packages/db/package.json @@ -8,7 +8,7 @@ "scripts": { "db:studio": "prisma studio", "db:validate": "prisma validate", - "db:generate": "pnpm db:validate && prisma generate --no-engine", + "db:generate": "prisma generate --no-engine", "db:push": "prisma db push --skip-generate", "db:migrate": "pnpm db:validate && prisma migrate dev" }, From 0e84efc00646818d141f5f5c2e1ea5dbab783198 Mon Sep 17 00:00:00 2001 From: Saidev Dhal Date: Thu, 9 Jan 2025 00:53:46 +0530 Subject: [PATCH 04/10] fix schema --- .../20250108192241_onboarding_fix/migration.sql | 8 ++++++++ packages/db/prisma/schema.prisma | 1 - 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 packages/db/prisma/migrations/20250108192241_onboarding_fix/migration.sql diff --git a/packages/db/prisma/migrations/20250108192241_onboarding_fix/migration.sql b/packages/db/prisma/migrations/20250108192241_onboarding_fix/migration.sql new file mode 100644 index 0000000..6d486d2 --- /dev/null +++ b/packages/db/prisma/migrations/20250108192241_onboarding_fix/migration.sql @@ -0,0 +1,8 @@ +/* + Warnings: + + - You are about to drop the column `ownerId` on the `Project` table. All the data in the column will be lost. + +*/ +-- AlterTable +ALTER TABLE "Project" DROP COLUMN "ownerId"; diff --git a/packages/db/prisma/schema.prisma b/packages/db/prisma/schema.prisma index b2b67a0..933b0f0 100644 --- a/packages/db/prisma/schema.prisma +++ b/packages/db/prisma/schema.prisma @@ -94,7 +94,6 @@ model Workspace { model Project { id String @id @default(uuid()) name String - ownerId String slug String createdAt DateTime @default(now()) updatedAt DateTime @updatedAt From 92d0dcdb7dc63a9113bbcd4e51e27fb32fc35474 Mon Sep 17 00:00:00 2001 From: Saidev Dhal Date: Thu, 9 Jan 2025 00:54:13 +0530 Subject: [PATCH 05/10] fix --- apps/api/app/v1/[[...route]]/project.ts | 6 +++--- apps/api/package.json | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/apps/api/app/v1/[[...route]]/project.ts b/apps/api/app/v1/[[...route]]/project.ts index 3dd0556..4fcbd32 100644 --- a/apps/api/app/v1/[[...route]]/project.ts +++ b/apps/api/app/v1/[[...route]]/project.ts @@ -45,7 +45,7 @@ const app = new Hono() const project = await prisma.project.create({ data: { name: body.name, - ownerId: session.user.id, + userId: session.user.id, slug: nanoid(), workspaceId: body.workspaceId, }, @@ -71,7 +71,7 @@ const app = new Hono() const existingProject = await prisma.project.findUnique({ where: { id: projectId, - ownerId: session.user.id, + userId: session.user.id, }, }); if (!existingProject) { @@ -81,7 +81,7 @@ const app = new Hono() const project = await prisma.project.delete({ where: { id: projectId, - ownerId: session.user.id, + userId: session.user.id, }, }); diff --git a/apps/api/package.json b/apps/api/package.json index 95933b0..4fbfa36 100644 --- a/apps/api/package.json +++ b/apps/api/package.json @@ -23,8 +23,6 @@ "@plura/mail": "workspace:*", "@prisma/client": "^5.22.0", "@repo/types": "workspace:*", - "@plura/cache": "workspace:*", - "@plura/crypt":"workspace:*", "@plura/mor":"workspace:*", "@upstash/ratelimit": "^2.0.5", "@upstash/redis": "^1.34.3", From 4ebffa0cbc8d9499644cd9704bece910d02d80a7 Mon Sep 17 00:00:00 2001 From: Saidev Dhal Date: Thu, 9 Jan 2025 01:15:10 +0530 Subject: [PATCH 06/10] vercel ignore --- apps/api/.vercelignore | 1 + apps/api/triggers/src/contributors.ts | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 apps/api/.vercelignore diff --git a/apps/api/.vercelignore b/apps/api/.vercelignore new file mode 100644 index 0000000..f93ea4b --- /dev/null +++ b/apps/api/.vercelignore @@ -0,0 +1 @@ +/triggers diff --git a/apps/api/triggers/src/contributors.ts b/apps/api/triggers/src/contributors.ts index 60af6bb..4b97de4 100644 --- a/apps/api/triggers/src/contributors.ts +++ b/apps/api/triggers/src/contributors.ts @@ -98,8 +98,12 @@ export const publishContributorsTask = schedules.task({ }); } - const finalContributors = Object.values(contributorsMap); + // Create final array sorted by contributions in descending order + const finalContributors = Object.values(contributorsMap).sort( + (a, b) => b.contributions - a.contributions, + ); + // Clear Redis list and push sorted array as a list await cache.del(redisKey); // Clear previous data await cache.rpush( redisKey, From 9ab1ad2711d31686d03ad1c3d9cf9176eb967bb5 Mon Sep 17 00:00:00 2001 From: Saidev Dhal Date: Thu, 9 Jan 2025 01:22:06 +0530 Subject: [PATCH 07/10] ignore-triggers --- apps/api/.eslintignore | 1 + apps/api/.vercelignore | 1 - apps/api/package.json | 2 +- apps/api/triggers/package.json | 4 ++-- 4 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 apps/api/.eslintignore delete mode 100644 apps/api/.vercelignore diff --git a/apps/api/.eslintignore b/apps/api/.eslintignore new file mode 100644 index 0000000..0432b11 --- /dev/null +++ b/apps/api/.eslintignore @@ -0,0 +1 @@ +triggers/ \ No newline at end of file diff --git a/apps/api/.vercelignore b/apps/api/.vercelignore deleted file mode 100644 index f93ea4b..0000000 --- a/apps/api/.vercelignore +++ /dev/null @@ -1 +0,0 @@ -/triggers diff --git a/apps/api/package.json b/apps/api/package.json index 4fbfa36..9c5ed77 100644 --- a/apps/api/package.json +++ b/apps/api/package.json @@ -6,7 +6,7 @@ "build": "next build", "start": "next start -p 3001", "preview": "next build && next start -p 3001", - "lint": "next lint", + "lint": "next lint --ignore-path .eslintignore", "lint:fix": "next lint --fix", "test": "vitest --run", "typecheck": "tsc --noEmit", diff --git a/apps/api/triggers/package.json b/apps/api/triggers/package.json index 314c50f..fc55b47 100644 --- a/apps/api/triggers/package.json +++ b/apps/api/triggers/package.json @@ -12,9 +12,9 @@ "@plura/cache": "workspace:*", "@plura/db": "workspace:*", "@supabase/supabase-js": "^2.46.1", - "@trigger.dev/sdk": "3.3.7" + "@trigger.dev/sdk": "3.3.8" }, "devDependencies": { - "@trigger.dev/build": "3.3.7" + "@trigger.dev/build": "3.3.8" } } \ No newline at end of file From 002e7c6c40e52ff7bf9f7670a160a319eb29221d Mon Sep 17 00:00:00 2001 From: Saidev Dhal Date: Thu, 9 Jan 2025 01:26:24 +0530 Subject: [PATCH 08/10] triggers --- apps/api/.eslintignore | 1 - apps/api/package.json | 2 +- apps/{api => services}/triggers/.gitignore | 0 apps/{api => services}/triggers/package.json | 0 apps/{api => services}/triggers/src/.gitkeep | 0 apps/{api => services}/triggers/src/contributors.ts | 0 apps/{api => services}/triggers/src/db.status.ts | 0 apps/{api => services}/triggers/src/site.status.ts | 0 apps/{api => services}/triggers/trigger.config.ts | 0 9 files changed, 1 insertion(+), 2 deletions(-) delete mode 100644 apps/api/.eslintignore rename apps/{api => services}/triggers/.gitignore (100%) rename apps/{api => services}/triggers/package.json (100%) rename apps/{api => services}/triggers/src/.gitkeep (100%) rename apps/{api => services}/triggers/src/contributors.ts (100%) rename apps/{api => services}/triggers/src/db.status.ts (100%) rename apps/{api => services}/triggers/src/site.status.ts (100%) rename apps/{api => services}/triggers/trigger.config.ts (100%) diff --git a/apps/api/.eslintignore b/apps/api/.eslintignore deleted file mode 100644 index 0432b11..0000000 --- a/apps/api/.eslintignore +++ /dev/null @@ -1 +0,0 @@ -triggers/ \ No newline at end of file diff --git a/apps/api/package.json b/apps/api/package.json index 9c5ed77..4fbfa36 100644 --- a/apps/api/package.json +++ b/apps/api/package.json @@ -6,7 +6,7 @@ "build": "next build", "start": "next start -p 3001", "preview": "next build && next start -p 3001", - "lint": "next lint --ignore-path .eslintignore", + "lint": "next lint", "lint:fix": "next lint --fix", "test": "vitest --run", "typecheck": "tsc --noEmit", diff --git a/apps/api/triggers/.gitignore b/apps/services/triggers/.gitignore similarity index 100% rename from apps/api/triggers/.gitignore rename to apps/services/triggers/.gitignore diff --git a/apps/api/triggers/package.json b/apps/services/triggers/package.json similarity index 100% rename from apps/api/triggers/package.json rename to apps/services/triggers/package.json diff --git a/apps/api/triggers/src/.gitkeep b/apps/services/triggers/src/.gitkeep similarity index 100% rename from apps/api/triggers/src/.gitkeep rename to apps/services/triggers/src/.gitkeep diff --git a/apps/api/triggers/src/contributors.ts b/apps/services/triggers/src/contributors.ts similarity index 100% rename from apps/api/triggers/src/contributors.ts rename to apps/services/triggers/src/contributors.ts diff --git a/apps/api/triggers/src/db.status.ts b/apps/services/triggers/src/db.status.ts similarity index 100% rename from apps/api/triggers/src/db.status.ts rename to apps/services/triggers/src/db.status.ts diff --git a/apps/api/triggers/src/site.status.ts b/apps/services/triggers/src/site.status.ts similarity index 100% rename from apps/api/triggers/src/site.status.ts rename to apps/services/triggers/src/site.status.ts diff --git a/apps/api/triggers/trigger.config.ts b/apps/services/triggers/trigger.config.ts similarity index 100% rename from apps/api/triggers/trigger.config.ts rename to apps/services/triggers/trigger.config.ts From ccc4a4ad051bcbe0675f0fab0617b4095b81c503 Mon Sep 17 00:00:00 2001 From: Saidev Dhal Date: Thu, 9 Jan 2025 01:42:13 +0530 Subject: [PATCH 09/10] add api endpoint --- apps/app/actions/project.ts | 9 +++++++-- apps/app/actions/workspace.ts | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/apps/app/actions/project.ts b/apps/app/actions/project.ts index 765c8c5..b463023 100644 --- a/apps/app/actions/project.ts +++ b/apps/app/actions/project.ts @@ -4,6 +4,11 @@ import { betterFetch } from "@better-fetch/fetch"; import { getSession } from "./session"; import { headers } from "next/headers"; +const API_ENDPOINT = +process.env.NODE_ENV === "production" + ? "https://api.plura.pro/" + : "http://localhost:3001"; + export const createProject = async ({ workspaceId, name, @@ -15,7 +20,7 @@ export const createProject = async ({ if (!user) { return; } - const project = await betterFetch("http://localhost:3001/v1/project", { + const project = await betterFetch(`${API_ENDPOINT}/v1/project`, { method: "POST", body: { workspaceId: workspaceId, @@ -36,7 +41,7 @@ export const getProjectOfUser = async (workspaceId: string) => { } try { const project: any = await betterFetch( - "http://localhost:3001/v1/project/workspace/" + workspaceId, + `${API_ENDPOINT}/v1/project/workspace/` + workspaceId, { method: "GET", headers: { diff --git a/apps/app/actions/workspace.ts b/apps/app/actions/workspace.ts index 4ea3828..f04c19a 100644 --- a/apps/app/actions/workspace.ts +++ b/apps/app/actions/workspace.ts @@ -3,6 +3,11 @@ import { headers } from "next/headers"; import { getSession } from "./session"; import { betterFetch } from "@better-fetch/fetch"; +const API_ENDPOINT = +process.env.NODE_ENV === "production" + ? "https://api.plura.pro/" + : "http://localhost:3001"; + export const createWorkspace = async (workspaceName: string) => { const user = await getSession(); if (!user) { @@ -10,7 +15,7 @@ export const createWorkspace = async (workspaceName: string) => { } try { console.log("workspaceName", workspaceName); - const workspace = await betterFetch("http://localhost:3001/v1/workspace", { + const workspace = await betterFetch(`${API_ENDPOINT}/v1/workspace`, { method: "POST", body: { name: workspaceName, @@ -34,7 +39,7 @@ export const getFirstWorkspaceOfUser = async () => { try { const workspace: any = await betterFetch( - "http://localhost:3001/v1/workspace/user/" + user.session.userId, + `${API_ENDPOINT}/v1/workspace/user/` + user.session.userId, { method: "GET", headers: { From aa5d3ca58149555c0e8db417ef80721befca3f83 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 8 Jan 2025 20:13:16 +0000 Subject: [PATCH 10/10] format: make the code prettier --- apps/app/actions/project.ts | 6 +++--- apps/app/actions/workspace.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/app/actions/project.ts b/apps/app/actions/project.ts index b463023..d10c0a1 100644 --- a/apps/app/actions/project.ts +++ b/apps/app/actions/project.ts @@ -5,9 +5,9 @@ import { getSession } from "./session"; import { headers } from "next/headers"; const API_ENDPOINT = -process.env.NODE_ENV === "production" - ? "https://api.plura.pro/" - : "http://localhost:3001"; + process.env.NODE_ENV === "production" + ? "https://api.plura.pro/" + : "http://localhost:3001"; export const createProject = async ({ workspaceId, diff --git a/apps/app/actions/workspace.ts b/apps/app/actions/workspace.ts index f04c19a..94570bb 100644 --- a/apps/app/actions/workspace.ts +++ b/apps/app/actions/workspace.ts @@ -4,9 +4,9 @@ import { getSession } from "./session"; import { betterFetch } from "@better-fetch/fetch"; const API_ENDPOINT = -process.env.NODE_ENV === "production" - ? "https://api.plura.pro/" - : "http://localhost:3001"; + process.env.NODE_ENV === "production" + ? "https://api.plura.pro/" + : "http://localhost:3001"; export const createWorkspace = async (workspaceName: string) => { const user = await getSession();