v.0.7.0
This release brings in one small breaking change in the way method as.format
works. It was originally designed for internal usage, and was returning an object with the formatted result, which made it different from the rest of the methods in the pgp.as
namespace.
The new implementation changes it so it would return the formatted text string, when successful or throw an error when fails, to make it consistent with the rest of the API. And in order to keep it compatible with the internal logic, it now takes the third parameter se
(suppress errors) to return an object as before. See the updated chapter Conversion Helpers for details.
All related tests were reorganized and extended to cater for this new logic.
Other changes include:
- Documentation updates, such as - added a new example of using formatting methods;
- Code refactoring;
- New tests added;