Schoero SwissQRBill Versions Save

Swiss QR Bill generation in Node.js and browsers

v4.0.2

6 months ago

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

6 months ago

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

6 months ago

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

1 year ago
  • Updated dependencies.
  • Removed source maps from the pre-built bundle.

v3.2.2

1 year ago
  • Updated dependencies.
  • Fixed CI status badge.

v3.2.1

1 year ago
  • 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

2 years ago
  • Changed PDF_._data property to be protected to allow extending the PDF_ class. #368

v3.1.5

2 years ago
  • Fixed umlauts not correctly decoded with PostFinance scanner. #367
  • QR-Bills rendered as SVG now have a white background color.

v3.1.4

2 years ago
  • 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

2 years ago
  • Fixed rendering of AV1 and AV2. #357