Skip to content

Bump posthog-node from 5.18.1 to 5.23.0#420

Open
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/posthog-node-5.23.0
Open

Bump posthog-node from 5.18.1 to 5.23.0#420
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/posthog-node-5.23.0

Conversation

@dependabot
Copy link
Contributor

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

Bumps posthog-node from 5.18.1 to 5.23.0.

Release notes

Sourced from posthog-node's releases.

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>
    <h2>posthog-node@5.22.0</h2>
    <h2>5.22.0</h2>
    <h3>Minor Changes</h3>
    <ul>
    <li><a href="https://redirect.github.com/PostHog/posthog-js/pull/2930">#2930</a> <a href="https://github.com/PostHog/posthog-js/commit/c9b773aefd25fcc81a60dff02348e8e724b87565"><code>c9b773a</code></a> Thanks <a href="https://github.com/marandaneto"><code>@​marandaneto</code></a>! - chore: Bump node min. ^20.20.0 || &gt;=22.22.0 due to <a href="https://nodejs.org/en/blog/vulnerability/january-2026-dos-mitigation-async-hooks">https://nodejs.org/en/blog/vulnerability/january-2026-dos-mitigation-async-hooks</a>
    (2026-01-19)</li>
    </ul>
    <h2>posthog-node@5.21.2</h2>
    <h2>5.21.2</h2>
    <h3>Patch Changes</h3>
    <ul>
    <li><a href="https://redirect.github.com/PostHog/posthog-js/pull/2920">#2920</a> <a href="https://github.com/PostHog/posthog-js/commit/099ee0c3e4babc632abf52ecdc1df700c6087566"><code>099ee0c</code></a> Thanks <a href="https://github.com/haacked"><code>@​haacked</code></a>! - Add getFeatureFlagResult method to retrieve flag value and payload in a single API call.
    (2026-01-19)</li>
    </ul>
    <h2>posthog-node@5.21.1</h2>
    <h2>5.21.1</h2>
    <h3>Patch Changes</h3>
    <!-- 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.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;h3&gt;Minor Changes&lt;/h3&gt;
    &lt;ul&gt;
    &lt;li&gt;&lt;a href=&quot;https://redirect.github.com/PostHog/posthog-js/pull/2930&quot;&gt;#2930&lt;/a&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; Thanks &lt;a href=&quot;https://github.com/marandaneto&quot;&gt;&lt;code&gt;@​marandaneto&lt;/code&gt;&lt;/a&gt;! - chore: Bump node min. ^20.20.0 || &amp;gt;=22.22.0 due to &lt;a href=&quot;https://nodejs.org/en/blog/vulnerability/january-2026-dos-mitigation-async-hooks&quot;&gt;https://nodejs.org/en/blog/vulnerability/january-2026-dos-mitigation-async-hooks&lt;/a&gt;
    (2026-01-19)&lt;/li&gt;
    &lt;/ul&gt;
    &lt;h2&gt;5.21.2&lt;/h2&gt;
    &lt;h3&gt;Patch Changes&lt;/h3&gt;
    &lt;ul&gt;
    &lt;li&gt;&lt;a href=&quot;https://redirect.github.com/PostHog/posthog-js/pull/2920&quot;&gt;#2920&lt;/a&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; Thanks &lt;a href=&quot;https://github.com/haacked&quot;&gt;&lt;code&gt;@​haacked&lt;/code&gt;&lt;/a&gt;! - Add getFeatureFlagResult method to retrieve flag value and payload in a single API call.
    (2026-01-19)&lt;/li&gt;
    &lt;/ul&gt;
    &lt;h2&gt;5.21.1&lt;/h2&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/d37e5709863e869825df57d0854588140c4294b2&quot;&gt;&lt;code&gt;d37e570&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;.10.0&lt;/li&gt;
    &lt;/ul&gt;
    &lt;/li&gt;
    &lt;/ul&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/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;&lt;a href=&quot;https://github.com/PostHog/posthog-js/commit/6ac83cc67c0451bb9c50470ed7cb0b7f1a0ef599&quot;&gt;&lt;code&gt;6ac83cc&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/19b40a3b128b15d8442c2ec7dd9aafe5af3fc65f&quot;&gt;&lt;code&gt;19b40a3&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/640fcdd2dd7f412630190aa6fdecc4418246a87e&quot;&gt;&lt;code&gt;640fcdd&lt;/code&gt;&lt;/a&gt; feat(node): warn about experience continuity flags and add strictLocalEvaluat...&lt;/li&gt;
    &lt;li&gt;Additional commits viewable in &lt;a href=&quot;https://github.com/PostHog/posthog-js/commits/posthog-node@5.23.0/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.23.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
    
    You can trigger a rebase of this PR 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>
    
    > **Note**
    > Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [posthog-node](https://github.com/PostHog/posthog-js/tree/HEAD/packages/node) from 5.18.1 to 5.23.0.
- [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.23.0/packages/node)

---
updated-dependencies:
- dependency-name: posthog-node
  dependency-version: 5.23.0
  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 19, 2026
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 19, 2026

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

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.

0 participants