{"id":"src_gwaS6LcxpdXMxZdYQqzsw","slug":"posthog-js","name":"PostHog JS","type":"github","url":"https://github.com/PostHog/posthog-js","orgId":"org_RVcfDRcn2piydCEP2lqfD","productId":null,"productSlug":null,"org":{"id":"org_RVcfDRcn2piydCEP2lqfD","slug":"posthog","name":"PostHog"},"isPrimary":false,"isHidden":false,"discovery":"curated","fetchPriority":"normal","metadata":"{\"changelogUrl\":\"https://github.com/PostHog/posthog-js/blob/HEAD/CHANGELOG.md\",\"changelogDetectedAt\":\"2026-03-31T14:13:13.229Z\",\"wellKnownSweptAt\":\"2026-10-31T06:00:36.365Z\"}","notice":null,"kind":"sdk","stars":642,"starsFetchedAt":"2026-11-06T17:45:50.167Z","releaseCount":2160,"releasesLast30Days":201,"avgReleasesPerWeek":51.3,"latestVersion":"posthog-js@1.447.3","latestDate":"2026-11-06T12:54:50.000Z","changelogUrl":"https://github.com/PostHog/posthog-js/blob/HEAD/CHANGELOG.md","hasChangelogFile":true,"lastFetchedAt":"2026-11-06T17:45:50.167Z","lastPolledAt":"2026-11-06T17:45:40.712Z","changeDetectedAt":null,"trackingSince":"2026-02-25T16:13:22.000Z","releases":[{"id":"rel_TFutbfZVACMjuQdHEzXzG","version":"posthog-js@1.447.3","type":"feature","title":"posthog-js@1.447.3","summary":"Text masking now preserves non-empty CDATA content and rebuilds it as text in HTML documents.","titleGenerated":"PostHog JS 1.447.3 preserves non-empty CDATA content in masked HTML","titleShort":"Masked HTML keeps CDATA content as text","breaking":"none","importance":1,"content":"## 1.447.3\n\n### Patch Changes\n\n- [#5562](https://github.com/PostHog/posthog-js/pull/5562) [`8e042cb`](https://github.com/PostHog/posthog-js/commit/8e042cba3dbb63e861f2aaea8612bceea298a1c6) Thanks [@adityareddy-dev](https://github.com/adityareddy-dev)! - Preserve non-empty CDATA content with text masking and rebuild it as text in HTML documents.\n  (2026-11-06)","publishedAt":"2026-11-06T12:54:50.000Z","fetchedAt":"2026-11-06T13:43:44.717Z","url":"https://github.com/PostHog/posthog-js/releases/tag/posthog-js%401.447.3","media":[],"coverageCount":0},{"id":"rel_C9_qRKq_RD6rS9XQ00cj1","version":"@posthog/rollup-plugin@1.6.3","type":"feature","title":"@posthog/rollup-plugin@1.6.3","summary":"Event-mode chunk IDs now remain stable when unrelated lazy chunks are added in Rollup and Vite builds.","titleGenerated":"PostHog JS rollup plugin 1.6.3 keeps event-mode chunk IDs stable","titleShort":"Event-mode chunk IDs stay stable as lazy chunks are added","breaking":"none","importance":2,"content":"## 1.6.3\n\n### Patch Changes\n\n- [#5571](https://github.com/PostHog/posthog-js/pull/5571) [`2eccf01`](https://github.com/PostHog/posthog-js/commit/2eccf019896b2938ca2b98243859a8fd26217451) Thanks [@marandaneto](https://github.com/marandaneto)! - Keep event-mode chunk IDs stable when unrelated lazy chunks are added in Rollup and Vite builds.\n  (2026-11-06)","publishedAt":"2026-11-06T10:03:00.000Z","fetchedAt":"2026-11-06T13:43:45.178Z","url":"https://github.com/PostHog/posthog-js/releases/tag/%40posthog/rollup-plugin%401.6.3","media":[],"coverageCount":0},{"id":"rel_rir6_aJxIkcuA_oCms5sO","version":"posthog-js@1.447.2","type":"feature","title":"posthog-js@1.447.2","summary":"Session replay now masks hidden input values when maskAllInputs is enabled, and maskInputOptions accepts hidden as a key. Updated @posthog/types to 1.421.1.","titleGenerated":"PostHog JS 1.447.2 masks hidden input values in session replay","titleShort":"Session replay masks hidden inputs; maskInputOptions accepts hidden","breaking":"none","importance":3,"content":"## 1.447.2\n\n### Patch Changes\n\n- [#5561](https://github.com/PostHog/posthog-js/pull/5561) [`ab49034`](https://github.com/PostHog/posthog-js/commit/ab49034bb69cdf840318c6ab824492e76a72751d) Thanks [@adityareddy-dev](https://github.com/adityareddy-dev)! - Mask hidden input values in session replay when `maskAllInputs` is enabled, and accept `hidden` in `maskInputOptions`.\n  (2026-11-06)\n- Updated dependencies [[`ab49034`](https://github.com/PostHog/posthog-js/commit/ab49034bb69cdf840318c6ab824492e76a72751d)]:\n  - @posthog/types@1.421.1","publishedAt":"2026-11-06T08:58:30.000Z","fetchedAt":"2026-11-06T09:41:44.996Z","url":"https://github.com/PostHog/posthog-js/releases/tag/posthog-js%401.447.2","media":[],"coverageCount":0},{"id":"rel_c9nBk3zQQeYcNZDEVdWYg","version":"@posthog/types@1.421.1","type":"feature","title":"@posthog/types@1.421.1","summary":"Hidden input values are now masked in session replay when maskAllInputs is enabled, and hidden is accepted as a maskInputOptions key.","titleGenerated":"PostHog JS types 1.421.1 masks hidden input values in session replay","titleShort":"Hidden input values masked in session replay","breaking":"none","importance":2,"content":"## 1.421.1\n\n### Patch Changes\n\n- [#5561](https://github.com/PostHog/posthog-js/pull/5561) [`ab49034`](https://github.com/PostHog/posthog-js/commit/ab49034bb69cdf840318c6ab824492e76a72751d) Thanks [@adityareddy-dev](https://github.com/adityareddy-dev)! - Mask hidden input values in session replay when `maskAllInputs` is enabled, and accept `hidden` in `maskInputOptions`.\n  (2026-11-06)","publishedAt":"2026-11-06T08:57:56.000Z","fetchedAt":"2026-11-06T09:41:44.996Z","url":"https://github.com/PostHog/posthog-js/releases/tag/%40posthog/types%401.421.1","media":[],"coverageCount":0},{"id":"rel_pG2pZ_bMN96w5_PoC1Bhx","version":"@posthog/mcp@0.25.2","type":"feature","title":"@posthog/mcp@0.25.2","summary":"Node stack frames for functions named async without a leading parenthesis in the filename now parse correctly. Dependency updates roll in @posthog/core 1.64.1 and posthog-node 5.63.1.","titleGenerated":"PostHog MCP 0.25.2 fixes parsing of async Node stack frames","titleShort":"Async Node stack frames parse correctly again","breaking":"none","importance":1,"content":"## 0.25.2\n\n### Patch Changes\n\n- [#5545](https://github.com/PostHog/posthog-js/pull/5545) [`28fe8c0`](https://github.com/PostHog/posthog-js/commit/28fe8c0aa0577db27affcc7445ab72d2a1f6ebb2) Thanks [@onmax](https://github.com/onmax)! - Parse Node stack frames for functions named `async` without a leading parenthesis in the filename.\n  (2026-11-06)\n- Updated dependencies [[`28fe8c0`](https://github.com/PostHog/posthog-js/commit/28fe8c0aa0577db27affcc7445ab72d2a1f6ebb2)]:\n  - @posthog/core@1.64.1\n  - posthog-node@5.63.1","publishedAt":"2026-11-06T08:25:06.000Z","fetchedAt":"2026-11-06T09:41:45.390Z","url":"https://github.com/PostHog/posthog-js/releases/tag/%40posthog/mcp%400.25.2","media":[],"coverageCount":0},{"id":"rel_Bo9BTRjdMZ20pgjijZ-vj","version":"@posthog/core@1.64.1","type":"feature","title":"@posthog/core@1.64.1","summary":"Node stack frames for functions named async without a leading parenthesis in the filename now parse correctly.","titleGenerated":"PostHog JS core 1.64.1 fixes stack frame parsing for async functions","titleShort":"Async stack frames parse without leading parenthesis","breaking":"none","importance":1,"content":"## 1.64.1\n\n### Patch Changes\n\n- [#5545](https://github.com/PostHog/posthog-js/pull/5545) [`28fe8c0`](https://github.com/PostHog/posthog-js/commit/28fe8c0aa0577db27affcc7445ab72d2a1f6ebb2) Thanks [@onmax](https://github.com/onmax)! - Parse Node stack frames for functions named `async` without a leading parenthesis in the filename.\n  (2026-11-06)","publishedAt":"2026-11-06T08:24:51.000Z","fetchedAt":"2026-11-06T09:41:45.390Z","url":"https://github.com/PostHog/posthog-js/releases/tag/%40posthog/core%401.64.1","media":[],"coverageCount":0},{"id":"rel_G1yDCnkvrRQkOJA2Eex_1","version":"posthog-node@5.63.1","type":"feature","title":"posthog-node@5.63.1","summary":"The SDK now parses Node stack frames for functions named async when the filename has no leading parenthesis. It also bumps @posthog/core to 1.64.1.","titleGenerated":"PostHog Node SDK 5.63.1 fixes stack frame parsing for async functions","titleShort":"Async stack frames without leading parenthesis now parse","breaking":"none","importance":1,"content":"## 5.63.1\n\n### Patch Changes\n\n- [#5545](https://github.com/PostHog/posthog-js/pull/5545) [`28fe8c0`](https://github.com/PostHog/posthog-js/commit/28fe8c0aa0577db27affcc7445ab72d2a1f6ebb2) Thanks [@onmax](https://github.com/onmax)! - Parse Node stack frames for functions named `async` without a leading parenthesis in the filename.\n  (2026-11-06)\n- Updated dependencies [[`28fe8c0`](https://github.com/PostHog/posthog-js/commit/28fe8c0aa0577db27affcc7445ab72d2a1f6ebb2)]:\n  - @posthog/core@1.64.1","publishedAt":"2026-11-06T08:24:43.000Z","fetchedAt":"2026-11-06T09:41:44.996Z","url":"https://github.com/PostHog/posthog-js/releases/tag/posthog-node%405.63.1","media":[],"coverageCount":0},{"id":"rel_pWimtJkuFimAETE3CP1ay","version":"@posthog/mcp@0.25.1","type":"feature","title":"@posthog/mcp@0.25.1","summary":"Descriptions of the injected conversation_id and llm_model arguments and the get_more_tools and send_feedback virtual tools now describe the field instead of instructing the model, changing published tool definitions. Servers listed in the ChatGPT or Claude directories may face re-review of the updated tools.","titleGenerated":"PostHog MCP 0.25.1 rewords injected tool descriptions for directory review","titleShort":"MCP tool descriptions reworded; directory re-review possible","breaking":"minor","importance":2,"content":"## 0.25.1\n\n### Patch Changes\n\n- [#5573](https://github.com/PostHog/posthog-js/pull/5573) [`88dbf08`](https://github.com/PostHog/posthog-js/commit/88dbf08e319a60ec1f5c4eeaca25a55a3fa54fe6) Thanks [@lucasheriques](https://github.com/lucasheriques)! - Reworded the descriptions of the injected `conversation_id` and `llm_model` arguments and the `get_more_tools` and `send_feedback` virtual tools so they describe the field instead of instructing the model. This changes your published tool definitions; if your server is listed in the ChatGPT or Claude directories, those platforms may re-review the updated tools.\n  (2026-11-05)","publishedAt":"2026-11-06T00:04:12.000Z","fetchedAt":"2026-11-06T01:37:47.249Z","url":"https://github.com/PostHog/posthog-js/releases/tag/%40posthog/mcp%400.25.1","media":[],"coverageCount":0},{"id":"rel_idYuHcFFeBdfcwUvNEZKH","version":"posthog-js@1.447.1","type":"feature","title":"posthog-js@1.447.1","summary":"The llm_model argument that capture_webmcp adds to WebMCP tools has a reworded description that no longer points the model at its system prompt.","titleGenerated":"PostHog JS 1.447.1 rewrites llm_model description for WebMCP tools","titleShort":"WebMCP llm_model description no longer points at system prompt","breaking":"none","importance":1,"content":"## 1.447.1\n\n### Patch Changes\n\n- [#5576](https://github.com/PostHog/posthog-js/pull/5576) [`9ee327d`](https://github.com/PostHog/posthog-js/commit/9ee327d090bffbb564627404b9819994c1327dda) Thanks [@lucasheriques](https://github.com/lucasheriques)! - Reworded the description of the `llm_model` argument that `capture_webmcp` adds to WebMCP tools, so it no longer points the model at its system prompt.\n  (2026-11-05)","publishedAt":"2026-11-06T00:03:57.000Z","fetchedAt":"2026-11-06T01:37:46.750Z","url":"https://github.com/PostHog/posthog-js/releases/tag/posthog-js%401.447.1","media":[],"coverageCount":0},{"id":"rel_sHd2LOqvwXG75xBYtTXUP","version":"@posthog/ai@8.18.5","type":"feature","title":"@posthog/ai@8.18.5","summary":"Genkit instrumentation now redacts credentials in model messages, so a credential returned by a tool no longer reaches $ai_input.","titleGenerated":"PostHog AI 8.18.5 redacts tool-returned credentials from model messages","titleShort":"Genkit credentials no longer reach $ai_input","breaking":"none","importance":3,"content":"## 8.18.5\n\n### Patch Changes\n\n- [#5556](https://github.com/PostHog/posthog-js/pull/5556) [`b63702f`](https://github.com/PostHog/posthog-js/commit/b63702f5ae225e7a4b1b8cc9e5bbbb9aa32422d9) Thanks [@eli-r-ph](https://github.com/eli-r-ph)! - Genkit: redact credentials in model messages, so a credential that a tool returns no longer reaches `$ai_input`.\n  (2026-11-05)","publishedAt":"2026-11-05T19:13:47.000Z","fetchedAt":"2026-11-05T21:35:48.871Z","url":"https://github.com/PostHog/posthog-js/releases/tag/%40posthog/ai%408.18.5","media":[],"coverageCount":0},{"id":"rel_Dfu9w8HDuqHtL2zPABhXy","version":"posthog-js@1.447.0","type":"feature","title":"posthog-js@1.447.0","summary":"metrics.histogram() now accepts a bounds option that sets the histogram's bucket boundaries, and beforeSend can see and change them. The first sample of a histogram fixes its bounds until the client resets, and the experimental posthog.flags.request.duration histogram now uses 50ms to 10s bounds so p50 and p95 resolve between 50ms and 5s.","titleGenerated":"PostHog JS 1.447.0 lets histograms set custom bucket bounds","titleShort":"Histograms get configurable bucket bounds","breaking":"minor","importance":3,"content":"## 1.447.0\n\n### Minor Changes\n\n- [#5580](https://github.com/PostHog/posthog-js/pull/5580) [`aa66d4c`](https://github.com/PostHog/posthog-js/commit/aa66d4c676a87298f26b66e36a222b49c582ed0f) Thanks [@haacked](https://github.com/haacked)! - `metrics.histogram()` accepts a `bounds` option that sets the histogram's bucket boundaries, and `beforeSend` sees and can change them. The first sample of a histogram (name and unit) fixes its bounds until the client resets. A later sample with different bounds is recorded in the fixed buckets and logs a warning, and a sample with invalid bounds is dropped. The experimental `posthog.flags.request.duration` histogram now uses the bounds `[50, 75, 100, 150, 200, 300, 400, 500, 750, 1000, 1500, 2000, 3000, 5000, 10000]` ms, so its p50 and p95 resolve between 50ms and 5s. This changes the metric's buckets, which its experimental status allows.\n  (2026-11-05)\n\n### Patch Changes\n\n- Updated dependencies [[`aa66d4c`](https://github.com/PostHog/posthog-js/commit/aa66d4c676a87298f26b66e36a222b49c582ed0f)]:\n  - @posthog/core@1.64.0\n  - @posthog/types@1.421.0","publishedAt":"2026-11-05T18:49:55.000Z","fetchedAt":"2026-11-05T21:35:48.329Z","url":"https://github.com/PostHog/posthog-js/releases/tag/posthog-js%401.447.0","media":[],"coverageCount":0},{"id":"rel_goDeJ5VnT4dk_EEA4SL9-","version":"@posthog/types@1.421.0","type":"feature","title":"@posthog/types@1.421.0","summary":"metrics.histogram() accepts a bounds option that sets bucket boundaries, and beforeSend can inspect and change them. The first sample of a histogram fixes its bounds until the client resets, and the experimental posthog.flags.request.duration histogram now uses buckets from 50ms to 10s.","titleGenerated":"PostHog JS types 1.421.0 adds bounds option for histogram metrics","titleShort":"Histogram bounds now configurable; first sample fixes them","breaking":"minor","importance":2,"content":"## 1.421.0\n\n### Minor Changes\n\n- [#5580](https://github.com/PostHog/posthog-js/pull/5580) [`aa66d4c`](https://github.com/PostHog/posthog-js/commit/aa66d4c676a87298f26b66e36a222b49c582ed0f) Thanks [@haacked](https://github.com/haacked)! - `metrics.histogram()` accepts a `bounds` option that sets the histogram's bucket boundaries, and `beforeSend` sees and can change them. The first sample of a histogram (name and unit) fixes its bounds until the client resets. A later sample with different bounds is recorded in the fixed buckets and logs a warning, and a sample with invalid bounds is dropped. The experimental `posthog.flags.request.duration` histogram now uses the bounds `[50, 75, 100, 150, 200, 300, 400, 500, 750, 1000, 1500, 2000, 3000, 5000, 10000]` ms, so its p50 and p95 resolve between 50ms and 5s. This changes the metric's buckets, which its experimental status allows.\n  (2026-11-05)","publishedAt":"2026-11-05T18:49:54.000Z","fetchedAt":"2026-11-05T21:35:48.608Z","url":"https://github.com/PostHog/posthog-js/releases/tag/%40posthog/types%401.421.0","media":[],"coverageCount":0},{"id":"rel_X5RrKfDFn2uiGnzjS6HV3","version":"@posthog/core@1.64.0","type":"feature","title":"@posthog/core@1.64.0","summary":"metrics.histogram() now accepts a bounds option that sets bucket boundaries, which beforeSend can see and change, with the first sample fixing bounds until the client resets. The experimental posthog.flags.request.duration histogram now uses bounds from 50ms to 10s so its p50 and p95 resolve between 50ms and 5s.","titleGenerated":"PostHog JS core 1.64.0 adds bounds option for histogram bucket boundaries","titleShort":"Histograms accept custom bucket bounds; flags duration histogram rebucketed","breaking":"none","importance":3,"content":"## 1.64.0\n\n### Minor Changes\n\n- [#5580](https://github.com/PostHog/posthog-js/pull/5580) [`aa66d4c`](https://github.com/PostHog/posthog-js/commit/aa66d4c676a87298f26b66e36a222b49c582ed0f) Thanks [@haacked](https://github.com/haacked)! - `metrics.histogram()` accepts a `bounds` option that sets the histogram's bucket boundaries, and `beforeSend` sees and can change them. The first sample of a histogram (name and unit) fixes its bounds until the client resets. A later sample with different bounds is recorded in the fixed buckets and logs a warning, and a sample with invalid bounds is dropped. The experimental `posthog.flags.request.duration` histogram now uses the bounds `[50, 75, 100, 150, 200, 300, 400, 500, 750, 1000, 1500, 2000, 3000, 5000, 10000]` ms, so its p50 and p95 resolve between 50ms and 5s. This changes the metric's buckets, which its experimental status allows.\n  (2026-11-05)\n\n### Patch Changes\n\n- Updated dependencies [[`aa66d4c`](https://github.com/PostHog/posthog-js/commit/aa66d4c676a87298f26b66e36a222b49c582ed0f)]:\n  - @posthog/types@1.421.0","publishedAt":"2026-11-05T18:49:42.000Z","fetchedAt":"2026-11-05T21:35:48.608Z","url":"https://github.com/PostHog/posthog-js/releases/tag/%40posthog/core%401.64.0","media":[],"coverageCount":0},{"id":"rel_8_wYpNkX5lqw3IBWk8RXY","version":"posthog-node@5.63.0","type":"feature","title":"posthog-node@5.63.0","summary":"metrics.histogram() accepts a bounds option that sets bucket boundaries, which beforeSend can see and change. The first sample fixes the bounds until the client resets, and the experimental posthog.flags.request.duration histogram now uses 50ms to 10s buckets.","titleGenerated":"PostHog Node 5.63.0 adds histogram bucket bounds option","titleShort":"Histogram buckets settable via bounds","breaking":"minor","importance":2,"content":"## 5.63.0\n\n### Minor Changes\n\n- [#5580](https://github.com/PostHog/posthog-js/pull/5580) [`aa66d4c`](https://github.com/PostHog/posthog-js/commit/aa66d4c676a87298f26b66e36a222b49c582ed0f) Thanks [@haacked](https://github.com/haacked)! - `metrics.histogram()` accepts a `bounds` option that sets the histogram's bucket boundaries, and `beforeSend` sees and can change them. The first sample of a histogram (name and unit) fixes its bounds until the client resets. A later sample with different bounds is recorded in the fixed buckets and logs a warning, and a sample with invalid bounds is dropped. The experimental `posthog.flags.request.duration` histogram now uses the bounds `[50, 75, 100, 150, 200, 300, 400, 500, 750, 1000, 1500, 2000, 3000, 5000, 10000]` ms, so its p50 and p95 resolve between 50ms and 5s. This changes the metric's buckets, which its experimental status allows.\n  (2026-11-05)\n\n### Patch Changes\n\n- Updated dependencies [[`aa66d4c`](https://github.com/PostHog/posthog-js/commit/aa66d4c676a87298f26b66e36a222b49c582ed0f)]:\n  - @posthog/core@1.64.0","publishedAt":"2026-11-05T18:49:36.000Z","fetchedAt":"2026-11-05T21:35:47.916Z","url":"https://github.com/PostHog/posthog-js/releases/tag/posthog-node%405.63.0","media":[],"coverageCount":0},{"id":"rel_H59Lp3zH2vpSfCkaqh30x","version":"posthog-node@5.62.0","type":"feature","title":"posthog-node@5.62.0","summary":"posthog.emails.send() can now send email content your code rendered, such as HTML from React Email, by passing html, text or both alongside a templateKey and subject. Sends require a project secret API key passed as secretKey, carry an idempotency key so retries never send twice, and failed calls return an EmailError with a code and statusCode.","titleGenerated":"PostHog Node 5.62.0 lets emails.send() deliver HTML you rendered","titleShort":"emails.send() now accepts your own HTML","breaking":"none","importance":3,"content":"## 5.62.0\n\n### Minor Changes\n\n- [#5509](https://github.com/PostHog/posthog-js/pull/5509) [`71c2464`](https://github.com/PostHog/posthog-js/commit/71c24646209d686c39b516c000d3e3412447774b) Thanks [@Silthus](https://github.com/Silthus)! - `posthog.emails.send()` can now send email content your code rendered, such as HTML from React Email. Give the email a `templateKey` and a `subject`, and pass `html`, `text` or both.\n\n  ```ts\n  const posthog = new PostHog(\"phc_...\", { secretKey: \"phs_...\" });\n\n  const { data, error } = await posthog.emails.send({\n    to: \"user@example.com\",\n    distinctId: \"user_123\",\n    templateKey: \"password-reset\",\n    subject: \"Reset your password\",\n    html: renderedHtml,\n  });\n  if (error) throw error;\n\n  // 'delivered', 'bounced', ...\n  const { data: status } = await posthog.emails.get(data.id);\n  ```\n\n  You need a project secret API key, the kind that starts with `phs_`. Create one under **Project secret API keys** in your project settings. Set its **Transactional email** scope to Write to send emails, or to Read for a key that only reads statuses. Pass it to the client as `secretKey`. Set `appHost` to your PostHog app URL when you self-host PostHog or send through a reverse proxy.\n\n  PostHog records each email's delivery, opens and clicks on the person with that `distinctId`. It groups every email with the same `templateKey`, so you see their metrics and logs in one place. The SDK retries a request that hits a network error, a rate limit or an outage twice by default. Every send carries an idempotency key, so a retry never sends the email twice. Pass your own `idempotencyKey`, such as `welcome:user_123`, and your job runner's retries are safe too.\n\n  A send with your own content also takes `from`, `replyTo` and `captureEngagement: false`. Set `migratedFrom` on the client to tell PostHog which email provider you moved from. A failed call returns an `EmailError` with PostHog's `code` and the HTTP `statusCode`.\n\n  Docs: [Send transactional emails with Node.js](https://posthog.com/docs/workflows/transactional-emails/node) and the [transactional email overview](https://posthog.com/docs/workflows/transactional-emails). (2026-11-05)","publishedAt":"2026-11-05T13:07:56.000Z","fetchedAt":"2026-11-05T13:31:49.572Z","url":"https://github.com/PostHog/posthog-js/releases/tag/posthog-node%405.62.0","media":[],"coverageCount":0},{"id":"rel_Uiw0VK8SBHMBRcIv1p-rd","version":"posthog-js@1.446.3","type":"feature","title":"posthog-js@1.446.3","summary":"Session recording now uses native sibling accessors when capturing insertion positions, so patched DOM getters no longer reorder replayed nodes.","titleGenerated":"PostHog JS 1.446.3 fixes replayed DOM node ordering in session replay","titleShort":"Replayed nodes keep correct order in session replay","breaking":"none","importance":1,"content":"## 1.446.3\n\n### Patch Changes\n\n- [#5560](https://github.com/PostHog/posthog-js/pull/5560) [`e22dedb`](https://github.com/PostHog/posthog-js/commit/e22dedbd6f7393e2bcebee84bae6b5185d9fe67a) Thanks [@adityareddy-dev](https://github.com/adityareddy-dev)! - Use native sibling accessors when recording insertion positions so patched DOM getters do not reorder replayed nodes.\n  (2026-11-05)","publishedAt":"2026-11-05T13:06:36.000Z","fetchedAt":"2026-11-05T13:31:49.572Z","url":"https://github.com/PostHog/posthog-js/releases/tag/posthog-js%401.446.3","media":[],"coverageCount":0},{"id":"rel_TWZTTrTwckdPp6IU4WpKs","version":"@posthog/ai@8.18.4","type":"feature","title":"@posthog/ai@8.18.4","summary":"OpenAI Responses API outputs now retain their refusal text in the captured $ai_output_choices instead of dropping it. Gemini Interactions tool-use tokens are now included in captured input tokens.","titleGenerated":"PostHog AI SDK 8.18.4 keeps OpenAI refusal text and counts Gemini tool tokens","titleShort":"OpenAI refusal text no longer dropped; Gemini tool tokens counted","breaking":"none","importance":2,"content":"## 8.18.4\n\n### Patch Changes\n\n- [#5563](https://github.com/PostHog/posthog-js/pull/5563) [`b1bbf31`](https://github.com/PostHog/posthog-js/commit/b1bbf31ab34b99bca0da47ee031fc7b420504f19) Thanks [@pcbeingused333](https://github.com/pcbeingused333)! - Keep the refusal text of OpenAI Responses API outputs instead of dropping it from the captured `$ai_output_choices`\n  (2026-11-05)\n\n- [#5555](https://github.com/PostHog/posthog-js/pull/5555) [`a129e9f`](https://github.com/PostHog/posthog-js/commit/a129e9f726c52aa9ab15db949c42b1292df21c84) Thanks [@smitp1402](https://github.com/smitp1402)! - Count Gemini Interactions tool-use tokens in the captured input tokens.\n  (2026-11-05)","publishedAt":"2026-11-05T12:38:20.000Z","fetchedAt":"2026-11-05T13:31:50.658Z","url":"https://github.com/PostHog/posthog-js/releases/tag/%40posthog/ai%408.18.4","media":[],"coverageCount":0},{"id":"rel_URC3-aUjx2o59e7ZbQBIM","version":"posthog-js@1.446.2","type":"feature","title":"posthog-js@1.446.2","summary":"Session recording no longer registers duplicate same-origin iframe observers after full snapshots are taken.","titleGenerated":"PostHog JS 1.446.2 avoids duplicate iframe observers in session recording","titleShort":"No duplicate iframe observers after full snapshots","breaking":"none","importance":1,"content":"## 1.446.2\n\n### Patch Changes\n\n- [#5542](https://github.com/PostHog/posthog-js/pull/5542) [`7be658c`](https://github.com/PostHog/posthog-js/commit/7be658c34060839750a54bb9d65c5ce1ef89048e) Thanks [@adityareddy-dev](https://github.com/adityareddy-dev)! - Avoid duplicate same-origin iframe observers after full snapshots during session recording.\n  (2026-11-05)","publishedAt":"2026-11-05T12:37:32.000Z","fetchedAt":"2026-11-05T13:31:50.280Z","url":"https://github.com/PostHog/posthog-js/releases/tag/posthog-js%401.446.2","media":[],"coverageCount":0},{"id":"rel_RcnzJa7KyCrxM8f6aoqFX","version":"@posthog/core@1.63.2","type":"feature","title":"@posthog/core@1.63.2","summary":"Tree shaking now removes unselected extensions and shared utilities in the slim SDK, so they are no longer bundled.","titleGenerated":"PostHog JS core 1.63.2 fixes tree shaking in slim SDK","titleShort":"Slim SDK no longer bundles unselected extensions","breaking":"none","importance":2,"content":"## 1.63.2\n\n### Patch Changes\n\n- [#5544](https://github.com/PostHog/posthog-js/pull/5544) [`8ddb57f`](https://github.com/PostHog/posthog-js/commit/8ddb57fc895a04f92797d8f574a660659dff096b) Thanks [@marandaneto](https://github.com/marandaneto)! - Fix tree shaking of unselected extensions and shared utilities when using the slim SDK.\n  (2026-11-05)","publishedAt":"2026-11-05T10:14:30.000Z","fetchedAt":"2026-11-05T13:31:50.280Z","url":"https://github.com/PostHog/posthog-js/releases/tag/%40posthog/core%401.63.2","media":[],"coverageCount":0},{"id":"rel_FASLp0eZHvkBkR3QvXiZV","version":"posthog-js@1.446.1","type":"feature","title":"posthog-js@1.446.1","summary":"The slim SDK now tree-shakes unselected extensions and shared utilities that were previously kept in the bundle. Updated @posthog/core to 1.63.2 and @posthog/browser-common to 0.10.7.","titleGenerated":"PostHog JS 1.446.1 fixes tree shaking of unselected extensions in the slim SDK","titleShort":"Slim SDK no longer bundles unselected extensions","breaking":"none","importance":2,"content":"## 1.446.1\n\n### Patch Changes\n\n- [#5544](https://github.com/PostHog/posthog-js/pull/5544) [`8ddb57f`](https://github.com/PostHog/posthog-js/commit/8ddb57fc895a04f92797d8f574a660659dff096b) Thanks [@marandaneto](https://github.com/marandaneto)! - Fix tree shaking of unselected extensions and shared utilities when using the slim SDK.\n  (2026-11-05)\n- Updated dependencies [[`8ddb57f`](https://github.com/PostHog/posthog-js/commit/8ddb57fc895a04f92797d8f574a660659dff096b)]:\n  - @posthog/core@1.63.2\n  - @posthog/browser-common@0.10.7","publishedAt":"2026-11-05T10:14:19.000Z","fetchedAt":"2026-11-05T13:31:50.280Z","url":"https://github.com/PostHog/posthog-js/releases/tag/posthog-js%401.446.1","media":[],"coverageCount":0}],"pagination":{"nextCursor":"2026-11-05T10:14:19.000Z|2026-11-05T13:31:50.280Z|rel_FASLp0eZHvkBkR3QvXiZV","limit":20},"summaries":{"rolling":{"windowDays":90,"summary":"PostHog JS continued optimizing for bundle size and tree-shaking while strengthening reliability across recording and error handling. The browser SDK shipped improvements to memory management in session replay, particularly fixing canvas recording leaks on Safari and updating rrweb dependencies. Core SDK work focused on feature flag caching, session recording sampling, and better error detection—including a new `rrweb_error` status when session recording initialization fails silently. On the backend, the team added NestJS integration with context propagation, introduced `feature_flag_cache_ttl_ms` to prevent stale flag values, and expanded feature flag evaluation with semver comparison operators. Tree-shaking support expanded across surveys, toolbar, exceptions, conversations, logs, and experiments, with new configuration options like `advanced_feature_flags_dedup_per_session` and serviceName for logs. Infrastructure work included fixes for sourcemap upload via stdin and better handling of OpenTelemetry exports that don't require optional dependencies to be installed.","releaseCount":200,"generatedAt":"2026-03-31T14:13:18.183Z"},"monthly":[{"year":2026,"month":2,"summary":"February pushed recorder stability and feature flag control. The SDK waited for fresh config before recording starts and added a new recorder status for better visibility, while two new configuration options—`feature_flag_cache_ttl_ms` and `remote_config_refresh_interval_ms`—let developers prevent stale flag values in long-running sessions. Device detection improved to correctly identify Android tablets sending desktop user agents via Client Hints, product tours gained device-type targeting, and the Node SDK introduced context-sensitive flag methods that read `distinctId` from async context instead of requiring it as a parameter.","releaseCount":25,"generatedAt":"2026-03-31T14:13:21.111Z"}]}}