Skip to content

chore(deps): bump posthog-node from 5.73.0 to 6.0.2 - #1012

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/posthog-node-6.0.2
Closed

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/posthog-node-6.0.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 20, 2026

Copy link
Copy Markdown
Contributor

Bumps posthog-node from 5.73.0 to 6.0.2.

Release notes

Sourced from posthog-node's releases.

posthog-node@6.0.2

6.0.2

Patch Changes

  • #5776 4495a66 Thanks @​gewenyu99! - 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)

posthog-node@6.0.1

6.0.1

Patch Changes

  • #5775 a410583 Thanks @​gewenyu99! - Add the missing commas to the captureImmediate and identify doc comment examples, so the examples parse when you copy them. (2026-11-17)

posthog-node@6.0.0

6.0.0

Major Changes

  • #5407 6405dfd Thanks @​eli-r-ph! - Remove enterContext(); use withContext() to scope async context to a callback. (2026-11-17)

  • #5407 6405dfd Thanks @​eli-r-ph! - Use camelCase SDK configuration names and typed boolean event options with support for additional JSON-valued options. (2026-11-17)

  • #5407 6405dfd Thanks @​eli-r-ph! - 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)

  • #5407 6405dfd Thanks @​eli-r-ph! - Generated event uuids and personless distinct ids take their random bits from crypto.getRandomValues instead of Math.random. (2026-11-17)

  • #5407 6405dfd Thanks @​eli-r-ph! - A personal API key (phx_...) passed as the project API key now disables the client, like a missing key, and either case logs one error that never includes the key. Debug mode logs event names, uuids and counts instead of whole events, and a before_send function that throws is logged with the error's type instead of its message. In debug mode, a capture error can still include the server or proxy response text. A new client option, captureTracingHeaders (default true), controls whether the Express and NestJS integrations read the X-POSTHOG-DISTINCT-ID and X-POSTHOG-SESSION-ID request headers into the request context. (2026-11-17)

  • #5407 6405dfd Thanks @​eli-r-ph! - Analytics and AI events are batched and sent on separate lanes, in batches of about 5 MiB at most, and events that fail with a network error are kept and retried on the next flush. flush() no longer rejects on delivery failures (they arrive through the 'error' event), and maxQueueSize now applies to analytics events only. (2026-11-17)

  • #5407 6405dfd Thanks @​eli-r-ph! - Values set on the event, in context or with register() / the new registerOptions() now win over the values the SDK adds ($is_server, $geoip_disable, feature flag properties, trace ids), and before_send sees and can change all of them. Context and registered properties and options, including the new context options, also reach identify, alias and group identify events, but they do not set process_person_profile on $identify, $create_alias, $merge_dangerously, $groupidentify, $set or $set_once events whose distinct id the SDK did not generate, which default to true unless the call sets it. An empty or whitespace distinct id counts as missing, and $groupidentify without a distinct id uses the context id, then $<type>_<key>. $geoip_disable and $groups are filled before before_send, so a hook that changes the message's disableGeoip or groups field has no effect: edit the properties instead. Reserved exception properties such as $exception_level passed in captureException() properties are now ignored, so the SDK's value is sent. (2026-11-17)

  • #5407 6405dfd Thanks @​eli-r-ph! - Every capture call takes a per-event options map that is sent to capture unchanged (the SDK no longer converts option values). Legacy option properties still work, but an option overrides its legacy property. Use options. A $session_id or $window_id that is not a string is dropped with a warning. Capture drops an event whose option value it cannot read, such as cookieless_mode: [1, 2, 3], and the SDK reports it through 'error' with details: 'invalid_options'. (2026-11-17)

  • #5407 6405dfd Thanks @​eli-r-ph! - Events send $lib and $lib_version in their properties: a $lib set on the event, in context or with register() wins over the SDK's own pair, and before_send can change or remove them.

... (truncated)

Changelog

Sourced from posthog-node's changelog.

6.0.2

Patch Changes

  • #5776 4495a66 Thanks @​gewenyu99! - 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)

6.0.1

Patch Changes

  • #5775 a410583 Thanks @​gewenyu99! - Add the missing commas to the captureImmediate and identify doc comment examples, so the examples parse when you copy them. (2026-11-17)

6.0.0

Major Changes

  • #5407 6405dfd Thanks @​eli-r-ph! - Remove enterContext(); use withContext() to scope async context to a callback. (2026-11-17)

  • #5407 6405dfd Thanks @​eli-r-ph! - Use camelCase SDK configuration names and typed boolean event options with support for additional JSON-valued options. (2026-11-17)

  • #5407 6405dfd Thanks @​eli-r-ph! - 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)

  • #5407 6405dfd Thanks @​eli-r-ph! - Generated event uuids and personless distinct ids take their random bits from crypto.getRandomValues instead of Math.random. (2026-11-17)

  • #5407 6405dfd Thanks @​eli-r-ph! - A personal API key (phx_...) passed as the project API key now disables the client, like a missing key, and either case logs one error that never includes the key. Debug mode logs event names, uuids and counts instead of whole events, and a before_send function that throws is logged with the error's type instead of its message. In debug mode, a capture error can still include the server or proxy response text. A new client option, captureTracingHeaders (default true), controls whether the Express and NestJS integrations read the X-POSTHOG-DISTINCT-ID and X-POSTHOG-SESSION-ID request headers into the request context. (2026-11-17)

  • #5407 6405dfd Thanks @​eli-r-ph! - Analytics and AI events are batched and sent on separate lanes, in batches of about 5 MiB at most, and events that fail with a network error are kept and retried on the next flush. flush() no longer rejects on delivery failures (they arrive through the 'error' event), and maxQueueSize now applies to analytics events only. (2026-11-17)

  • #5407 6405dfd Thanks @​eli-r-ph! - Values set on the event, in context or with register() / the new registerOptions() now win over the values the SDK adds ($is_server, $geoip_disable, feature flag properties, trace ids), and before_send sees and can change all of them. Context and registered properties and options, including the new context options, also reach identify, alias and group identify events, but they do not set process_person_profile on $identify, $create_alias, $merge_dangerously, $groupidentify, $set or $set_once events whose distinct id the SDK did not generate, which default to true unless the call sets it. An empty or whitespace distinct id counts as missing, and $groupidentify without a distinct id uses the context id, then $<type>_<key>. $geoip_disable and $groups are filled before before_send, so a hook that changes the message's disableGeoip or groups field has no effect: edit the properties instead. Reserved exception properties such as $exception_level passed in captureException() properties are now ignored, so the SDK's value is sent. (2026-11-17)

  • #5407 6405dfd Thanks @​eli-r-ph! - Every capture call takes a per-event options map that is sent to capture unchanged (the SDK no longer converts option values). Legacy option properties still work, but an option overrides its legacy property. Use options. A $session_id or $window_id that is not a string is dropped with a warning. Capture drops an event whose option value it cannot read, such as cookieless_mode: [1, 2, 3], and the SDK reports it through 'error' with details: 'invalid_options'. (2026-11-17)

  • #5407 6405dfd Thanks @​eli-r-ph! - Events send $lib and $lib_version in their properties: a $lib set on the event, in context or with register() wins over the SDK's own pair, and before_send can change or remove them. (2026-11-17)

  • #5407 6405dfd Thanks @​eli-r-ph! - Capture follows only same-origin 307 and 308 redirects. Invalid event uuids are replaced with a warning, and dropped duplicate copies are reported.

... (truncated)

Commits
  • a679cd6 chore: update versions and lockfile [version bump]
  • 4495a66 fix(node): keep the 5.x option names as deprecated aliases in JavaScript (#5776)
  • 5b79d18 chore: update versions and lockfile [version bump]
  • a410583 docs(node): add missing commas to two doc comment examples (#5775)
  • 019218e chore: update versions and lockfile [version bump]
  • 6405dfd feat(node)!: posthog-node 6 on capture v1 (#5407)
  • 63bc454 chore: update versions and lockfile [version bump]
  • d8389d7 feat(flags): treat failed evaluations as unavailable (#5693)
  • ab4d519 chore: update versions and lockfile [version bump]
  • e8e850a fix(node): send logs captured during the shutdown flush (#5676)
  • Additional commits viewable in compare view

Dependabot compatibility score

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 commands and options

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 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)

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

---
updated-dependencies:
- dependency-name: posthog-node
  dependency-version: 6.0.2
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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 Nov 20, 2026
@pkg-pr-new

pkg-pr-new Bot commented Nov 20, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/openworkflowdev/openworkflow/@openworkflow/cli@1012
npm i https://pkg.pr.new/openworkflowdev/openworkflow/@openworkflow/dashboard@1012
npm i https://pkg.pr.new/openworkflowdev/openworkflow@1012

commit: e6877dd

@dependabot @github

dependabot Bot commented on behalf of github Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #1023.

@dependabot dependabot Bot closed this Nov 23, 2026
@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/posthog-node-6.0.2 branch November 23, 2026 23:46
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