Skip to content

0.5.4

Choose a tag to compare

@unadlib unadlib released this 22 Jun 13:01
· 136 commits to main since this release

v0.5.4

Highlights

  • Improved browser support-log persistence with durable IndexedDB session metadata.
  • Fixed BullMQ addBulk() classification so bulk job publishing is reported as publish.
  • Added clearer frontend support-log setup examples for IndexedDB persistence, localStorage spill, and ZIP export.
  • Raised coverage floors and expanded edge-case coverage across browser, OTLP, Pretty, and Node integrations.

Browser

  • Added a dedicated IndexedDB session-summary store and migrated persisted log stores to DB version 4.
  • Made indexedDbTransport().sessions() read ordered session summaries without scanning every persisted log entry.
  • Fixed session metadata maintenance when entries are flushed, overwritten, pruned, removed, or cleared.
  • Serialized clear() with in-flight flushes and localStorage spill draining to avoid stale persisted entries.
  • Added short support-log examples using stable subpath imports:
    • @loggerjs/browser/transport-indexeddb
    • @loggerjs/browser/export-zip
  • Expanded runtime fallback coverage for BroadcastChannel, WebSocket, ReportingObserver, and browser HTTP delivery.

Node

  • Fixed bullMqIntegration() so addBulk() is classified as a publish operation instead of other.
  • Added contract coverage for documented integration boundaries:
    • Prisma integration wraps raw-query methods only.
    • BullMQ integration wraps Queue-like methods only.
    • Nest integration remains Express-compatible middleware, not an exception filter or interceptor.

OpenTelemetry

  • Hardened OTLP HTTP transport coverage for:
    • default content type
    • custom headers
    • minLevel filtering
    • missing fetch
    • rejected fetch
    • non-2xx collector responses
  • Raised the OTLP package coverage floor.

Pretty Output

  • Expanded formatter, console transport, and stream transport coverage for:
    • output suppression
    • time formatting
    • truncation
    • console fallback
    • batch entry points
    • write failures
    • stream errors
    • flush rejection
    • close lifecycle behavior
  • Raised the Pretty package coverage floor.

Quality & Tooling

  • Added coverage-ratchet documentation with measured package-level floors and explicit rules for future threshold changes.
  • Refreshed the test inventory to 703 passing tests.
  • Added Commitizen workflow setup for conventional commits.
  • Updated package versions to 0.5.4 across all published subpackages.

Package Notes

The following packages are version-aligned to 0.5.4 with no runtime source changes in this release:

  • @loggerjs/cloudwatch
  • @loggerjs/codecs
  • @loggerjs/core
  • @loggerjs/database
  • @loggerjs/datadog
  • @loggerjs/elastic
  • @loggerjs/loki
  • @loggerjs/processors
  • @loggerjs/sentry

Full Changelog: v0.5.3...v0.5.4