Connect, collaborate, and grow with a community of TypeScript developers
chore: updates Prisma to 5.0 (#214)
Jim Burbridge1d73870731f6
diff --git a/package.json b/package.jsonindex 9463322f..527d2eb4 100644--- a/package.json+++ b/package.json@@ -22,7 +22,7 @@"@monaco-editor/loader": "^1.3.3","@monaco-editor/react": "^4.5.1","@next-auth/prisma-adapter": "^1.0.6",- "@prisma/client": "^4.14.0",+ "@prisma/client": "^5.0.0","@radix-ui/react-avatar": "^1.0.3","@radix-ui/react-checkbox": "^1.0.4","@radix-ui/react-dialog": "^1.0.4",@@ -91,7 +91,7 @@"postcss": "^8.4.21","prettier": "^2.8.8","prettier-plugin-tailwindcss": "^0.2.8",- "prisma": "^4.14.0",+ "prisma": "^5.0.0","raw-loader": "^4.0.2","tailwindcss": "^3.3.0","tsx": "^3.12.7"diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex b65faa74..7681701d 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -1,9 +1,5 @@lockfileVersion: '6.0'-settings:- autoInstallPeers: true- excludeLinksFromLockfile: false-patchedDependencies:'@monaco-editor/[email protected]':hash: xep4qb27qzc6gvlhv2fxe3r2ka@@ -18,16 +14,16 @@ dependencies:version: 3.1.1([email protected])'@monaco-editor/loader':specifier: ^1.3.3- version: 1.3.3([email protected])+ version: 1.3.3([email protected])'@monaco-editor/react':specifier: ^4.5.1- version: 4.5.1(patch_hash=xep4qb27qzc6gvlhv2fxe3r2ka)([email protected])([email protected])([email protected])+ version: 4.5.1(patch_hash=xep4qb27qzc6gvlhv2fxe3r2ka)([email protected])([email protected])([email protected])'@next-auth/prisma-adapter':specifier: ^1.0.6- version: 1.0.6(@prisma/[email protected])([email protected])+ version: 1.0.6(@prisma/[email protected])([email protected])'@prisma/client':- specifier: ^4.14.0- version: 4.14.0([email protected])+ specifier: ^5.0.0+ version: 5.0.0([email protected])'@radix-ui/react-avatar':specifier: ^1.0.3version: 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])@@ -105,7 +101,7 @@ dependencies:version: 0.224.0([email protected])monaco-vim:specifier: ^0.4.0- version: 0.4.0([email protected])+ version: 0.4.0([email protected])next:specifier: ^13.4.9version: 13.4.9([email protected])([email protected])@@ -229,8 +225,8 @@ devDependencies:specifier: ^0.2.8version: 0.2.8([email protected])prisma:- specifier: ^4.14.0- version: 4.14.0+ specifier: ^5.0.0+ version: 5.0.0raw-loader:specifier: ^4.0.2version: 4.0.2([email protected])@@ -589,36 +585,36 @@ packages:'@jridgewell/resolve-uri': 3.1.0'@jridgewell/sourcemap-codec': 1.4.14- /@monaco-editor/[email protected]([email protected]):+ /@monaco-editor/[email protected]([email protected]):resolution: {integrity: sha512-6KKF4CTzcJiS8BJwtxtfyYt9shBiEv32ateQ9T4UVogwn4HM/uPo9iJd2Dmbkpz8CM6Y0PDUpjnZzCwC+eYo2Q==}peerDependencies:monaco-editor: '>= 0.21.0 < 1'dependencies:- monaco-editor: 0.36.1+ monaco-editor: 0.40.0state-local: 1.0.7dev: false- /@monaco-editor/[email protected](patch_hash=xep4qb27qzc6gvlhv2fxe3r2ka)([email protected])([email protected])([email protected]):+ /@monaco-editor/[email protected](patch_hash=xep4qb27qzc6gvlhv2fxe3r2ka)([email protected])([email protected])([email protected]):resolution: {integrity: sha512-NNDFdP+2HojtNhCkRfE6/D6ro6pBNihaOzMbGK84lNWzRu+CfBjwzGt4jmnqimLuqp5yE5viHS2vi+QOAnD5FQ==}peerDependencies:monaco-editor: '>= 0.25.0 < 1'react: ^16.8.0 || ^17.0.0 || ^18.0.0react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0dependencies:- '@monaco-editor/loader': 1.3.3([email protected])- monaco-editor: 0.36.1+ '@monaco-editor/loader': 1.3.3([email protected])+ monaco-editor: 0.40.0react: 18.2.0react-dom: 18.2.0([email protected])dev: falsepatched: trueresolution: {integrity: sha512-Z7agwfSZEeEcqKqrnisBun7VndRPshd6vyDsoRU68MXbkui8storkHgvN2hnNDrqr/hSCF9aRn56a1qpihaB4A==}peerDependencies:'@prisma/client': '>=2.26.0 || >=3'next-auth: ^4dependencies:- '@prisma/client': 4.14.0([email protected])+ '@prisma/client': 5.0.0([email protected])next-auth: 4.22.1(patch_hash=mr6pbhgbmy4dt4xo4hxm5k4ym4)([email protected])([email protected])([email protected])dev: false@@ -747,9 +743,9 @@ packages:tslib: 2.5.3dev: true- /@prisma/[email protected]([email protected]):- resolution: {integrity: sha512-MK/XaA2sFdfaOa7I9MjNKz6dxeIEdeZlnpNRoF2w3JuRLlFJLkpp6cD3yaqw2nUUhbrn3Iqe3ZpVV+VuGGil7Q==}- engines: {node: '>=14.17'}+ /@prisma/[email protected]([email protected]):+ resolution: {integrity: sha512-XlO5ELNAQ7rV4cXIDJUNBEgdLwX3pjtt9Q/RHqDpGf43szpNJx2hJnggfFs7TKNx0cOFsl6KJCSfqr5duEU/bQ==}+ engines: {node: '>=16.13'}requiresBuild: truepeerDependencies:prisma: '*'@@ -757,16 +753,16 @@ packages:prisma:optional: truedependencies:- '@prisma/engines-version': 4.14.0-67.d9a4c5988f480fa576d43970d5a23641aa77bc9c- prisma: 4.14.0+ '@prisma/engines-version': 4.17.0-26.6b0aef69b7cdfc787f822ecd7cdc76d5f1991584+ prisma: 5.0.0dev: false- /@prisma/engines-version@4.14.0-67.d9a4c5988f480fa576d43970d5a23641aa77bc9c:- resolution: {integrity: sha512-3jum8/YSudeSN0zGW5qkpz+wAN2V/NYCQ+BPjvHYDfWatLWlQkqy99toX0GysDeaUoBIJg1vaz2yKqiA3CFcQw==}+ /@prisma/engines-version@4.17.0-26.6b0aef69b7cdfc787f822ecd7cdc76d5f1991584:+ resolution: {integrity: sha512-HHiUF6NixsldsP3JROq07TYBLEjXFKr6PdH8H4gK/XAoTmIplOJBCgrIUMrsRAnEuGyRoRLXKXWUb943+PFoKQ==}dev: false- /@prisma/[email protected]:- resolution: {integrity: sha512-PDNlhP/1vyTgmNyiucGqGCdXIp7HIkkvKO50si3y3PcceeHvqtiKPaH1iJdz63jCWMVMbj2MElSxXPOeBvEVIQ==}+ /@prisma/[email protected]:+ resolution: {integrity: sha512-kyT/8fd0OpWmhAU5YnY7eP31brW1q1YrTGoblWrhQJDiN/1K+Z8S1kylcmtjqx5wsUGcP1HBWutayA/jtyt+sg==}requiresBuild: true/@radix-ui/[email protected]:@@ -2340,12 +2336,12 @@ packages:resolution: {integrity: sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==}dev: trueresolution: {integrity: sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==}peerDependencies:acorn: ^8dependencies:- acorn: 8.8.2+ acorn: 8.10.0dev: true@@ -2356,6 +2352,12 @@ packages:acorn: 8.8.2dev: true+ resolution: {integrity: sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==}+ engines: {node: '>=0.4.0'}+ hasBin: true+ dev: true+resolution: {integrity: sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==}engines: {node: '>=0.4.0'}@@ -2598,6 +2600,17 @@ packages:update-browserslist-db: 1.0.11([email protected])dev: true+ resolution: {integrity: sha512-M0MFoZzbUrRU4KNfCrDLnvyE7gub+peetoTid3TBIqtunaDJyXlwhakT+/VkvSXcfIzFfK/nkCs4nmyTmxdNSg==}+ engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}+ hasBin: true+ dependencies:+ caniuse-lite: 1.0.30001515+ electron-to-chromium: 1.4.460+ node-releases: 2.0.13+ update-browserslist-db: 1.0.11([email protected])+ dev: true+resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==}dev: true@@ -2635,6 +2648,10 @@ packages:resolution: {integrity: sha512-I4/duVK4wL6rAK/aKZl3HXB4g+lIZvaT4VLAn2rCgJ38jVLb0lv2Xug6QuqmxXFVRJMF74SPPWPJ/1Sdm3vCzw==}+ resolution: {integrity: sha512-eEFDwUOZbE24sb+Ecsx3+OvNETqjWIdabMy52oOkIgcUtAsQifjUG9q4U9dgTHJM2mfk4uEPxc0+xuFdJ629QA==}+ dev: true+resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==}dev: false@@ -3077,6 +3094,10 @@ packages:resolution: {integrity: sha512-HK3r9l+Jm8dYAm1ctXEWIC+hV60zfcjS9UA5BDlYvnI5S7PU/yytjpvSrTNrSSRRkuu3tDyZhdkwIczh+0DWaw==}dev: true+ resolution: {integrity: sha512-kKiHnbrHME7z8E6AYaw0ehyxY5+hdaRmeUbjBO22LZMdqTYCO29EvF0T1cQ3pJ1RN5fyMcHl1Lmcsdt9WWJpJQ==}+ dev: true+resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}dev: true@@ -4967,16 +4988,16 @@ packages:resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==}dev: true- resolution: {integrity: sha512-/CaclMHKQ3A6rnzBzOADfwdSJ25BFoFT0Emxsc4zYVyav5SkK9iA6lEtIeuN/oRYbwPgviJT+t3l+sjFa28jYg==}+ resolution: {integrity: sha512-1wymccLEuFSMBvCk/jT1YDW/GuxMLYwnFwF9CDyYCxoTw2Pt379J3FUhwy9c43j51JdcxVPjwk0jm0EVDsBS2g==}dev: falseresolution: {integrity: sha512-+CsW0+Mvx2+eitkXS7OpUXIu57qXlqAL8oVkYhkPCEZ/c6+6gOp/IcG7w+Lb33YiZuTyvJ891+czkeJRPIEwVA==}peerDependencies:monaco-editor: '*'dependencies:- monaco-editor: 0.36.1+ monaco-editor: 0.40.0dev: false@@ -5100,6 +5121,10 @@ packages:resolution: {integrity: sha512-QzsYKWhXTWx8h1kIvqfnC++o0pEmpRQA/aenALsL2F4pqNVr7YzcdMlDij5WBnwftRbJCNJL/O7zdKaxKPHqgQ==}dev: true+ resolution: {integrity: sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==}+ dev: true+resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==}engines: {node: '>=0.10.0'}@@ -5538,13 +5563,13 @@ packages:resolution: {integrity: sha512-WuxUnVtlWL1OfZFQFuqvnvs6MiAGk9UNsBostyBOB0Is9wb5uRESevA6rnl/rkksXaGX3GzZhPup5d6Vp1nFew==}dev: false- resolution: {integrity: sha512-+5dMl1uxMQb4RepndY6AwR9xi1cDcaGFICu+ws6/Nmgt93mFPNj8tYxSfTdmfg+rkNrUId9rk/Ac2vTgLe/oXA==}- engines: {node: '>=14.17'}+ resolution: {integrity: sha512-KYWk83Fhi1FH59jSpavAYTt2eoMVW9YKgu8ci0kuUnt6Dup5Qy47pcB4/TLmiPAbhGrxxSz7gsSnJcCmkyPANA==}+ engines: {node: '>=16.13'}hasBin: truerequiresBuild: truedependencies:- '@prisma/engines': 4.14.0+ '@prisma/engines': 5.0.0resolution: {integrity: sha512-t13BGPUlFDR7wRB5kQDG4jjl7XeuH6jbJGt11JHPL96qwsEHNX2+68tFXqc1/k+/jALsbSWJKUOT/hcYAZ5LkA==}@@ -6479,7 +6504,7 @@ packages:hasBin: truedependencies:'@jridgewell/source-map': 0.3.5- acorn: 8.8.2+ acorn: 8.10.0commander: 2.20.3source-map-support: 0.5.21dev: true@@ -6695,6 +6720,17 @@ packages:picocolors: 1.0.0dev: true+ resolution: {integrity: sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==}+ hasBin: true+ peerDependencies:+ browserslist: '>= 4.21.0'+ dependencies:+ browserslist: 4.21.9+ escalade: 3.1.1+ picocolors: 1.0.0+ dev: true+resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==}dependencies:@@ -6839,9 +6875,9 @@ packages:'@webassemblyjs/ast': 1.11.6'@webassemblyjs/wasm-edit': 1.11.6'@webassemblyjs/wasm-parser': 1.11.6- acorn: 8.8.2- acorn-import-assertions: 1.9.0([email protected])- browserslist: 4.21.7+ acorn: 8.10.0+ acorn-import-assertions: 1.9.0([email protected])+ browserslist: 4.21.9chrome-trace-event: 1.0.3enhanced-resolve: 5.15.0es-module-lexer: 1.3.0@@ -6974,3 +7010,7 @@ packages:resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==}dev: false++settings:+ autoInstallPeers: true+ excludeLinksFromLockfile: falsediff --git a/prisma/schema.prisma b/prisma/schema.prismaindex 305f8a5b..e47388c1 100644--- a/prisma/schema.prisma+++ b/prisma/schema.prisma@@ -2,8 +2,7 @@// learn more about it in the docs: https://pris.ly/d/prisma-schemagenerator client {- provider = "prisma-client-js"- previewFeatures = ["jsonProtocol"]+ provider = "prisma-client-js"}datasource db {