Skip to content

Commit

Permalink
Update deps to Prisma 2.25
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalLytek committed Jun 16, 2021
1 parent d4f4450 commit 4c6800a
Show file tree
Hide file tree
Showing 10 changed files with 3,434 additions and 3,609 deletions.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ npm i @prisma/client

> 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 `~2.22.0`.
> Please make sure you use `prisma` and `@prisma/client` of version matching `~2.25.0`.
> Otherwise, the runtime check will report an error when you run the generator.
You also need to install the GraphQL Scalars library (to support the Prisma `Json`, `BigInt` and `Byte` types):
Expand Down
612 changes: 232 additions & 380 deletions experiments/package-lock.json

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions experiments/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@
"seed": "prisma db seed --preview-feature"
},
"dependencies": {
"@prisma/client": "~2.23.0",
"@prisma/client": "~2.25.0",
"@types/graphql-fields": "^1.3.3",
"apollo-server": "^2.24.1",
"apollo-server": "^2.25.1",
"graphql": "^15.5.0",
"graphql-fields": "^2.0.3",
"graphql-scalars": "^1.9.3",
"graphql-scalars": "^1.10.0",
"reflect-metadata": "^0.1.13",
"type-graphql": "1.1.1"
},
"devDependencies": {
"@types/node": "^15.6.1",
"@types/node": "^15.12.2",
"class-validator": "^0.13.1",
"prisma": "~2.23.0",
"prisma": "~2.25.0",
"ts-node": "^10.0.0",
"typescript": "~4.2.4"
"typescript": "~4.3.2"
}
}
8 changes: 4 additions & 4 deletions experiments/prisma/generated/client/index-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ const Prisma = {}
exports.Prisma = Prisma

/**
* Prisma Client JS version: 2.23.0
* Query Engine version: adf5e8cba3daf12d456d911d72b6e9418681b28b
* Prisma Client JS version: 2.25.0
* Query Engine version: c838e79f39885bc8e1611849b1eb28b5bb5bc922
*/
Prisma.prismaVersion = {
client: "2.23.0",
engine: "adf5e8cba3daf12d456d911d72b6e9418681b28b"
client: "2.25.0",
engine: "c838e79f39885bc8e1611849b1eb28b5bb5bc922"
}

Prisma.PrismaClientKnownRequestError = () => {
Expand Down
4 changes: 2 additions & 2 deletions experiments/prisma/generated/client/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,8 @@ export namespace Prisma {
export import Decimal = runtime.Decimal

/**
* Prisma Client JS version: 2.23.0
* Query Engine version: adf5e8cba3daf12d456d911d72b6e9418681b28b
* Prisma Client JS version: 2.25.0
* Query Engine version: c838e79f39885bc8e1611849b1eb28b5bb5bc922
*/
export type PrismaVersion = {
client: string
Expand Down
22 changes: 13 additions & 9 deletions experiments/prisma/generated/client/index.js

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

20 changes: 18 additions & 2 deletions experiments/prisma/generated/client/runtime/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ interface Engine {
stop(): Promise<void>;
kill(signal: string): void;
getConfig(): Promise<GetConfigResult>;
version(forceRun?: boolean): Promise<string>;
version(forceRun?: boolean): Promise<string> | string;
request<T>(query: string, headers: Record<string, string>, numTry: number): Promise<{
data: T;
elapsed: number;
Expand Down Expand Up @@ -1016,4 +1016,20 @@ declare class Decimal {
static readonly EUCLID: 9;
}

export { DMMF, DMMFClass, Decimal, NodeEngine as Engine, PrismaClientInitializationError, PrismaClientKnownRequestError, PrismaClientOptions, PrismaClientRustPanicError, PrismaClientUnknownRequestError, PrismaClientValidationError, RawValue, Sql, Value, empty, getPrismaClient, join, makeDocument, raw, sqltag, transformDocument, unpack, warnEnvConflicts };
declare type ItemType = 'd' | 'f' | 'l';
declare type Handler = (base: string, item: string, type: ItemType) => boolean | string;
/**
* Find paths that match a set of regexes
* @param root to start from
* @param match to match against
* @param types to select files, folders, links
* @param deep to recurse in the directory tree
* @param limit to limit the results
* @param handler to further filter results
* @param found to add to already found
* @param seen to add to already seen
* @returns found paths (symlinks preserved)
*/
declare function findSync(root: string, match: (RegExp | string)[], types?: ('f' | 'd' | 'l')[], deep?: ('d' | 'l')[], limit?: number, handler?: Handler, found?: string[], seen?: Record<string, true>): string[];

export { DMMF, DMMFClass, Decimal, NodeEngine as Engine, PrismaClientInitializationError, PrismaClientKnownRequestError, PrismaClientOptions, PrismaClientRustPanicError, PrismaClientUnknownRequestError, PrismaClientValidationError, RawValue, Sql, Value, empty, findSync, getPrismaClient, join, makeDocument, raw, sqltag, transformDocument, unpack, warnEnvConflicts };
Loading

0 comments on commit 4c6800a

Please sign in to comment.