Releases: schoero/swissqrbill
Releases · schoero/swissqrbill
v3.1.4
v3.1.3
v3.1.2
v3.1.1
v3.1.0
v3.0.1
v3.0.0
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 tomm2pt()
- the
data
fieldhouseNumber
has to be renamed tobuildingNumber
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.
- Added
- SVG
- 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 tobuildingNumber
. - the deprecated field
debitor
has been removed. Usedebtor
instead.
- the field
- utils
mmToPoints()
function has been renamed tomm2pt()
.
- PDF
- Removed deprecated
mmToPoints()
export. Useutils.mm2pt()
instead.
- Removed deprecated
- imports
- 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.
- PDF