Packages

posthog-node

6.0.5 · 19 Nov 2026MIT23.9M / weekRepositorynpmAtom feed

Upgrading posthog-node From 5.47.0 to 6.0.5

85 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 5.47.0Newest 5.x5.74.0
  1. 5.47.0yours
  2. 16 releases
  3. 5.49.2breaking
  4. 62 releases
  5. 6.0.0major
  6. 2 releases
  7. 6.0.3breaking
  8. 1 release
  9. 6.0.5target

Before you upgrade

Tick each one off as you go
  • Breaking6.0.3
  • Breaking6.0.0
  • Breaking6.0.0
  • Breaking6.0.0
  • Breaking6.0.0
  • Breaking6.0.0
  • Breaking6.0.0
  • Breaking6.0.0
  • Breaking6.0.0
  • Breaking6.0.0

Release by release

  1. 6.0.5

    19 Nov 20261 fix
    • Fixed

      Keep falsy payloads (0, false, "") for locally evaluated flags in evaluateFlags and getAllFlagsAndPayloads (2026-11-19)

  2. 6.0.4

    18 Nov 20261 fix
    • Fixed

      Send transactional email requests to /api/messaging/ instead of the /api/projects/@current/ alias, which PostHog is removing. Needs PostHog Cloud, or a self-hosted PostHog from 2026-11-18 or later. Older self-hosted versions answer these calls with a 404. (2026-11-18)

  3. 6.0.3

    Migration needed18 Nov 20261 fix
    • Breaking

      Drop null-valued custom exception properties after beforeSend without undoing redaction or changing array positions. (2026-11-18)

    • Fixed

      Preserve falsy JSON payloads in feature flag snapshots from legacy flag responses. (2026-11-18)

  4. 6.0.2

    17 Nov 20261 fix
    • Fixed

      Accept the 5.x option names before_send, custom_blocked_useragents, disable_capture_url_hashes, and __preview_capture_bot_pageviews again as deprecated aliases. Each one maps to its camelCase name and logs one deprecation error per process. When both names are set, the camelCase one wins. In 6.0.0 the old names were ignored without a warning, so a before_send hook stopped running. (2026-11-17)

  5. 6.0.1

    17 Nov 20261 new
    • New

      Add the missing commas to the captureImmediate and identify doc comment examples, so the examples parse when you copy them. (2026-11-17)

  6. 6.0.0

    Migration needed17 Nov 20265 fixes
    • Breaking

      Remove enterContext(); use withContext() to scope async context to a callback. (2026-11-17)

    • Breaking

      Use camelCase SDK configuration names and typed boolean event options with support for additional JSON-valued options. (2026-11-17)

    • Breaking

      captureException() and captureExceptionImmediate() take an options object (distinctId, properties, options, uuid, flags, level). The old positional form still works in posthog-node 6.x.x and logs a deprecation error once per method. level is read case-insensitively, with the same aliases as posthog-python (critical → fatal, warn → warning). An unknown level keeps error. registerOptions() and unregisterOptions() return a promise, and prepareEventMessage() returns a flat message with top-level options, uuid, timestamp and disableGeoip. (2026-11-17)

    • Breaking

      Generated event uuids and personless distinct ids take their random bits from crypto.getRandomValues instead of Math.random. (2026-11-17)

  7. 5.74.0

    15 Nov 20261 new
    • New

      Treat failed flag evaluations as unavailable: Node getFeatureFlag()/isFeatureEnabled() return undefined, getAllFlags() omits failed keys, and no failed values or payloads are exposed. (2026-11-15)

  8. 5.73.1

    14 Nov 20261 fix
    • Fixed

      node: shutdown() now also sends logs captured while its logs flush was in flight, instead of dropping them (2026-11-14)

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