Bring posthog-node guidance and the Node example onto v5#227
Closed
gewenyu99 wants to merge 3 commits into
Closed
Conversation
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>
🧙 Wizard CIRun 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:
Test all apps in a directory:
Test an individual app:
Show more apps
Results will be posted here when complete. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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".