Pin pdfjs-dist to 5.4.296 to match react-pdf's bundled version
CI / test (push) Failing after 8s
CI / lint (push) Failing after 8s
CI / secrets-scan (push) Successful in 5s
CI / vuln-scan (push) Successful in 13s
CI / sast (push) Successful in 10s
CI / build-images (push) Has been skipped
CI / image-scan (push) Has been skipped
CI / push (push) Has been skipped

react-pdf@10.4.1 has an exact pdfjs-dist@5.4.296 dependency, but our
top-level pdfjs-dist resolved to 5.7.284, so the worker we shipped
mismatched the API code react-pdf called into and PDFs failed with:
"The API version 5.4.296 does not match the Worker version 5.7.284".

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-09 23:30:34 -07:00
parent 8e1bac5430
commit a18858ea10
3 changed files with 5 additions and 13 deletions
+2 -10
View File
@@ -160,8 +160,8 @@ importers:
specifier: ^1.8.0
version: 1.8.0(react@19.2.5)
pdfjs-dist:
specifier: ^5.7.284
version: 5.7.284
specifier: ^5.4.296
version: 5.4.296
react:
specifier: ^19.2.4
version: 19.2.5
@@ -4745,10 +4745,6 @@ packages:
resolution: {integrity: sha512-DlOzet0HO7OEnmUmB6wWGJrrdvbyJKftI1bhMitK7O2N8W2gc757yyYBbINy9IDafXAV9wmKr9t7xsTaNKRG5Q==}
engines: {node: '>=20.16.0 || >=22.3.0'}
pdfjs-dist@5.7.284:
resolution: {integrity: sha512-h4EdYQczmGhbOlqc3PPZwxevn7ApdWPbovAuWXOB/DjIyigSnwfy2oze7c6mRcSr9XgLp3eN3EeL4DyySTPMFw==}
engines: {node: '>=22.13.0 || >=24'}
perfect-debounce@1.0.0:
resolution: {integrity: sha512-xCy9V055GLEqoFaHoC1SoLIaLmWctgCUaBaWxDZ7/Zx4CTyX7cJQLJOok/orfjZAh9kEYpjJa4d0KcJmCbctZA==}
@@ -11118,10 +11114,6 @@ snapshots:
optionalDependencies:
'@napi-rs/canvas': 0.1.100
pdfjs-dist@5.7.284:
optionalDependencies:
'@napi-rs/canvas': 0.1.100
perfect-debounce@1.0.0: {}
picocolors@1.1.1: {}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "tehriehlbudget-backend",
"version": "0.3.1",
"version": "0.3.2",
"description": "",
"author": "",
"private": true,
+2 -2
View File
@@ -1,7 +1,7 @@
{
"name": "tehriehlbudget-frontend",
"private": true,
"version": "0.3.1",
"version": "0.3.2",
"type": "module",
"scripts": {
"dev": "vite",
@@ -23,7 +23,7 @@
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"lucide-react": "^1.8.0",
"pdfjs-dist": "^5.7.284",
"pdfjs-dist": "5.4.296",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"react-pdf": "^10.4.1",