Skip to content

Bring posthog-node guidance and the Node example onto v5#227

Closed
gewenyu99 wants to merge 3 commits into
mainfrom
docs/posthog-node-v5
Closed

Bring posthog-node guidance and the Node example onto v5#227
gewenyu99 wants to merge 3 commits into
mainfrom
docs/posthog-node-v5

Conversation

@gewenyu99

Copy link
Copy Markdown
Collaborator

Bumps the javascript-node example to posthog-node v5, adds Node-20/don't-downgrade best-practice guidance, and standardizes the phc_ credential naming on "project token".

gewenyu99 and others added 3 commits July 10, 2026 18:36
The javascript-node fallback example was the last v5 holdout (every
framework example already pins v5); its object-style capture/identify/
captureException/shutdown usage is identical across v4 and v5, so the
bump is behavior-preserving and regenerates the lockfile onto native fetch.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Records the two facts behind the most common posthog-node integration
failure: v5 needs Node 20+ (native fetch), and capture() is object-style
and unchanged across v4/v5 so a missing event is a runtime/flush issue,
not a signature mismatch to fix by downgrading.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Names the phc_ ingestion credential the project token (POSTHOG_PROJECT_TOKEN)
everywhere, so generated env vars and docs stop drifting to "key".

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

🧙 Wizard CI

Run the Wizard CI and test your changes against wizard-workbench example apps by replying with a GitHub comment using one of the following commands:

Test all apps:

  • /wizard-ci all

Test all apps in a directory:

  • /wizard-ci basic-integration
  • /wizard-ci mcp-analytics
  • /wizard-ci revenue

Test an individual app:

  • /wizard-ci basic-integration/android
  • /wizard-ci basic-integration/angular
  • /wizard-ci basic-integration/astro
Show more apps
  • /wizard-ci basic-integration/django
  • /wizard-ci basic-integration/fastapi
  • /wizard-ci basic-integration/flask
  • /wizard-ci basic-integration/javascript-node
  • /wizard-ci basic-integration/javascript-web
  • /wizard-ci basic-integration/laravel
  • /wizard-ci basic-integration/next-js
  • /wizard-ci basic-integration/nuxt
  • /wizard-ci basic-integration/python
  • /wizard-ci basic-integration/rails
  • /wizard-ci basic-integration/react-native
  • /wizard-ci basic-integration/react-router
  • /wizard-ci basic-integration/sveltekit
  • /wizard-ci basic-integration/swift
  • /wizard-ci basic-integration/tanstack-router
  • /wizard-ci basic-integration/tanstack-start
  • /wizard-ci basic-integration/vue
  • /wizard-ci mcp-analytics/custom-dispatcher
  • /wizard-ci mcp-analytics/typescript-sdk
  • /wizard-ci revenue/stripe

Results will be posted here when complete.

@gewenyu99 gewenyu99 closed this Jul 10, 2026
@gewenyu99
gewenyu99 deleted the docs/posthog-node-v5 branch July 10, 2026 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant