Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump jspdf from 1.5.3 to 2.1.1 #1737

Merged
merged 1 commit into from Nov 1, 2020
Merged

Conversation

dependabot-preview[bot]
Copy link

@dependabot-preview dependabot-preview bot commented Oct 19, 2020

Bumps jspdf from 1.5.3 to 2.1.1.

Release notes

Sourced from jspdf's releases.

v2.1.1

  • #2893, #2880: Fixed html() typings and JSDoc documentation
  • #2884: Fix type of events in typings
  • #2881: Fix building jsPDF with Parcel v2

v2.1.0

  • #2865: Fix "Critical dependency: the request of a dependency is an expression" warning and loading of optional dependencies
  • #2872: Add support for numbers in cell module
  • #2866: Fix XREF table generation
  • #2855: Fix PdfJS output filename
  • #2848: Fix getTextDimensions typings
  • Updated readme
  • Fixed some examples

v2.0.0

Finally a new release!

A lot has changed since the last release:

  • jsPDF is now co-maintained by yWorks and we merged the yWorks fork into this repo adding a lot of new features like patterns, matrices, simple path operations, etc. See the readme for details.
  • Modernized the output bundles: there are now bundles for ES modules, UMD and a special node version. We renamed the files in dist for consistency: jspdf.debug/min.js is now jspdf.umd(.min).js. We also changed the name of the global variable to jspdf (lower case) when using script tags to be consistent with the new es modules format and named imports/exports. For backwards compatibility add this line:
window.jsPDF = window.jspdf.jsPDF
  • Added typings for TypeScript support.
  • Removed APIs that were previously marked as deprecated. Namely: addHTML, fromHTML, html2pdf, addSvg, addButton, addTextField, addChoiceField, cellInitialize, setFontStyle, setFontType, clip_fixed.
  • Fixed the file-saver npm/bower install issue where jsPDF depended on a (non-existent) version directly from GitHub.
  • Made it compatible with all major toolkits and frameworks.
  • Refactored big parts of the code.
  • A lot of small and big bugfixes. Especially thanks to @SmythConor, @bwl21, @32leaves, @mktcode, @durs, @kakugiki, @AdamGold and many others!

Here an (incomplete) list of additional bugfixes and changes:

  • #2835: Fixed reading of compound glyphs when using custom fonts
  • #2834: Fixed usage of custom fonts in context2d/when using the html method
  • #2824: Added maxWidth parameter to getTextDimensions
  • #2817: Fixed top margin in html method that occurred with html2canvas@1.0.0-rc5
  • #2816: Fixed escaping of font names with spaces
  • #2702: Fix context2d lineWidth scaling
  • #2806: Fix sanitizing of HTML passed as string to the html method
  • #2797: Fix scaling issue with Acroform fields
  • #2793: Fix autopaging issue in context2d with 10 or more pages
  • addImage and addFont accept now urls as parameters so the conversion to dataURLs is now only needed if you want to avoid CORS restrictions
  • WebP and JPEG Raw are now supported.
  • unnecessary data conversions are now reduced, so for example images should now render faster

There are some breaking changes in the API. But these are mostly API-methods which you should not use anyway.

While this release is a big step in the right direction, there are still many open issues (currently ~90). The maintainers of this repo (currently mostly @HackbrettXXX) have very limited time and can't resolve them all without the help of the community. This is another shout out to the community: if you like this project and want to make it even more awesome, consider spending one or two hours on improving it. Pull requests are very much appreciated!

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

@dependabot-preview dependabot-preview bot requested a review from a team as a code owner October 19, 2020 09:20
@dependabot-preview dependabot-preview bot added the dependencies Pull requests that update a dependency file label Oct 19, 2020
@codecov
Copy link

codecov bot commented Oct 19, 2020

Codecov Report

Merging #1737 into main will decrease coverage by 1.23%.
The diff coverage is 38.63%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1737      +/-   ##
==========================================
- Coverage   66.67%   65.43%   -1.24%     
==========================================
  Files         130      133       +3     
  Lines        2686     2743      +57     
  Branches      433      439       +6     
==========================================
+ Hits         1791     1795       +4     
- Misses        895      948      +53     
Impacted Files Coverage Δ
src/Modules.js 100.00% <ø> (ø)
src/modules/EdgeDetect/Module.js 100.00% <ø> (ø)
src/modules/WebglDistort/Module.js 2.29% <0.00%> (ø)
src/modules/ColorHalftone/Module.js 3.63% <3.63%> (ø)
src/modules/ColorHalftone/index.js 100.00% <100.00%> (ø)
src/modules/Colorbar/Module.js 100.00% <100.00%> (ø)
src/modules/Crop/Module.js 88.88% <100.00%> (ø)
src/modules/EdgeDetect/EdgeUtils.js 86.81% <100.00%> (-0.15%) ⬇️
src/modules/Resize/Module.js 100.00% <100.00%> (ø)
src/modules/Resize/Resize.js 100.00% <100.00%> (ø)
... and 3 more

@dependabot-preview dependabot-preview bot force-pushed the dependabot/npm_and_yarn/jspdf-2.1.1 branch from 8565c9c to c570460 Compare October 22, 2020 23:26
@gitpod-io
Copy link

gitpod-io bot commented Oct 22, 2020

@dependabot-preview dependabot-preview bot force-pushed the dependabot/npm_and_yarn/jspdf-2.1.1 branch from c570460 to b56ed0b Compare October 29, 2020 12:12
@jywarren
Copy link
Member

@dependabot rebase

@jywarren
Copy link
Member

@dependabot recreate

@dependabot-preview dependabot-preview bot force-pushed the dependabot/npm_and_yarn/jspdf-2.1.1 branch 3 times, most recently from a78b423 to 59e0049 Compare October 31, 2020 17:21
@jywarren
Copy link
Member

@dependabot rebase

Bumps [jspdf](https://github.com/MrRio/jsPDF) from 1.5.3 to 2.1.1.
- [Release notes](https://github.com/MrRio/jsPDF/releases)
- [Changelog](https://github.com/MrRio/jsPDF/blob/master/RELEASE.md)
- [Commits](parallax/jsPDF@v1.5.3...v2.1.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
@dependabot-preview dependabot-preview bot force-pushed the dependabot/npm_and_yarn/jspdf-2.1.1 branch from 59e0049 to 7ecfdec Compare October 31, 2020 20:53
@jywarren jywarren merged commit 67e11ed into main Nov 1, 2020
@dependabot-preview dependabot-preview bot deleted the dependabot/npm_and_yarn/jspdf-2.1.1 branch November 1, 2020 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant