Skip to content

Releases: simonbengtsson/jsPDF-AutoTable

v5.0

26 Feb 10:34
Compare
Choose a tag to compare

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 #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

25 Feb 20:38
Compare
Choose a tag to compare

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().

v3.8.4

15 Oct 13:31
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v3.8.3...v3.8.4

v3.8.3

30 Aug 09:52
Compare
Choose a tag to compare

Remove console log

v3.8.2

12 Feb 15:54
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v3.8.1...v3.8.2

v3.8.1

11 Dec 08:09
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.8.0...v3.8.1

v3.8.0

05 Dec 11:40
Compare
Choose a tag to compare

What's Changed

  • Adding the new option horizontalPageBreakBehaviour. When set to "immediately" pages slit with horizontal page break are included immediately after each instead of at the end the document. By @lucaslm in #1012

New Contributors

Full Changelog: v3.7.1...v3.8.0

v3.7.1

01 Nov 15:05
Compare
Choose a tag to compare
  • Improve support for custom build configs (older typescript versions etc)

v3.7.0

10 Oct 16:22
Compare
Choose a tag to compare

What's Changed

  • Fix horizontalPageBreak infinite loop + refactor by @mmghv in #999
  • Add support for lineHeightFactor by @mmghv in #1000
  • Fix lineWidth object bug with fillColor: null by @mmghv in #1002
  • Support css parsing of individual borders sides by @mmghv in #1003
  • Update dependencies to latest version

Full Changelog: v3.6.0...v3.7.0

v3.6.0

24 Aug 11:12
Compare
Choose a tag to compare

What's Changed

  • Add support for repeating multiple columns using horizontalPageBreakRepeat by @ecosse3 in #988

New Contributors

Full Changelog: v3.5.31...v3.6.0