Skip to content

Document posthog-node v5 requirements and the V4 to V5 upgrade#18387

Closed
gewenyu99 wants to merge 2 commits into
masterfrom
docs/posthog-node-v5
Closed

Document posthog-node v5 requirements and the V4 to V5 upgrade#18387
gewenyu99 wants to merge 2 commits into
masterfrom
docs/posthog-node-v5

Conversation

@gewenyu99

Copy link
Copy Markdown
Contributor

Adds a Node 20+ install callout and a V4-to-V5 upgrade section that leads with capture() being unchanged so failing events are not misdiagnosed as an API break.

gewenyu99 and others added 2 commits July 10, 2026 18:36
Adds a callout at the point of install (a shared snippet used across the
Node install docs) so the native-fetch runtime floor is visible before
users hit silent v5 failures on older Node and misattribute them to the API.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Documents the V5 breaking changes (Node 20+, opt-in feature-flag sending,
gzip, removed options) and leads with the fact that capture() is unchanged,
so a missing event after upgrade is a runtime or flush issue rather than a
signature break to fix by downgrading.

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

github-actions Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Deploy preview

Status Details Updated (UTC)
🟢 Ready View preview Jul 10, 2026 10:51PM

@github-actions

Copy link
Copy Markdown
Contributor

Vale prose linter → found 2 errors, 35 warnings, 2 suggestions in your markdown

Full report → Copy the linter results into an LLM to batch-fix issues.

Linter being weird? Update the rules!

contents/docs/integrate/_snippets/install-node.mdx — 0 errors, 2 warnings, 0 suggestions
Line Severity Message Rule
7:82 warning 'runtime's' is a possible misspelling. PostHogBase.Spelling
24:53 warning 'hardcoding' is a possible misspelling. PostHogBase.Spelling
contents/docs/libraries/node/index.mdx — 2 errors, 33 warnings, 2 suggestions
Line Severity Message Rule
6:18 warning Use 'GitHub' instead of 'github'. Vale.Terms
6:37 warning Use 'PostHog' instead of 'posthog'. Vale.Terms
7:15 warning 'nodejs' is a possible misspelling. PostHogBase.Spelling
18:416 warning Capitalize 'Feature Flags' for PostHog's product. Use 'feature flags' for the general industry concept. PostHogBase.ProductNames
39:131 warning Capitalize 'Feature Flags' for PostHog's product. Use 'feature flags' for the general industry concept. PostHogBase.ProductNames
39:210 warning Capitalize 'Feature Flags' for PostHog's product. Use 'feature flags' for the general industry concept. PostHogBase.ProductNames
39:258 warning Capitalize 'Feature Flags' for PostHog's product. Use 'feature flags' for the general industry concept. PostHogBase.ProductNames
40:81 warning Capitalize 'Feature Flags' for PostHog's product. Use 'feature flags' for the general industry concept. PostHogBase.ProductNames
42:62 warning 'deduplicates' is a possible misspelling. PostHogBase.Spelling
43:97 warning Capitalize 'Feature Flags' for PostHog's product. Use 'feature flags' for the general industry concept. PostHogBase.ProductNames
45:80 warning Capitalize 'Feature Flags' for PostHog's product. Use 'feature flags' for the general industry concept. PostHogBase.ProductNames
144:33 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
269:4 warning 'Add request context to Express' heading should be in sentence case, and product names should be capitalized. PostHogBase.SentenceCase
308:19 suggestion Address the reader directly. Use 'you' instead of 'the user'. PostHogDocs.DirectAddress
317:4 warning 'Feature flags' heading should be in sentence case, and product names should be capitalized. PostHogBase.SentenceCase
317:4 warning Capitalize 'Feature Flags' for PostHog's product. Use 'Feature flags' for the general industry concept. PostHogBase.ProductNames
346:16 warning Capitalize 'Feature Flags' for PostHog's product. Use 'feature flags' for the general industry concept. PostHogBase.ProductNames
348:68 warning Capitalize 'Feature Flags' for PostHog's product. Use 'feature flags' for the general industry concept. PostHogBase.ProductNames
362:8 warning Capitalize 'Experiments' for PostHog's product. Use 'experiments' for the general industry concept. PostHogBase.ProductNames
362:55 warning Capitalize 'Feature Flags' for PostHog's product. Use 'feature flags' for the general industry concept. PostHogBase.ProductNames
373:28 warning Capitalize 'Experiments' for PostHog's product. Use 'experiments' for the general industry concept. PostHogBase.ProductNames
373:54 warning Capitalize 'Feature Flags' for PostHog's product. Use 'feature flags' for the general industry concept. PostHogBase.ProductNames
410:274 suggestion Address the reader directly. Use 'you' instead of 'the user'. PostHogDocs.DirectAddress
454:62 warning Capitalize 'Feature Flags' for PostHog's product. Use 'feature flags' for the general industry concept. PostHogBase.ProductNames
454:100 warning Capitalize 'Surveys' for PostHog's product. Use 'surveys' for the general industry concept. PostHogBase.ProductNames
456:98 warning Capitalize 'Logs' for PostHog's product. Use 'logs' for the general industry concept. PostHogBase.ProductNames
510:4 warning Capitalize 'Error Tracking' for PostHog's product. Use 'Error tracking' for the general industry concept. PostHogBase.ProductNames
510:4 warning 'Error tracking' heading should be in sentence case, and product names should be capitalized. PostHogBase.SentenceCase
512:207 warning Capitalize 'Error Tracking' for PostHog's product. Use 'error tracking' for the general industry concept. PostHogBase.ProductNames
514:4 warning 'Upgrading from V4 to V5' heading should be in sentence case, and product names should be capitalized. PostHogBase.SentenceCase
520:42 warning 'runtime's' is a possible misspelling. PostHogBase.Spelling
521:74 warning Capitalize 'Feature Flags' for PostHog's product. Use 'feature flags' for the general industry concept. PostHogBase.ProductNames
522:33 warning 'GZip' is a possible misspelling. PostHogBase.Spelling
526:4 warning 'Upgrading from V1 to V2' heading should be in sentence case, and product names should be capitalized. PostHogBase.SentenceCase
528:4 error 'x' is repeated! Vale.Repetition
528:4 warning Use 'X' instead of 'x'. Vale.Terms
528:58 warning Use 'TypeScript' instead of 'Typescript'. Vale.Terms

@github-actions

Copy link
Copy Markdown
Contributor

Bundle report

Total JS (gzip)

6.30 MiB (+0.1 KiB / +0.0%)

Eager graph (modules shipped in each entrypoint's initial chunks)

Entrypoint Eager size Budget Modules
app 15.57 MiB (+0.5 KiB / +0.0%) report-only 1941
Largest modules in the app closure
Module Size
css ./node_modules/.pnpm/css-loader@5.2.7_webpack@5.101.3/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[8].oneOf[1].use[1]!./node_modules/.pnpm/postcss-loader@4.3.0_postcss@8.5.6_webpack@5.101.3/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[8].oneOf[1].use[2]!./src/styles/global.css 709.7 KiB
./src/components/Stickers/Stickers.tsx 696.4 KiB
./.cache/caches/gatsby-plugin-mdx/mdx-scopes-dir/31a094f140f119e73085d847ae81b99b.js + 2 modules 614.1 KiB
./node_modules/.pnpm/@radix-ui+react-icons@1.3.2_react@18.3.1/node_modules/@radix-ui/react-icons/dist/react-icons.esm.js 481.4 KiB
./node_modules/.pnpm/rehype-raw@7.0.0/node_modules/rehype-raw/lib/index.js + 29 modules 395.1 KiB
./node_modules/.pnpm/@posthog+icons@0.36.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@posthog/icons/dist/posthog-icons.cjs.js 364.8 KiB
./src/hooks/useCustomers.tsx + 54 modules 355.1 KiB
./node_modules/.pnpm/@posthog+icons@0.36.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@posthog/icons/dist/posthog-icons.es.js 354.8 KiB
./node_modules/.pnpm/react-markdown@8.0.7_@types+react@16.14.66_react@18.3.1/node_modules/react-markdown/lib/react-markdown.js + 88 modules 351.4 KiB
./node_modules/.pnpm/cloudinary-core@2.14.0_lodash@4.17.21/node_modules/cloudinary-core/cloudinary-core.js 281.9 KiB
./src/components/ProductComparisonTable/index.tsx + 118 modules 275.6 KiB
./node_modules/.pnpm/d3@7.9.0/node_modules/d3/src/index.js + 208 modules 247.4 KiB
./src/components/Pricing/PricingSlider/Slider.tsx + 87 modules 239.9 KiB
./gatsby-browser.tsx + 41 modules 239.8 KiB
./src/components/SearchUI/index.tsx + 73 modules 223.4 KiB

Eager-graph budgets are report-only until a baseline is established. Sizes are gzip of public/**/*.js; eager size is webpack module source bytes for the modules actually shipped in the entrypoint's initial chunks (post-tree-shake).

@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