Releases: schoero/swissqrbill
Releases · schoero/swissqrbill
v4.1.0
v4.0.2
v4.0.1
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
- Simplify types for easier documentation (4f2bb37)
- Regenerate docs (89d8301)
- Add description (082d9ed)
Chore
- Update dependencies (06816ab)
Tests
- Disable multi threading in debugger (85911a1)
v4.0.0
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.