Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 21, 2026

Bumps posthog-node from 5.18.1 to 5.24.1.

Release notes

Sourced from posthog-node's releases.

posthog-node@5.24.1

5.24.1

Patch Changes

  • Updated dependencies [8a5a3d5]:
    • @​posthog/core@​1.13.0

posthog-node@5.24.0

5.24.0

Minor Changes

  • #2897 b7fa003 Thanks @​matheus-vb! - Add $feature_flag_error to $feature_flag_called events to track flag evaluation failures (2026-01-20)

Patch Changes

posthog-node@5.23.0

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'],
    })
    </code></pre>
    </li>
    </ul>
    <h3>Patch Changes</h3>
    <ul>
    <li>Updated dependencies [<a href="https://github.com/PostHog/posthog-js/commit/23770e9e2eed1aca5c2bc7a34a6d64dc115b0d11"><code>23770e9</code></a>]:
    <ul>
    <li><code>@​posthog/core</code><a href="https://github.com/1"><code>@​1</code></a>.11.0</li>
    </ul>
    </li>
    </ul>
    <!-- raw HTML omitted -->
    </blockquote>
    <p>... (truncated)</p>
    </details>
    <details>
    <summary>Changelog</summary>
    <p><em>Sourced from <a href="https://github.com/PostHog/posthog-js/blob/main/packages/node/CHANGELOG.md&quot;&gt;posthog-node's changelog</a>.</em></p>
    <blockquote>
    <h2>5.24.1</h2>
    <h3>Patch Changes</h3>
    <ul>
    <li>Updated dependencies [<a href="https://github.com/PostHog/posthog-js/commit/8a5a3d5693facda62b90b66dead338f7dca19705"><code>8a5a3d5</code></a>]:
    <ul>
    <li><code>@​posthog/core</code><a href="https://github.com/1&quot;&gt;&lt;code&gt;@​1&lt;/code&gt;&lt;/a&gt;.13.0&lt;/li>
    </ul>
    </li>
    </ul>
    <h2>5.24.0</h2>
    <h3>Minor Changes</h3>
    <ul>
    <li><a href="https://redirect.github.com/PostHog/posthog-js/pull/2897&quot;&gt;#2897&lt;/a> <a href="https://github.com/PostHog/posthog-js/commit/b7fa003ef6ef74bdf4666be0748d89a5a6169054&quot;&gt;&lt;code&gt;b7fa003&lt;/code&gt;&lt;/a> Thanks <a href="https://github.com/matheus-vb&quot;&gt;&lt;code&gt;@​matheus-vb&lt;/code&gt;&lt;/a>! - Add $feature_flag_error to $feature_flag_called events to track flag evaluation failures
    (2026-01-20)</li>
    </ul>
    <h3>Patch Changes</h3>
    <ul>
    <li>Updated dependencies [<a href="https://github.com/PostHog/posthog-js/commit/b7fa003ef6ef74bdf4666be0748d89a5a6169054"><code>b7fa003</code></a>, <a href="https://github.com/PostHog/posthog-js/commit/f0cbc0d8e4e5efc27d9595676e886d6d3d3892f4"><code>f0cbc0d</code></a>]:
    <ul>
    <li><code>@​posthog/core</code><a href="https://github.com/1&quot;&gt;&lt;code&gt;@​1&lt;/code&gt;&lt;/a&gt;.12.0&lt;/li>
    </ul>
    </li>
    </ul>
    <h2>5.23.0</h2>
    <h3>Minor Changes</h3>
    <ul>
    <li>
    <p><a href="https://redirect.github.com/PostHog/posthog-js/pull/2900&quot;&gt;#2900&lt;/a> <a href="https://github.com/PostHog/posthog-js/commit/23770e9e2eed1aca5c2bc7a34a6d64dc115b0d11&quot;&gt;&lt;code&gt;23770e9&lt;/code&gt;&lt;/a> Thanks <a href="https://github.com/dmarticus&quot;&gt;&lt;code&gt;@​dmarticus&lt;/code&gt;&lt;/a>! - Renamed <code>evaluationEnvironments</code> to <code>evaluationContexts</code> for clearer semantics. The term &quot;contexts&quot; better reflects that this feature is for specifying evaluation contexts (e.g., &quot;web&quot;, &quot;mobile&quot;, &quot;checkout&quot;) rather than deployment environments (e.g., &quot;staging&quot;, &quot;production&quot;).</p>
    <h3>Deprecated</h3>
    <ul>
    <li><code>posthog.init</code> option <code>evaluationEnvironments</code> is now deprecated in favor of <code>evaluationContexts</code>. The old property will continue to work and will log a deprecation warning. It will be removed in a future major version.</li>
    </ul>
    <h3>Migration Guide</h3>
    <pre lang="javascript"><code>// Before
    posthog.init('&lt;ph_project_api_key&gt;', {
    evaluationEnvironments: ['production', 'web', 'checkout'],
    })
    // After
    posthog.init('&lt;ph_project_api_key&gt;', {
    evaluationContexts: ['production', 'web', 'checkout'],
    })
    &lt;/code&gt;&lt;/pre&gt;
    &lt;/li&gt;
    &lt;/ul&gt;
    &lt;h3&gt;Patch Changes&lt;/h3&gt;
    &lt;ul&gt;
    &lt;li&gt;Updated dependencies [&lt;a href=&quot;https://github.com/PostHog/posthog-js/commit/23770e9e2eed1aca5c2bc7a34a6d64dc115b0d11&quot;&gt;&lt;code&gt;23770e9&lt;/code&gt;&lt;/a&gt;]:
    &lt;ul&gt;
    &lt;li&gt;&lt;code&gt;@​posthog/core&lt;/code&gt;&lt;a href=&quot;https://github.com/1&quot;&gt;&lt;code&gt;@​1&lt;/code&gt;&lt;/a&gt;.11.0&lt;/li&gt;
    &lt;/ul&gt;
    &lt;/li&gt;
    &lt;/ul&gt;
    &lt;h2&gt;5.22.0&lt;/h2&gt;
    &lt;!-- raw HTML omitted --&gt;
    &lt;/blockquote&gt;
    &lt;p&gt;... (truncated)&lt;/p&gt;
    &lt;/details&gt;
    &lt;details&gt;
    &lt;summary&gt;Commits&lt;/summary&gt;
    
    &lt;ul&gt;
    &lt;li&gt;&lt;a href=&quot;https://github.com/PostHog/posthog-js/commit/0ca8ab65261eaba7480e742be58c1bd1f3a1a5d1&quot;&gt;&lt;code&gt;0ca8ab6&lt;/code&gt;&lt;/a&gt; chore: update versions and lockfile [version bump]&lt;/li&gt;
    &lt;li&gt;&lt;a href=&quot;https://github.com/PostHog/posthog-js/commit/45bbc6ddf47183eee38e9b2c68509fc32038ded2&quot;&gt;&lt;code&gt;45bbc6d&lt;/code&gt;&lt;/a&gt; chore: update versions and lockfile [version bump]&lt;/li&gt;
    &lt;li&gt;&lt;a href=&quot;https://github.com/PostHog/posthog-js/commit/b7fa003ef6ef74bdf4666be0748d89a5a6169054&quot;&gt;&lt;code&gt;b7fa003&lt;/code&gt;&lt;/a&gt; feat(flags): Add $feature_flag_error property to track flag evaluation failur...&lt;/li&gt;
    &lt;li&gt;&lt;a href=&quot;https://github.com/PostHog/posthog-js/commit/7339c3a0cc993d4332ec3285f5c2d65f437c8809&quot;&gt;&lt;code&gt;7339c3a&lt;/code&gt;&lt;/a&gt; chore: update versions and lockfile [version bump]&lt;/li&gt;
    &lt;li&gt;&lt;a href=&quot;https://github.com/PostHog/posthog-js/commit/23770e9e2eed1aca5c2bc7a34a6d64dc115b0d11&quot;&gt;&lt;code&gt;23770e9&lt;/code&gt;&lt;/a&gt; chore(flags): rename &lt;code&gt;evaluation_environments&lt;/code&gt; to &lt;code&gt;evaluation_contexts&lt;/code&gt; (&lt;a href=&quot;https://github.com/PostHog/posthog-js/tree/HEAD/packages/node/issues/2900&quot;&gt;#2900&lt;/a&gt;)&lt;/li&gt;
    &lt;li&gt;&lt;a href=&quot;https://github.com/PostHog/posthog-js/commit/03f9927a679770ed343401cfad352381f45ea743&quot;&gt;&lt;code&gt;03f9927&lt;/code&gt;&lt;/a&gt; chore: update versions and lockfile [version bump]&lt;/li&gt;
    &lt;li&gt;&lt;a href=&quot;https://github.com/PostHog/posthog-js/commit/5e885981a87bf5552e5fd594494707a0fe0b84a0&quot;&gt;&lt;code&gt;5e88598&lt;/code&gt;&lt;/a&gt; chore: Node engine constraint includes Node 20 (&lt;a href=&quot;https://github.com/PostHog/posthog-js/tree/HEAD/packages/node/issues/2932&quot;&gt;#2932&lt;/a&gt;)&lt;/li&gt;
    &lt;li&gt;&lt;a href=&quot;https://github.com/PostHog/posthog-js/commit/c9b773aefd25fcc81a60dff02348e8e724b87565&quot;&gt;&lt;code&gt;c9b773a&lt;/code&gt;&lt;/a&gt; chore: Bump node to min. 22.22 due to DDoS CVE (ai, node, nuxt and &lt;code&gt;@​posthog/n&lt;/code&gt;...&lt;/li&gt;
    &lt;li&gt;&lt;a href=&quot;https://github.com/PostHog/posthog-js/commit/6ed0bf9ef5f8a0fa22bd41d9afffefe13b64aaae&quot;&gt;&lt;code&gt;6ed0bf9&lt;/code&gt;&lt;/a&gt; chore: update versions and lockfile [version bump]&lt;/li&gt;
    &lt;li&gt;&lt;a href=&quot;https://github.com/PostHog/posthog-js/commit/099ee0c3e4babc632abf52ecdc1df700c6087566&quot;&gt;&lt;code&gt;099ee0c&lt;/code&gt;&lt;/a&gt; feat(flags): Add &lt;code&gt;getFeatureFlagResult&lt;/code&gt; method for efficient flag + payload r...&lt;/li&gt;
    &lt;li&gt;Additional commits viewable in &lt;a href=&quot;https://github.com/PostHog/posthog-js/commits/posthog-node@5.24.1/packages/node&quot;&gt;compare view&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
    &lt;/details&gt;
    
    &lt;br /&gt;
    </code></pre>
    
    
    [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=posthog-node&package-manager=npm_and_yarn&previous-version=5.18.1&new-version=5.24.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
    
    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
    
    [//]: # (dependabot-automerge-start)
    [//]: # (dependabot-automerge-end)
    
    ---
    
    <details>
    <summary>Dependabot commands and options</summary>
    <br />
    
    You can trigger Dependabot actions by commenting on this PR:
    - `@dependabot rebase` will rebase this PR
    - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
    - `@dependabot merge` will merge this PR after your CI passes on it
    - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
    - `@dependabot cancel merge` will cancel a previously requested merge and block automerging
    - `@dependabot reopen` will reopen this PR if it is closed
    - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
    - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    
    
    </details>

Bumps [posthog-node](https://github.com/PostHog/posthog-js/tree/HEAD/packages/node) from 5.18.1 to 5.24.1.
- [Release notes](https://github.com/PostHog/posthog-js/releases)
- [Changelog](https://github.com/PostHog/posthog-js/blob/main/packages/node/CHANGELOG.md)
- [Commits](https://github.com/PostHog/posthog-js/commits/posthog-node@5.24.1/packages/node)

---
updated-dependencies:
- dependency-name: posthog-node
  dependency-version: 5.24.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Jan 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant