[PR #173] [MERGED] fix: deprecated type checks and imports from @prisma/client #772

Closed
opened 2026-02-26 18:48:51 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/173
Author: @piyushkrmaurya
Created: 5/29/2023
Status: Merged
Merged: 5/30/2023
Merged by: @Mythie

Base: mainHead: prisma_deprecations


📝 Commits (1)

  • 82fbedf fix: deprecated type checks and imports from @prisma

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 packages/lib/server/getServerErrorFromUnknown.ts (+2 -2)

📄 Description

Fixes #170

  1. imports from "@prisma/client/runtime" are deprecated. Using "@prisma/client/runtime/library" instead
    https://github.com/prisma/prisma/discussions/17832#discussioncomment-5051532

  2. NotFoundError class is deprecated. This has changed to PrismaClientKnownRequestError in 4.10.x
    https://github.com/prisma/prisma/blob/main/packages/client/src/runtime/utils/rejectOnNotFound.ts#L13-L24


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/documenso/documenso/pull/173 **Author:** [@piyushkrmaurya](https://github.com/piyushkrmaurya) **Created:** 5/29/2023 **Status:** ✅ Merged **Merged:** 5/30/2023 **Merged by:** [@Mythie](https://github.com/Mythie) **Base:** `main` ← **Head:** `prisma_deprecations` --- ### 📝 Commits (1) - [`82fbedf`](https://github.com/documenso/documenso/commit/82fbedf8e31b34c923697e857c0ae784968d7aa8) fix: deprecated type checks and imports from @prisma ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/lib/server/getServerErrorFromUnknown.ts` (+2 -2) </details> ### 📄 Description Fixes #170 1. imports from "@prisma/client/runtime" are deprecated. Using "@prisma/client/runtime/library" instead https://github.com/prisma/prisma/discussions/17832#discussioncomment-5051532 3. NotFoundError class is deprecated. This has changed to PrismaClientKnownRequestError in 4.10.x https://github.com/prisma/prisma/blob/main/packages/client/src/runtime/utils/rejectOnNotFound.ts#L13-L24 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 18:48:51 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#772
No description provided.