Skip to content

Releases: Julien-R44/pino-loki

v3.0.0

14 Dec 14:30

Choose a tag to compare

⚠️ Breaking Changes

Node.js 20+ Required
Node.js 18 is no longer supported. The minimum required version is now Node.js 20.

Batching Options Restructured

The batching configuration has been consolidated into a single object:

// Before (v2.x)
pinoLoki({ host: '...', batching: true, interval: 5 })

// After (v3.x)
pinoLoki({ host: '...', batching: { interval: 5, maxBufferSize: 10_000 } })
// Or simply omit for defaults, or set batching: false to disable

Default Buffer Limit

A new maxBufferSize option (default: 10,000) prevents out-of-memory issues when Loki is unavailable. When the buffer is full, oldest logs are dropped (FIFO).

Structured Metadata Enabled by Default

structuredMetaKey now defaults to 'meta'. Logs with a meta property will automatically send it as Loki structured metadata. Use structuredMetaKey: false to disable.

CLI Changes

  • --batch => --batching
  • --interval => --batching-interval
  • --timeout default: 2000ms → 30000ms
  • Added --batching-max-buffer-size
  • Removed -pl shorthand (use --propsLabels)

   🚨 Breaking Changes

   🐞 Bug Fixes

    View changes on GitHub

v2.6.0

01 Jun 23:25

Choose a tag to compare

Features

  • Added support for custom headers in the CLI
  • New formatLog option to customize how logs are formatted before being sent to Loki

Chore

  • migrated to ESM (still doing dual publishing with CJS + ESM)
  • switched to Tsdown
  • enabled allowImportingTsExtensions
  • dropped Commander and switched to Node’s built-in parseArgs

v2.5.0

15 Jan 12:41

Choose a tag to compare

Features

  • Can now use a custom API endpoint. See #39
    View changes on GitHub

v2.4.0

28 Nov 18:48

Choose a tag to compare

   🚀 Features

    View changes on GitHub

Move from got to native fetch

21 Sep 11:43

Choose a tag to compare

What's Changed

  • refactor: replaced Got HTTP client with native fetch by @TedCha in #34

New Contributors

Full Changelog: v2.3.0...v2.3.1

v2.3.0

12 May 10:22

Choose a tag to compare

   🚀 Features

    View changes on GitHub

v2.2.1

16 Jan 18:50

Choose a tag to compare

   🐞 Bug Fixes

    View changes on GitHub

v2.2.0

16 Jan 18:42

Choose a tag to compare

   🚀 Features

   🐞 Bug Fixes

    View changes on GitHub

v2.1.3

22 May 07:54

Choose a tag to compare

Downgrade Got dependency and fix CJS/ ESM issue

v2.1.2

22 May 07:09

Choose a tag to compare

No significant changes

    View changes on GitHub