Skip to content

Releases: schibsted/jsx-pdf

Release v2.3.0

05 Oct 20:52
a0ce05a
Compare
Choose a tag to compare

2.3.0

New Features

  • JSX Fragments are now supported in place of <stack>. Babel configuration will need updating to use this as described in the README.md
  • QR codes are now supported <qr content="https://example.org" />

Other changes

  • Dependencies updated to latest version. No breaking changes affecting consumers.

Release v2.2.0

20 Apr 21:13
bf858db
Compare
Choose a tag to compare

New Features

  • SVGs are now supported

Other changes

  • All dependencies updated to latest version. No breaking changes affecting consumers.

Release v2.1.1

16 Aug 06:59
fb94548
Compare
Choose a tag to compare
  • All dependencies updated to latest version. This means that we've switched from babel-plugin-transform-react-jsx to @babel/plugin-transform-react-jsx in our peerDependencies and documentation. While this means that if you're still using the old package you'll get a warning, both versions of the plugin should work just fine.

Release v2.1.0

05 Apr 17:24
b9ed792
Compare
Choose a tag to compare

New Features

  • It's now possible to obtain the page, page count, and page size in the header and footer by passing a render function as the only child. See the readme for an example.

Release v2.0.0

19 Sep 14:59
934cdc3
Compare
Choose a tag to compare

Breaking changes

  • Switches to a single default export - before, it was necessary to configure babel to use createElement, and import the export of the same name from jsx-pdf. Now, babel should be configured to use JsxPdf.createElement, and the whole package should be imported. See the readme for more details and examples.
  • Changes the integration point of the package. Previously pdfmake was a dependency, and the library handled creating the PDFKit document internally. However, this limits the ability of consumers to configure pdfmake in the way that they need to. We also only supported rendering PDFs in node, but pdfmake can actually render PDFs in a browser too. Now, we provide a renderPdf function that outputs the correct pdfmake format, and consumers need to handle importing pdfmake and passing the result of renderPdf to it.

Release v1.0.0

31 Jul 14:32
39273c1
Compare
Choose a tag to compare
Merge pull request #6 from yaroslav-borcheninov/chore/release

Prepare v1.0.0 release