Skip to content

Commit

Permalink
Support prisma v6
Browse files Browse the repository at this point in the history
  • Loading branch information
timokoessler committed Nov 29, 2024
1 parent 3d526ee commit 33f069c
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 41 deletions.
68 changes: 34 additions & 34 deletions library/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"@hono/node-server": "^1.12.2",
"@koa/bodyparser": "^5.1.1",
"@koa/router": "^13.0.0",
"@prisma/client": "^5.22.0",
"@prisma/client": "^6.0.0",
"@sinonjs/fake-timers": "^11.2.2",
"@types/aws-lambda": "^8.10.131",
"@types/cookie-parser": "^1.4.6",
Expand Down Expand Up @@ -72,9 +72,9 @@
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "^5.1.3",
"express": "^5.0.0",
"express-async-handler": "^1.2.0",
"express-v4": "npm:express@^4.0.0",
"express-v5": "npm:express@^5.0.0",
"express-async-handler": "^1.2.0",
"fast-xml-parser": "^4.4.0",
"fastify": "^5.0.0",
"follow-redirects": "^1.15.6",
Expand All @@ -95,20 +95,20 @@
"pg": "^8.11.3",
"postgres": "^3.4.4",
"prettier": "^3.2.4",
"prisma": "^5.22.0",
"prisma": "^6.0.0",
"shell-quote": "^1.8.1",
"shelljs": "^0.8.5",
"sqlite3": "^5.1.7",
"supertest": "^6.3.4",
"tap": "^18.6.1",
"type-fest": "^4.24.0",
"typescript": "^5.3.3",
"xml-js": "^1.6.11",
"xml2js": "^0.6.2",
"undici-v4": "npm:undici@^4.0.0",
"undici-v5": "npm:undici@^5.0.0",
"undici-v6": "npm:undici@^6.0.0",
"undici-v7": "npm:undici@^7.0.0"
"undici-v7": "npm:undici@^7.0.0",
"xml-js": "^1.6.11",
"xml2js": "^0.6.2"
},
"scripts": {
"test": "node ../scripts/run-tap.js",
Expand Down
2 changes: 1 addition & 1 deletion library/sinks/Prisma.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export class Prisma implements Wrapper {
wrap(hooks: Hooks) {
hooks
.addPackage("@prisma/client")
.withVersion("^5.0.0")
.withVersion("^5.0.0 || ^6.0.0")
.onRequire((exports, pkgInfo) => {
wrapNewInstance(exports, "PrismaClient", pkgInfo, (instance) => {
const isNoSQLClient = this.isNoSQLClient(instance);
Expand Down

0 comments on commit 33f069c

Please sign in to comment.