Skip to content

Commit

Permalink
feat(deps)!: update prisma to v2.18.0 (#1058)
Browse files Browse the repository at this point in the history
Co-authored-by: Renovate Bot <bot@renovateapp.com>
  • Loading branch information
lvauvillier and renovate-bot authored Mar 9, 2021
1 parent 842e347 commit 7bdaebb
Show file tree
Hide file tree
Showing 9 changed files with 197 additions and 155 deletions.
6 changes: 3 additions & 3 deletions examples/blog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@
"data:inject": "ts-node prisma/fake-data.ts"
},
"dependencies": {
"@prisma/client": "2.17.0",
"@prisma/client": "2.18.0",
"graphql": "^15.4.0",
"graphql-yoga": "^1.18.2",
"nexus": "^1.0.0",
"nexus-plugin-prisma": "^0.30.0"
"nexus-plugin-prisma": "^0.31.0"
},
"devDependencies": {
"@types/faker": "^5.1.5",
"@types/ws": "^7.4.0",
"faker": "^5.1.0",
"prettier": "^2.2.1",
"prisma": "^2.17.0",
"prisma": "^2.18.0",
"ts-node": "^9.1.1",
"ts-node-dev": "^1.1.1",
"typescript": "^4.1.3"
Expand Down
44 changes: 22 additions & 22 deletions examples/blog/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@
# yarn lockfile v1


"@prisma/client@2.17.0":
version "2.17.0"
resolved "https://registry.yarnpkg.com/@prisma/client/-/client-2.17.0.tgz#e38462796c2e824504763416f5e3a7219d70652d"
integrity sha512-tzsBxtx9J1epOGCiBeXur1tEz81UIdWg2G/HpDmflXKcv/MJb+KCWSKSsEW49eXcvVwRgxNyxLoCO6CwvjQKcg==
"@prisma/client@2.18.0":
version "2.18.0"
resolved "https://registry.yarnpkg.com/@prisma/client/-/client-2.18.0.tgz#bff0a206f3caf7525583c703146f835dee0b5ad6"
integrity sha512-tRu0bdYNKIdWnFIbtgUmZyPgtDLV3AgwO8NYXirlbSn5poygbSaV87UfOBh1NmrvjS9EBP5dQv+bs62sVB84hA==
dependencies:
"@prisma/engines-version" "2.17.0-35.3c463ebd78b1d21d8fdacdd27899e280cf686223"
"@prisma/engines-version" "2.18.0-34.da6fafb57b24e0b61ca20960c64e2d41f9e8cff1"

"@prisma/engines-version@2.17.0-35.3c463ebd78b1d21d8fdacdd27899e280cf686223":
version "2.17.0-35.3c463ebd78b1d21d8fdacdd27899e280cf686223"
resolved "https://registry.yarnpkg.com/@prisma/engines-version/-/engines-version-2.17.0-35.3c463ebd78b1d21d8fdacdd27899e280cf686223.tgz#9ae6ed4467a0febff8afaf216c1bb67225f51b84"
integrity sha512-9idv5blqPUlvUPVT48eVi3T0RS/NBklUcjrla3jWyV8AYfB2BdaG/Zci7H5ajyYLnfZZHG9tBpP0LcveQCFH8A==
"@prisma/engines-version@2.18.0-34.da6fafb57b24e0b61ca20960c64e2d41f9e8cff1":
version "2.18.0-34.da6fafb57b24e0b61ca20960c64e2d41f9e8cff1"
resolved "https://registry.yarnpkg.com/@prisma/engines-version/-/engines-version-2.18.0-34.da6fafb57b24e0b61ca20960c64e2d41f9e8cff1.tgz#c595c9d85ab2c67b67d0eb7bfbb0a3b05b41fdbe"
integrity sha512-+Eljsb1XItfq9B6vRTA1Oe4CQOGAxbsjtPAIORZwaU4Gt9RybnXapFlrQ8Mac89PXeSgcO4RnPSLEYhcd3kSVg==

"@prisma/engines@2.17.0-35.3c463ebd78b1d21d8fdacdd27899e280cf686223":
version "2.17.0-35.3c463ebd78b1d21d8fdacdd27899e280cf686223"
resolved "https://registry.yarnpkg.com/@prisma/engines/-/engines-2.17.0-35.3c463ebd78b1d21d8fdacdd27899e280cf686223.tgz#08bc3633fd27fb1935805ef16c37802ed713db5b"
integrity sha512-FKjVD6NYbGiQhwas3hA2uMpNchz+Mf3tv5qA8Ci9cAkKHGqt3jWjjUAK9juVBqeOcv4OPimQYMrkRX6SvaxBjg==
"@prisma/engines@2.18.0-34.da6fafb57b24e0b61ca20960c64e2d41f9e8cff1":
version "2.18.0-34.da6fafb57b24e0b61ca20960c64e2d41f9e8cff1"
resolved "https://registry.yarnpkg.com/@prisma/engines/-/engines-2.18.0-34.da6fafb57b24e0b61ca20960c64e2d41f9e8cff1.tgz#647a7e2735b08fe28425be135120bb54ea408256"
integrity sha512-Q5q5mQePRFSSGbd/14Ogq1RNkebbbwskiTbWsvrSq14t9Us0rC9Xsecd4mr4rEAy8Yd6sXEJW4czZ/88DGzz2w==

"@types/aws-lambda@8.10.13":
version "8.10.13"
Expand Down Expand Up @@ -1048,10 +1048,10 @@ negotiator@0.6.2:
resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.2.tgz#feacf7ccf525a77ae9634436a64883ffeca346fb"
integrity sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==

nexus-plugin-prisma@^0.30.0:
version "0.30.0"
resolved "https://registry.yarnpkg.com/nexus-plugin-prisma/-/nexus-plugin-prisma-0.30.0.tgz#6860328ee09c80f16bbc359864415b8358084111"
integrity sha512-/Slypcty4fLVnN8k0ifsav0zY/xHWHzBpCboAmLs3eINxy++oYNUurpEv9C1dJ/2kTOBGSE1kpWMYt1SjUyHNg==
nexus-plugin-prisma@^0.31.0:
version "0.31.0"
resolved "https://registry.yarnpkg.com/nexus-plugin-prisma/-/nexus-plugin-prisma-0.31.0.tgz#f9ca88b393848a545d22e50c41716f242da60ff2"
integrity sha512-zo4fr/DE6oi5cmZk80csd9svAIVixgY9BB9xZVVTxg4jootOQSOXGn3OP8A6dGQj6/nzlakB72CAiUeRgDmzHQ==
dependencies:
camelcase "^6.2.0"
endent "^2.0.1"
Expand Down Expand Up @@ -1187,12 +1187,12 @@ prettier@^2.2.1:
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.2.1.tgz#795a1a78dd52f073da0cd42b21f9c91381923ff5"
integrity sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q==

prisma@^2.17.0:
version "2.17.0"
resolved "https://registry.yarnpkg.com/prisma/-/prisma-2.17.0.tgz#686469914ed13d4b0926ee5f17efb7a9ab741e8a"
integrity sha512-NypJI7OCXCfDkRKubbVb3nmPeRJ1SjQfg6QAwK06KsreBZl1F96rFz2iB2bl4kIrhLAbIySBjwUJlG87Jsxt7g==
prisma@^2.18.0:
version "2.18.0"
resolved "https://registry.yarnpkg.com/prisma/-/prisma-2.18.0.tgz#b19a2d4a487b8b62759777be55506567af41f6ae"
integrity sha512-03po/kFW3/oGHtnANgZiKYz22KEx6NpdaIP2r4eievmVam9f2+0PdP4x/KSFdMCT6B6VHh+3ILTi2z3bYosCgA==
dependencies:
"@prisma/engines" "2.17.0-35.3c463ebd78b1d21d8fdacdd27899e280cf686223"
"@prisma/engines" "2.18.0-34.da6fafb57b24e0b61ca20960c64e2d41f9e8cff1"

proxy-addr@~2.0.5:
version "2.0.6"
Expand Down
6 changes: 3 additions & 3 deletions examples/hello-world/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@
"nexus:reflect": "NEXUS_SHOULD_EXIT_AFTER_GENERATE_ARTIFACTS=true ts-node --transpile-only api"
},
"dependencies": {
"@prisma/client": "^2.17.0",
"@prisma/client": "^2.18.0",
"apollo-server-express": "^2.19.1",
"express": "^4.17.1",
"graphql": "^15.4.0",
"graphql-scalars": "^1.7.0",
"nexus": "^1.0.0",
"nexus-plugin-prisma": "^0.30.0"
"nexus-plugin-prisma": "^0.31.0"
},
"devDependencies": {
"@types/express": "^4.17.9",
"prisma": "^2.17.0",
"prisma": "^2.18.0",
"ts-node": "^9.1.1",
"ts-node-dev": "^1.1.1",
"typescript": "^4.1.3"
Expand Down
44 changes: 22 additions & 22 deletions examples/hello-world/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,22 @@
dependencies:
xss "^1.0.6"

"@prisma/client@^2.17.0":
version "2.17.0"
resolved "https://registry.yarnpkg.com/@prisma/client/-/client-2.17.0.tgz#e38462796c2e824504763416f5e3a7219d70652d"
integrity sha512-tzsBxtx9J1epOGCiBeXur1tEz81UIdWg2G/HpDmflXKcv/MJb+KCWSKSsEW49eXcvVwRgxNyxLoCO6CwvjQKcg==
"@prisma/client@^2.18.0":
version "2.18.0"
resolved "https://registry.yarnpkg.com/@prisma/client/-/client-2.18.0.tgz#bff0a206f3caf7525583c703146f835dee0b5ad6"
integrity sha512-tRu0bdYNKIdWnFIbtgUmZyPgtDLV3AgwO8NYXirlbSn5poygbSaV87UfOBh1NmrvjS9EBP5dQv+bs62sVB84hA==
dependencies:
"@prisma/engines-version" "2.17.0-35.3c463ebd78b1d21d8fdacdd27899e280cf686223"
"@prisma/engines-version" "2.18.0-34.da6fafb57b24e0b61ca20960c64e2d41f9e8cff1"

"@prisma/engines-version@2.17.0-35.3c463ebd78b1d21d8fdacdd27899e280cf686223":
version "2.17.0-35.3c463ebd78b1d21d8fdacdd27899e280cf686223"
resolved "https://registry.yarnpkg.com/@prisma/engines-version/-/engines-version-2.17.0-35.3c463ebd78b1d21d8fdacdd27899e280cf686223.tgz#9ae6ed4467a0febff8afaf216c1bb67225f51b84"
integrity sha512-9idv5blqPUlvUPVT48eVi3T0RS/NBklUcjrla3jWyV8AYfB2BdaG/Zci7H5ajyYLnfZZHG9tBpP0LcveQCFH8A==
"@prisma/engines-version@2.18.0-34.da6fafb57b24e0b61ca20960c64e2d41f9e8cff1":
version "2.18.0-34.da6fafb57b24e0b61ca20960c64e2d41f9e8cff1"
resolved "https://registry.yarnpkg.com/@prisma/engines-version/-/engines-version-2.18.0-34.da6fafb57b24e0b61ca20960c64e2d41f9e8cff1.tgz#c595c9d85ab2c67b67d0eb7bfbb0a3b05b41fdbe"
integrity sha512-+Eljsb1XItfq9B6vRTA1Oe4CQOGAxbsjtPAIORZwaU4Gt9RybnXapFlrQ8Mac89PXeSgcO4RnPSLEYhcd3kSVg==

"@prisma/engines@2.17.0-35.3c463ebd78b1d21d8fdacdd27899e280cf686223":
version "2.17.0-35.3c463ebd78b1d21d8fdacdd27899e280cf686223"
resolved "https://registry.yarnpkg.com/@prisma/engines/-/engines-2.17.0-35.3c463ebd78b1d21d8fdacdd27899e280cf686223.tgz#08bc3633fd27fb1935805ef16c37802ed713db5b"
integrity sha512-FKjVD6NYbGiQhwas3hA2uMpNchz+Mf3tv5qA8Ci9cAkKHGqt3jWjjUAK9juVBqeOcv4OPimQYMrkRX6SvaxBjg==
"@prisma/engines@2.18.0-34.da6fafb57b24e0b61ca20960c64e2d41f9e8cff1":
version "2.18.0-34.da6fafb57b24e0b61ca20960c64e2d41f9e8cff1"
resolved "https://registry.yarnpkg.com/@prisma/engines/-/engines-2.18.0-34.da6fafb57b24e0b61ca20960c64e2d41f9e8cff1.tgz#647a7e2735b08fe28425be135120bb54ea408256"
integrity sha512-Q5q5mQePRFSSGbd/14Ogq1RNkebbbwskiTbWsvrSq14t9Us0rC9Xsecd4mr4rEAy8Yd6sXEJW4czZ/88DGzz2w==

"@protobufjs/aspromise@^1.1.1", "@protobufjs/aspromise@^1.1.2":
version "1.1.2"
Expand Down Expand Up @@ -1361,10 +1361,10 @@ negotiator@0.6.2:
resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.2.tgz#feacf7ccf525a77ae9634436a64883ffeca346fb"
integrity sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==

nexus-plugin-prisma@^0.30.0:
version "0.30.0"
resolved "https://registry.yarnpkg.com/nexus-plugin-prisma/-/nexus-plugin-prisma-0.30.0.tgz#6860328ee09c80f16bbc359864415b8358084111"
integrity sha512-/Slypcty4fLVnN8k0ifsav0zY/xHWHzBpCboAmLs3eINxy++oYNUurpEv9C1dJ/2kTOBGSE1kpWMYt1SjUyHNg==
nexus-plugin-prisma@^0.31.0:
version "0.31.0"
resolved "https://registry.yarnpkg.com/nexus-plugin-prisma/-/nexus-plugin-prisma-0.31.0.tgz#f9ca88b393848a545d22e50c41716f242da60ff2"
integrity sha512-zo4fr/DE6oi5cmZk80csd9svAIVixgY9BB9xZVVTxg4jootOQSOXGn3OP8A6dGQj6/nzlakB72CAiUeRgDmzHQ==
dependencies:
camelcase "^6.2.0"
endent "^2.0.1"
Expand Down Expand Up @@ -1529,12 +1529,12 @@ pluralize@^8.0.0:
resolved "https://registry.yarnpkg.com/pluralize/-/pluralize-8.0.0.tgz#1a6fa16a38d12a1901e0320fa017051c539ce3b1"
integrity sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==

prisma@^2.17.0:
version "2.17.0"
resolved "https://registry.yarnpkg.com/prisma/-/prisma-2.17.0.tgz#686469914ed13d4b0926ee5f17efb7a9ab741e8a"
integrity sha512-NypJI7OCXCfDkRKubbVb3nmPeRJ1SjQfg6QAwK06KsreBZl1F96rFz2iB2bl4kIrhLAbIySBjwUJlG87Jsxt7g==
prisma@^2.18.0:
version "2.18.0"
resolved "https://registry.yarnpkg.com/prisma/-/prisma-2.18.0.tgz#b19a2d4a487b8b62759777be55506567af41f6ae"
integrity sha512-03po/kFW3/oGHtnANgZiKYz22KEx6NpdaIP2r4eievmVam9f2+0PdP4x/KSFdMCT6B6VHh+3ILTi2z3bYosCgA==
dependencies:
"@prisma/engines" "2.17.0-35.3c463ebd78b1d21d8fdacdd27899e280cf686223"
"@prisma/engines" "2.18.0-34.da6fafb57b24e0b61ca20960c64e2d41f9e8cff1"

proxy-addr@~2.0.5:
version "2.0.6"
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"upgrade-prisma-dev": "yarn add @prisma/cli@dev @prisma/client@dev @prisma/fetch-engine@dev @prisma/get-platform@dev @prisma/migrate@dev @prisma/sdk@dev"
},
"peerDependencies": {
"@prisma/client": "2.17.x",
"@prisma/client": "2.18.x",
"graphql": "^15.3.0",
"nexus": "^1.0.0"
},
Expand All @@ -46,11 +46,11 @@
},
"devDependencies": {
"@prisma-labs/prettier-config": "0.1.0",
"@prisma/client": "2.17.0",
"@prisma/fetch-engine": "2.17.0",
"@prisma/get-platform": "2.17.0",
"@prisma/migrate": "2.17.0",
"@prisma/sdk": "2.17.0",
"@prisma/client": "2.18.0",
"@prisma/fetch-engine": "2.18.0",
"@prisma/get-platform": "2.18.0",
"@prisma/migrate": "2.18.0",
"@prisma/sdk": "2.18.0",
"@types/jest": "26.0.20",
"@types/lodash": "4.14.167",
"@types/node": "14.14.20",
Expand All @@ -70,7 +70,7 @@
"nexus": "^1.0.0",
"node-fetch": "2.6.1",
"prettier": "2.2.1",
"prisma": "^2.16.0",
"prisma": "^2.18.0",
"strip-ansi": "6.0.0",
"ts-jest": "26.4.4",
"ts-morph": "9.1.0",
Expand Down
12 changes: 6 additions & 6 deletions tests/schema/__snapshots__/computedInputs.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ input UserCreateInput {
input NestedCreateInput {
name: String!
User: UserCreateNestedOneWithoutNestedInput
user: UserCreateNestedOneWithoutNestedInput!
}
input NestedWhereUniqueInput {
Expand Down Expand Up @@ -100,14 +100,14 @@ interface NexusPrismaInputs {
ordering: 'id' | 'name'
}
nesteds: {
filtering: 'AND' | 'OR' | 'NOT' | 'id' | 'name' | 'User' | 'userId'
ordering: 'id' | 'name' | 'User' | 'userId'
filtering: 'AND' | 'OR' | 'NOT' | 'id' | 'name' | 'userId' | 'user'
ordering: 'id' | 'name' | 'userId' | 'user'
}
},
User: {
nested: {
filtering: 'AND' | 'OR' | 'NOT' | 'id' | 'name' | 'User' | 'userId'
ordering: 'id' | 'name' | 'User' | 'userId'
filtering: 'AND' | 'OR' | 'NOT' | 'id' | 'name' | 'userId' | 'user'
ordering: 'id' | 'name' | 'userId' | 'user'
}
}
Nested: {
Expand Down Expand Up @@ -147,8 +147,8 @@ interface NexusPrismaOutputs {
id: 'Int'
name: 'String'
createdWithBrowser: 'String'
User: 'User'
userId: 'Int'
user: 'User'
}
}
Expand Down
9 changes: 6 additions & 3 deletions tests/schema/commonFieldConfig.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ it('forwards description & deprecation on all field types', async () => {
favouriteColor Color
latestPost Post? @relation("latestPostId")
posts Post[] @relation("userId")
latestPostId Int?
latestPost Post? @relation("latestPost", fields: [latestPostId], references: [id])
posts Post[] @relation("posts")
}
enum Color {
Expand All @@ -27,7 +28,9 @@ it('forwards description & deprecation on all field types', async () => {
id Int @id @default(autoincrement())
title String
body String
user User @relation("userId")
userId Int
user User @relation("posts", fields: [userId], references: [id])
latestPostUsers User[] @relation("latestPost")
}
`

Expand Down
2 changes: 2 additions & 0 deletions tests/schema/computedInputs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ const globalTestData = {
id Int @id @default(autoincrement())
name String
createdWithBrowser String
userId Int
user User @relation(fields: [userId], references: [id])
}
`,
query: Nexus.queryType({
Expand Down
Loading

0 comments on commit 7bdaebb

Please sign in to comment.