Extends the sweep beyond packages/ to the whole repo (178 files): workflows,
.eslintrc, playground, examples, tooling, root docs. Zero upstream-brand refs and
zero such filenames outside the exemptions.
REVERTS A LICENSING ERROR (from earlier rebrand e43ab1af, not this sweep):
- LICENSE had its copyright holder rewritten to 'Insights'. Restored to the real
holder: 'Copyright 2020 Posthog / Hiberly, Inc.' (+ Mixpanel, Inc.).
- NOTICE credited a non-existent upstream (github.com/getinsights/insights-js).
Restored to the real one: github.com/PostHog/posthog-js.
Apache-2.0 4(c) requires retaining upstream attribution; rewriting a third
party's copyright line falsifies ownership. Both files are now excluded from the
guard and documented as exempt in LLM.md.
Also:
- Deleted junk: AGENTS.md~upstream_main (merge leftover), the now-obsolete
rebrand script; renamed upload-*-s3.ts tooling (still used by cli.ts).
- Removed 42 stale playground/example pnpm-lock.yaml files: they pinned upstream
packages the package.json no longer references. Regenerated on install —
sed-ing a lockfile would corrupt its integrity hashes.
- Guard renamed no-posthog.yml -> brand-guard.yml and now assembles the pattern
at runtime, so no filename or file content carries the string (the previous
guard was swept by its own rule, inverting it to forbid 'insights').
12 KiB
@hanzo/react
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 InsightsProvider 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 @insights/core into @insights/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 InsightsFeature 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
insights.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
// Before insights.init('<ph_project_api_key>', { evaluationEnvironments: ['production', 'web', 'checkout'], }) // After insights.init('<ph_project_api_key>', { evaluationContexts: ['production', 'web', 'checkout'], }) ``` (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]: