Packages

@posthog/ai

8.22.0 · 20 Nov 2026MIT1.9M / weekRepositoryHomepagenpmAtom feed

Your version

270 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 7.20.4 – 7.20.85 releases that only update dependencies@posthog/core 1.30.5posthog-node 5.35.14Show each
  2. 7.20.3

    1 Jun 2026
    • Disable/no-op initialization paths instead of throwing or sending requests when PostHog project tokens are missing or blank.
      (2026-06-01)

  3. 7.20.1 – 7.20.22 releases that only update dependencies@posthog/core 1.29.15posthog-node 5.35.8Show each
  4. 7.20.0

    29 May 2026
    • Add $ai_completion_id and $ai_provider_metadata to $ai_generation events for the OpenAI and Azure OpenAI wrappers. $ai_completion_id is the provider's response ID (e.g. chatcmpl-… / resp_…); $ai_provider_metadata carries OpenAI-specific fields (system_fingerprint, request_id). Together they enable correlating PostHog events with OpenAI's Logs dashboard (platform.openai.com/logs/{completion_id}). The same options (completionId, providerMetadata) are now accepted by the public captureAiGeneration primitive so other provider wrappers can follow the same pattern.
      (2026-05-29)

  5. 7.19.7

    28 May 2026
  6. 7.19.6

    28 May 2026
    • Expose projectToken in addition to apiKey for PostHogTraceExporter

      We're moving towards a place where we're calling this projectToken everywhere. Let's release this as a patch version because it's a tiny change and we still support the old usage. This might be dropped in the next packages/ai major version. (2026-05-28)

  7. 7.19.1 – 7.19.55 releases that only update dependencies@posthog/core 1.29.12posthog-node 5.35.5Show each
  8. 7.19.0

    21 May 2026
    • Improved error serialization to capture cause, message and stack
      (2026-05-21)

  9. 7.18.1 – 7.18.1212 releases that only update dependencies@posthog/core 1.29.7posthog-node 5.34.9Show each
  10. 7.18.0

    7 May 2026
    • Added a new generic binary payload sanitizer to catch more edge cases
      (2026-05-07)

  11. 7.17.2 – 7.17.54 releases that only update dependencies@posthog/core 1.28.3posthog-node 5.33.3Show each
  12. 7.17.1

    30 Apr 2026
    • vercel: Drop O(N²) prompt trim and reuse TextEncoder/TextDecoder in mapVercelPrompt/truncate so long conversations no longer block the main thread for hundreds of milliseconds in withTracing's stream flush
      (2026-04-30)

  13. 7.17.0

    30 Apr 2026
    • Add captureAiGeneration, a generic primitive for emitting $ai_generation events from LLM calls that don't go through one of the wrapped clients (Cloudflare Workers AI, TanStack AI, custom HTTP, etc.). All built-in wrappers (withTracing, OpenAI, Anthropic, GoogleGenAI) now funnel through the same primitive, so external events are indistinguishable from SDK-wrapped ones.
      (2026-04-30)

  14. 7.16.13 – 7.16.153 releases that only update dependencies@posthog/core 1.27.9posthog-node 5.30.8Show each
  15. 7.16.12

    27 Apr 2026
    • Widen the @opentelemetry/exporter-trace-otlp-http peer dependency range from ^0.200.0 (which only matched 0.200.x) to >=0.200.0 <1.0.0, so newer 0.x releases brought in by other OpenTelemetry-aware packages no longer trigger ERESOLVE failures or require --legacy-peer-deps.
      (2026-04-27)

  16. 7.16.4 – 7.16.118 releases that only update dependencies@posthog/core 1.27.6posthog-node 5.30.5Show each
  17. 7.16.3

    22 Apr 2026
    • ai: Adjust V3 cache tokens for Claude on any host (including Bedrock)
      (2026-04-22)

  18. 7.16.2

    21 Apr 2026

    Reading the note…

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.