prisma-tools icon indicating copy to clipboard operation
prisma-tools copied to clipboard

latest versions are not published to npm

Open terion-name opened this issue 3 years ago • 9 comments

npm packages are outdated. e.g.: https://www.npmjs.com/package/@paljs/generator — 4.0.12 https://www.npmjs.com/package/@paljs/plugins — 4.0.8

terion-name avatar Dec 02 '21 15:12 terion-name

@AhmedElywa pleeeeease publish latest versions to npm

terion-name avatar Dec 04 '21 17:12 terion-name

I was out last three days I have an error in building I will fix it when i back You can expect to have the new release tomorrow morning EU Time

AhmedElywa avatar Dec 04 '21 17:12 AhmedElywa

@AhmedElywa thank you!

terion-name avatar Dec 04 '21 17:12 terion-name

@AhmedElywa pleeeeease 🙏

terion-name avatar Dec 06 '21 17:12 terion-name

@terion-name sent the last version 4.0.13 with the last prisma version 3.6.0 why you need it no change happen

AhmedElywa avatar Dec 06 '21 17:12 AhmedElywa

@AhmedElywa we've updated to prisma 3.6.0 recently in one of my apps in develop. And we've discovered that generateInputsString, even without any filters and postprocessing, missing some inputs that are required by prisma. Thought it was some mismatch in prisma engine and generator versions (don't know if it was there prior, updating deps or rolling back in this case is a huge pain).

Session model has many Acts Act has one Document

Act model:

model Act {
  id String @id @default(cuid())

  session Session @relation(name: "ActSession", fields: [sessionId], references: [id])
  sessionId String

  document DocumentsDocument @relation(name: "ActDocumentsDocument", fields: [docId], references: [id])
  docId String

  accepted Boolean @default(false)
  isManual Boolean @default(false)

  votes Vote[] @relation(name:"VoteAct")

  createdAt DateTime @default(now())
  updatedAt DateTime @default(now())
}

in updateSession mutation in SessionUpdateInput there is acts → createOrConnect → create (of type ActUncheckedCreateWithoutSessionInput) that has no document field:

photo_2021-12-06 20 09 44

But it is required there by Prisma (should be something like DocumentUncheckedCreateNestedWithoutArticleInput):

Argument document for data.acts.connectOrCreate.0.create.document is missing.

photo_2021-12-06 20 13 14

Meanwhile acts → create is fine and has document field

terion-name avatar Dec 06 '21 18:12 terion-name

did the new release fixed the issue or still there I already have the same issue for my app

AhmedElywa avatar Dec 06 '21 21:12 AhmedElywa

@AhmedElywa nope, after update inputs are the same (

terion-name avatar Dec 07 '21 14:12 terion-name

@AhmedElywa it seems that it is on prisma's side :(

https://github.com/prisma/prisma/issues/9989

terion-name avatar Dec 07 '21 15:12 terion-name