4.66.0
Minor Changes
-
#4617
b73d15eThanks @ablaszkiewicz! - Add experimental event release mode to React Native builds. SetreleaseMode: 'event'on theposthog-react-native/expoconfig plugin (or exportPOSTHOG_RELEASE_MODE=event, or setposthog.releaseMode=eventinandroid/gradle.properties) and the build uploads its Hermes source maps, iOS dSYMs and Android R8 mappings without binding them to a release. Each exception then resolves its own release from the$app_namespace/$app_version/$app_buildthe SDK already sends, instead of inheriting the release of the symbols its frames resolved against. Use it when two releases can ship identical JavaScript or identical native code: symbol ids are derived from content, so the defaultsymbol-setmode makes both releases report whichever one uploaded first. An unrecognized mode fails the build rather than falling back. The Hermes upload needs posthog-cli 0.16.0 or newer, which carries--release-modeon itshermescommands; an older one fails the build and names the upgrade.The Android mapping upload needs the
com.posthog.androidgradle plugin 1.5.0 or newer, which readsposthog.releaseMode. A fresh prebuild now injects 1.5.1. A project whoseandroid/build.gradlealready has the classpath line keeps its version, so bump that line to 1.5.0 or newer by hand, or prebuild with--clean. On 1.4.0 the mapping stays bound to a release while the Hermes maps do not. (2026-08-27)