Skip to content

Commit f7749fe

Browse files
committed
Update deps, fix vitest config, update readme
1 parent 7f9326a commit f7749fe

File tree

4 files changed

+1509
-1368
lines changed

4 files changed

+1509
-1368
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,9 @@ const viewerApp = await viewer.initialize()
179179
viewerApp.open({ data: pdfData })
180180
```
181181

182-
## Server configuration
182+
## Known issues
183+
184+
### The `.mjs` files support
183185

184186
Since v4 PDF.js requires `.mjs` files support, make sure your server has it.
185187

@@ -204,6 +206,13 @@ server {
204206
}
205207
```
206208

209+
### Problem with range requests / streaming
210+
211+
Sometimes a PDF file fails to load when working with range requests / streaming.
212+
If you encounter this issue, you can try disabling the broken functionality of PDF.js:
213+
214+
`disable-range="true"`
215+
207216

208217
## License
209218
[MIT](http://opensource.org/licenses/MIT)

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pdfjs-viewer-element",
3-
"version": "2.7.0",
3+
"version": "2.7.1",
44
"license": "MIT",
55
"author": {
66
"name": "Oleksandr Shevchuk",
@@ -40,13 +40,13 @@
4040
"devDependencies": {
4141
"@awlsn/pdfjs-full": "^4.2.392",
4242
"@rollup/plugin-terser": "^0.4.4",
43-
"@types/node": "^18.19.31",
44-
"@vitest/browser": "^1.5.0",
45-
"jsdom": "^22.1.0",
46-
"typescript": "^4.9.5",
47-
"vite": "^5.2.9",
48-
"vitest": "^1.5.0",
49-
"webdriverio": "^8.36.1"
43+
"@types/node": "^22.13.5",
44+
"@vitest/browser": "^3.0.7",
45+
"jsdom": "^26.0.0",
46+
"typescript": "^5.7.3",
47+
"vite": "^6.2.0",
48+
"vitest": "^3.0.7",
49+
"webdriverio": "^9.10.1"
5050
},
5151
"packageManager": "[email protected]+sha512.dc09430156b427f5ecfc79888899e1c39d2d690f004be70e05230b72cb173d96839587545d09429b55ac3c429c801b4dc3c0e002f653830a420fa2dd4e3cf9cf",
5252
"dependencies": {

0 commit comments

Comments
 (0)