Skip to content

Commit 62a7368

Browse files
committed
[breaking] Update pdfjs-dist to 4.2.67
1 parent c31e769 commit 62a7368

File tree

6 files changed

+20
-15
lines changed

6 files changed

+20
-15
lines changed

packages/react-pdf/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"make-cancellable-promise": "^1.3.1",
6161
"make-event-props": "^1.6.0",
6262
"merge-refs": "^1.3.0",
63-
"pdfjs-dist": "4.0.379",
63+
"pdfjs-dist": "4.2.67",
6464
"tiny-invariant": "^1.0.0",
6565
"warning": "^4.0.0"
6666
},

packages/react-pdf/src/Page/AnnotationLayer.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ export default function AnnotationLayer() {
161161
const annotationLayerParameters = {
162162
accessibilityManager: null, // TODO: Implement this
163163
annotationCanvasMap: null, // TODO: Implement this
164+
annotationEditorUIManager: null, // TODO: Implement this
164165
div: layer,
165166
l10n: null, // TODO: Implement this
166167
page,

packages/react-pdf/src/index.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe('default entry', () => {
88
});
99

1010
it('has GlobalWorkerOptions exported properly', () => {
11-
expect(typeof pdfjs.GlobalWorkerOptions).toBe('object');
11+
expect(typeof pdfjs.GlobalWorkerOptions).toBe('function');
1212
});
1313
});
1414

packages/react-pdf/src/shared/types.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type {
55
PasswordResponses,
66
} from 'pdfjs-dist';
77
import type {
8-
BinaryData,
8+
TypedArray,
99
DocumentInitParameters,
1010
RefProxy,
1111
StructTreeNode,
@@ -57,6 +57,8 @@ export type ScrollPageIntoViewArgs = {
5757
pageNumber: number;
5858
};
5959

60+
type BinaryData = TypedArray | ArrayBuffer | number[] | string;
61+
6062
export type Source =
6163
| { data: BinaryData | undefined }
6264
| { range: PDFDataRangeTransport }

test/shared/types.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import type { PDFDataRangeTransport } from 'pdfjs-dist';
2-
import type { BinaryData } from 'pdfjs-dist/types/src/display/api.js';
2+
import type { TypedArray } from 'pdfjs-dist/types/src/display/api.js';
3+
4+
type BinaryData = TypedArray | ArrayBuffer | number[] | string;
35

46
export type Source =
57
| { data: BinaryData | undefined }

yarn.lock

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4269,10 +4269,10 @@ __metadata:
42694269
languageName: node
42704270
linkType: hard
42714271

4272-
"path2d-polyfill@npm:^2.0.1":
4273-
version: 2.0.1
4274-
resolution: "path2d-polyfill@npm:2.0.1"
4275-
checksum: 10c0/b6d8c0764f65438cd884ef3b62c5af07d4f526b379c4c804effc26dd17936f18076941941f9e804c0df96d39720f155e9f0723e4b30feaee152ea4a441df023e
4272+
"path2d@npm:^0.2.0":
4273+
version: 0.2.0
4274+
resolution: "path2d@npm:0.2.0"
4275+
checksum: 10c0/fcf95e10a28ef9277a8e60c1df2b5279facb5894efa6a6c5225ec86b502aead1ea8fa90a3b21a7b5864e7a0ffb1405b360dc757c88794c5965bd43aa51b3c4f1
42764276
languageName: node
42774277
linkType: hard
42784278

@@ -4290,18 +4290,18 @@ __metadata:
42904290
languageName: node
42914291
linkType: hard
42924292

4293-
"pdfjs-dist@npm:4.0.379":
4294-
version: 4.0.379
4295-
resolution: "pdfjs-dist@npm:4.0.379"
4293+
"pdfjs-dist@npm:4.2.67":
4294+
version: 4.2.67
4295+
resolution: "pdfjs-dist@npm:4.2.67"
42964296
dependencies:
42974297
canvas: "npm:^2.11.2"
4298-
path2d-polyfill: "npm:^2.0.1"
4298+
path2d: "npm:^0.2.0"
42994299
dependenciesMeta:
43004300
canvas:
43014301
optional: true
4302-
path2d-polyfill:
4302+
path2d:
43034303
optional: true
4304-
checksum: 10c0/ac6bdc600ead7811482d5265a8b19ba40742babd0939823b31bda0fbc371d21ede86b173ef9c2adb3dbfcb27eab20e6cdba0a8811196e893d138bd280f2a7028
4304+
checksum: 10c0/1d6d427a2253b2c15cbb168d7f95fc26428134ff61113359653c36f92475a4abd8552913b1492489933304ccc4285328b5cbcff36825ae533b8cd4c279881348
43054305
languageName: node
43064306
linkType: hard
43074307

@@ -4522,7 +4522,7 @@ __metadata:
45224522
make-event-props: "npm:^1.6.0"
45234523
merge-refs: "npm:^1.3.0"
45244524
nodemon: "npm:^3.0.0"
4525-
pdfjs-dist: "npm:4.0.379"
4525+
pdfjs-dist: "npm:4.2.67"
45264526
prettier: "npm:^3.2.0"
45274527
react: "npm:^18.2.0"
45284528
react-dom: "npm:^18.2.0"

0 commit comments

Comments
 (0)