github HugoRCD/evlog evlog@2.0.0

latest releases: evlog@2.14.0, evlog@2.13.0, evlog@2.12.0...
one month ago

What's Changed

⚠️ Breaking Change: PostHog adapter now uses PostHog Logs (OTLP) by default

This only affects you if you use evlog/posthog. For all other adapters, this release is fully backward-compatible.

createPostHogDrain() now sends logs to PostHog Logs via OTLP instead of sending custom events via the /batch/ API. This is significantly cheaper and provides a dedicated log viewer in PostHog.

If you were using createPostHogDrain():

  • Your logs will now appear in PostHog Logs instead of Events
  • The eventName and distinctId options are no longer available on createPostHogDrain()
  • If you need the old custom events behavior, switch to createPostHogEventsDrain() from evlog/posthog

If you were using createPostHogLogsDrain():

  • This function has been removed — createPostHogDrain() now does the same thing

Migration:

- import { createPostHogDrain } from 'evlog/posthog'
+ import { createPostHogEventsDrain } from 'evlog/posthog'
- createPostHogDrain({ eventName: 'server_request', distinctId: 'my-service' })
+ createPostHogEventsDrain({ eventName: 'server_request', distinctId: 'my-service' })

Features 🚀

Bug Fixes 🐞

Dependency Updates 📦

  • chore(deps): update dependency next to v16 by @renovate[bot] in #104
  • chore(deps): update dependency zod to v4 by @renovate[bot] in #106
  • chore(deps): update dependency react to v19 by @renovate[bot] in #105
  • chore(deps): update all non-major dependencies by @renovate[bot] in #103
  • chore(deps): update all non-major dependencies by @renovate[bot] in #107

New Contributors

Full Changelog: https://github.com/HugoRCD/evlog/compare/evlog@1.11.0...evlog@2.0.0

Don't miss a new evlog release

NewReleases is sending notifications on new releases.