Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pdfjs-dist to 4.8.69 #1921

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions .yarn/patches/pdfjs-dist-npm-4.6.82-35a0e70ced.patch

This file was deleted.

16 changes: 16 additions & 0 deletions .yarn/patches/pdfjs-dist-npm-4.8.69-789befba80.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
diff --git a/build/pdf.mjs b/build/pdf.mjs
index f3f03fa38953ebe0b8666c706c751c7e12628752..9dcca9f372547f63b35c9afcaeaa5171932b636c 100644
--- a/build/pdf.mjs
+++ b/build/pdf.mjs
@@ -5766,8 +5766,9 @@ if (isNodeJS) {
const fs = await import(/*webpackIgnore: true*/"fs"),
http = await import(/*webpackIgnore: true*/"http"),
https = await import(/*webpackIgnore: true*/"https"),
- url = await import(/*webpackIgnore: true*/"url");
- let canvas, path2d;
+ url = await import(/*webpackIgnore: true*/"url"),
+ canvas = await import( /*webpackIgnore: true*/"canvas");
+ let path2d;
return new Map(Object.entries({
fs,
http,
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"husky": "^9.0.0"
},
"resolutions": {
"pdfjs-dist": "patch:pdfjs-dist@npm:4.6.82#.yarn/patches/pdfjs-dist-npm-4.6.82-35a0e70ced.patch"
"pdfjs-dist": "patch:pdfjs-dist@npm:4.8.69#.yarn/patches/pdfjs-dist-npm-4.8.69-789befba80.patch"
},
"packageManager": "[email protected]"
}
2 changes: 1 addition & 1 deletion packages/react-pdf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"make-cancellable-promise": "^1.3.1",
"make-event-props": "^1.6.0",
"merge-refs": "^1.3.0",
"pdfjs-dist": "4.6.82",
"pdfjs-dist": "4.8.69",
"tiny-invariant": "^1.0.0",
"warning": "^4.0.0"
},
Expand Down
1 change: 1 addition & 0 deletions packages/react-pdf/src/Page/AnnotationLayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ export default function AnnotationLayer(): React.ReactElement {
l10n: null, // TODO: Implement this
page,
viewport: clonedViewport,
structTreeLayer: null, // TODO: Implement this
};

const renderParameters = {
Expand Down
Loading