Skip to content

Releases: schoero/swissqrbill

v4.0.2

17 Nov 20:37
0450a8f
Compare
Choose a tag to compare

compare changes

Fixes

  • Type definitions for common js imports (cbe419a)

Refactors

  • Use imports with js file extensions (1c77d52)

Documentation

  • Regenerate documentation (9dd2281)

Build

Chore

v4.0.1

16 Nov 20:19
1c76adb
Compare
Choose a tag to compare

Fixes

  • Visual pdf tests throwing error (7936151)
  • table: Throwing error when header row was enabled on a table with multiple columns (b096a51)
  • table: Setting padding to 0 not working in a tuple type (14ad3c3)
  • table: Continue table on the same horizontal position (e8e5aec)
  • table: Rendering of imaginary layers (9eb4f3d)
  • table: Converting of tuple shorthand syntax (99b1c95)

Documentation

Chore

Tests

  • Disable multi threading in debugger (85911a1)

v4.0.0

10 Nov 18:47
7e7d11b
Compare
Choose a tag to compare

With version 4, SwissQRBill has been completely reworked. The main goal was to make the API more flexible and reduce the complexity of the library. As a consequence, the API has changed quite significantly. However, migration should be fairly easy.

Please read the migration guide for more information and have a look at the updated documentation.

  • New features

    • SwissQRBill can now be attached to any PDFDocument instance from PDFKit.
    • New SwissQRCode class to create the standalone Swiss QR Code to attach to an existing PDFKit document.
    • New Table class to create a table to attach to an existing PDFKit document.
    • It is now possible to change the font of the QR Bill. The allowed fonts are "Arial" | "Frutiger" | "Helvetica" | "Liberation Sans"
    • Additional options for SVG renderings.
  • Breaking changes

    • The entrypoints have changed. Please read the importing documentation for more information.
    • SwissQRBill no longer extends PDFKit.
    • The table method has been extracted into it's own class.
    • Events have been removed from SwissQRBill.
    • Properties and options have been renamed.
    • Now requires Node.js >= 18.0.0
  • Fixes

    • Some slight rendering improvements.
  • Other improvements

    • Better examples. The examples are now automatically hosted on StackBlitz. Everyone can now easily try out the library in the browser without having to install anything.
    • Automated documentation. SwissQRBill now uses unwritten to automatically generate the documentation. This makes it easier to keep the documentation up to date.
    • Automated testing for even more stability.

Thanks to @danielpanero and @skch-17 for their contributions.

v3.2.3

16 Apr 18:56
217f215
Compare
Choose a tag to compare
  • Updated dependencies.
  • Removed source maps from the pre-built bundle.

v3.2.2

23 Jan 19:35
91887dc
Compare
Choose a tag to compare
  • Updated dependencies.
  • Fixed CI status badge.

v3.2.1

31 Aug 17:44
3baa834
Compare
Choose a tag to compare
  • Performance improvements for in QR-Code rendering for PDF renderings. #384
  • Enforce minimum and maximum allowed QR-Code versions according to the specifications.

v3.2.0

05 Mar 14:14
Compare
Choose a tag to compare
  • Changed PDF_._data property to be protected to allow extending the PDF_ class. #368

v3.1.5

21 Feb 20:38
Compare
Choose a tag to compare
  • Fixed umlauts not correctly decoded with PostFinance scanner. #367
  • QR-Bills rendered as SVG now have a white background color.

v3.1.4

11 Jan 21:31
Compare
Choose a tag to compare
  • Fixed rendering of debtor rectangle in when page size is A4. #361
  • Fixed rendering of country code for foreign payments. #362
  • Fixed missing of - character in svg text rendering. #363

v3.1.3

05 Dec 06:37
Compare
Choose a tag to compare
  • Fixed rendering of AV1 and AV2. #357