Stirling-PDF
Stirling-PDF copied to clipboard
Update PDF.js integration and dependencies
This pull request updates several dependencies and improves PDF processing compatibility and performance in the frontend. The most important changes are grouped below:
Dependency Upgrades and Tooling Improvements
- Updated multiple dependencies in
frontend/package.jsonanddevDependencies, including major libraries such asreact,@mui/material,@mantine/core,pdfjs-dist, and testing tools, to their latest versions for improved stability and security. [1] [2] - Switched build and test plugins from
@vitejs/plugin-reactto@vitejs/plugin-react-swcin bothvite.config.tsandvitest.config.ts, which should result in faster builds and tests. [1] [2]
PDF.js Integration and Compatibility Fixes
- Changed all imports of
pdfjsLibto use the new ESM-compatible pathpdfjs-dist/legacy/build/pdf.mjsin hooks and services, ensuring compatibility with the updatedpdfjs-distpackage. [1] [2] [3] [4] - Updated the PDF worker initialization in
pdfWorkerManager.tsto use the correct ESM worker path, fixing worker loading issues with the new PDF.js version.
PDF Export Bug Fixes
- Fixed PDF export in
pdfExportService.tsby wrapping saved PDF bytes in aUint8Arraybefore creating aBlob, ensuring proper file encoding and compatibility. [1] [2]
oooo getting your foot into V2 now I see
oooo getting your foot into V2 now I see
I still have to deal with something 😄
https://github.com/Stirling-Tools/Stirling-PDF/actions/runs/17528797431/attempts/1#summary-49782887434