Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 1, 2025

Bumps mixpanel-browser from 2.59.0 to 2.70.0.

Release notes

Sourced from mixpanel-browser's releases.

rrweb upgrade and stricter disable_persistence

  • Upgraded rrweb to use a Mixpanel-maintained fork containing performance fixes from the rrweb team (https://github.com/mixpanel/rrweb)
  • Added additional handling for disable_persistence so that sessionStorage and IndexedDB are not modified
  • Fixed TypeScript imports for custom builds

Rage-Click detection and other updates

This release adds support for Rage-Click tracking as part of the Autocapture subsystem. It is enabled in the default autocapture config, and can also be controlled explicitly with the rage_click autocapture init option.

Other updates include:

  • Session Recording now blocks <audio> tags by default
  • A new Feature-Flag method flags.update_context() facilitates updating context variables and refetching variants

Fixes and minor updates

  • get_api_host() is now used consistently across the SDK to ensure that per-endpoint API host configs are respected everywhere
  • A fix is included for the ordering of (asynchronous) operations when calling mixpanel.reset() while a session recording is active
  • Default Feature Flag context now includes device_id alongside distinct_id
  • $experiment_started events now include several API-latency-tracking properties

Fine-grained API host configuration and session recording fixes

A new api_hosts configuration option enables different endpoints (events, profiles, groups, session recordings) to be sent to different hosts, for selective proxying, e.g.:

mixpanel.init('<TOKEN>', {
  api_hosts: {
    // proxy only session-recording requests, and leave the rest on the default host api-js.mixpanel.com
    'record': 'https://my-proxy.com',
  },
});

This release also fixes a race condition when calling mixpanel.reset() while a session recording is active, and adds an initial TypeScript types.d.ts file.

Updates to revenue, session recording, autocapture, etc

This release packages up changes and improvements to several subsystems:

  • The long-deprecated mixpanel.people.track_charge() method now only prints a console error and no longer sets a profile property or produces any other change. The old version of Mixpanel's Revenue analysis UI has been replaced by a newer suite of analysis tools which don't depend on profile properties (see https://docs.mixpanel.com/docs/features/revenue_analytics).
  • Autocapture click tracking properties now include page height and width.
  • Session recording now stops when mixpanel.reset() is called.
  • New init optionapi_extra_query_params adds support for appending arbitrary query string params to tracking requests (useful for non-standard proxy setups)
  • The API of the Feature Flagging system (under development) has been revised
  • Whale Browser is now detected automatically

Dependency and build upgrades

This release upgrades session-recording library rrweb to the latest alpha version. In conjunction, the SDK's build process has been refactored and Closure Compiler updated.

Native UUID and JSON serialization

  • UUIDs are now generated as UUIDv4. When available, the native randomUUID() from the Crypto API is used; otherwise the library falls back to a simple custom UUIDv4 implementation.
  • When available, the library now consistently uses native JSON.stringify() for serializing request data, only falling back to the older custom JSON encoding implementation if the environment doesn't have native JSON APIs.
  • Fixes a Session Recording race condition where sometimes the idle timeout is reset past when it should have fired due to a backgrounded tab.

Revert event/user queue throttling

... (truncated)

Changelog

Sourced from mixpanel-browser's changelog.

2.70.0 (4 Sep 2025)

  • Feature flags requests now send params on query string with GET instead of POST for easier caching

2.68.0 (11 Aug 2025)

  • Initial rage-click detection support
  • Block <audio> tags by default in Session Recording
  • Add flags.update_context() method for updating context variables and refetching variants

2.67.0 (17 Jul 2025)

  • Use get_api_host() consistently across the SDK
  • Include device_id in default Feature Flag context
  • Track latency props in $experiment_started event
  • Fix async behavior in mixpanel.reset() when a session recording is active
  • Fix recorder integration test race conditions

2.66.0 (8 Jul 2025)

  • Add api_host configuration option to support different hosts/proxies for different endpoints (thanks @​chrisknu)
  • Add types.d.ts from existing public repo
  • Fix race condition when calling mixpanel.reset() while a session recording is active

2.65.0 (20 May 2025)

  • mixpanel.people.track_charge() (deprecated) no longer sets profile property
  • Adds page height and width tracking to autocapture click tracking
  • Session recording now stops when mixpanel.reset() is called
  • Support for adding arbitrary query string params to tracking requests (thanks @​dylan-asos)
  • Feature flagging API revisions
  • Whale Browser detection

2.64.0 (15 Apr 2025)

  • Add record_heatmap_data init option for Session Recording to ensure click events are captured for Heat Maps
  • Initial support for feature flagging

2.63.0 (1 Apr 2025)

  • Update rrweb to latest alpha version
  • Refactor SDK build process to rely mainly on Rollup

2.62.0 (26 Mar 2025)

  • Replace UUID generator with UUIDv4 (using native API when available)
  • Consistently use native JSON serialization when available
  • Fix for session recording idle timeout race condition

2.61.2 (14 Mar 2025)

  • Revert 10ms throttle on enqueueing events to improve tracking reliability on page unload

2.61.1 (11 Mar 2025)

  • Session recording stops if initial DOM snapshot fails
  • Errors triggered by rrweb's record function are now caught
  • Fix for issue causing opt-out check error messages in debug mode

2.61.0 (6 Mar 2025)

... (truncated)

Commits
  • 8940b6a 2.70.0
  • 94e6c1e changelog for 2.70.0
  • 8403fab rebuild 2.70.0
  • a8ed92e build release candidate 2.70.0-rc1
  • 8f41a7b clean up window after each feature flag test
  • f265643 PR fixes
  • 0140a02 send up sdk and sdk version to feature flag endpoint
  • ba8ca8a use search params instead of building query string by hand
  • facc119 add tests for fetchFlags
  • bd00f1d make GET calls to get feature flags
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [mixpanel-browser](https://github.com/mixpanel/mixpanel-js) from 2.59.0 to 2.70.0.
- [Release notes](https://github.com/mixpanel/mixpanel-js/releases)
- [Changelog](https://github.com/mixpanel/mixpanel-js/blob/master/CHANGELOG.md)
- [Commits](mixpanel/mixpanel-js@v2.59.0...v2.70.0)

---
updated-dependencies:
- dependency-name: mixpanel-browser
  dependency-version: 2.70.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Oct 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant