Skip to content

Comments

Bump mixpanel-browser and @types/mixpanel-browser#1572

Closed
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/multi-7835c9ef13
Closed

Bump mixpanel-browser and @types/mixpanel-browser#1572
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/multi-7835c9ef13

Conversation

@dependabot
Copy link
Contributor

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

Bumps mixpanel-browser and @types/mixpanel-browser. These dependencies needed to be updated together.
Updates mixpanel-browser from 2.64.0 to 2.71.1

Release notes

Sourced from mixpanel-browser's releases.

Fix $mp_page_leave over-tracking

Fixes an issue where the $mp_page_leave is automatically captured when record_heatmap_data is on and there is no session recording taking place.

$mp_page_leave events will be excluded from Mixpanel billing for the month of October.

Autocapture Updates

New autocapture events are now available:

  • Dead Click ($mp_dead_click): when a click occurs but there is no DOM mutation afterwards
  • Page Leave ($mp_page_leave): when a page is "left" either by navigation or leaving the tab

Dead Click event tracking is ON in the default autotrack configuration, but Page Leave tracking must be turned on explicitly (with the config option {autocapture: {page_leave: true}}.

This release also includes several other updates:

  • adding additional properties to experiment exposure events for feature flags
  • upgrade rrweb fork to fix a hidden input masking issue
  • getting rid of package.json exports feature to be less restrictive of what can be imported
  • adding type definitions for each build option

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

... (truncated)

Changelog

Sourced from mixpanel-browser's changelog.

2.71.1 (30 Oct 2025)

  • fixes issue with $mp_page_leave events getting tracked when record_heatmap_data is on and there was no session recording taking place.

2.71.0 (2 Oct 2025)

  • adds Dead Click ($mp_dead_click) autocapture event: when a click occurs but there is no DOM mutation afterwards
  • adds Page Leave ($mp_page_leave) autocapture event: when a page is "left" either by navigation or leaving the tab
  • adds additional properties to experiment exposure events for feature flags
  • upgrades rrweb fork to fix a hidden input masking issue
  • gets rid of package.json exports feature to be less restrictive of what can be imported
  • adds type definitions for each build option

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

... (truncated)

Commits
Maintainer changes

This version was pushed to npm by jakub.grz, a new releaser for mixpanel-browser since your current version.


Updates @types/mixpanel-browser from 2.54.0 to 2.66.0

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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

Updates mixpanel-browser and its TypeScript types; lockfile refresh switches rrweb deps to Mixpanel’s fork.

  • Dependencies:
    • Bump mixpanel-browser from ^2.64.0 to ^2.71.1 in package.json.
    • Bump @types/mixpanel-browser from ^2.54.0 to ^2.66.0 in package.json.
  • Lockfile:
    • Update resolves for mixpanel-browser@2.71.1.
    • Replace rrweb deps with Mixpanel-scoped equivalents: @mixpanel/rrweb, @mixpanel/rrdom, @mixpanel/rrweb-snapshot, @mixpanel/rrweb-types, @mixpanel/rrweb-utils.

Written by Cursor Bugbot for commit 395b9af. This will update automatically on new commits. Configure here.

@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Oct 31, 2025
@vercel
Copy link

vercel bot commented Oct 31, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
docs Error Error Nov 10, 2025 11:34am

Bumps [mixpanel-browser](https://github.com/mixpanel/mixpanel-js) and [@types/mixpanel-browser](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/mixpanel-browser). These dependencies needed to be updated together.

Updates `mixpanel-browser` from 2.64.0 to 2.71.1
- [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.64.0...v2.71.1)

Updates `@types/mixpanel-browser` from 2.54.0 to 2.66.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/mixpanel-browser)

---
updated-dependencies:
- dependency-name: mixpanel-browser
  dependency-version: 2.71.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: "@types/mixpanel-browser"
  dependency-version: 2.66.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/multi-7835c9ef13 branch from 989a903 to 395b9af Compare November 10, 2025 11:33
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Nov 21, 2025

Superseded by #1586.

@dependabot dependabot bot closed this Nov 21, 2025
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/multi-7835c9ef13 branch November 21, 2025 09:02
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.

0 participants