Skip to content

v7.0.0

Latest

Choose a tag to compare

@compeso-mgruenwald compeso-mgruenwald released this 11 Sep 22:58
5f1a37f

[7.0.0] - 2026-09-12

Breaking

  • The built-in viewfinder draws center crosshairs. Pass viewfinderCrosshairsDisabled to hide them.
  • Corner marks sit on the cutout edge. The cutout is 15% inset (was 10%).
  • Viewfinder is React.ComponentType<{ className?: string; withCrosshairs: boolean }> | null. A custom component may use withCrosshairs or ignore it.

Added

  • flashlight. Omit or false: no control. true: default button. An object sets className, turnOnLabel, turnOffLabel, and onError. Does not turn the lamp on. The button shows only when the live track reports torch support.
  • FlashlightError codes: NO_TRACK, NO_GET_CAPABILITIES, TORCH_MISSING, TORCH_FALSE, TORCH_SEQUENCE_INCOMPLETE, CONSTRAINT_APPLY_FAILED.
  • --rbs-flashlight-icon and --rbs-flashlight-background. Off uses those colors as named. On they swap, and the button gets a box-shadow.

Changed

  • react-icons peer is >=4.9 (was >=4.8).