# Changelog ## 2025-06-09 - 2.0.8 - fix(smartmetrics) Refactor metrics calculation and update Prometheus integration documentation - Removed dependency on registry.getMetricsAsJSON by directly calculating Node.js metrics - Updated getMetrics to compute CPU time, heap size, and set default values for deprecated metrics - Enhanced documentation with comprehensive Prometheus integration examples - Improved logging on shutdown of the Prometheus endpoint ## 2025-06-09 - 2.0.7 - Prometheus Metrics Integration feat: Implement Prometheus metrics exposure in SmartMetrics - Added Prometheus gauges for CPU and memory metrics. - Implemented HTTP server to expose metrics at the /metrics endpoint. - Created methods to enable and disable the Prometheus endpoint. - Updated getMetrics() to set gauge values. - Added tests for Prometheus metrics functionality. - Updated documentation plan for Prometheus integration. ## 2023-07-02 to 2023-08-08 - 2.0.0 to 2.0.6 - Maintenance Updates Over this period several releases were published with iterative fixes and minor organizational changes. - Applied multiple core fixes and routine maintenance updates. - Switched to new organization scheme (recorded on 2023-07-10). - Performed several version bumps and configuration updates. ## 2021-08-12 to 2022-07-27 - 1.0.1 to 1.0.17 - Maintenance and Breaking Changes During this interval a series of minor fixes were combined with a significant breaking change. - BREAKING CHANGE: Switched to ESM in 1.0.17 (2022-07-27). - Numerous maintenance updates and core fixes were applied.