Skip to content

Commit

Permalink
Upgrade Prisma to 4.12.0 with other deps
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalLytek committed Mar 29, 2023
1 parent 53ae4b2 commit d835cf6
Show file tree
Hide file tree
Showing 17 changed files with 1,562 additions and 1,508 deletions.
2 changes: 1 addition & 1 deletion docs/basics/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ $ npm i @prisma/client
:::caution
Be aware that `typegraphql-prisma` is designed to work with a selected versions of `prisma`.

Please make sure you use `prisma` and `@prisma/client` of version matching `~4.10.0`.
Please make sure you use `prisma` and `@prisma/client` of version matching `~4.12.0`.
Otherwise, the runtime check will report an error when you run the generator.
:::

Expand Down
310 changes: 149 additions & 161 deletions experiments/mongodb/package-lock.json

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions experiments/mongodb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@
"seed": "prisma db seed"
},
"dependencies": {
"@prisma/client": "~4.11.0",
"@types/graphql-fields": "^1.3.4",
"@prisma/client": "~4.12.0",
"@types/graphql-fields": "^1.3.5",
"graphql": "^16.6.0",
"graphql-fields": "^2.0.3",
"graphql-scalars": "^1.20.1",
"graphql-yoga": "^3.7.0",
"graphql-scalars": "^1.21.3",
"graphql-yoga": "^3.8.0",
"reflect-metadata": "^0.1.13",
"tslib": "^2.5.0",
"type-graphql": "2.0.0-beta.1"
},
"devDependencies": {
"@types/node": "^18.14.2",
"@types/node": "^18.15.11",
"class-validator": "^0.14.0",
"prisma": "~4.11.0",
"prisma": "~4.12.0",
"ts-node": "^10.9.1",
"typescript": "~4.9.5"
},
Expand Down
8 changes: 4 additions & 4 deletions experiments/mongodb/prisma/generated/client/index-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ const Prisma = {}
exports.Prisma = Prisma

/**
* Prisma Client JS version: 4.11.0
* Query Engine version: 8fde8fef4033376662cad983758335009d522acb
* Prisma Client JS version: 4.12.0
* Query Engine version: 659ef412370fa3b41cd7bf6e94587c1dfb7f67e7
*/
Prisma.prismaVersion = {
client: "4.11.0",
engine: "8fde8fef4033376662cad983758335009d522acb"
client: "4.12.0",
engine: "659ef412370fa3b41cd7bf6e94587c1dfb7f67e7"
}

Prisma.PrismaClientKnownRequestError = () => {
Expand Down
6 changes: 4 additions & 2 deletions experiments/mongodb/prisma/generated/client/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ type UnwrapTuple<Tuple extends readonly unknown[]> = {
[K in keyof Tuple]: K extends `${number}` ? Tuple[K] extends Prisma.PrismaPromise<infer X> ? X : UnwrapPromise<Tuple[K]> : UnwrapPromise<Tuple[K]>
};

export type PrismaPromise<T> = runtime.Types.Public.PrismaPromise<T>


/**
* Model UserAddress
Expand Down Expand Up @@ -212,8 +214,8 @@ export namespace Prisma {


/**
* Prisma Client JS version: 4.11.0
* Query Engine version: 8fde8fef4033376662cad983758335009d522acb
* Prisma Client JS version: 4.12.0
* Query Engine version: 659ef412370fa3b41cd7bf6e94587c1dfb7f67e7
*/
export type PrismaVersion = {
client: string
Expand Down
12 changes: 6 additions & 6 deletions experiments/mongodb/prisma/generated/client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ const Prisma = {}
exports.Prisma = Prisma

/**
* Prisma Client JS version: 4.11.0
* Query Engine version: 8fde8fef4033376662cad983758335009d522acb
* Prisma Client JS version: 4.12.0
* Query Engine version: 659ef412370fa3b41cd7bf6e94587c1dfb7f67e7
*/
Prisma.prismaVersion = {
client: "4.11.0",
engine: "8fde8fef4033376662cad983758335009d522acb"
client: "4.12.0",
engine: "659ef412370fa3b41cd7bf6e94587c1dfb7f67e7"
}

Prisma.PrismaClientKnownRequestError = PrismaClientKnownRequestError;
Expand Down Expand Up @@ -160,8 +160,8 @@ const config = {
"schemaEnvPath": "../../.env"
},
"relativePath": "../..",
"clientVersion": "4.11.0",
"engineVersion": "8fde8fef4033376662cad983758335009d522acb",
"clientVersion": "4.12.0",
"engineVersion": "659ef412370fa3b41cd7bf6e94587c1dfb7f67e7",
"datasourceNames": [
"db"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1339,6 +1339,7 @@ declare type GraphQLQuery = {
};

declare type HandleErrorParams = {
args: JsArgs;
error: any;
clientMethod: string;
callsite?: CallSite;
Expand Down Expand Up @@ -2100,8 +2101,8 @@ declare class RequestHandler {
* Handles the error and logs it, logging the error is done synchronously waiting for the event
* handlers to finish.
*/
handleAndLogRequestError({ error, clientMethod, callsite, transaction }: HandleErrorParams): never;
handleRequestError({ error, clientMethod, callsite, transaction }: HandleErrorParams): never;
handleAndLogRequestError(params: HandleErrorParams): never;
handleRequestError({ error, clientMethod, callsite, transaction, args }: HandleErrorParams): never;
sanitizeMessage(message: any): any;
unpack(message: ProtocolMessage, data: unknown, dataPath: string[], unpacker?: Unpacker): any;
applyResultExtensions({ result, modelName, args, extensions }: ApplyExtensionsParams): object;
Expand Down
197 changes: 100 additions & 97 deletions experiments/mongodb/prisma/generated/client/runtime/library.js

Large diffs are not rendered by default.

Loading

0 comments on commit d835cf6

Please sign in to comment.