Skip to content

Releases: schoero/swissqrbill

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

v3.1.2

25 Nov 23:36
Compare
Choose a tag to compare
  • Removed deprecated restrictions for AV1 and AV2. #355

v3.1.1

13 Nov 11:19
Compare
Choose a tag to compare
  • Fixed swiss cross positioning for PDF rendering. #353

v3.1.0

12 Nov 19:51
Compare
Choose a tag to compare
  • 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

14 Oct 05:18
771498b
Compare
Choose a tag to compare
Change build target to ES6 (#347)

* Change build target to ES6

* Release v3.0.1

v3.0.0

03 Oct 09:24
4df7b66
Compare
Choose a tag to compare

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

26 Aug 09:19
Compare
Choose a tag to compare
Release v2.4.2

v2.4.1

25 Aug 20:03
Compare
Choose a tag to compare
Release v2.4.1

v2.4.0

01 Jul 21:17
Compare
Choose a tag to compare
Release v2.4.0