Skip to content

Commit

Permalink
chore: upgrade to Prisma 5.21 (#1777)
Browse files Browse the repository at this point in the history
  • Loading branch information
ymc9 authored Oct 15, 2024
1 parent 4f00cf1 commit 8a5e25f
Show file tree
Hide file tree
Showing 9 changed files with 70 additions and 70 deletions.
2 changes: 1 addition & 1 deletion packages/runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
"zod-validation-error": "^1.5.0"
},
"peerDependencies": {
"@prisma/client": "5.0.0 - 5.20.x"
"@prisma/client": "5.0.0 - 5.21.x"
},
"author": {
"name": "ZenStack Team"
Expand Down
4 changes: 2 additions & 2 deletions packages/schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,10 @@
"zod-validation-error": "^1.5.0"
},
"peerDependencies": {
"prisma": "5.0.0 - 5.20.x"
"prisma": "5.0.0 - 5.21.x"
},
"devDependencies": {
"@prisma/client": "5.20.x",
"@prisma/client": "5.21.x",
"@types/async-exit-hook": "^2.0.0",
"@types/pluralize": "^0.0.29",
"@types/semver": "^7.3.13",
Expand Down
4 changes: 2 additions & 2 deletions packages/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"author": "",
"license": "MIT",
"dependencies": {
"@prisma/generator-helper": "5.20.x",
"@prisma/internals": "5.20.x",
"@prisma/generator-helper": "5.21.x",
"@prisma/internals": "5.21.x",
"@zenstackhq/language": "workspace:*",
"@zenstackhq/runtime": "workspace:*",
"langium": "1.3.1",
Expand Down
112 changes: 56 additions & 56 deletions pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion script/test-scaffold.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ function run(cmd: string) {
}

run('npm init -y');
run('npm i --no-audit --no-fund typescript prisma@5.20.x @prisma/client@5.20.x zod decimal.js @types/node');
run('npm i --no-audit --no-fund typescript prisma@5.21.x @prisma/client@5.21.x zod decimal.js @types/node');

console.log('Test scaffold setup complete.');
4 changes: 2 additions & 2 deletions tests/integration/test-run/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"author": "",
"license": "ISC",
"dependencies": {
"@prisma/client": "5.20.x",
"@prisma/client": "5.21.x",
"@zenstackhq/runtime": "file:../../../packages/runtime/dist",
"prisma": "5.20.x",
"prisma": "5.21.x",
"react": "^18.2.0",
"swr": "^1.3.0",
"typescript": "^4.9.3",
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/tests/cli/plugins.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ describe('CLI Plugins Tests', () => {
'swr',
'@tanstack/[email protected]',
'@trpc/server',
'@prisma/client@5.20.x',
'@prisma/client@5.21.x',
`${path.join(__dirname, '../../../../.build/zenstackhq-language-' + ver + '.tgz')}`,
`${path.join(__dirname, '../../../../.build/zenstackhq-sdk-' + ver + '.tgz')}`,
`${path.join(__dirname, '../../../../.build/zenstackhq-runtime-' + ver + '.tgz')}`,
Expand All @@ -85,7 +85,7 @@ describe('CLI Plugins Tests', () => {
const devDepPkgs = [
'typescript',
'@types/react',
'prisma@5.20.x',
'prisma@5.21.x',
`${path.join(__dirname, '../../../../.build/zenstack-' + ver + '.tgz')}`,
`${path.join(__dirname, '../../../../.build/zenstackhq-tanstack-query-' + ver + '.tgz')}`,
`${path.join(__dirname, '../../../../.build/zenstackhq-swr-' + ver + '.tgz')}`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"lint": "next lint"
},
"dependencies": {
"@prisma/client": "5.20.x",
"@prisma/client": "5.21.x",
"@types/node": "18.11.18",
"@types/react": "18.0.27",
"@types/react-dom": "18.0.10",
Expand All @@ -26,6 +26,6 @@
"@zenstackhq/swr": "../../../../../../../packages/plugins/swr/dist"
},
"devDependencies": {
"prisma": "5.20.x"
"prisma": "5.21.x"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"lint": "next lint"
},
"dependencies": {
"@prisma/client": "5.20.x",
"@prisma/client": "5.21.x",
"@tanstack/react-query": "^4.22.4",
"@trpc/client": "^10.34.0",
"@trpc/next": "^10.34.0",
Expand All @@ -31,6 +31,6 @@
"@zenstackhq/trpc": "../../../../../../../packages/plugins/trpc/dist"
},
"devDependencies": {
"prisma": "5.20.x"
"prisma": "5.21.x"
}
}

0 comments on commit 8a5e25f

Please sign in to comment.