github PostHog/posthog-js @posthog/core@1.28.0

latest releases: posthog-node@5.32.1, posthog-react-native@4.44.0, @posthog/ai@7.17.2...
7 hours ago

1.28.0

Minor Changes

  • #3492 cf56753 Thanks @lucasheriques! - Add translated survey rendering support in React Native and share survey translation logic through @posthog/core.
    (2026-05-01)

  • #3480 04db756 Thanks @turnipdabeets! - Add manual log capture API for React Native: posthog.captureLog(), posthog.logger.{trace,debug,info,warn,error,fatal}(), posthog.flushLogs(), and a logs config option on the constructor. Records ship to PostHog's logs product (/i/v1/logs) in OTLP format, batched on a timer / AppState change / buffer fill, and persisted to a dedicated logs-storage file.

    Manual capture is unconditional — calling the API ships records, matching the events pipeline's manual capture() shape. Only blockers: optedOut, missing/empty body, and missing API key. The wire field response.logs.captureConsoleLogs is browser-only (it gates the JS SDK's console.* autocapture extension) and is not read by RN. When console autocapture lands on RN as a follow-up, that PR will introduce a local opt-in for the autocapture path specifically; manual capture will remain unconditional. (2026-05-01)

Patch Changes

  • Updated dependencies []:
    • @posthog/types@1.372.6

Don't miss a new posthog-js release

NewReleases is sending notifications on new releases.