Repository navigation
Releases: WillHen/rendertrace
Releases · WillHen/rendertrace
Release list
v0.2.1
v0.2.0
[0.2.0] - 2026-04-18
Changed
- Package renamed from
renderlenstorendertrace(therenderlensname was unavailable on npm) useRenderLenshook renamed touseRenderTrace; exported typesRenderLensRef,RenderLensMetric, andUseRenderLensOptionsrenamed toRenderTraceRef,RenderTraceMetric, andUseRenderTraceOptionsrespectively- DOM data attributes
data-renderlens-*renamed todata-rendertrace-*
v0.1.0
[0.1.0] - 2026-04-18
Added
useRenderLens(label, options)hook that attaches a callback ref to any React element and tracks how many times it renders or commitsmetricoption ("renders"|"commits") onuseRenderLensto choose whether the counter increments on every render or only on DOM commits- Overlay pill displayed in a fixed position over each tracked element showing the label and current count, portaled to
document.bodyand repositioned on scroll and resize - Automatic no-op behavior in production (
NODE_ENV === "production"), so the hook and overlay add zero overhead when shipped