Skip to content

[failproofai] Bump posthog-node to 6.0.5 (PostHog Capture V1) - #1043

Merged
hermes-exosphere merged 10 commits into
mainfrom
dependabot/bun/posthog-node-6.0.5
Nov 30, 2026
Merged

hermes-exosphere merged 10 commits into
mainfrom
dependabot/bun/posthog-node-6.0.5

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Bumps posthog-node from 5.73.0 to 6.0.5 (Dependabot) and adapts our code and the real-delivery test to PostHog 6's ingestion contract.

What changed

  • posthog-node 5.73.0 → 6.0.5. It is a devDependency bundled into the Next.js dashboard server at build time ([failproofai] Pin what an install fetches; document what a Cloud policy runs (#1798) #1059), so the lockfile decides what ships. The CLI, worker and hook bundles don't contain it: trackEvent is a no-op there, and the hook dispatcher posts to /capture/ with plain fetch. bun.lock was regenerated against current main with bun 1.4.5 (CI's pin) and holds posthog-node 6.0.5, @posthog/core 1.69.2 and @posthog/types 1.427.1. The caret range would also accept 6.2.1, but that and @posthog/core 1.69.3 were published hours before this update, so the lock stays on the 11-day-old 6.0.5 Dependabot proposed.
  • lib/telemetry.ts: trackEvent also sets $lib_version. posthog-node 6 keeps a $lib the event sets (5 overwrote it with posthog-node), but fills $lib_version only for its own library name. PostHog's migration guide says to set both when overriding, and the daemon already does for failproofai-daemon.
  • __tests__/lib/telemetry-delivery.test.ts now pins the Capture V1 contract against the real library: batches go to /i/v1/analytics/events with Authorization: Bearer <phc_ key>, the fixture answers with the per-event {results: {<uuid>: {result: "ok"}}} acknowledgement (a 2xx without it fails the batch in v6), $lib/$lib_version arrive as failproofai/the package version, a successful send logs neither an error nor a warning, and a 500 is still retried and delivered. The raw-fetch hook dispatcher still posts to /capture/; its test is unchanged.
  • __tests__/lib/telemetry.test.ts: the one exact-properties assertion for trackEvent now includes $lib_version.
  • CHANGELOG.md: one Dependencies entry under 1.0.18-beta.0 — 2026-11-30.

Dropped as already on main

For the reviewer

  • Ingestion contract. posthog-node 6 posts to /i/v1/analytics/events with the project token in the Authorization header, not the body. Our default host is https://us.i.posthog.com, which supports it. A FAILPROOFAI_POSTHOG_HOST that points at a reverse proxy must forward that path and pass Authorization and the PostHog-* headers through ("Prepare your proxy" in the MIGRATION.md posthog-node ships). The hook dispatcher, install telemetry and the daemon don't use posthog-node, so they are unaffected.
  • Analytics continuity. Dashboard server events change from $lib: posthog-node to $lib: failproofai, which is what trackEvent always asked for. Any PostHog insight that filters on $lib = posthog-node needs to use failproofai. product is unchanged.
  • Retries. v6 ignores fetchRetryDelay for capture and backs off from 100 ms instead; fetchRetryCount: 3 still sets the retry count. flush() no longer rejects on a failed delivery; its one caller (instrumentation.node.ts) already ignores rejection.

Verification

  • bun run test:run passes on the final merge with main (with dist/index.js built first, as CI does).
  • bun run lint (0 errors) and tsc --noEmit.
  • bun run build, then a clean npm install -g of the packed tarball in a node:22 container: ESM from 'failproofai', CommonJS require('failproofai'), transitive imports (examples/policies-advanced), builtin policies with no custom file, a CommonJS entry with a .cjs helper and an ES module importing one (both deny under Node with FAILPROOFAI_DIST_PATH unset), and fail-open on a missing policy file.
  • bun run test:e2e, and all 29 CI checks on the final head.

🤖 Generated with Claude Code

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

---
updated-dependencies:
- dependency-name: posthog-node
  dependency-version: 6.0.5
  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 23, 2026
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

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

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9728bd7c-0a81-4363-876c-44b168e8b7e0

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

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@socket-security

socket-security Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​posthog-node@​5.73.0 ⏵ 6.0.587 +1510089 +1100 +1100

View full report

@github-actions

Copy link
Copy Markdown
Contributor

Thanks @dependabot[bot] for keeping our dependencies current! 🙌

github-actions[bot]
github-actions Bot previously approved these changes Nov 23, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated approval for Dependabot dependency update.

@hermes-exosphere

hermes-exosphere commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

pr-autopilot finished looking at the failing CI on commit 2401703. What it found is in the comment here.

@hermes-exosphere

hermes-exosphere commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

pr-autopilot will not merge this automatically (commit 92e9636).

Why:

  • has commits not authored by dependabot[bot]: 4078b49, 2c18735, f2d6e3f, cf138d7, cf8cc7e, 3c457b9, f91d1cc, 92e9636
  • touches CHANGELOG.md, outside its allowed paths
  • touches __tests__/lib/telemetry-delivery.test.ts, outside its allowed paths
  • touches __tests__/lib/telemetry.test.ts, outside its allowed paths
  • touches lib/telemetry.ts, outside its allowed paths

A person needs to review and merge it.

pr-autopilot · stopped by a fixed rule: no AI review ran on this PR

@hermes-exosphere hermes-exosphere changed the title chore(deps): bump posthog-node from 5.73.0 to 6.0.5 [failproofai] Bump PostHog to 6.0.5 and restore CI Nov 24, 2026
NiveditJain and others added 2 commits November 30, 2026 16:02
Main landed its own CommonJS policy loader in #1033 (load as ES modules,
then retry only the files Node refuses as .cjs), with Node e2e coverage in
commonjs-policy-node.e2e.test.ts. This branch's loader change, its unit
test and its Node e2e test are superseded by it and are dropped.

bun.lock is regenerated against main with bun 1.4.5 (CI's pin), keeping
posthog-node 6.0.5, @posthog/core 1.69.2 and @posthog/types 1.427.1.
trackEvent now sets $lib_version beside $lib, which posthog-node 6 keeps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@NiveditJain NiveditJain changed the title [failproofai] Bump PostHog to 6.0.5 and restore CI [failproofai] Bump posthog-node to 6.0.5 (PostHog Capture V1) Nov 30, 2026
@NiveditJain

Copy link
Copy Markdown
Member

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Action not completed

Review skipped.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@NiveditJain

Copy link
Copy Markdown
Member

@coderabbitai full review

@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Action not completed

Review skipped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hermes-exosphere
hermes-exosphere merged commit 7683627 into main Nov 30, 2026
29 checks passed
@dependabot
dependabot Bot deleted the dependabot/bun/posthog-node-6.0.5 branch November 30, 2026 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autopilot:needs-human 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.

2 participants