From 50f17d21ce45e61f6403a1458f4f23c11291c21a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20=C3=98sterkilde?= Date: Mon, 14 Oct 2024 13:29:52 +0200 Subject: [PATCH] chore: update prisma-ast version in blitz package (#4382) * chore: align prisma-ast dependency versions * chore: add changeset * chore: add corrected changeset --- .changeset/lucky-bottles-breathe.md | 5 +++++ packages/blitz/package.json | 2 +- pnpm-lock.yaml | 14 ++------------ 3 files changed, 8 insertions(+), 13 deletions(-) create mode 100644 .changeset/lucky-bottles-breathe.md diff --git a/.changeset/lucky-bottles-breathe.md b/.changeset/lucky-bottles-breathe.md new file mode 100644 index 0000000000..2e22249957 --- /dev/null +++ b/.changeset/lucky-bottles-breathe.md @@ -0,0 +1,5 @@ +--- +"blitz": patch +--- + +Update prisma-ast dependency to prevent Blitz generator from failing when Prisma keywords are used as model names diff --git a/packages/blitz/package.json b/packages/blitz/package.json index 8e15eb917d..a8604c953a 100644 --- a/packages/blitz/package.json +++ b/packages/blitz/package.json @@ -31,7 +31,7 @@ }, "dependencies": { "@blitzjs/generator": "2.1.2", - "@mrleebo/prisma-ast": "0.2.6", + "@mrleebo/prisma-ast": "0.4.1", "@types/global-agent": "2.1.1", "arg": "5.0.1", "ast-types": "0.14.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 55425a3270..7b358fd8bd 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1304,8 +1304,8 @@ importers: specifier: 2.1.2 version: link:../generator "@mrleebo/prisma-ast": - specifier: 0.2.6 - version: 0.2.6 + specifier: 0.4.1 + version: 0.4.1 "@types/global-agent": specifier: 2.1.1 version: 2.1.1 @@ -6049,16 +6049,6 @@ packages: read-yaml-file: 1.1.0 dev: false - /@mrleebo/prisma-ast@0.2.6: - resolution: - { - integrity: sha512-Df0gAGmws3sxNMmLviTarBL9znf84QVlVhlx4EPgArrnaVBy8tNQZAI9aSTJHzH0JGj9BVGa0Qz1g3hPt12Kxw==, - } - engines: {node: ">=10"} - dependencies: - chevrotain: 9.1.0 - dev: false - /@mrleebo/prisma-ast@0.4.1: resolution: {