You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(tinybench-plugin): support tinybench v5 and v6
tinybench v6 moved the benchmark function, its options, and the resolved
bench options behind ES private fields (and flattened the options onto the
bench instance), which broke the plugin's reliance on reaching those
internals through casts: analysis mode crashed with "fn is not a function"
and walltime mode crashed reading `bench.opts.setup`.
Capture the function and options ourselves when `bench.add` runs, normalize
option access across the v4/v5 `bench.opts` layout and the v6 flattened one,
bake the walltime root frame into the registered function instead of mutating
the (now private) task function, and opt back into sample retention that v6
disabled by default. Add dedicated example fixtures pinning tinybench v5 and
v6 so CI exercises every supported major, excluding them from the Node 18 leg
since tinybench v5+ requires Node >=20.
Closes COD-2929
Co-Authored-By: Claude <noreply@anthropic.com>
Generated with AI Agent (Claude Code)
0 commit comments