v4.4.168
timvandermeij
released this
01 Jul 18:01
·
902 commits
to master
since this release
This release contains improvements for annotations, annotation editing, font conversion, image decoding, performance, scripting, text selection, test/release infrastructure and the viewer.
Changes since v4.3.136
- Bump the stable version in
pdfjs.config
by @timvandermeij in #18182 - Update dependencies and translations to the most recent versions by @timvandermeij in #18183
- [api-minor] Simplify how the list of points are structured by @calixteman in #18163
- Bump library version to 4.4 by @calixteman in #18192
- Disconnect the resize observer and remove scroll listener when unbinding window events by @calixteman in #18193
- Switch to page-scrolling mode when the pdf has more than 10000 pages (bug 1895050) by @calixteman in #18189
- Upgrade
gulp
to version 5.0.0 by @timvandermeij in #18197 - Decompress when it's possible images in using DecompressionStream by @calixteman in #18167
- Fix decoding of JPX images having an alpha channel by @calixteman in #18204
- Change openjpeg.js license from Apache 2 to BSD 2-clause by @calixteman in #18205
- Change
DownloadManager.download
to use Uint8Array-data by @Snuffleupagus in #18216 - Inline the
#finishRendering
helper inTextLayerBuilder.prototype.render
by @Snuffleupagus in #18217 - [Editor] Support dragging & dropping images on a pdf (bug 1900907) by @calixteman in #18214
- Update our OpenJPEG decoder in order to fix a malloc failure due to big image (bug 1901253) by @calixteman in #18219
- Don't display annotations with a PMD (barcode stuff) entry (bug 1899804) by @calixteman in #18228
- Update dependencies and translations to the most recent versions by @timvandermeij in #18231
- Add an option to enable/disable hardware acceleration (bug 1902012) by @calixteman in #18238
- Remove the
DownloadManager.downloadUrl
method by @Snuffleupagus in #18236 - Display a wait cursor when saving by @calixteman in #18243
- Fix an query with an empty selector in integration tests by @calixteman in #18246
- Improve how the wait-cursor is toggled when copying all text by @Snuffleupagus in #18244
- Improve date parsing in the js sandbox by @calixteman in #18234
- Don't recommend installing
gulp-cli
globally in the README and on the website by @timvandermeij in #18247 - Replace Wintersmith with Metalsmith by @timvandermeij in #18248
- Include the generated API documentation directly on the API page by @timvandermeij in #18251
- Improve some old code in the
src/display/api.js
file by @Snuffleupagus in #18250 - Compute correctly the unitsPerEm value from the fontMatrix when converting a font (bug 1539074) by @calixteman in #18253
- Implement reproducibility for the JSDoc builds by @timvandermeij in #18256
- Ensure that saving, in the viewer, works for partially loaded documents by @Snuffleupagus in #18254
- Implement reproducibility for the release builds by @timvandermeij in #18258
- Update jpx decoder by @calixteman in #18257
- Only disable HWA in m-c build and for local dev by @calixteman in #18255
- Only use the l10n fallback bundle when normal ftl-file fetching failed (issue 18264) by @Snuffleupagus in #18270
- Ensure that dependencies are added to the operatorList for locally cached images (issue 18259) by @Snuffleupagus in #18269
- Clean up before closing the tab in integration tests by @calixteman in #18271
- Add a helper function for handling locally cached image data (PR 18269 follow-up) by @Snuffleupagus in #18273
- [Editor] Set the canvas in the stamp editor at the right position in odd spread mode by @calixteman in #18275
- [Editor] Fix intermittent failure in integration test when highlighting with the keyboard by @calixteman in #18277
- Enable dumpio when running the tests in order to have some useful debug data by @calixteman in #18260
- Don't save modified documents, when running tests, upon closing the viewer (issue 18274) by @Snuffleupagus in #18282
- Pause l10n (i.e. disconnect the mutation observer in fluent) when closing the viewer by @calixteman in #18280
- Avoid to call a function in the js sandbox when it has been destroyed by @calixteman in #18286
- [Editor] Remove the various listeners when destroying the editor manager by @calixteman in #18284
- Update dependencies to the most recent versions and upgrade
eslint-plugin-unicorn
to version 54.0.0 by @timvandermeij in #18278 - Update the regular expression in
tweakWebpackOutput
to support minified-legacy builds (issue 18290) by @Snuffleupagus in #18292 - Add a new helper, in the viewer, to close everything during testing by @Snuffleupagus in #18289
- Respect
maxCanvasPixels
when computing canvas dimensions by @nicolo-ribaudo in #18218 - [Editor] Don't create an observer for the stamp annotation after the viewer has been closed by @calixteman in #18301
- Don't throw if there's not enough data to get the header in
FlateStream
(issue 18298) by @Snuffleupagus in #18304 - [Editor] Correctly set the accessibility data when copying & pasting a stamp with an alt text (bug 1903589) by @calixteman in #18296
- Close
PDFFindBar
when closing the viewer during testing by @Snuffleupagus in #18302 - Always use DW if it's a number for the font default width (bug 1903731) by @calixteman in #18306
- Use the new formatted issue templates by @nicolo-ribaudo in #18308
- Expose entireWord in updateFindControlState by @bootleq in #18303
- Update dependencies and translations to the most recent versions by @timvandermeij in #18312
- Try to shutdown Fluent "more" when closing the viewer during testing by @Snuffleupagus in #18313
- Disable system addon updates for Firefox in testing mode by @timvandermeij in #18316
- Close the page in the text layer caret selection integration test by @timvandermeij in #18317
- Fix the "copy/paste from a tab to an other" stamp editor integration test by @timvandermeij in #18320
- Don't ignore errors in the Jasmine suite start/end stages by @timvandermeij in #18321
- Include a security policy for PDF.js by @timvandermeij in #18311
- Improve the security policy by @timvandermeij in #18323
- Fix the computation of unitsPerEm when the fontMatrix has some negative coefficients by @calixteman in #18324
- Fix the timeout logic in the
waitForEvent
integration test helper function by @timvandermeij in #18325 - Use
waitForEvent
in thepasteFromClipboard
integration test helper function by @timvandermeij in #18326 - Override the minimum font size when rendering the text layer by @nicolo-ribaudo in #18283
- Remove the
requestAnimationFrame
work-around inL10n.prototype.destroy
(PR 18313 follow-up) by @Snuffleupagus in #18333 - Add the possibility to dispatch some pdf.js events at the chrome level (bug 1904585) by @calixteman in #18332
- Refactor the copy/paste logic in the integration tests and fix a race condition involving the
waitForEvent
integration test helper function by @timvandermeij in #18331 - Cancel the
requestAnimationFrame
in thewatchScroll
helper (PR 18193 follow-up) by @Snuffleupagus in #18335 - Cancel the
requestAnimationFrame
in the API when cancelling rendering by @Snuffleupagus in #18336 - Add a port option to gulp server by @calixteman in #18339
- Fix intermittent failures with freetext and stamp tests by @calixteman in #18338
- Ignore test issue17779.pdf in talos because it times out by @calixteman in #18341
- Take into account PageOpen and PageClose actions which are present in some fields by @calixteman in #18345
- Add a comment about
test/webserver.mjs
being development-only code by @Snuffleupagus in #18346 - Introduce a GitHub Actions workflow for publishing a release and fix
npm publish
warnings about thepackage.json
format by @timvandermeij in #18350 - Use
npm ci
, notnpm install
, on CI by @wojtekmaj in #18353 - Disable new tab page stuff in Firefox when running tests by @calixteman in #18356
- Generate provenance statements on npm publish by @wojtekmaj in #18352
- Fix the repository URL in the
package.json
file forpdfjs-dist
by @timvandermeij in #18358