Releases: simonbengtsson/jsPDF-AutoTable
v5.0
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
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 asautoTableInstanceType
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
anddoc.autoTableEndPosY
. Now you should usedoc.lastAutoTable
. - Removed
Table#pageCount
field. You should now useTable#pageNumber
. - Removed old column/body way of calling autoTable
doc.autoTable(columns, body, options)
. You should now useautoTable(doc, options)
ordoc.autoTable(options)
. - Removed
doc.autoTableAddPageContent
. You should now usejsPDF.autoTableSetDefaults({didDrawPage: () => {}})
- Removed
doc.autoTableAddPage()
. You should now usedoc.addPage()
.
v3.8.4
v3.8.3
Remove console log
v3.8.2
v3.8.1
What's Changed
Full Changelog: v3.8.0...v3.8.1
v3.8.0
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
- Improve support for custom build configs (older typescript versions etc)
v3.7.0
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