Skip to content

v0.5.0 — a well-behaved library

Choose a tag to compare

@baer baer released this 07 Jul 16:16
· 943 commits to main since this release
40f533b

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: false opt-out. Pass it to baerlyNode / baerlyWorker to skip auto-configuration entirely, for apps that own the process-wide (isolate-wide on Workers) LogTape configuration themselves.

An honest field name

  • /v1/spec renames kernelVersion → serverVersion. The value and meaning are unchanged (the published package version, a build-provenance stamp), but kernelVersion wrongly implied a separate "kernel" contract axis. Key contract decisions off specVersion — which stays "1" — never off serverVersion.

    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.0

No 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. Pass observability: false to opt out entirely.
  • If you read kernelVersion off /v1/spec, switch to serverVersion. (You should be keying contract decisions off specVersion regardless.)

Full changelog + migration notes: CHANGELOG.md

📦 npm · 📚 Docs · 🧠 Theory