Changelog

oven-sh/bun · · 1 commit

Fix console.groupCollapsed indentation

Bun now treats console.groupCollapsed like console.group, fixing indentation and empty-label behavior plus related tests.

console.groupCollapsed now starts a real group (robobun449877f)

console.groupCollapsed() now behaves like console.group(): it opens an indented group, closes it with console.groupEnd(), and no longer breaks the enclosing indent. Bun also fixed the empty-call case so a label-less group doesn’t print undefined, and updated the type docs to match the actual console API.

Other misc changes

  • Added regression tests for empty group/groupCollapsed handling in dots output and console logging.