The on-exit-leak-free package, designed to execute functions upon process exit in a memory-safe manner, saw a notable update with the release of version 2.1.0 following closely on the heels of version 2.0.0. Both versions share the same core functionality: ensuring that objects associated with exit handlers are properly garbage collected, preventing memory leaks in long-running Node.js processes. They also share the same suite of development dependencies including snazzy, standard, and tap, which are used for code styling, linting, and testing, respectively.
The key difference between the two versions lies in the internal implementation and any potential bug fixes or minor enhancements introduced in version 2.1.0. Evidenced by a slightly increased fileCount (from 11 to 12) and unpackedSize (from 7500 to 8885 bytes), version 2.1.0 likely incorporates refinements to the core logic or includes additional helper files. For developers, this signals a potential improvement in reliability or performance. Given the very short time between the releases, the changes most probably address minor bugs and improve code quality, but it's recomended to investigate using git between the mentioned tags. Both versions are licensed under MIT.
Developers looking for a reliable way to clean up resources when their Node.js application exits should consider both of these versions. The slightly larger footprint of version 2.1.0 and close release time hints at internal improvements, so it is the recommended choice to use.
The are not vulnerabilities for the version 2.1.0 of the package on-exit-leak-free