All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- This is the library in a POC state.
- This library is now being used by ThisIsMe's Company Credit Report v3 call.
- Previous code base was unstable and heading down a spaghetti code path, a lot of refactoring was done to avoid unnecessary errors and confusion, this version also supports more line types.
- Library name also changed from
@ThisIsMe/pdfgeneration-lib
to@thisisme/pdfgeneration-lib
.
- Text have been made smaller.
- Fancy headers have been brought in for defined Headers.
- Grid Type has been added.
- File Structure has been improved, not just using app.js but split logic into different files as welll to help improve readability and maintainability.
- Pipelines have been implemented to test code pushed up.
- Document types added.
- More line types added.
- Helper builders added.
- width size of rows on pdf reduced to prevent lines going over to next.
- Some refactoring to ease reading and future maintainability
- New types
- Minor logging corrections
- Report bucket setting changed env var
- AWS_DEFAULT_REGION reference changed to TIM_AWS_DEFAULT_REGION
- Code restructure
- Cover Page added as a PDF Type
- Fixed headers that aren't selected as new page headers
- Fixed async issue with older PDF Types
- Added functionality to build tables
- splitLongText function fixed, was not catering for long words
- images will be placed side by side when array of images
- custom font adjustments specifically for Grid types
- Image types added (Default and Center)
- Center adds image in the center of the focused line
- Helper functions added for image creation
- Fixed some camel case occurrences
- Bug fix, "bwip-js": "2.0.12" introduces an
undefined
value bug, locking version to 2.0.11.
- allow front page without search params | checks null state
- allow front page without search params | checks object length
- y increments for images fixed, extending base pdfkit
- Single images now cater for descriptions
- Centered fixed
- Image code refactor
- The PDF location will now be received when upload to s3 was successful
Jest
added for unit tests'use strict'
above all .js files- QRCode generation function fixed, covered by unit test
- added imageDescriptions support to addImageLineFromBase64
- re-ordered the import modules to match external, internal flow