Skip to content

v0.23.0 — dump & dd debugging

Choose a tag to compare

@tshafer tshafer released this 10 Jul 20:58
· 145 commits to main since this release

Two helpers for the moments you'd reach for console.log:

dump(user, order);                  // logs, keeps going
const total = dump(computeTotal()); // logs AND returns it

dd(await request.all(), request.headers()); // renders in the browser, halts

dd() throws a self-rendering exception, so it works the same on Node and the edge. See docs/debugging.md.