Skip to content

Releases: WillHen/rendertrace

v0.2.1

Choose a tag to compare

@WillHen WillHen released this 18 Apr 18:16

[0.2.1] - 2026-04-18

There are no user-facing changes in this release. All modifications are internal tooling (removal of Biome formatter/linter configuration and its dependencies).

v0.2.0

Choose a tag to compare

@WillHen WillHen released this 18 Apr 18:10

[0.2.0] - 2026-04-18

Changed

  • Package renamed from renderlens to rendertrace (the renderlens name was unavailable on npm)
  • useRenderLens hook renamed to useRenderTrace; exported types RenderLensRef, RenderLensMetric, and UseRenderLensOptions renamed to RenderTraceRef, RenderTraceMetric, and UseRenderTraceOptions respectively
  • DOM data attributes data-renderlens-* renamed to data-rendertrace-*

v0.1.0

Choose a tag to compare

@WillHen WillHen released this 18 Apr 17:49

[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 commits
  • metric option ("renders" | "commits") on useRenderLens to 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.body and repositioned on scroll and resize
  • Automatic no-op behavior in production (NODE_ENV === "production"), so the hook and overlay add zero overhead when shipped