The on-exit-leak-free package, designed to execute functions upon process exit without causing memory leaks, boasts two stable versions: 0.1.0 and 0.2.0. Both versions share the same core functionality: ensuring garbage collection of objects after the exit handler runs, a critical concern for long-running processes or those with complex object lifecycles. They also share the same development dependencies, including snazzy for code style, standard for linting, and tap for testing, guaranteeing code quality and consistency across versions. The licensing remains MIT, offering flexibility for developers.
However, version 0.2.0 introduces some subtle but important changes. While the core functionality stays the same, developers upgrading should note the increase in fileCount from 10 to 11 and unpackedSize has increased from 6576 to 7664 bytes. These point to internal improvements and potential bug fixes. These enhancements, however small, translate to increased code reliability, which is welcome to prevent memory leaks by ensuring that exit handlers are executed cleanly in diverse environments. Also, version 0.2.0 was released on July 23, 2021, while v0.1.0 was released on July 7, 2021. Developers can check the release date to ensure they using the latest version incorporating the most recent fixes and improvements.
The are not vulnerabilities for the version 0.2.0 of the package on-exit-leak-free