Skip to content

Commit b10b883

Browse files
authored
[PRM-568] Upgrade pdfjs from v4 to v5 (#820)
1 parent 70c8625 commit b10b883

File tree

4 files changed

+56
-72
lines changed

4 files changed

+56
-72
lines changed

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ env:
9090
./lambdas/venv/bin/pip3 install -r $(REPORTS_REQUIREMENTS) --no-cache-dir
9191
./lambdas/venv/bin/pip3 install -r $(ALERTING_REQUIREMENTS) --no-cache-dir
9292

93-
9493
github_env:
9594
rm -rf lambdas/venv || true
9695
python3 -m venv ./lambdas/venv
@@ -138,7 +137,7 @@ clean-install:
138137

139138
install-pdfjs:
140139
mkdir -p ./app/public/pdfjs
141-
wget https://github.com/mozilla/pdf.js/releases/download/v4.10.38/pdfjs-4.10.38-dist.zip -O ./app/public/pdfjs/pdfjs.zip
140+
wget https://github.com/mozilla/pdf.js/releases/download/v5.4.296/pdfjs-5.4.296-dist.zip -O ./app/public/pdfjs/pdfjs.zip
142141
unzip -o -d ./app/public/pdfjs ./app/public/pdfjs/pdfjs.zip
143142
rm ./app/public/pdfjs/pdfjs.zip
144143

app/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ COPY ./ ./
1010
RUN npm install --legacy-peer-deps
1111
RUN cp ./node_modules/pdfjs-dist/build/pdf.worker.min.mjs ./public/
1212
RUN mkdir -p ./public/pdfjs
13-
RUN wget https://github.com/mozilla/pdf.js/releases/download/v4.10.38/pdfjs-4.10.38-dist.zip -O ./public/pdfjs/pdfjs.zip
13+
RUN wget https://github.com/mozilla/pdf.js/releases/download/v5.4.296/pdfjs-5.4.296-dist.zip -O ./public/pdfjs/pdfjs.zip
1414
RUN unzip -o -d ./public/pdfjs ./public/pdfjs/pdfjs.zip
1515
RUN rm ./public/pdfjs/pdfjs.zip
1616
RUN npm run build

app/package-lock.json

Lines changed: 52 additions & 67 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
"nhsuk-frontend": "^9.6.4",
4040
"nhsuk-react-components": "^5.0.0",
4141
"pdf-merger-js": "^5.1.2",
42-
"pdfjs-dist": "^5.4.149",
43-
"pdfjs-viewer-element": "^2.7.2",
42+
"pdfjs-dist": "^5.4.296",
43+
"pdfjs-viewer-element": "^2.7.4",
4444
"pdfobject": "^2.3.1",
4545
"react": "^19.1.1",
4646
"react-dom": "^19.1.1",

0 commit comments

Comments
 (0)