Files
zeekay 043ac58d3c chore: sweep upstream brand from ALL files; restore LICENSE/NOTICE attribution
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').
2026-07-16 09:54:05 -07:00

15 KiB

@hanzo/types

1.378.1

1.378.0

Minor Changes

  • #3688 8181354 Thanks @pauldambra! - feat(persistence): add persistence_save_debounce_ms config option to coalesce rapid storage saves into a single write. Setting a positive value debounces writes to localStorage/cookie by that window; the in-memory props object still updates synchronously so within-tab reads see the latest values immediately, and pending writes flush on beforeunload and pagehide so no state is lost on tab close. Cross-tab storage events are reduced proportionally to the debounce window. Defaults to 0 (no debouncing) for backwards compatibility. On pages that capture many events per second, 250 is a reasonable starting point. The new 2026-05-30 config default opts into persistence_save_debounce_ms: 250 automatically. (2026-06-01)

1.377.0

1.376.6

1.376.5

1.376.4

1.376.3

1.376.2

1.376.1

1.376.0

1.375.0

Minor Changes

  • #3641 2e1d5f4 Thanks @dustinbyrne! - Add flag_keys config to restrict browser feature flag remote evaluation to specific flag keys. (2026-05-21)

1.374.4

1.374.3

Patch Changes

  • #3607 557b893 Thanks @eli-r-ph! - Enable $web_vitals reporting when cookieless mode is enabled (2026-05-20)

1.374.2

1.374.1

1.374.0

Minor Changes

  • #3620 594ea11 Thanks @pauldambra! - Dead clicks: add a .ph-no-deadclick CSS class (and capture_dead_clicks.css_selector_ignorelist config option) to exclude specific elements from dead-click detection without affecting autocapture, session replay, or heatmaps. Mirrors the existing .ph-no-rageclick pattern. (2026-05-18)

1.373.5

1.373.4

1.373.3

1.373.2

1.373.1

1.373.0

Minor Changes

Patch Changes

  • #3559 0a835fa Thanks @marandaneto! - Skip remote config background refreshes when no document is available. (2026-05-11)

1.372.10

1.372.9

1.372.8

1.372.7

1.372.6

1.372.5

1.372.4

1.372.3

1.372.2

1.372.1

1.372.0

1.371.4

1.371.3

1.371.2

Patch Changes

  • #3453 96f19b7 Thanks @turnipdabeets! - Lift OTLP log serialization helpers from insights-js into @insights/core so the upcoming React Native logs feature consumes the same builders. Browser gains two fixes as a side effect: NaN and ±Infinity attribute values no longer get silently dropped during JSON encoding, and the scope.version OTLP field is now populated with the SDK version (changes the server's instrumentation_scope column from "insights-js@" to "insights-js@"). (2026-04-23)

1.371.1

1.371.0

Minor Changes

  • #3432 1a8b727 Thanks @richardsolomou! - refactor: rename __add_tracing_headers to addTracingHeaders. The __ prefix signalled an internal/experimental option, but the config is a public API (documented for linking LLM traces to session replays). __add_tracing_headers continues to work as a deprecated alias on the browser SDK.

    Also exposes patchFetchForTracingHeaders from @insights/core so non-browser SDKs can reuse the implementation. (2026-04-23)

1.370.1

1.370.0

Minor Changes

1.369.5

1.369.4

1.369.3

1.369.2

Patch Changes

1.369.1

1.369.0

1.368.2

1.368.1

1.368.0

Minor Changes

  • #3345 3fcf5c4 Thanks @jonmcwest! - Add insights.captureLog() API for sending structured log entries to Insights logs (2026-04-13)

1.367.0

1.366.2

1.366.1

1.366.0

1.365.5

1.365.4

1.365.3

1.365.2

Patch Changes

  • #3323 c387f6d Thanks @pauldambra! - perf(replay): reduce memory and CPU cost of event compression by caching gzipped empty arrays and eliminating redundant JSON.stringify for size estimation (2026-04-08)

1.365.1

1.365.0

1.364.7

1.364.6

1.364.5

1.364.4

1.364.3

1.364.2

1.364.1

1.364.0

1.363.6

1.363.5

Patch Changes

1.363.4

1.363.3

1.363.2

1.363.1

1.363.0

Patch Changes

1.362.0

1.361.1

1.361.0

Minor Changes

  • #3241 fe1fd7b Thanks @dustinbyrne! - feat: add advanced_feature_flags_dedup_per_session config option to scope $feature_flag_called deduplication to the current session (2026-03-18)

Patch Changes

1.360.2

1.360.1

1.360.0

Minor Changes

1.359.1

1.359.0

1.358.1

1.358.0

1.357.2

1.357.1

1.357.0

Minor Changes

1.356.2

1.356.1

1.356.0

Minor Changes

  • #3142 ec54fd8 Thanks @dmarticus! - Add feature_flag_cache_ttl_ms config to prevent stale flag values (2026-02-26)

Patch Changes

  • #3145 d741668 Thanks @dmarticus! - Adds a remote_config_refresh_interval_ms config option to control how often feature flags are automatically refreshed in long-running sessions. (2026-02-26)

1.355.0

1.354.4

1.354.3

1.354.2

1.354.1

1.354.0

1.353.1

1.353.0

1.352.1

1.352.0

1.351.4

Patch Changes

  • #3119 2649a9a Thanks @dmarticus! - Adds a fresh option to getFeatureFlag(), getFeatureFlagResult(), and isFeatureEnabled() that only returns values loaded from the server, not cached localStorage values. (2026-02-19)

1.351.3

1.351.2

1.351.1

1.351.0

Patch Changes

1.350.0

Minor Changes

  • #2895 1b47203 Thanks @benjackwhite! - RemoteConfig (config.js) has been loaded for ages and is in use by us in production. This PR makes it the sole config loading mechanism for @hanzo/insights, removing the legacy /flags/?v=2&config=true path and the __preview_remote_config gate. (2026-02-17)

1.349.0

Minor Changes

1.348.0

1.347.2

1.347.1

1.347.0

1.346.0

1.345.5

Patch Changes

  • #3060 7437982 Thanks @pauldambra! - Add missing featureFlags property and OverrideFeatureFlagsOptions type to Insights interface, restore set_config to the loaded callback type, and add featureFlagsReloading to on() event types (2026-02-11)

1.345.4

1.345.3

1.345.2

1.345.1

1.345.0

Minor Changes

1.344.0

1.343.2

1.343.1

1.343.0

1.342.1

1.342.0

1.341.2

1.341.1

1.341.0

1.340.0

1.339.1

1.339.0

Minor Changes

  • #3006 b3ec434 Thanks @robbie-c! - Add a function isTestUser() and config option test_user_hostname (2026-02-03)

1.338.1

1.338.0

1.337.1

1.337.0

Minor Changes

  • #2996 7768010 Thanks @matheus-vb! - Filter out flags marked as failed before merging with cached values, preventing transient backend errors from overwriting previously evaluated flag states (2026-02-03)

1.336.4

1.336.3

1.336.2

1.336.1

1.336.0

Minor Changes

1.335.5

1.335.4

1.335.3

1.335.2

1.335.1

1.335.0

Minor Changes

1.334.1

1.334.0

1.333.0

1.332.0

1.331.3

1.331.2

1.331.1

1.331.0

1.330.0

1.329.0

1.328.0

1.327.0

1.326.0

1.325.0

1.324.1

1.324.0

1.323.0

1.322.0

1.321.3

1.321.2

1.321.1

1.321.0

1.320.0

1.319.2

Patch Changes

  • #2864 f64ebef Thanks @rafaeelaudibert! - We were missing some public definitions inside @hanzo/types so let's fix them here. We've also fixed the typing inside the loaded callback (2026-01-13)

1.319.1

1.319.0

1.318.2

1.318.1

1.318.0

Minor Changes

1.317.1

1.317.0

1.316.1

1.316.0

1.315.1

1.315.0

Minor Changes

  • #2839 83b03fe Thanks @rafaeelaudibert! - Release new @hanzo/types library to make it easy for those using the script version of @hanzo/insights to properly type window.insights (2026-01-06)