Packages

@posthog/ai

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

Upgrading @posthog/ai From 7.9.4 to 7.21.0

78 releases in betweennotes for 63

Reading releases, release notes and advisories…

Other targets from 7.9.4Latest8.22.0
  1. 7.9.4yours
  2. 77 releases
  3. 7.21.0target
1+
change to make
0
advisories fixed
15+
new
4+
fixes

Counted from 63 of 78 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Deprecated7.16.0

Release by release

  1. 7.21.0

    8 Jun 20261 new
    • New

      Redact base64/binary multimodal content from AI spans in the OTel PostHogSpanProcessor and PostHogTraceExporter before export, matching the redaction already applied by the direct provider wrappers. Content is redacted by value (data URLs and large base64 blobs) across span attributes and span events, so it works regardless of which GenAI semantic convention produced the span. (2026-06-08)

  2. 7.20.14nothing new or fixed in the note

  3. 7.20.13

    5 Jun 20261 fix
    • Fixed

      Preserve OpenAI APIPromise response helpers on instrumented OpenAI wrapper calls. (2026-06-05)

  4. 7.20.4 – 7.20.129 releases, nothing new or fixed in the notes

  5. 7.20.3

    1 Jun 20261 fix
    • Fixed

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

  6. 7.20.1 – 7.20.22 releases, nothing new or fixed in the notes

  7. 7.20.0

    29 May 20261 new
    • New

      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)

  8. 7.19.7nothing new or fixed in the note

95 internal lines (docs, tests, tooling) left out.

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.