Loglevel 1.9.0 and 1.8.1 are both minimal, lightweight JavaScript logging libraries enhancing the standard console.log with configurable log levels. Aimed at developers needing granular control over logging output, these versions offer a simple way to manage verbosity in applications. Key commonality is that both are MIT licensed with the same author and code repository.
However, notable differences exist primarily in their development dependencies and build process. Version 1.9.0 showcases upgrades in its testing and build tools, migrating from QUnit based tests in 1.8.1 to Jasmine. The grunt build system has been upgraded from ~0.4.5 to ~1.0.4 and Typescript definition support has been upgraded. This modernization suggests improvements in build performance, code maintainability, and test reliability. Additionally, several packages from version 1.8.1 are not present in 1.9.0, including grunt-coveralls, grunt-saucelabs, grunt-jasmine-node, grunt-contrib-qunit, grunt-template-jasmine-istanbul, and grunt-template-jasmine-requirejs. This suggests a simplification or restructuring of the build process and testing strategy.
Developers choosing between the versions should consider their build environment and testing preferences. Version 1.9.0 offers newer tools that are likely more secure and performant, while 1.8.1 might be preferable for those locked into legacy environments utilizing older testing libraries like QUnit. The file sizes also differ greatly, v1.9.0 having a file count of 62 and unpacked size of 638542, whereas v1.8.1 has a file count of 36 and unpacked size of 139323. This suggests that version 1.9.0 provides more modern testing and build tools, with a trade-off in size.
The are not vulnerabilities for the version 1.9.0 of the package loglevel