Skip to content

Commit

Permalink
feat(deps)!: update prisma to v2.15.0 (#1028)
Browse files Browse the repository at this point in the history
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Luc Vauvillier <luc.vauvillier@gmail.com>
Co-authored-by: Jason Kuhrt <jasonkuhrt@me.com>

BREAKING CHANGES:

Prisma version 2.14 and under no longer work.
  • Loading branch information
renovate[bot] committed Jan 29, 2021
1 parent 567194c commit abaad12
Show file tree
Hide file tree
Showing 10 changed files with 5,010 additions and 2,001 deletions.
4 changes: 2 additions & 2 deletions examples/blog/package.json
Expand Up @@ -15,14 +15,14 @@
"data:inject": "ts-node prisma/fake-data.ts"
},
"dependencies": {
"@prisma/client": "2.14.0",
"@prisma/client": "2.15.0",
"graphql": "^15.4.0",
"graphql-yoga": "^1.18.2",
"nexus": "^1.0.0",
"nexus-plugin-prisma": "^0.28.0"
},
"devDependencies": {
"@prisma/cli": "2.14.0",
"@prisma/cli": "2.15.0",
"@types/faker": "^5.1.5",
"@types/ws": "^7.4.0",
"faker": "^5.1.0",
Expand Down
42 changes: 18 additions & 24 deletions examples/blog/yarn.lock
Expand Up @@ -2,35 +2,29 @@
# yarn lockfile v1


"@prisma/bar@^0.0.1":
version "0.0.1"
resolved "https://registry.yarnpkg.com/@prisma/bar/-/bar-0.0.1.tgz#088c4fbbb79c588391437ade9fd3a85527e753b3"
integrity sha512-FVLhwVkbfhXlBhroWfIXMLi+3Jh9IEzYp+9z+MUUiw3ZsbcoAil7CN9/QIjHc4/TcCRyRfuSmT7qCnn4O+TjJw==

"@prisma/cli@2.14.0":
version "2.14.0"
resolved "https://registry.yarnpkg.com/@prisma/cli/-/cli-2.14.0.tgz#6aa298a389fb899730ee68d3487633e19677d416"
integrity sha512-zKYiOGlc/Y0VVRQew0jMR2sGSFnKnNGlgY4ToB5K1JMv7jCg51w+FJe2FwTOF4uWv+0Yp2KC1b0TAP8KUbNJ3A==
"@prisma/cli@2.15.0":
version "2.15.0"
resolved "https://registry.yarnpkg.com/@prisma/cli/-/cli-2.15.0.tgz#a979a67dbd606a966cf475686170128562590713"
integrity sha512-sF2mgn5oH5fL9/CKxS0tqojf0rK2BKODlEUqL+2s3YZqvJRSt4iFpiyjgajyd0wyTyv1k9LDHTV0yOD1mXDBsA==
dependencies:
"@prisma/bar" "^0.0.1"
"@prisma/engines" "2.14.0-28.5d491261d382a2a5ffdc71de17072b0e409f1cc1"
"@prisma/engines" "2.15.0-25.e51dc3b5a9ee790a07104bec1c9477d51740fe54"

"@prisma/client@2.14.0":
version "2.14.0"
resolved "https://registry.yarnpkg.com/@prisma/client/-/client-2.14.0.tgz#a57ef8f3c41127f84ebe5f69bd01a966b204cdc2"
integrity sha512-0PiiZ2maM9OP/G5mynzftvD4DFrtibeyvZf5U7Be360mtSvgLHQhZ/CHbChb0BVeWeyJuTmAqqni98LcdVgttw==
"@prisma/client@2.15.0":
version "2.15.0"
resolved "https://registry.yarnpkg.com/@prisma/client/-/client-2.15.0.tgz#41ee22c60778b54aec0f6d4832c2d35fbf9eb423"
integrity sha512-3j4OoLpAGF104KAenUFJM9sU2+4jRP+RlrlYssBHkwBf+/5+2ihSpcmFiWIw1vXNRdmZtivjwhjcVtmjZPJktw==
dependencies:
"@prisma/engines-version" "2.14.0-28.5d491261d382a2a5ffdc71de17072b0e409f1cc1"
"@prisma/engines-version" "2.15.0-25.e51dc3b5a9ee790a07104bec1c9477d51740fe54"

"@prisma/engines-version@2.14.0-28.5d491261d382a2a5ffdc71de17072b0e409f1cc1":
version "2.14.0-28.5d491261d382a2a5ffdc71de17072b0e409f1cc1"
resolved "https://registry.yarnpkg.com/@prisma/engines-version/-/engines-version-2.14.0-28.5d491261d382a2a5ffdc71de17072b0e409f1cc1.tgz#ffd22601a18d74040653f6f8f518026cbc1bee3e"
integrity sha512-Oz3yNV//9UTJ+ral5tF6Ryb/MLfOE3+2F3/bH4waTbNRDd/zXKoS3jTI3ViU8yRQ1AsOQa9/pV/kXSlxgtAh8Q==
"@prisma/engines-version@2.15.0-25.e51dc3b5a9ee790a07104bec1c9477d51740fe54":
version "2.15.0-25.e51dc3b5a9ee790a07104bec1c9477d51740fe54"
resolved "https://registry.yarnpkg.com/@prisma/engines-version/-/engines-version-2.15.0-25.e51dc3b5a9ee790a07104bec1c9477d51740fe54.tgz#d9c887bc8f30d1f107c9021b2565a8672d62622d"
integrity sha512-KDxk7Zsc9tDoShCE7v+O1SnCUTUkMdfezjbuz9CBvdEBGMtYLgyHaZAO8M038uqy8KjgwV9PzyoLqvVfzfsngg==

"@prisma/engines@2.14.0-28.5d491261d382a2a5ffdc71de17072b0e409f1cc1":
version "2.14.0-28.5d491261d382a2a5ffdc71de17072b0e409f1cc1"
resolved "https://registry.yarnpkg.com/@prisma/engines/-/engines-2.14.0-28.5d491261d382a2a5ffdc71de17072b0e409f1cc1.tgz#dee16f1c648cd291540937ad5d69062526368946"
integrity sha512-t5/Mq0VtL7khYQtbap8myr7RwyIvmruCFxsph6oTi8QZaklmuxSp7FAC2DWBz8r/KoZFngMpmliKfDrWN7uwzQ==
"@prisma/engines@2.15.0-25.e51dc3b5a9ee790a07104bec1c9477d51740fe54":
version "2.15.0-25.e51dc3b5a9ee790a07104bec1c9477d51740fe54"
resolved "https://registry.yarnpkg.com/@prisma/engines/-/engines-2.15.0-25.e51dc3b5a9ee790a07104bec1c9477d51740fe54.tgz#3093ace7c09cf694214727c4e67109f2a2d8855a"
integrity sha512-AgPxAWtwYhhTNEEsV4lK63HTe9z0GAGL3ofMr2B0TncACmzi9lhdun9TTNie38Oy/3DLfr71TUHKUpV8QjOKUw==

"@types/aws-lambda@8.10.13":
version "8.10.13"
Expand Down
4 changes: 2 additions & 2 deletions examples/hello-world/package.json
Expand Up @@ -10,7 +10,7 @@
"nexus:reflect": "NEXUS_SHOULD_EXIT_AFTER_GENERATE_ARTIFACTS=true ts-node --transpile-only api"
},
"dependencies": {
"@prisma/client": "^2.14.0",
"@prisma/client": "^2.15.0",
"apollo-server-express": "^2.19.1",
"express": "^4.17.1",
"graphql": "^15.4.0",
Expand All @@ -19,7 +19,7 @@
"nexus-plugin-prisma": "^0.28.0"
},
"devDependencies": {
"@prisma/cli": "2.14.0",
"@prisma/cli": "2.15.0",
"@types/express": "^4.17.9",
"ts-node": "^9.1.1",
"ts-node-dev": "^1.1.1",
Expand Down
42 changes: 18 additions & 24 deletions examples/hello-world/yarn.lock
Expand Up @@ -35,35 +35,29 @@
dependencies:
xss "^1.0.6"

"@prisma/bar@^0.0.1":
version "0.0.1"
resolved "https://registry.yarnpkg.com/@prisma/bar/-/bar-0.0.1.tgz#088c4fbbb79c588391437ade9fd3a85527e753b3"
integrity sha512-FVLhwVkbfhXlBhroWfIXMLi+3Jh9IEzYp+9z+MUUiw3ZsbcoAil7CN9/QIjHc4/TcCRyRfuSmT7qCnn4O+TjJw==

"@prisma/cli@2.14.0":
version "2.14.0"
resolved "https://registry.yarnpkg.com/@prisma/cli/-/cli-2.14.0.tgz#6aa298a389fb899730ee68d3487633e19677d416"
integrity sha512-zKYiOGlc/Y0VVRQew0jMR2sGSFnKnNGlgY4ToB5K1JMv7jCg51w+FJe2FwTOF4uWv+0Yp2KC1b0TAP8KUbNJ3A==
"@prisma/cli@2.15.0":
version "2.15.0"
resolved "https://registry.yarnpkg.com/@prisma/cli/-/cli-2.15.0.tgz#a979a67dbd606a966cf475686170128562590713"
integrity sha512-sF2mgn5oH5fL9/CKxS0tqojf0rK2BKODlEUqL+2s3YZqvJRSt4iFpiyjgajyd0wyTyv1k9LDHTV0yOD1mXDBsA==
dependencies:
"@prisma/bar" "^0.0.1"
"@prisma/engines" "2.14.0-28.5d491261d382a2a5ffdc71de17072b0e409f1cc1"
"@prisma/engines" "2.15.0-25.e51dc3b5a9ee790a07104bec1c9477d51740fe54"

"@prisma/client@^2.14.0":
version "2.14.0"
resolved "https://registry.yarnpkg.com/@prisma/client/-/client-2.14.0.tgz#a57ef8f3c41127f84ebe5f69bd01a966b204cdc2"
integrity sha512-0PiiZ2maM9OP/G5mynzftvD4DFrtibeyvZf5U7Be360mtSvgLHQhZ/CHbChb0BVeWeyJuTmAqqni98LcdVgttw==
"@prisma/client@^2.15.0":
version "2.15.0"
resolved "https://registry.yarnpkg.com/@prisma/client/-/client-2.15.0.tgz#41ee22c60778b54aec0f6d4832c2d35fbf9eb423"
integrity sha512-3j4OoLpAGF104KAenUFJM9sU2+4jRP+RlrlYssBHkwBf+/5+2ihSpcmFiWIw1vXNRdmZtivjwhjcVtmjZPJktw==
dependencies:
"@prisma/engines-version" "2.14.0-28.5d491261d382a2a5ffdc71de17072b0e409f1cc1"
"@prisma/engines-version" "2.15.0-25.e51dc3b5a9ee790a07104bec1c9477d51740fe54"

"@prisma/engines-version@2.14.0-28.5d491261d382a2a5ffdc71de17072b0e409f1cc1":
version "2.14.0-28.5d491261d382a2a5ffdc71de17072b0e409f1cc1"
resolved "https://registry.yarnpkg.com/@prisma/engines-version/-/engines-version-2.14.0-28.5d491261d382a2a5ffdc71de17072b0e409f1cc1.tgz#ffd22601a18d74040653f6f8f518026cbc1bee3e"
integrity sha512-Oz3yNV//9UTJ+ral5tF6Ryb/MLfOE3+2F3/bH4waTbNRDd/zXKoS3jTI3ViU8yRQ1AsOQa9/pV/kXSlxgtAh8Q==
"@prisma/engines-version@2.15.0-25.e51dc3b5a9ee790a07104bec1c9477d51740fe54":
version "2.15.0-25.e51dc3b5a9ee790a07104bec1c9477d51740fe54"
resolved "https://registry.yarnpkg.com/@prisma/engines-version/-/engines-version-2.15.0-25.e51dc3b5a9ee790a07104bec1c9477d51740fe54.tgz#d9c887bc8f30d1f107c9021b2565a8672d62622d"
integrity sha512-KDxk7Zsc9tDoShCE7v+O1SnCUTUkMdfezjbuz9CBvdEBGMtYLgyHaZAO8M038uqy8KjgwV9PzyoLqvVfzfsngg==

"@prisma/engines@2.14.0-28.5d491261d382a2a5ffdc71de17072b0e409f1cc1":
version "2.14.0-28.5d491261d382a2a5ffdc71de17072b0e409f1cc1"
resolved "https://registry.yarnpkg.com/@prisma/engines/-/engines-2.14.0-28.5d491261d382a2a5ffdc71de17072b0e409f1cc1.tgz#dee16f1c648cd291540937ad5d69062526368946"
integrity sha512-t5/Mq0VtL7khYQtbap8myr7RwyIvmruCFxsph6oTi8QZaklmuxSp7FAC2DWBz8r/KoZFngMpmliKfDrWN7uwzQ==
"@prisma/engines@2.15.0-25.e51dc3b5a9ee790a07104bec1c9477d51740fe54":
version "2.15.0-25.e51dc3b5a9ee790a07104bec1c9477d51740fe54"
resolved "https://registry.yarnpkg.com/@prisma/engines/-/engines-2.15.0-25.e51dc3b5a9ee790a07104bec1c9477d51740fe54.tgz#3093ace7c09cf694214727c4e67109f2a2d8855a"
integrity sha512-AgPxAWtwYhhTNEEsV4lK63HTe9z0GAGL3ofMr2B0TncACmzi9lhdun9TTNie38Oy/3DLfr71TUHKUpV8QjOKUw==

"@protobufjs/aspromise@^1.1.1", "@protobufjs/aspromise@^1.1.2":
version "1.1.2"
Expand Down
14 changes: 7 additions & 7 deletions package.json
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.14.x",
"@prisma/client": "2.15.x",
"graphql": "^15.3.0",
"nexus": "^1.0.0"
},
Expand All @@ -46,12 +46,12 @@
},
"devDependencies": {
"@prisma-labs/prettier-config": "0.1.0",
"@prisma/cli": "2.14.0",
"@prisma/client": "2.14.0",
"@prisma/fetch-engine": "2.14.0",
"@prisma/get-platform": "2.14.0",
"@prisma/migrate": "2.14.0",
"@prisma/sdk": "2.14.0",
"@prisma/cli": "2.15.0",
"@prisma/client": "2.15.0",
"@prisma/fetch-engine": "2.15.0",
"@prisma/get-platform": "2.15.0",
"@prisma/migrate": "2.15.0",
"@prisma/sdk": "2.15.0",
"@types/jest": "26.0.20",
"@types/lodash": "4.14.167",
"@types/node": "14.14.20",
Expand Down
2 changes: 1 addition & 1 deletion src/dmmf/transformer.ts
Expand Up @@ -109,7 +109,7 @@ function transformOutputType(type: DMMF.OutputType, options: TransformConfig) {
outputType: {
type: getTypeName(field.outputType.type),
kind: getKind(field.outputType),
isRequired: field.isRequired,
isRequired: !field.isNullable,
isNullable: field.isNullable,
isList: field.outputType.isList,
},
Expand Down
2 changes: 1 addition & 1 deletion tests/__client-test-context.ts
Expand Up @@ -131,7 +131,7 @@ async function generateClientFromDatamodel(metadata: Metadata) {
}

async function migrateLift(schemaPath: string): Promise<void> {
const migrate = new Migrate(schemaPath, ['nativeTypes'])
const migrate = new Migrate(schemaPath)

await migrate.push({ force: true })
}
Expand Down

0 comments on commit abaad12

Please sign in to comment.