Packages

@posthog/ai

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

Upgrading @posthog/ai From 7.18.12 to 8.22.0

117 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 7.18.12Newest 7.x7.21.0
  1. 7.18.12yours
  2. 24 releases
  3. 8.0.0major
  4. 91 releases
  5. 8.22.0target

Before you upgrade

Tick each one off as you go
  • Breaking8.0.0

Release by release

  1. 8.22.0

    20 Nov 20261 new
    • New

      Read revisions, correct scores, and update or delete accepted offline evaluation items, results, and payloads. (2026-11-20)

  2. 8.21.1

    18 Nov 20261 fix
    • Fixed

      ai: Stop logging a parse error for streamed Anthropic tool calls that take no arguments (2026-11-18)

  3. 8.21.0

    17 Nov 20263 new · 4 fixes
    • New

      With posthog-node 6.x.x, every AI event is sent through captureAi on the capture v1 AI lane, and enableFullAiCapture only controls truncation and media redaction. With posthog-node 5.x.x, nothing changes: AI events use capture unless enableFullAiCapture is set. (2026-11-17)

    • New

      Add per-event options for posthog-node: posthogOptions on wrapped provider calls and withTracing(), and options on the LangChain, OpenAI Agents, Claude Agent SDK, Google ADK and Genkit integrations. An event with no distinct id still has person processing turned off. On posthog-node 6.x.x, AI events carry person processing only as the process_person_profile option. On posthog-node 5.x.x, each option that version knows is sent in the form it reads, and other keys are dropped. OpenAI Agents instrument() now passes every processor option, including options and onError, to the processor it registers. (2026-11-17)

    • New

      Supports posthog-node 6.x.x. Exception autocapture passes an options object to captureException when the client is posthog-node 6.x.x, and positional arguments for posthog-node 5.x.x. (2026-11-17)

    • Fixed

      Genkit spans and @posthog/mcp events with no user distinct id set the process_person_profile: false event option on posthog-node 6.x.x, so a registered or context process_person_profile: true option no longer creates a person for each trace or session. Genkit also counts an empty or whitespace-only distinct id as missing. (2026-11-17)

    • Fixed

      Export the table of per-event options and the event properties posthog-node 5.x.x reads instead, so posthog-node, @posthog/ai and @posthog/mcp share one copy. (2026-11-17)

    • Fixed

      @posthog/ai now recognizes posthog-node 6.x.x by its registerOptions method instead of by getLibraryVersion(). A posthog-node 6.x.x client whose version a wrapper or subclass overrides, for example @posthog/mcp, no longer sends its AI events to the analytics endpoint. posthog-node 5.x.x clients still use capture() unless enableFullAiCapture is on. (2026-11-17)

    • Fixed

      An AI event with no user distinct id now also sets the process_person_profile: false event option, so with posthog-node 6.x.x it stays personless even when a context or registered option turns person processing on. An empty or whitespace-only distinct id now counts as missing in every integration, so the event uses the trace or run id and stays personless. (2026-11-17)

  4. 8.20.2

    16 Nov 20261 fix
    • Fixed

      Keep an object that appears twice in the input of a captured AI generation. The second occurrence was replaced with null. (2026-11-16)

  5. 8.20.1

    16 Nov 20261 fix
    • Fixed

      Widen the supported @anthropic-ai/sdk peer range to >=0.112.3 <2.0.0 and @google/genai to ^1.52.0 || ^2.18.0 || ^3.0.0 to support current SDK majors. (2026-11-16)

  6. 8.20.0

    12 Nov 20261 new
    • New

      Support versioned composite scorers, formula validation, and dependency-safe offline evaluation uploads. (2026-11-12)

  7. 8.19.3

    12 Nov 20261 fix
    • Fixed

      Streamed OpenAI chat completions now keep custom tool calls in $ai_output_choices, the same way non-streaming completions do. (2026-11-12)

  8. 8.19.2

    10 Nov 20262 fixes
    • Fixed

      Capture reasoning tokens from OpenAI Agents SDK Responses API spans in $ai_reasoning_tokens (2026-11-10)

    • Fixed

      Capture custom tool calls in OpenAI Responses API output. (2026-11-10)

98 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.