A full version history of the esmock package with size, number of distributed files and dependency evolution.
Esmock, a vital tool for JavaScript developers, facilitates native ESM import and globals mocking during unit testing. Its evolution, chronicled through numerous versions, showcases a commitment to enhancing functionality and addressing developer needs. Initially released as version 0.0.1 in January 2021, Esmock has undergone significant transformations, demonstrating continuous improvement and adaptation.
Early versions, such as 0.x, primarily focused on core mocking capabilities, establishing a foundation for later enhancements. The transition to the 1.x series introduced refinements and expanded features while maintaining stability. Key dependencies like resolvewithplus were consistently updated, ensuring seamless operation.
The 2.x versions marked a period of notable growth, with a focus on delivering a more robust and versatile mocking experience. The addition of functionalities like globals mocking alongside ESM import mocking in version 2.3.1 reflected a deeper understanding of the demands faced by modern JavaScript projects. Subsequent releases refined performance, addressed edge cases, and solidified Esmock's position as a reliable mocking solution. The licensing also transitioned from MIT to ISC.
Recent versions, including the latest 2.7.1 released in July 2025, reflect ongoing maintenance and a dedication to staying current with changes in the JavaScript ecosystem. Esmock remains an active project, evolving to meet the challenges faced by developers in creating robust and maintainable unit tests for ECMAScript Modules.