Skip to content

Commit e061987

Browse files
feat: upgrade PDF.js to v5.4.149
1 parent a7f81cf commit e061987

File tree

7 files changed

+865
-855
lines changed

7 files changed

+865
-855
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- uses: pnpm/action-setup@v4
1818
- uses: actions/setup-node@v4
1919
with:
20-
node-version: 22
20+
node-version: 24
2121
cache: pnpm
2222
- run: pnpm install
2323
- run: pnpm run build:pdfjs

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- uses: pnpm/action-setup@v4
1919
- uses: actions/setup-node@v4
2020
with:
21-
node-version: 22
21+
node-version: 24
2222
registry-url: https://registry.npmjs.org/
2323
cache: pnpm
2424

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.54.
21+
> The serverless PDF.js bundle provided by `unpdf` is built from PDF.js v5.4.149.
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

examples/cloudflare/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"dev": "esbuild --bundle --platform=neutral --outfile=build/index.js index.ts && wrangler dev build/index.js"
66
},
77
"devDependencies": {
8-
"esbuild": "^0.25.6",
9-
"wrangler": "^4.24.4"
8+
"esbuild": "^0.25.10",
9+
"wrangler": "^4.38.0"
1010
}
1111
}

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "unpdf",
33
"type": "module",
44
"version": "1.2.2",
5-
"packageManager": "pnpm@10.15.0",
5+
"packageManager": "pnpm@10.17.0",
66
"description": "PDF extraction and rendering across all JavaScript runtimes",
77
"author": "Johann Schopplich <[email protected]>",
88
"license": "MIT",
@@ -70,20 +70,20 @@
7070
}
7171
},
7272
"devDependencies": {
73-
"@antfu/eslint-config": "^5.2.1",
74-
"@napi-rs/canvas": "^0.1.77",
73+
"@antfu/eslint-config": "^5.3.0",
74+
"@napi-rs/canvas": "^0.1.80",
7575
"@rollup/plugin-alias": "^5.1.1",
7676
"@rollup/plugin-inject": "^5.0.5",
7777
"@rollup/plugin-node-resolve": "^16.0.1",
7878
"@rollup/plugin-replace": "^6.0.2",
7979
"@rollup/plugin-terser": "^0.4.4",
8080
"@rollup/plugin-typescript": "^12.1.4",
81-
"@types/node": "^24.3.0",
81+
"@types/node": "^24.5.2",
8282
"bumpp": "^10.2.3",
83-
"eslint": "^9.33.0",
83+
"eslint": "^9.35.0",
8484
"fast-glob": "^3.3.3",
85-
"pdfjs-dist": "~5.4.54",
86-
"rollup": "^4.46.4",
85+
"pdfjs-dist": "~5.4.149",
86+
"rollup": "^4.51.0",
8787
"tslib": "^2.8.1",
8888
"typescript": "^5.9.2",
8989
"unbuild": "^3.6.1",

0 commit comments

Comments
 (0)