Repository navigation
v0.5.0 — a well-behaved library
A well-behaved library
baerly-storage is a library, not an application — and this release makes it act like one. The headline fix: it no longer hijacks your app's logging configuration at boot. Plus an honest rename of one /v1/spec field.
Stop clobbering your logging
Previously, the Node and Cloudflare adapters called LogTape's configure({ reset: true }) unconditionally at startup — silently wiping the sinks and loggers of any app that had already configured LogTape (and, depending on boot order, sometimes wiping baerly-storage's own config instead). The documented "leave the field unset to skip configuration" escape hatch never actually worked.
- baerly-storage now checks
getConfig()first. When LogTape is already configured by something other than baerly-storage, it leaves that config intact and emits a single["logtape", "meta"]notice instead of resetting it. Its own config still reconfigures last-call-wins, so standalone servers and dev hot-reload are unchanged. - New
observability: falseopt-out. Pass it tobaerlyNode/baerlyWorkerto skip auto-configuration entirely, for apps that own the process-wide (isolate-wide on Workers) LogTape configuration themselves.
An honest field name
-
/v1/specrenameskernelVersion→serverVersion. The value and meaning are unchanged (the published package version, a build-provenance stamp), butkernelVersionwrongly implied a separate "kernel" contract axis. Key contract decisions offspecVersion— which stays"1"— never offserverVersion.GET /v1/spec → { "specVersion": "1", "kernelVersion": "0.4.1", ... } // before GET /v1/spec → { "specVersion": "1", "serverVersion": "0.5.0", ... } // after
Upgrade
pnpm add @gusto/baerly-storage@0.5.0No action required for most apps. Two things to know:
- If your app configures LogTape itself, baerly-storage now respects it — you'll see a one-line
["logtape", "meta"]notice instead of your config being wiped. Passobservability: falseto opt out entirely. - If you read
kernelVersionoff/v1/spec, switch toserverVersion. (You should be keying contract decisions offspecVersionregardless.)
Full changelog + migration notes: CHANGELOG.md