[PR #2382] [CLOSED] Update dependencie react-pdf to resolve random 500x Errors when viewing a Entry #2263

Closed
opened 2026-02-26 20:33:08 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/2382
Author: @KarloDerEchte
Created: 1/13/2026
Status: Closed

Base: mainHead: main


📝 Commits (4)

  • c642499 Update README.md
  • d8cd3dd fix: update react-pdf dependency to version 10.3.0
  • 4d99ef7 fix: downgrade pdfjs-dist to version 5.4.296
  • 729875e chore(docker): disable temporary google vertex ai key to avoid type error

📊 Changes

6 files changed (+22 additions, -19 deletions)

View changed files

📝 README.md (+3 -0)
📝 package-lock.json (+11 -11)
📝 package.json (+2 -2)
📝 packages/lib/package.json (+2 -2)
📝 packages/lib/server-only/ai/google.ts (+1 -1)
📝 packages/ui/package.json (+3 -3)

📄 Description

Description

Ive updated the dependency react-pdf to fix a bug which resulted in random 500x erros when viewing a pdf because of incorrect promise handling. Please check this issue in the react-pdf repo.

Changes Made

  • Updated react-pdf from 10.2.0 to 10.3.0
  • Downgraded pdfjs-dist from 5.4.449 to 5.4.296 to resolve compatibility issues with react-pdf

Testing Performed

  • Checked if viewing of the pdf files work
  • Checked if creating and sending the pdf document works

Checklist

  • I have tested these changes locally and they work as expected.
  • I have followed the project's coding style guidelines.

🔄 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/2382 **Author:** [@KarloDerEchte](https://github.com/KarloDerEchte) **Created:** 1/13/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (4) - [`c642499`](https://github.com/documenso/documenso/commit/c642499116af7344314a8abcf755de68394a9be7) Update README.md - [`d8cd3dd`](https://github.com/documenso/documenso/commit/d8cd3dd9cc04e38bb9bc03a498d4ff85cf952af8) fix: update react-pdf dependency to version 10.3.0 - [`4d99ef7`](https://github.com/documenso/documenso/commit/4d99ef7dc19441ebfd1e171a02d389d67850e04d) fix: downgrade pdfjs-dist to version 5.4.296 - [`729875e`](https://github.com/documenso/documenso/commit/729875e4e3f3035edf4c474e4522d55574f17888) chore(docker): disable temporary google vertex ai key to avoid type error ### 📊 Changes **6 files changed** (+22 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+3 -0) 📝 `package-lock.json` (+11 -11) 📝 `package.json` (+2 -2) 📝 `packages/lib/package.json` (+2 -2) 📝 `packages/lib/server-only/ai/google.ts` (+1 -1) 📝 `packages/ui/package.json` (+3 -3) </details> ### 📄 Description ## Description Ive updated the dependency react-pdf to fix a bug which resulted in random 500x erros when viewing a pdf because of incorrect promise handling. Please check [this issue in the react-pdf repo](https://github.com/wojtekmaj/react-pdf/issues/974). ## Related Issue <!--- If this pull request is related to a specific issue, reference it here using #issue_number. --> <!--- For example, "Fixes #123" or "Addresses #456". --> ## Changes Made <!--- Provide a summary of the changes made in this pull request. --> <!--- Include any relevant technical details or architecture changes. --> - Updated react-pdf from 10.2.0 to 10.3.0 - Downgraded pdfjs-dist from 5.4.449 to 5.4.296 to resolve compatibility issues with react-pdf ## Testing Performed <!--- Describe the testing that you have performed to validate these changes. --> <!--- Include information about test cases, testing environments, and results. --> - Checked if viewing of the pdf files work - Checked if creating and sending the pdf document works ## Checklist <!--- Please check the boxes that apply to this pull request. --> <!--- You can add or remove items as needed. --> - [x] I have tested these changes locally and they work as expected. - [x] I have followed the project's coding style guidelines. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 20:33:08 +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#2263
No description provided.