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

    21 Apr 2026

    Reading the note…

  2. 7.16.0

    15 Apr 2026
    • Deprecated

      Prompts.get() now accepts { withMetadata: true } and returns a PromptResult object containing source (api, cache, stale_cache, or code_fallback), name, and version alongside the prompt text. The previous plain-string return is deprecated and will be removed in a future major version.
      (2026-04-15)

  3. 7.15.0

    14 Apr 2026
    • Add PostHogSpanProcessor as a self-contained OpenTelemetry SpanProcessor that handles batching and export internally. Both PostHogSpanProcessor and PostHogTraceExporter now automatically filter to AI-related spans only (gen_ai.*, llm.*, ai.*, traceloop.*).
      (2026-04-14)

    • Add OpenAI Agents SDK tracing support via @posthog/ai/openai-agents. Implements PostHogTracingProcessor that captures agent traces, spans, and LLM generations as PostHog LLM analytics events. Supports all span types including generation, response, function/tool, agent, handoff, guardrail, custom, audio, and MCP.
      (2026-04-14)

  4. 7.14.0

    10 Apr 2026
    • Add $ai_stop_reason property capturing the LLM's reason for stopping generation across all providers
      (2026-04-10)

    • Add Gemini embedContent tracking support
      (2026-04-10)

  5. 7.13.2

    9 Apr 2026

    Reading the note…

  6. 7.13.1

    7 Apr 2026

    Reading the note…

  7. 7.13.0

    7 Apr 2026
    • Preserve $set_once semantics in local flag evaluation cache
      (2026-04-07)

  8. 7.12.8

    2 Apr 2026

    Reading the note…

  9. 7.12.7

    1 Apr 2026

    Reading the note…

  10. 7.12.6

    31 Mar 2026

    Reading the note…

  11. 7.12.5

    30 Mar 2026

    Reading the note…

  12. 7.12.4

    27 Mar 2026

    Reading the note…

  13. 7.12.3

    27 Mar 2026

    Reading the note…

  14. 7.12.2

    20 Mar 2026

    Reading the note…

  15. 7.12.1

    18 Mar 2026

    Reading the note…

  16. 7.12.0

    18 Mar 2026
    • Replace otel client-side span mapping with PostHogTraceExporter. PostHog now converts gen_ai.* spans into $ai_generation events server-side, so the client-side mapper pipeline (PostHogSpanProcessor, captureSpan, aiSdkSpanMapper) has been replaced with a simple OTLPTraceExporter wrapper.
      (2026-03-18)

  17. 7.11.2

    13 Mar 2026

    Reading the note…

  18. 7.11.1

    11 Mar 2026

    Reading the note…

  19. 7.11.0

    9 Mar 2026
    • Add version-specific Prompts.clearCache(name, version) support and switch prompt caching to structured name/version entries instead of string-encoded cache keys.
      (2026-03-09)

  20. 7.10.0

    9 Mar 2026
    • Add version-aware prompt fetching to the Prompts SDK so callers can request a specific published prompt version without colliding with the latest prompt cache entry.
      (2026-03-09)

  21. 7.9.5

    3 Mar 2026

    Reading the note…

  22. 7.9.4

    2 Mar 2026

    Reading the note…

  23. 7.9.3

    25 Feb 2026

    Reading the note…

  24. 7.9.2

    24 Feb 2026

    Reading the note…

  25. 7.9.1

    23 Feb 2026

    Reading the note…

  26. 7.9.0

    18 Feb 2026
    • Added AI SDK OTEL span processing pipeline
      (2026-02-18)

  27. 7.8.13

    18 Feb 2026

    Reading the note…

  28. 7.8.12

    17 Feb 2026

    Reading the note…

  29. 7.8.11

    12 Feb 2026

    Reading the note…

  30. 7.8.10

    11 Feb 2026

    Reading the note…

  31. 7.8.9

    10 Feb 2026

    Reading the note…

  32. 7.8.8

    9 Feb 2026

    Reading the note…

  33. 7.8.7

    9 Feb 2026

    Reading the note…

  34. 7.8.6

    6 Feb 2026

    Reading the note…

  35. 7.8.5

    4 Feb 2026

    Reading the note…

  36. 7.8.4

    3 Feb 2026

    Reading the note…

  37. 7.8.3

    3 Feb 2026

    Reading the note…

  38. 7.8.2

    29 Jan 2026

    Reading the note…

  39. 7.8.1

    29 Jan 2026

    Reading the note…

  40. 7.8.0

    29 Jan 2026
    • llma: Add time to first token reporting
      (2026-01-29)

  41. 7.7.0

    28 Jan 2026
    • Add prompt management functions.
      (2026-01-28)

  42. 7.6.1

    28 Jan 2026

    Reading the note…

  43. 7.6.0

    27 Jan 2026
    • Add rawUsage field to capture raw provider usage metadata for backend cost calculations
      (2026-01-27)

    • Dependencies updates: - Updated dependency @google/genai@^1.38.0 ↗︎ (from ^1.34.0, in dependencies) - Updated dependency @langchain/core@^1.1.17 ↗︎ (from ^1.1.8, in dependencies) (2026-01-27)

    • Sanitize base64 images before formatting in Responses API to prevent 413 payload-too-large errors
      (2026-01-27)

  44. 7.5.4

    23 Jan 2026

    Reading the note…

  45. 7.5.3

    20 Jan 2026

    Reading the note…

  46. 7.5.2

    20 Jan 2026

    Reading the note…

  47. 7.5.1

    19 Jan 2026

    Reading the note…

  48. 7.5.0

    19 Jan 2026

    Only updates a dependency:posthog-node 5.22.0

  49. 7.4.3

    16 Jan 2026

    Reading the note…

  50. 7.4.2

    12 Jan 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.