mirror of
https://github.com/hanzoai/insights-js.git
synced 2026-10-30 18:34:19 +00:00
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').
15 KiB
15 KiB
@hanzo/types
1.378.1
1.378.0
Minor Changes
- #3688
8181354Thanks @pauldambra! - feat(persistence): addpersistence_save_debounce_msconfig option to coalesce rapid storage saves into a single write. Setting a positive value debounces writes to localStorage/cookie by that window; the in-memorypropsobject still updates synchronously so within-tab reads see the latest values immediately, and pending writes flush onbeforeunloadandpagehideso no state is lost on tab close. Cross-tabstorageevents are reduced proportionally to the debounce window. Defaults to0(no debouncing) for backwards compatibility. On pages that capture many events per second,250is a reasonable starting point. The new2026-05-30config default opts intopersistence_save_debounce_ms: 250automatically. (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
2e1d5f4Thanks @dustinbyrne! - Addflag_keysconfig to restrict browser feature flag remote evaluation to specific flag keys. (2026-05-21)
1.374.4
1.374.3
Patch Changes
- #3607
557b893Thanks @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
594ea11Thanks @pauldambra! - Dead clicks: add a.ph-no-deadclickCSS class (andcapture_dead_clicks.css_selector_ignorelistconfig option) to exclude specific elements from dead-click detection without affecting autocapture, session replay, or heatmaps. Mirrors the existing.ph-no-rageclickpattern. (2026-05-18)
1.373.5
1.373.4
1.373.3
1.373.2
1.373.1
1.373.0
Minor Changes
- #3547
4c0c7d9Thanks @williamchong! -capture()now accepts an optionaluuidonCaptureOptions. (2026-05-11)
Patch Changes
- #3559
0a835faThanks @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
96f19b7Thanks @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
1a8b727Thanks @richardsolomou! - refactor: rename__add_tracing_headerstoaddTracingHeaders. The__prefix signalled an internal/experimental option, but the config is a public API (documented for linking LLM traces to session replays).__add_tracing_headerscontinues to work as a deprecated alias on the browser SDK.Also exposes
patchFetchForTracingHeadersfrom@insights/coreso non-browser SDKs can reuse the implementation. (2026-04-23)
1.370.1
1.370.0
Minor Changes
- #3389
922a1c1Thanks @hpouillot! - Add exception steps to error tracking (aka breadcrumbs) (2026-04-22)
1.369.5
1.369.4
1.369.3
1.369.2
Patch Changes
- #3386
4a65604Thanks @dustinbyrne! - Add a preview flag for versioned browser lazy bundle asset paths. (2026-04-16)
1.369.1
1.369.0
1.368.2
1.368.1
1.368.0
Minor Changes
- #3345
3fcf5c4Thanks @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
c387f6dThanks @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
- #3274
ba08262Thanks @pauldambra! - fix: document visibility change shoudln't capture dead click (2026-03-25)
1.363.4
1.363.3
1.363.2
1.363.1
1.363.0
Patch Changes
- #3245
1acd6fdThanks @dmarticus! - handle plain array and object forms in overrideFeatureFlags (2026-03-20)
1.362.0
1.361.1
1.361.0
Minor Changes
- #3241
fe1fd7bThanks @dustinbyrne! - feat: addadvanced_feature_flags_dedup_per_sessionconfig option to scope$feature_flag_calleddeduplication to the current session (2026-03-18)
Patch Changes
1.360.2
1.360.1
1.360.0
Minor Changes
- #3207
c5a37cbThanks @dustinbyrne! - feat: Add TreeShakeable (2026-03-09)
1.359.1
1.359.0
1.358.1
1.358.0
1.357.2
1.357.1
1.357.0
Minor Changes
- #3169
4f885c0Thanks @marandaneto! - feat: add local sampleRate config for session recording (2026-03-02)
1.356.2
1.356.1
1.356.0
Minor Changes
- #3142
ec54fd8Thanks @dmarticus! - Add feature_flag_cache_ttl_ms config to prevent stale flag values (2026-02-26)
Patch Changes
- #3145
d741668Thanks @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
2649a9aThanks @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
- #3107
9dbc05eThanks @ablaszkiewicz! - warning on manual capture('$exception') (2026-02-18)
1.350.0
Minor Changes
- #2895
1b47203Thanks @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
7437982Thanks @pauldambra! - Add missingfeatureFlagsproperty andOverrideFeatureFlagsOptionstype toInsightsinterface, restoreset_configto the loaded callback type, and addfeatureFlagsReloadingtoon()event types (2026-02-11)
1.345.4
1.345.3
1.345.2
1.345.1
1.345.0
Minor Changes
- #2919
fe8090cThanks @dustinbyrne! - Adderrorproperty toRequestResponse(2026-02-09)
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
b3ec434Thanks @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
7768010Thanks @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
- #2954
228930aThanks @dustinbyrne! - feat: AddFeatureFlagResulttype (2026-01-28)
1.335.5
1.335.4
1.335.3
1.335.2
1.335.1
1.335.0
Minor Changes
- #2953
c8d3fbeThanks @pauldambra! - allows using web vitals with and without attribution (2026-01-23)
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
f64ebefThanks @rafaeelaudibert! - We were missing some public definitions inside@hanzo/typesso let's fix them here. We've also fixed the typing inside theloadedcallback (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
83b03feThanks @rafaeelaudibert! - Release new @hanzo/types library to make it easy for those using the script version of@hanzo/insightsto properly typewindow.insights(2026-01-06)