github PostHog/posthog-js posthog-node@5.23.0

latest releases: @posthog/ai@7.5.1, posthog-react-native@4.21.0
16 hours ago

5.23.0

Minor Changes

  • #2900 23770e9 Thanks @dmarticus! - Renamed evaluationEnvironments to evaluationContexts for clearer semantics. The term "contexts" better reflects that this feature is for specifying evaluation contexts (e.g., "web", "mobile", "checkout") rather than deployment environments (e.g., "staging", "production").

    Deprecated

    • posthog.init option evaluationEnvironments is now deprecated in favor of evaluationContexts. The old property will continue to work and will log a deprecation warning. It will be removed in a future major version.

    Migration Guide

    // Before
    posthog.init('<ph_project_api_key>', {
        evaluationEnvironments: ['production', 'web', 'checkout'],
    })
    
    // After
    posthog.init('<ph_project_api_key>', {
        evaluationContexts: ['production', 'web', 'checkout'],
    })
    ``` (2026-01-19)

Patch Changes

  • Updated dependencies [23770e9]:
    • @posthog/core@1.11.0

Don't miss a new posthog-js release

NewReleases is sending notifications on new releases.