Skip to content

Upgraded pdfjs-dist to 2.16.105

Denys Mishunov requested to merge 375527-pdfjs-worker into master

What does this MR do and why?

The MR upgrades the pdfjs-dist package to the latest version. The issue is that the latest versions of the package do not come transpiled and, hence, are not ready to be used in Webpack 4 env as-is.

This MR upgrades the package and updates the references to the package in code to use the legacy version of the package which is safe to use in the outdated environments like Webpack 4 without additional loaders like babel-loader (which is very slow especially on the really large files like the pdfjs-dist worker).

Screenshots or screen recordings

Before After
Screenshot_2022-10-12_at_16.40.16 Screenshot_2022-10-12_at_16.35.07

How to set up and validate locally

  1. Upload a PDF file to a repo
  2. Make sure there are no [object%20Object] entries in the DevTools' "Network" tab

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #375527 (closed)

Edited by Denys Mishunov

Merge request reports