mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-05-31 15:21:00 +02:00
By removing support for older browsers it's possible to simplify both the code and the build-scripts, in addition to removing manually implemented polyfills. Using the PDF.js library/viewer will now require native support for the following features: - The `AbortSignal.any()` static method, see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/any_static#browser_compatibility - The `:dir()` CSS pseudo-class, see https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Selectors/:dir#browser_compatibility - The `light-dark()` CSS function, see https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/light-dark#browser_compatibility - The CSS `&` nesting selector, see https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Selectors/Nesting_selector#browser_compatibility This patch updates the minimum supported browsers as follows: - Google Chrome 125, which was released on 2024-05-15; see https://chromereleases.googleblog.com/2024/05/stable-channel-update-for-desktop_15.html - Safari 18, which was released on 2024-09-16; see https://developer.apple.com/documentation/safari-release-notes/safari-18-release-notes *Note:* This version is the first with experimental support for the `CanvasRenderingContext2D.filter` property, which is a long-standing missing feature in Safari, however it must be *manually enabled*; see https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/filter#browser_compatibility Note that nowadays we usually try, where feasible and possible, to support browsers that are about two years old. By limiting support to only "recent" browsers we reduce the risk of holding back improvements of the *built-in* Firefox PDF Viewer, and also (significantly) reduce the maintenance/support burden for the PDF.js contributors. *Please note:* As always, the minimum supported browser version assumes that a `legacy`-build of the PDF.js library is being used; see https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#faq-support
74 lines
2.1 KiB
JSON
74 lines
2.1 KiB
JSON
{
|
|
"name": "pdf.js",
|
|
"type": "module",
|
|
"devDependencies": {
|
|
"@babel/core": "^7.29.0",
|
|
"@babel/preset-env": "^7.29.2",
|
|
"@babel/runtime": "^7.29.2",
|
|
"@eslint/json": "^1.2.0",
|
|
"@fluent/bundle": "^0.19.1",
|
|
"@fluent/dom": "^0.10.2",
|
|
"@metalsmith/layouts": "^3.0.0",
|
|
"@metalsmith/markdown": "^1.10.0",
|
|
"@napi-rs/canvas": "^0.1.100",
|
|
"@types/node": "^25.6.0",
|
|
"autoprefixer": "^10.5.0",
|
|
"babel-loader": "^10.1.1",
|
|
"babel-plugin-add-header-comment": "^1.0.3",
|
|
"babel-plugin-istanbul": "^8.0.0",
|
|
"cached-iterable": "^0.3.0",
|
|
"caniuse-lite": "^1.0.30001791",
|
|
"core-js": "^3.49.0",
|
|
"eslint": "^10.2.1",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"eslint-plugin-import-x": "^4.16.2",
|
|
"eslint-plugin-jasmine": "^4.2.2",
|
|
"eslint-plugin-no-unsanitized": "^4.1.5",
|
|
"eslint-plugin-perfectionist": "^5.9.0",
|
|
"eslint-plugin-prettier": "^5.5.5",
|
|
"eslint-plugin-unicorn": "^64.0.0",
|
|
"globals": "^17.5.0",
|
|
"gulp": "^5.0.1",
|
|
"gulp-cli": "^3.1.0",
|
|
"gulp-postcss": "^10.0.0",
|
|
"gulp-rename": "^2.1.0",
|
|
"gulp-replace": "^1.1.4",
|
|
"gulp-zip": "^6.1.0",
|
|
"highlight.js": "^11.11.1",
|
|
"istanbul-lib-coverage": "^3.2.2",
|
|
"istanbul-lib-report": "^3.0.1",
|
|
"istanbul-reports": "^3.2.0",
|
|
"jasmine": "^6.2.0",
|
|
"jsdoc": "^4.0.5",
|
|
"jstransformer-nunjucks": "^1.2.0",
|
|
"kleur": "^4.1.5",
|
|
"metalsmith": "^2.7.0",
|
|
"metalsmith-html-relative": "^2.0.11",
|
|
"ordered-read-streams": "^2.0.0",
|
|
"pngjs": "^7.0.0",
|
|
"postcss": "^8.5.10",
|
|
"postcss-discard-comments": "^7.0.7",
|
|
"postcss-values-parser": "^7.0.0",
|
|
"prettier": "^3.8.3",
|
|
"puppeteer": "^24.42.0",
|
|
"stylelint": "^17.9.0",
|
|
"stylelint-prettier": "^5.0.3",
|
|
"svglint": "^4.2.1",
|
|
"terser-webpack-plugin": "^5.5.0",
|
|
"tsc-alias": "^1.8.16",
|
|
"ttest": "^4.0.0",
|
|
"typescript": "^5.9.3",
|
|
"vinyl": "^3.0.1",
|
|
"webpack": "^5.106.2",
|
|
"webpack-stream": "^7.0.0"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git://github.com/mozilla/pdf.js.git"
|
|
},
|
|
"engines": {
|
|
"node": ">=22.13.0 || >=24"
|
|
},
|
|
"license": "Apache-2.0"
|
|
}
|