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

Update dependency jspdf-autotable to v5 #1100

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 18, 2025

This PR contains the following updates:

Package Update Change
jspdf-autotable major 3.8.4 -> 5.0.2

Release Notes

simonbengtsson/jsPDF-AutoTable (jspdf-autotable)

v5.0.2

Compare Source

v5.0.1

Compare Source

v5.0.0: v5.0

Compare Source

Summary of changes in 5.0.0-5.0.2

  • Breaking: The plugin is no longer auto applied to jsPDF in none browser environments (see more below)
  • The esm build file is now chosen automatically based on your packages environment (no need to use the jspdf-autotable/es path anymore)
  • HookData is now exported https://github.com/simonbengtsson/jsPDF-AutoTable/issues/1075
Plugin no longer applied automatically

In this release the plugin is no longer auto applied to jsPDF in none browser environments. This is a breaking change for users that for example uses this plugin in node js and call autoTable method on the jsPDF doc instance (doc.autoTable({...}).

It is now recommended to import the autoTable method and pass it the jsPDF doc instance.

import { jsPDF } from 'jspdf'
import { autoTable } from 'jspdf-autotable'

const doc = new jsPDF()
autoTable(doc, { ... })

If you want to keep calling the plugin method on the jsPDF doc instance you can also apply the plugin to it yourself using applyPlugin:

import { jsPDF } from 'jspdf'
import { applyPlugin } from 'jspdf-autotable'

 // This is now required in non browser environments to use the old
// way of calling autoTable on the jspdf doc instance.
applyPlugin(jsPDF)

const doc = new jsPDF()
doc.autoTable({ ... })

v4.0.0

Compare Source

Mostly minor changes but bumping major version due to old deprecation removals and upgrade to jsPDF 3.0 (that removes support for internet explorer).

  • Jspdf 3.0 (removes support for internet explorer)
  • You can now import autoTable with a named import import { autoTable } from ‘jspdf-autotable’) . The previously exported autoTable type is now exported as autoTableInstanceType instead.
  • Removed long time deprecations
    • Removed support for all old options and styles that was soft removed and deprecated in v3.0
    • Removed old ways to get information of the last autoTable drawn: doc.previousAutoTable , doc.autoTable.previous and doc.autoTableEndPosY. Now you should use doc.lastAutoTable.
    • Removed Table#pageCount field. You should now use Table#pageNumber.
    • Removed old column/body way of calling autoTable doc.autoTable(columns, body, options). You should now use autoTable(doc, options) or doc.autoTable(options).
    • Removed doc.autoTableAddPageContent. You should now use jsPDF.autoTableSetDefaults({didDrawPage: () => {}})
    • Removed doc.autoTableAddPage(). You should now use doc.addPage().

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the dependencies Pull requests that update a dependency file label Mar 18, 2025
@renovate renovate bot requested a review from a team as a code owner March 18, 2025 10:43
@renovate renovate bot force-pushed the renovate/jspdf-autotable-5.x branch 8 times, most recently from 6f8b428 to be4e2c0 Compare March 25, 2025 06:23
@renovate renovate bot force-pushed the renovate/jspdf-autotable-5.x branch 2 times, most recently from b0047b3 to c3f504c Compare April 1, 2025 05:08
@renovate renovate bot force-pushed the renovate/jspdf-autotable-5.x branch from c3f504c to 20965ef Compare April 1, 2025 13:38
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.

0 participants