@posthog/ai
8.22.0 · 20 Nov 2026MIT1.9M / weekRepositoryHomepagenpmAtom feed
Upgrading @posthog/ai From 2.0.1 to 8.22.0
261 releases in betweennotes for 203
Reading releases, release notes and advisories…
- 4+
- changes to make
- 0
- advisories fixed
- 54+
- new
- 100+
- fixes
Counted from 203 of 261 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Breaking8.0.0
- Breaking7.0.0
- Breaking6.0.0
- Deprecated7.16.0
Security
- 7.2.1
Release by release
- New
Read revisions, correct scores, and update or delete accepted offline evaluation items, results, and payloads. (2026-11-20)
- New
- Fixed
ai: Stop logging a parse error for streamed Anthropic tool calls that take no arguments (2026-11-18)
- Fixed
- New
With posthog-node 6.x.x, every AI event is sent through
captureAion the capture v1 AI lane, andenableFullAiCaptureonly controls truncation and media redaction. With posthog-node 5.x.x, nothing changes: AI events usecaptureunlessenableFullAiCaptureis set. (2026-11-17) - New
Add per-event options for posthog-node:
posthogOptionson wrapped provider calls andwithTracing(), andoptionson 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 theprocess_person_profileoption. On posthog-node 5.x.x, each option that version knows is sent in the form it reads, and other keys are dropped. OpenAI Agentsinstrument()now passes every processor option, includingoptionsandonError, to the processor it registers. (2026-11-17) - New
Supports posthog-node 6.x.x. Exception autocapture passes an options object to
captureExceptionwhen 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/mcpevents with no user distinct id set theprocess_person_profile: falseevent option on posthog-node 6.x.x, so a registered or contextprocess_person_profile: trueoption 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/aiand@posthog/mcpshare one copy. (2026-11-17) - Fixed
@posthog/ainow recognizes posthog-node 6.x.x by itsregisterOptionsmethod instead of bygetLibraryVersion(). 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 usecapture()unlessenableFullAiCaptureis on. (2026-11-17) - Fixed
An AI event with no user distinct id now also sets the
process_person_profile: falseevent 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)
- New
- 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)
- Fixed
- Fixed
Widen the supported
@anthropic-ai/sdkpeer range to>=0.112.3 <2.0.0and@google/genaito^1.52.0 || ^2.18.0 || ^3.0.0to support current SDK majors. (2026-11-16)
- Fixed
- New
Support versioned composite scorers, formula validation, and dependency-safe offline evaluation uploads. (2026-11-12)
- New
- Fixed
Streamed OpenAI chat completions now keep custom tool calls in
$ai_output_choices, the same way non-streaming completions do. (2026-11-12)
- Fixed
- 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)
- Fixed
188 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.