Schoero SwissQRBill Versions Save

Swiss QR Bill generation in Node.js and browsers

v3.1.2

2 years ago
  • Removed deprecated restrictions for AV1 and AV2. #355

v3.1.1

2 years ago
  • Fixed swiss cross positioning for PDF rendering. #353

v3.1.0

2 years ago
  • Added TSDoc comments. #348
  • Removed unwanted space in utils.formatAmount(). #349
  • Fixed the formatting of the reference in SVG renderings. #351
  • Added a new utils.formatReference() function that auto detects the reference type.
  • Improved the text spacing and positioning. #352

v3.0.1

2 years ago

v3.0.0

2 years ago

This is the biggest release of SwissQRBill so far and it is actually the first one with breaking changes.

Migration

If you want to migrate from v2.x to v3.x, there are mainly two things that need to be changed:

  • mmToPoints() has to be renamed to mm2pt()
  • the data field houseNumber has to be renamed to buildingNumber

Other than that, there are now ES module exports. Please take a look at the importing the library section in the readme to check if you can improve the way you import the library.

Changelog

  • New features
    • SVG
      • Added support for SVG rendering #343.
    • Added es6 module exports.
    • Support for tree shaking.
    • utils
      • Added mm2px() function.
      • Added px2mm() function.
      • Added pt2mm() function.
  • Breaking changes
    • imports
      • SwissQRBill is now available as a CommonJS and an ES module. This may change how the module has to be imported. Please take a look at the importing the library section in the readme.
    • data
      • the field houseNumber has been renamed to buildingNumber.
      • the deprecated field debitor has been removed. Use debtor instead.
    • utils
      • mmToPoints() function has been renamed to mm2pt().
    • PDF
      • Removed deprecated mmToPoints() export. Use utils.mm2pt() instead.
  • Fixes
    • PDF
      • The positioning of the box when no amount is provided has been slightly corrected.
      • The positioning iban on the payment part has been slightly corrected.
      • Fixed positioning of the debtor boxes when no debtor is provided and the creditor address break to multiple lines.

v2.4.2

2 years ago

v2.4.1

2 years ago

v2.4.0

2 years ago

v2.3.3

3 years ago

v2.3.2

3 years ago