Skip to content

v3.0.0

Compare
Choose a tag to compare
@schoero schoero released this 03 Oct 09:24
4df7b66

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.