Skip to content

Commit f606b12

Browse files
authored
chore: upgrade to Prisma 5.14.0 (#1477)
1 parent 6610bd0 commit f606b12

File tree

9 files changed

+73
-93
lines changed

9 files changed

+73
-93
lines changed

packages/runtime/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
"zod-validation-error": "^1.5.0"
9999
},
100100
"peerDependencies": {
101-
"@prisma/client": "5.0.0 - 5.13.x"
101+
"@prisma/client": "5.0.0 - 5.14.x"
102102
},
103103
"author": {
104104
"name": "ZenStack Team"

packages/schema/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,10 @@
122122
"zod-validation-error": "^1.5.0"
123123
},
124124
"peerDependencies": {
125-
"prisma": "5.0.0 - 5.13.x"
125+
"prisma": "5.0.0 - 5.14.x"
126126
},
127127
"devDependencies": {
128-
"@prisma/client": "^5.13.0",
128+
"@prisma/client": "^5.14.0",
129129
"@types/async-exit-hook": "^2.0.0",
130130
"@types/pluralize": "^0.0.29",
131131
"@types/semver": "^7.3.13",
@@ -137,7 +137,7 @@
137137
"@zenstackhq/runtime": "workspace:*",
138138
"dotenv": "^16.0.3",
139139
"esbuild": "^0.15.12",
140-
"prisma": "^5.13.0",
140+
"prisma": "^5.14.0",
141141
"renamer": "^4.0.0",
142142
"tmp": "^0.2.1",
143143
"tsc-alias": "^1.7.0",

packages/schema/tests/generator/prisma-generator.test.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ describe('Prisma generator test', () => {
3434
provider = 'postgresql'
3535
url = env("DATABASE_URL")
3636
directUrl = env("DATABASE_URL")
37-
shadowDatabaseUrl = env("DATABASE_URL")
3837
extensions = [pg_trgm, postgis(version: "3.3.2"), uuid_ossp(map: "uuid-ossp", schema: "extensions")]
3938
schemas = ["auth", "public"]
4039
}
@@ -67,7 +66,6 @@ describe('Prisma generator test', () => {
6766
expect(content).toContain('provider = "postgresql"');
6867
expect(content).toContain('url = env("DATABASE_URL")');
6968
expect(content).toContain('directUrl = env("DATABASE_URL")');
70-
expect(content).toContain('shadowDatabaseUrl = env("DATABASE_URL")');
7169
expect(content).toContain(
7270
'extensions = [pg_trgm, postgis(version: "3.3.2"), uuid_ossp(map: "uuid-ossp", schema: "extensions")]'
7371
);
@@ -253,9 +251,9 @@ describe('Prisma generator test', () => {
253251
expect(content).toContain(`@@map("_Role")`);
254252
expect(content).toContain(`@map("admin")`);
255253
expect(content).toContain(`@map("customer")`);
256-
expect(content).toContain('/// Admin role documentation line 1\n' +
257-
' /// Admin role documentation line 2\n' +
258-
' ADMIN');
254+
expect(content).toContain(
255+
'/// Admin role documentation line 1\n' + ' /// Admin role documentation line 2\n' + ' ADMIN'
256+
);
259257
});
260258

261259
it('attribute passthrough', async () => {

packages/schema/tests/schema/validation/datasource-validation.test.ts

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ describe('Datasource Validation Tests', () => {
1313
cause: [
1414
{ message: 'datasource must include a "provider" field' },
1515
{ message: 'datasource must include a "url" field' },
16-
]
17-
}
18-
})
16+
],
17+
},
18+
});
1919
});
2020

2121
it('dup fields', async () => {
@@ -63,14 +63,6 @@ describe('Datasource Validation Tests', () => {
6363
}
6464
`)
6565
).toContain('"url" must be set to a string literal or an invocation of "env" function');
66-
67-
expect(
68-
await loadModelWithError(`
69-
datasource db {
70-
shadowDatabaseUrl = 123
71-
}
72-
`)
73-
).toContain('"shadowDatabaseUrl" must be set to a string literal or an invocation of "env" function');
7466
});
7567

7668
it('invalid relationMode value', async () => {
@@ -96,7 +88,6 @@ describe('Datasource Validation Tests', () => {
9688
datasource db {
9789
provider = "postgresql"
9890
url = "url"
99-
shadowDatabaseUrl = "shadow"
10091
relationMode = "prisma"
10192
}
10293
`);
@@ -105,7 +96,6 @@ describe('Datasource Validation Tests', () => {
10596
datasource db {
10697
provider = "postgresql"
10798
url = env("url")
108-
shadowDatabaseUrl = env("shadowUrl")
10999
relationMode = "foreignKeys"
110100
}
111101
`);

packages/sdk/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
"author": "",
1919
"license": "MIT",
2020
"dependencies": {
21-
"@prisma/generator-helper": "^5.13.0",
22-
"@prisma/internals": "^5.13.0",
21+
"@prisma/generator-helper": "^5.14.0",
22+
"@prisma/internals": "^5.14.0",
2323
"@zenstackhq/language": "workspace:*",
2424
"@zenstackhq/runtime": "workspace:*",
2525
"langium": "1.3.1",

pnpm-lock.yaml

Lines changed: 55 additions & 63 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/integration/test-run/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
"author": "",
1111
"license": "ISC",
1212
"dependencies": {
13-
"@prisma/client": "^5.13.0",
13+
"@prisma/client": "^5.14.0",
1414
"@zenstackhq/runtime": "file:../../../packages/runtime/dist",
15-
"prisma": "^5.13.0",
15+
"prisma": "^5.14.0",
1616
"react": "^18.2.0",
1717
"swr": "^1.3.0",
1818
"typescript": "^4.9.3",

tests/integration/tests/frameworks/nextjs/test-project/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"lint": "next lint"
1010
},
1111
"dependencies": {
12-
"@prisma/client": "^5.13.0",
12+
"@prisma/client": "^5.14.0",
1313
"@types/node": "18.11.18",
1414
"@types/react": "18.0.27",
1515
"@types/react-dom": "18.0.10",
@@ -22,6 +22,6 @@
2222
"zod": "^3.22.4"
2323
},
2424
"devDependencies": {
25-
"prisma": "^5.13.0"
25+
"prisma": "^5.14.0"
2626
}
2727
}

tests/integration/tests/frameworks/trpc/test-project/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"lint": "next lint"
1010
},
1111
"dependencies": {
12-
"@prisma/client": "^5.13.0",
12+
"@prisma/client": "^5.14.0",
1313
"@tanstack/react-query": "^4.22.4",
1414
"@trpc/client": "^10.34.0",
1515
"@trpc/next": "^10.34.0",
@@ -26,6 +26,6 @@
2626
"zod": "^3.22.4"
2727
},
2828
"devDependencies": {
29-
"prisma": "^5.13.0"
29+
"prisma": "^5.14.0"
3030
}
3131
}

0 commit comments

Comments
 (0)