@usefy/use-memory-monitor 0.0.32 → 0.0.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +6 -8
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -21,6 +21,7 @@
21
21
  <a href="https://github.com/mirunamu00/usefy/blob/master/LICENSE">
22
22
  <img src="https://img.shields.io/npm/l/@usefy/use-memory-monitor.svg?style=flat-square&color=007acc" alt="license" />
23
23
  </a>
24
+ <img src="https://img.shields.io/badge/coverage-90%25-brightgreen?style=flat-square" alt="coverage" />
24
25
  </p>
25
26
 
26
27
  <p align="center">
@@ -578,17 +579,12 @@ This package maintains comprehensive test coverage to ensure reliability and sta
578
579
 
579
580
  ### Test Coverage
580
581
 
581
- 📊 **175 tests passed** covering:
582
- - Memory monitoring functionality
583
- - Leak detection algorithms
584
- - Snapshot management
585
- - Browser support detection
586
- - Circular buffer operations
587
- - Formatting utilities
588
- - SSR compatibility
582
+ 📊 <a href="https://mirunamu00.github.io/usefy/coverage/use-memory-monitor/src/index.html" target="_blank" rel="noopener noreferrer"><strong>View Detailed Coverage Report</strong></a> (GitHub Pages)
589
583
 
590
584
  ### Test Categories
591
585
 
586
+ **225 tests passed** covering:
587
+
592
588
  - **Initialization & Lifecycle**: Mount, unmount, start/stop behavior
593
589
  - **Memory Tracking**: Polling, history, trend analysis
594
590
  - **Leak Detection**: Linear regression, sensitivity levels, analysis
@@ -596,6 +592,8 @@ This package maintains comprehensive test coverage to ensure reliability and sta
596
592
  - **Snapshots**: Create, compare, clear operations
597
593
  - **Browser Detection**: API availability, fallback strategies
598
594
  - **Edge Cases**: SSR, unsupported browsers, invalid inputs
595
+ - **Store Management**: State updates, subscribers, batch operations
596
+ - **Memory APIs**: Performance.memory, DOM nodes, event listeners
599
597
 
600
598
  ---
601
599
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usefy/use-memory-monitor",
3
- "version": "0.0.32",
3
+ "version": "0.0.33",
4
4
  "description": "A React hook for real-time browser memory monitoring with leak detection",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",