Releases: pcprinz/loxer
Version 2.0.0
- BREAKING CHANGE:
Loxer.open(...)
now directly returns the openedLox
instead of just a number. It will not technically break the behaviour when using it withLoxer.of(lox)
- you can now directly add logs to the opened lox which is returned from Loxer.of:
const lox = Loxer.open('opening') lox.add('added log'); lox.error('added error'); lox.close('closing log');
- additionally there is a new method on the mentioned lox for named errors, which is a shortcut for Loxer.of(...).error(new NamedError(...))
lox.namedError('name', 'message', existingError, item);
Version 1.1.1 (fix)
fixed the default coloring of items (which was always colored)
Version 1.1.0
Changes
- Boxfactory is now more consistent as a Formatter (static)
- Modules can now have their own defined box layouts
- Loxes now have their corresponding Modules as properties (for the name / color / box layout)
Version 1.0.0 - First stable release
This is the first stable release of the package.
- Tests have been written
- Items are now a neat feature
- Types have been refined
- Documentation has been updated
Version 0.5.0 - Release Candidate 1
This is a release candidate for Loxer v1.
- From 0.4.1 ther have been improvements in the documentation and README.md
- The
BoxFactory
is now exported by default - A helper class called
NamedError
is now available - both changes are mentioned in the docs / API ref
Version 0.4.1 beta (HOTFIX)
In this release an issue was fixed, where the package could not be used in some environments causing the error:
No identifiers allowed directly after numeric literal
No identifiers allowed directly after numeric literal
no stack
no stack
This was caused by the color package, which then was downgraded to version <4.
Version 0.4.0 beta
In this version the internal infrastructure was changed. The package is no longer generated with tsdx, which has a positive effect on the package size.
Breaking Changes:
- the identifier
develLevel
in module levels and default levels has been changed todevLevel
- the identifier
fullname
in the modules was changed tofullName
Version 0.3.0 beta
API changes:
OutputLox
andErrorLox
don't have thecolored
property anymore- coloring of
message
,moduleText
,box
andtimeText
must now be done at the output streams - Helper class
ANSIFormat
provides static methods for coloring
The changes were done in order to improve the performance, because now the coloring is not done on unnecessary logs. The default output streams already use the new coloring workflow. More on that in the Documentation.
- The Documentation / API references have been updated regarding the recent changes
first beta release
This release reaches first beta stage.
- added tests for main funtionality
- decorators remain untested
- ErrorLox do not have a separate history in the output streams to avoid cyclic structures
- therefore the *Error output streams receive a separate history as parameter
Since the basic functionality has been successfully tested, this release is considered the first beta version.
Further tests follow (including the decorators) to achieve a test coverage of >95%.
Until the stable release there will be at most one structural change regarding the output of the colors, otherwise the API will stay that way.
release v0.1.6
features
- the box layout is now availible as a customizable lost and not just a string
- the history is now enabled by default with size
50
- there is a documentation on performance tests
fixes
- default levels now work as expected
- level error in production fixed