Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

chore: upgrade prisma to version 6 (#5266)

Steffen Schmitz5fc87cabeb18
diff --git a/packages/shared/package.json b/packages/shared/package.json
index 9f33157608..aca9db5571 100644
--- a/packages/shared/package.json
+++ b/packages/shared/package.json
@@ -67,7 +67,7 @@
"@langchain/google-vertexai": "^0.1.3",
"@langchain/openai": "^0.3.14",
"@opentelemetry/api": ">=1.0.0 <1.10.0",
- "@prisma/client": "^5.22.0",
+ "@prisma/client": "^6.3.0",
"@react-email/components": "^0.0.19",
"@react-email/render": "^0.0.15",
"@types/bcryptjs": "^2.4.6",
@@ -107,7 +107,7 @@
"kysely-codegen": "^0.16.8",
"nodemon": "^3.1.7",
"prettier": "^3.3.3",
- "prisma": "^5.22.0",
+ "prisma": "^6.3.0",
"prisma-erd-generator": "^1.11.2",
"prisma-kysely": "^1.8.0",
"ts-node": "^10.9.2",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 5f6b72da9c..62563c06f1 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -59,7 +59,7 @@ importers:
next-auth:
specifier: ^4.24.11
zod:
specifier: ^3.23.8
version: 3.23.8
@@ -172,8 +172,8 @@ importers:
specifier: '>=1.0.0 <1.10.0'
version: 1.9.0
'@prisma/client':
- specifier: ^5.22.0
- version: 5.22.0([email protected])
+ specifier: ^6.3.0
'@react-email/components':
specifier: ^0.0.19
version: 0.0.19(@types/[email protected])([email protected])
@@ -224,13 +224,13 @@ importers:
version: 4.17.21
next-auth:
specifier: ^4.24.11
nodemailer:
specifier: ^6.9.15
version: 6.9.15
prisma-extension-kysely:
specifier: ^2.1.0
- version: 2.1.0(@prisma/[email protected]([email protected]))
react:
specifier: ~18.2.0
version: 18.2.0
@@ -293,11 +293,11 @@ importers:
specifier: ^3.3.3
version: 3.3.3
prisma:
- specifier: ^5.22.0
- version: 5.22.0
+ specifier: ^6.3.0
+ version: 6.3.0([email protected])
prisma-erd-generator:
specifier: ^1.11.2
prisma-kysely:
specifier: ^1.8.0
version: 1.8.0
@@ -387,7 +387,7 @@ importers:
'@next-auth/prisma-adapter':
specifier: ^1.0.7
'@opentelemetry/api':
specifier: ^1.9.0
version: 1.9.0
@@ -431,8 +431,8 @@ importers:
specifier: ^1.26.0
version: 1.26.0(@opentelemetry/[email protected])
'@prisma/instrumentation':
- specifier: ^5.22.0
- version: 5.22.0
+ specifier: ^6.3.0
+ version: 6.3.0(@opentelemetry/[email protected])
'@radix-ui/react-accordion':
specifier: ^1.2.1
@@ -621,7 +621,7 @@ importers:
next-auth:
specifier: ^4.24.11
next-query-params:
specifier: ^5.0.1
@@ -638,8 +638,8 @@ importers:
specifier: ^2.2.0
version: 2.2.0
prisma:
- specifier: ^5.22.0
- version: 5.22.0
+ specifier: ^6.3.0
+ version: 6.3.0([email protected])
protobufjs:
specifier: ^7.4.0
version: 7.4.0
@@ -871,8 +871,8 @@ importers:
specifier: ^0.53.0
version: 0.53.0(@opentelemetry/[email protected])
'@prisma/instrumentation':
- specifier: ^5.22.0
- version: 5.22.0
+ specifier: ^6.3.0
+ version: 6.3.0(@opentelemetry/[email protected])
backoff:
specifier: ^2.5.0
version: 2.5.0
@@ -3229,48 +3229,56 @@ packages:
'@popperjs/[email protected]':
resolution: {integrity: sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==}
- '@prisma/[email protected]':
- resolution: {integrity: sha512-M0SVXfyHnQREBKxCgyo7sffrKttwE6R8PMq330MIUF0pTwjUhLbW84pFDlf06B27XyCR++VtjugEnIHdr07SVA==}
- engines: {node: '>=16.13'}
+ '@prisma/[email protected]':
+ resolution: {integrity: sha512-BY3Fi28PUSk447Bpv22LhZp4HgNPo7NsEN+EteM1CLDnLjig5863jpW+3c3HHLFmml+nB/eJv1CjSriFZ8z7Cg==}
+ engines: {node: '>=18.18'}
peerDependencies:
prisma: '*'
+ typescript: '>=5.1.0'
peerDependenciesMeta:
prisma:
optional: true
-
- '@prisma/[email protected]':
- resolution: {integrity: sha512-AUt44v3YJeggO2ZU5BkXI7M4hu9BF2zzH2iF2V5pyXT/lRTyWiElZ7It+bRH1EshoMRxHgpYg4VB6rCM+mG5jQ==}
+ typescript:
+ optional: true
'@prisma/[email protected]':
resolution: {integrity: sha512-eYrxqslEKf+wpMFIIHgbcNYuZBXUdiJLA85Or3TwOhgPIN1ZoXT9CwJph3ynW8H1Xg0LkdYLwVmuULCwiMoU5A==}
- '@prisma/engines-version@5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2':
- resolution: {integrity: sha512-2PTmxFR2yHW/eB3uqWtcgRcgAbG1rwG9ZriSvQw+nnb7c4uCr3RAcGMb6/zfE88SKlC1Nj2ziUvc96Z379mHgQ==}
+ '@prisma/[email protected]':
+ resolution: {integrity: sha512-m1lQv//0Rc5RG8TBpNUuLCxC35Ghi5XfpPmL83Gh04/GICHD2J5H2ndMlaljrUNaQDF9dOxIuFAYP1rE9wkXkg==}
- '@prisma/[email protected]':
- resolution: {integrity: sha512-UNjfslWhAt06kVL3CjkuYpHAWSO6L4kDCVPegV6itt7nD1kSJavd3vhgAEhjglLJJKEdJ7oIqDJ+yHk6qO8gPA==}
+ '@prisma/engines-version@6.3.0-17.acc0b9dd43eb689cbd20c9470515d719db10d0b0':
+ resolution: {integrity: sha512-R/ZcMuaWZT2UBmgX3Ko6PAV3f8//ZzsjRIG1eKqp3f2rqEqVtCv+mtzuH2rBPUC9ujJ5kCb9wwpxeyCkLcHVyA==}
'@prisma/[email protected]':
resolution: {integrity: sha512-6QkILNyfeeN67BNEPEtkgh3Xo2tm6D7V+UhrkBbRHqKw9CTaz/vvTP/ROwYSP/3JT2MtIutZm/EnhxUiuOPVDA==}
- '@prisma/[email protected]':
- resolution: {integrity: sha512-bkrD/Mc2fSvkQBV5EpoFcZ87AvOgDxbG99488a5cexp5Ccny+UM6MAe/UFkUC0wLYD9+9befNOqGiIJhhq+HbA==}
+ '@prisma/[email protected]':
+ resolution: {integrity: sha512-RXqYhlZb9sx/xkUfYIZuEPn7sT0WgTxNOuEYQ7AGw3IMpP9QGVEDVsluc/GcNkM8NTJszeqk8AplJzI9lm7Jxw==}
'@prisma/[email protected]':
resolution: {integrity: sha512-w1yk1YiK8N82Pobdq58b85l6e8akyrkxuzwV9DoiUTRf3gpsuhJJesHc4Yi0WzUC9/3znizl1UfCsI6dhkj3Vw==}
+ '@prisma/[email protected]':
+ resolution: {integrity: sha512-GBy0iT4f1mH31ePzfcpVSUa7JLRTeq4914FG2vR3LqDwRweSm4ja1o5flGDz+eVIa/BNYfkBvRRxv4D6ve6Eew==}
+
'@prisma/[email protected]':
resolution: {integrity: sha512-zrYS0iHLgPlOJjYnd5KvVMMvSS+ktOL39EwooS5EnyvfzwfzxlKCeOUgxTfiKYs0WUWqzEvyNAYtramYgSknsQ==}
- '@prisma/[email protected]':
- resolution: {integrity: sha512-pHhpQdr1UPFpt+zFfnPazhulaZYCUqeIcPpJViYoq9R+D/yw4fjE+CtnsnKzPYm0ddUbeXUzjGVGIRVgPDCk4Q==}
-
'@prisma/[email protected]':
resolution: {integrity: sha512-3IiZY2BUjKnAuZ0569zppZE6/rZbVAM09//c2nvPbbkGG9MqrirA8fbhhF7tfVmhyVfdmVCHnf/ujWPHJ8B46Q==}
+ '@prisma/[email protected]':
+ resolution: {integrity: sha512-V8zZ1d0xfyi6FjpNP4AcYuwSpGcdmu35OXWnTPm8IW594PYALzKXHwIa9+o0f+Lo9AecFWrwrwaoYe56UNfTtQ==}
+
'@prisma/[email protected]':
resolution: {integrity: sha512-LxccF392NN37ISGxIurUljZSh1YWnphO34V5a0+T7FVQG2u9bhAXRTJpgmQ3483woVhkraQZFF7cbRrpbw/F4Q==}
+ '@prisma/[email protected]':
+ resolution: {integrity: sha512-StGSAOFI6At9PBvh0Wn4RLne6cu9DBKwss6MQ+ze+cZi4tR4yRtLrbj1T1+N0r1k8B3RWAmZBj/riJz/QfPSAQ==}
+ peerDependencies:
+ '@opentelemetry/api': ^1.8
+
'@prisma/[email protected]':
resolution: {integrity: sha512-zkW73hPHHNrMD21PeYgCTBfMu71vzJf+WtfydtJbS0JVJKyLfOel0iWSQg7wjNeQfccKp+NdHJ/5rTJ4NEUzgA==}
@@ -9636,10 +9644,15 @@ packages:
resolution: {integrity: sha512-VpNpolZ8RXRgfU+j4R+fPZmX8EE95w3vJ2tt7+FwuiQc0leNTfLK5QLf3KbbPDes2rfjh3g20AjDxefQIo5GIA==}
hasBin: true
- resolution: {integrity: sha512-vtpjW3XuYCSnMsNVBjLMNkTj6OZbudcPPTPYHqX0CJfpcdWciI1dM8uHETwmDxxiqEwCIE6WvXucWUetJgfu/A==}
- engines: {node: '>=16.13'}
+ resolution: {integrity: sha512-y+Zh3Qg+xGCWyyrNUUNaFW/OltaV/yXYuTa0WRgYkz5LGyifmAsgpv94I47+qGRocZrMGcbF2A/78/oO2zgifA==}
+ engines: {node: '>=18.18'}
hasBin: true
+ peerDependencies:
+ typescript: '>=5.1.0'
+ peerDependenciesMeta:
+ typescript:
+ optional: true
resolution: {integrity: sha512-t13BGPUlFDR7wRB5kQDG4jjl7XeuH6jbJGt11JHPL96qwsEHNX2+68tFXqc1/k+/jALsbSWJKUOT/hcYAZ5LkA==}
@@ -14103,10 +14116,10 @@ snapshots:
transitivePeerDependencies:
- '@types/react'
dependencies:
- '@prisma/client': 5.22.0([email protected])
'@next/[email protected]': {}
@@ -14793,11 +14806,10 @@ snapshots:
'@popperjs/[email protected]': {}
optionalDependencies:
- prisma: 5.22.0
-
- '@prisma/[email protected]': {}
+ prisma: 6.3.0([email protected])
+ typescript: 5.4.5
'@prisma/[email protected]':
dependencies:
@@ -14807,22 +14819,18 @@ snapshots:
transitivePeerDependencies:
- supports-color
- '@prisma/engines-version@5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2': {}
+ '@prisma/[email protected]': {}
- '@prisma/[email protected]':
- 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/engines-version@6.3.0-17.acc0b9dd43eb689cbd20c9470515d719db10d0b0': {}
'@prisma/[email protected]': {}
- '@prisma/[email protected]':
+ '@prisma/[email protected]':
dependencies:
- '@prisma/debug': 5.22.0
- '@prisma/engines-version': 5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2
- '@prisma/get-platform': 5.22.0
+ '@prisma/debug': 6.3.0
+ '@prisma/engines-version': 6.3.0-17.acc0b9dd43eb689cbd20c9470515d719db10d0b0
+ '@prisma/fetch-engine': 6.3.0
+ '@prisma/get-platform': 6.3.0
'@prisma/[email protected]':
dependencies:
@@ -14847,6 +14855,12 @@ snapshots:
- encoding
- supports-color
+ '@prisma/[email protected]':
+ dependencies:
+ '@prisma/debug': 6.3.0
+ '@prisma/engines-version': 6.3.0-17.acc0b9dd43eb689cbd20c9470515d719db10d0b0
+ '@prisma/get-platform': 6.3.0
+
'@prisma/[email protected]':
dependencies:
'@prisma/debug': 5.3.1
@@ -14856,10 +14870,6 @@ snapshots:
transitivePeerDependencies:
- supports-color
- '@prisma/[email protected]':
- dependencies:
- '@prisma/debug': 5.22.0
-
'@prisma/[email protected]':
dependencies:
'@prisma/debug': 5.3.1
@@ -14875,6 +14885,10 @@ snapshots:
transitivePeerDependencies:
- supports-color
+ '@prisma/[email protected]':
+ dependencies:
+ '@prisma/debug': 6.3.0
+
'@prisma/[email protected]':
dependencies:
'@opentelemetry/api': 1.9.0
@@ -14883,6 +14897,13 @@ snapshots:
transitivePeerDependencies:
- supports-color
+ '@prisma/[email protected](@opentelemetry/[email protected])':
+ dependencies:
+ '@opentelemetry/api': 1.9.0
+ '@opentelemetry/instrumentation': 0.53.0(@opentelemetry/[email protected])
+ transitivePeerDependencies:
+ - supports-color
+
'@prisma/[email protected]':
dependencies:
'@antfu/ni': 0.21.8
@@ -17089,7 +17110,7 @@ snapshots:
'@typescript-eslint/eslint-plugin': 7.3.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])
'@typescript-eslint/parser': 7.12.0([email protected])([email protected])
eslint-config-prettier: 9.1.0([email protected])
- eslint-import-resolver-alias: 1.1.2([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected]))
eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])
eslint-plugin-eslint-comments: 3.2.0([email protected])
@@ -18988,7 +19009,7 @@ snapshots:
eslint: 8.57.0
eslint-plugin-turbo: 1.13.4([email protected])
dependencies:
@@ -19079,7 +19100,7 @@ snapshots:
doctrine: 2.1.0
eslint: 8.57.0
eslint-import-resolver-node: 0.3.9
hasown: 2.0.2
is-core-module: 2.15.1
is-glob: 4.0.3
@@ -19106,7 +19127,7 @@ snapshots:
doctrine: 2.1.0
eslint: 8.57.0
eslint-import-resolver-node: 0.3.9
hasown: 2.0.2
is-core-module: 2.15.1
is-glob: 4.0.3
@@ -21859,7 +21880,7 @@ snapshots:
dependencies:
type-fest: 2.19.0
dependencies:
'@babel/runtime': 7.26.0
'@panva/hkdf': 1.1.1
@@ -22571,10 +22592,10 @@ snapshots:
dependencies:
'@mermaid-js/mermaid-cli': 10.8.0([email protected])
- '@prisma/client': 5.22.0([email protected])
'@prisma/generator-helper': 5.3.1
dotenv: 16.4.5
transitivePeerDependencies:
@@ -22584,9 +22605,9 @@ snapshots:
- typescript
- utf-8-validate
dependencies:
- '@prisma/client': 5.22.0([email protected])
dependencies:
@@ -22599,11 +22620,12 @@ snapshots:
- encoding
- supports-color
dependencies:
- '@prisma/engines': 5.22.0
+ '@prisma/engines': 6.3.0
optionalDependencies:
fsevents: 2.3.3
+ typescript: 5.4.5
diff --git a/web/Dockerfile b/web/Dockerfile
index a9768543b9..2d70c79322 100644
--- a/web/Dockerfile
+++ b/web/Dockerfile
@@ -111,7 +111,7 @@ RUN apk add --no-cache dumb-init tzdata
RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs
-RUN npm install -g --no-package-lock --no-save [email protected]
+RUN npm install -g --no-package-lock --no-save [email protected]
RUN MIGRATE_TARGET_ARCH=$(echo ${TARGETPLATFORM:-linux/amd64} | sed 's/\//-/g') && \
wget -q -O- https://github.com/golang-migrate/migrate/releases/download/v4.18.2/migrate.$MIGRATE_TARGET_ARCH.tar.gz | tar xvz && \
diff --git a/web/package.json b/web/package.json
index 313137ad39..ea335e3098 100644
--- a/web/package.json
+++ b/web/package.json
@@ -59,7 +59,7 @@
"@opentelemetry/sdk-node": "^0.53.0",
"@opentelemetry/sdk-trace-base": "^1.26.0",
"@opentelemetry/sdk-trace-node": "^1.26.0",
- "@prisma/instrumentation": "^5.22.0",
+ "@prisma/instrumentation": "^6.3.0",
"@radix-ui/react-accordion": "^1.2.1",
"@radix-ui/react-alert-dialog": "^1.1.2",
"@radix-ui/react-avatar": "^1.1.1",
@@ -128,7 +128,7 @@
"posthog-js": "^1.176.0",
"posthog-node": "^4.3.1",
"prexit": "^2.2.0",
- "prisma": "^5.22.0",
+ "prisma": "^6.3.0",
"protobufjs": "^7.4.0",
"rate-limiter-flexible": "^5.0.3",
"react": "18.2.0",
diff --git a/worker/package.json b/worker/package.json
index 36fc98abb2..7f11bf8e29 100644
--- a/worker/package.json
+++ b/worker/package.json
@@ -36,7 +36,7 @@
"@opentelemetry/resource-detector-container": "^0.4.2",
"@opentelemetry/resources": "^1.26.0",
"@opentelemetry/sdk-node": "^0.53.0",
- "@prisma/instrumentation": "^5.22.0",
+ "@prisma/instrumentation": "^6.3.0",
"backoff": "^2.5.0",
"bullmq": "^5.34.10",
"cors": "^2.8.5",