Skip to content

Commit 913a9ef

Browse files
feat: upgrade to PDF.js v5.4.296
1 parent 70dcc3b commit 913a9ef

File tree

4 files changed

+24
-11
lines changed

4 files changed

+24
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This library is also intended as a modern alternative to the unmaintained but st
1818
## PDF.js Compatibility
1919

2020
> [!Tip]
21-
> The serverless PDF.js bundle provided by `unpdf` is built from PDF.js v5.4.149.
21+
> The serverless PDF.js bundle provided by `unpdf` is built from PDF.js v5.4.296.
2222
2323
You can use an [official PDF.js build](#official-or-legacy-pdfjs-build) by using the [`definePDFJSModule`](#definepdfjsmodule) method. This is useful if you want to use a specific version or a custom build of PDF.js.
2424

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"devDependencies": {
7373
"@antfu/eslint-config": "^6.2.0",
7474
"@napi-rs/canvas": "^0.1.81",
75-
"@rollup/plugin-alias": "^5.1.1",
75+
"@rollup/plugin-alias": "^6.0.0",
7676
"@rollup/plugin-inject": "^5.0.5",
7777
"@rollup/plugin-node-resolve": "^16.0.3",
7878
"@rollup/plugin-replace": "^6.0.3",
@@ -82,7 +82,7 @@
8282
"bumpp": "^10.3.1",
8383
"eslint": "^9.38.0",
8484
"fast-glob": "^3.3.3",
85-
"pdfjs-dist": "~5.4.149",
85+
"pdfjs-dist": "~5.4.296",
8686
"rollup": "^4.52.5",
8787
"tslib": "^2.8.1",
8888
"typescript": "^5.9.3",

pnpm-lock.yaml

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

test/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ describe('unpdf', () => {
2929
const PDFJS = await getResolvedPDFJS()
3030
const { version } = PDFJS
3131

32-
expect(version).toMatchInlineSnapshot(`"5.4.149"`)
32+
expect(version).toMatchInlineSnapshot(`"5.4.296"`)
3333
})
3434

3535
it('extracts metadata from a PDF', async () => {

0 commit comments

Comments
 (0)