[PR #2383] [MERGED] fix: downgrade pdfjs-dist to version 5.4.296 and update react-pdf to version 10.3.0 #2264

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/2383
Author: @KarloDerEchte
Created: 1/13/2026
Status: Merged
Merged: 1/13/2026
Merged by: @Mythie

Base: mainHead: fix-reactpdf


📝 Commits (3)

  • e2001b6 fix: update pdfjs-dist to version 5.4.296 and react-pdf to version 10.3.0
  • b805f75 Merge branch 'main' into fix-reactpdf
  • d95aaf8 chore: align lockfile

📊 Changes

4 files changed (+18 additions, -18 deletions)

View changed files

📝 package-lock.json (+11 -11)
📝 package.json (+2 -2)
📝 packages/lib/package.json (+2 -2)
📝 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
  • Checked if 500 error is gone (Just reload the page 1-30x times it appears at least once) but now it doesnt anymore

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/2383 **Author:** [@KarloDerEchte](https://github.com/KarloDerEchte) **Created:** 1/13/2026 **Status:** ✅ Merged **Merged:** 1/13/2026 **Merged by:** [@Mythie](https://github.com/Mythie) **Base:** `main` ← **Head:** `fix-reactpdf` --- ### 📝 Commits (3) - [`e2001b6`](https://github.com/documenso/documenso/commit/e2001b653c4b5d3f845ede5ed112342967d0c620) fix: update pdfjs-dist to version 5.4.296 and react-pdf to version 10.3.0 - [`b805f75`](https://github.com/documenso/documenso/commit/b805f7547157688325337b37bc4ad69507505dd2) Merge branch 'main' into fix-reactpdf - [`d95aaf8`](https://github.com/documenso/documenso/commit/d95aaf86f689cd6b442b78c28d5f304f0819cf66) chore: align lockfile ### 📊 Changes **4 files changed** (+18 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `package-lock.json` (+11 -11) 📝 `package.json` (+2 -2) 📝 `packages/lib/package.json` (+2 -2) 📝 `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 - Checked if 500 error is gone (Just reload the page 1-30x times it appears at least once) but now it doesnt anymore ## 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#2264
No description provided.