@posthog/react
1.11.3
Patch Changes
- #5120
5929eabThanks @breken-ai! - PostHogFeature withoutmatchshows the fallback when the flag evaluates to false. (2026-09-29) - Updated dependencies [
5929eab]:
1.11.2
Patch Changes
- #5097
ae954abThanks @turnipdabeets! - FixuseThumbSurveyfrom@posthog/react/surveysandposthog-js/react/surveysignoring the client passed toPostHogProvider, which left it capturing no survey events. (2026-09-25) - Updated dependencies [
ae954ab]:
1.11.1
Patch Changes
- #5003
18b77a5Thanks @posthog! - Set the React error boundary's component-stack error name withObject.defineProperty, so the boundary still reports the original error on pages where a browser extension has madeError.prototype.namenon-writable. (2026-09-18)
1.11.0
Minor Changes
- #4958
4a46fabThanks @marandaneto! - Add a resetError callback to React error-boundary fallbacks so applications can retry rendering without remounting the boundary. (2026-09-14)
Patch Changes
1.10.6
Patch Changes
- #4785
74ca945Thanks @marandaneto! - Clarify feature flag return-value terminology across SDK APIs. Afalsevalue is a conclusive off evaluation, whileundefinedmeans no evaluation is available. Remote evaluation omits globally inactive flags, whereas backend local evaluation can resolve cached inactive definitions tofalse. (2026-09-07) - Updated dependencies [
c207020,74ca945,fd4ece8,d73455e,95b159a,24f1937,5e74132,21dcebd]:
1.10.5
Patch Changes
-
#4645
cb7cc12Thanks @turnipdabeets! - Type declarations no longer import theJSXnamespace fromreact, so they typecheck against@types/reactback to the declared 16.8.0 floor. Component return types are now spelledReactElement<any, any>, which is the definition ofJSX.Element— the same type, so consuming code is unaffected.JSXonly became an exported member of thereacttypes module in@types/react@18.2.6, so projects on older React types previously sawTS2305: Module '"react"' has no exported member 'JSX'when checking these declarations withskipLibCheck: false. (2026-08-25) -
Updated dependencies [
cb7cc12]:
1.10.4
Patch Changes
- #4567
5bd2c8dThanks @github-actions! - Render React component stacks as linked exception causes so error tracking identifies the crashing component. (2026-08-21) - Updated dependencies [
caed377,5bd2c8d]:
1.10.3
Patch Changes
- #3905
870cfa4Thanks @marandaneto! - Filter disabled bootstrap feature flags from useActiveFeatureFlags. (2026-06-22) - Updated dependencies [
1fce04f]:
1.10.2
Patch Changes
- #3837
29bf8e3Thanks @marandaneto! - Add missing bugs metadata to package manifests. (2026-06-15) - Updated dependencies [
29bf8e3,d3a9462]:
1.10.1
Patch Changes
- #3748
7820929Thanks @marandaneto! - Reduce duplicate internal code found by dry4ts. (2026-06-09) - Updated dependencies [
7820929]:
1.10.0
Minor Changes
- #3718
3aff16eThanks @turnipdabeets! - Add an optionaldefaultValueargument touseFeatureFlagEnabled. When supplied, the hook returns that value instead ofundefinedwhile flags are loading or when the flag is absent, and the return type narrows toboolean. Omitting the argument keeps the existingboolean | undefinedbehavior. (2026-06-02)
1.9.1
Patch Changes
- #3646
4f87827Thanks @marandaneto! - Avoid throwing or initializing PostHogProvider when no API key or client is provided (2026-05-21) - Updated dependencies [
87e2145,4f87827,280832b]:
1.9.0
Minor Changes
- #3302
fc5589fThanks @dmarticus! - preserve $set_once semantics in local flag evaluation cache (2026-04-07)
Patch Changes
- Updated dependencies [
fc5589f]:
1.8.3
Patch Changes
- #3309
197eedaThanks @marandaneto! - Extract CLI and sourcemap utilities from @posthog/core into @posthog/plugin-utils to remove cross-spawn from React Native dependencies (2026-04-01) - Updated dependencies [
197eeda,c5feb5c,7b944fc]:
1.8.2
Patch Changes
- #3182
2304af0Thanks @marandaneto! - refactor: usegetFeatureFlagResultinstead of deprecatedgetFeatureFlagPayloadinternally (2026-03-02)
1.8.1
Patch Changes
- #3146
85030edThanks @gustavohstrassburger! - Fix PostHogFeature component to properly handle undefined flags and false values (2026-02-25) - Updated dependencies [
4d0c783]:
1.8.0
Minor Changes
- #3063
97046c0Thanks @dustinbyrne! - feat: AdduseFeatureFlagResulthook (2026-02-17)
Patch Changes
1.7.1
Patch Changes
- #3034
de43d70Thanks @adboio! - add survey shown tracking to useThumbSurvey + option to disable shown tracking in displaySurvey (2026-02-10) - Updated dependencies [
de43d70]:
1.7.0
Minor Changes
- #2882
8a5a3d5Thanks @adboio! - add support for question prefill in popover surveys, add useThumbSurvey hook (2026-01-20)
Patch Changes
- Updated dependencies [
8a5a3d5]:
1.6.0
Minor Changes
-
#2900
23770e9Thanks @dmarticus! - RenamedevaluationEnvironmentstoevaluationContextsfor clearer semantics. The term "contexts" better reflects that this feature is for specifying evaluation contexts (e.g., "web", "mobile", "checkout") rather than deployment environments (e.g., "staging", "production").Deprecated
posthog.initoptionevaluationEnvironmentsis now deprecated in favor ofevaluationContexts. The old property will continue to work and will log a deprecation warning. It will be removed in a future major version.
Migration Guide
1// Before 2posthog.init('<ph_project_api_key>', { 3 evaluationEnvironments: ['production', 'web', 'checkout'], 4}) 5 6// After 7posthog.init('<ph_project_api_key>', { 8 evaluationContexts: ['production', 'web', 'checkout'], 9}) 10``` (2026-01-19)
Patch Changes
- Updated dependencies [
23770e9]:
1.5.2
Patch Changes
-
#2690
e9c00fdThanks @robbie-c! - Related to https://www.wiz.io/blog/critical-vulnerability-in-react-cve-2025-55182We didn't include any of the vulnerable deps in any of our packages, however we did have them as dev / test / example project dependencies.
There was no way that any of these vulnerable packages were included in any of our published packages.
We've now patched out those dependencies.
Out of an abundance of caution, let's create a new release of all of our packages. (2025-12-04)
-
Updated dependencies [
e9c00fd]:
1.5.1
Patch Changes
- #2655
d10783fThanks @ordehi! - Updated feature flag hooks to properly check if client is initialized and prevent client is undefined errors (2025-12-03) - Updated dependencies [
4487d6b,0e67750,e1617d9]:
1.5.0
Minor Changes
- #2619
86dab38Thanks @hpouillot! - package deprecation (2025-11-24)
Patch Changes
- Updated dependencies [
86dab38]:
1.4.1
Patch Changes
- #2618
3eed1a4Thanks @marandaneto! - last version was compromised (2025-11-24) - Updated dependencies [
3eed1a4]:
1.4.0
Minor Changes
- #2551
10be1b0Thanks @dmarticus! - Support bootstrapping feature flags during SSR in ReactJS
Patch Changes
- Updated dependencies [
10be1b0]:
1.3.0
Minor Changes
- #2517
46e3ca6Thanks @pauldambra! - feat: add a component that will wrap your components and capture an event when they are in view in the browser
Patch Changes
-
#2517
46e3ca6Thanks @pauldambra! - fix: complete react sdk featureflag component refactor
1.2.3
Patch Changes
-
#2390
244b3adThanks @hpouillot! - fix react sourcemaps -
Updated dependencies [
244b3ad]:
1.2.2
Patch Changes
- #2389
ac17e4aThanks @pauldambra! - revert: "fix(react): fix react sourcemaps"
1.2.1
Patch Changes
-
#2374
5af6e2dThanks @hpouillot! - fix react sourcemaps -
Updated dependencies [
5af6e2d]: