Runtime truth probes for Bun APIs that are easy to misuse at the edge: Bun.inspect
options, Web Streams compression, WHATWG URL properties, and Bun.file vs fs.
Proof JSON: /registry/bun-runtime-nits-proof.json
Included in verify-all (step 8) and check:release-tracker. Subsystem: runtime (orthogonal to probe category: inspect · streams · url · file-io).
| Category | Probes | What it proves |
|---|---|---|
inspect |
7 | sorted, compact, showProxy, getters, numericSeparator, maxStringLength, customInspect — runtime truth, not Node parity |
streams |
2 | gzip CompressionStream/DecompressionStream roundtrip; TextEncoderStream/TextDecoderStream |
url |
4 | host, origin, searchParams, host setter |
file-io |
3 | lazy Bun.file size, Bun.write auto-dir, bytes vs fs.readFile |
bun tools/verify-bun-runtime-nits.ts
bun tools/verify-bun-runtime-nits.ts --save
bun run verify:bun-runtime-nits:save
bun test tests/bun-runtime-nits-probes.test.ts
Project SSOT: lib/console-depth.ts exposes only options
verified on Bun 1.4 (depth, colors, compact, sorted). Probes record behavior
for Node-compat options:
maxStringLength — typically ignored (full string still shown)numericSeparator — may be ignoredgetters: true — shows [Getter] on this runtimecustomInspect: false — may not suppress [Bun.inspect.custom]Canonical refs: bun tools/bun-doc-refs.ts suggest "Bun.inspect.sorted"
docs/registry-client.md — tarball gzip + SHA-256 (streams motivation)lib/verification/bun-runtime-nits-probes.ts — probe SSOTtools/verify-bun-runtime-nits.ts — runner