Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): bump mixpanel-browser and @types/mixpanel-browser #635

Closed
wants to merge 2 commits into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 1, 2024

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

Release notes

Sourced from mixpanel-browser's releases.

Module bundling and session recording updates

The SDK is now provided in several new builds with different options around included modules and asynchronous loading:

  1. Core mixpanel build with bundled mixpanel-recorder session-recording module (default):
import mixpanel from 'mixpanel-browser';
  1. Core mixpanel build that optionally loads mixpanel-recorder asynchronously via script tag (previous default):
import mixpanel from 'mixpanel-browser/src/loaders/loader-module-with-async-recorder';
  1. Core mixpanel build only (no session recording available):
import mixpanel from 'mixpanel-browser/src/loaders/loader-module-core';

This release also includes updates and improvements to the session recording module:

  • Improved reliability via integration with the main SDK's network batching/retry system
  • Inactivity timeouts are now determined by user interaction events
  • New configuration options enable inlining of images and fonts into recording payloads:
mixpanel.init(`my token`, {
  record_sessions_percent: 5,
  record_collect_fonts: true,
  record_inline_images: true,
});

NOTE: with image-inlining turned on, image-intensive pages may increase payload size significantly and possibly surpass the API server's request size limit.

Session recording updates

  • Network payload format for session recording batches has changed, including client-side compression on browsers which support it
  • Google Tag Manager wrapper now includes session-recording start/stop methods

Revert to persisting UTM params by default

This release reverts the UTM param persistence change introduced in v2.51.0, to minimize disruption for older implementations. UTM parameters will be persisted by default in super property storage when the SDK finds them on pageload. To opt in to the recommended modern behavior, use initialization option {stop_utm_persistence: true}.

Updates to UTM param persistence, localStorage/cookie migration, session recording

  • UTM parameters are no longer persisted as superproperties by default. Mixpanel analyses now have attribution support that does not require client-side persistence of these properties. To opt in to the previous behavior, use initialization option {stop_utm_persistence: false}.
  • localStorage->cookie migration support: when switching an implementation from localStorage persistence to cookie persistence (to support cross-subdomain tracking), the SDK will now automatically copy any existing superproperties from localStorage into the new superprop cookie. This migration behavior already existed in the opposite direction (going from cookie to localStorage).
  • The initialization options record_block_class, record_block_selector, and record_mask_text_class offer finer-grained control over elements to block in session recording, and provide stricter defaults.
  • New method mixpanel.get_session_recording_properties() exposes Replay ID property for tagging events controlled by other client-side SDKs such as Segment or mParticle.

Session recording support

No release notes provided.

Changelog

Sourced from mixpanel-browser's changelog.

2.54.1 (30 Jul 2024)

  • Fixes and improvements for user-idleness detection in session recording

2.54.0 (23 Jul 2024)

  • Provides optional builds without session recording module and without asynchronous script loading.
  • Integrates request batcher with session recording module for increased reliability.
  • Improved user inactivity heuristic for session recording timeout.
  • Adds config options to inline images and collect fonts during session recording.

2.53.0 (21 Jun 2024)

  • Switch to new session-recording network payload format, utilizing client-side compression when available
  • Session-recording methods are now available through Google Tag Manager wrapper

2.52.0 (7 Jun 2024)

  • Reverted UTM param persistence change from 2.51.0: UTM parameters are again persisted by default

2.51.0 (30 May 2024)

  • UTM parameter properties are no longer persisted by default
  • Existing superproperties persisted in localStorage are now copied back to cookie storage if the library is initialized with cookie persistence (support migrations from localStorage->cookie)
  • Added session-recording options record_block_class, record_block_selector, and record_mask_text_class
  • Added method mixpanel.get_session_recording_properties() for interop with other client-side SDKs

2.50.0 (26 Apr 2024)

  • Initial support for session recording

2.49.0 (5 Feb 2024)

  • SPA support in pageview-tracking
  • Support for configurable UTM parameter persistence
  • Initial-referrer profile properties are now stored with set_once instead of set
  • Ignore AhrefsSiteAudit crawler

2.48.1 (14 Nov 2023)

  • UTM campaign properties will always be persisted super properties (fixes discrepancy between minified and unminified package)

2.48.0 (7 Nov 2023)

  • API endpoint routes can now be configured individually (i.e. rename /track, /engage, /groups)
  • Event properties object passed to mixpanel.track() will no longer be mutated
  • Super properties are now reloaded from persistence when making every tracking call (i.e., kept fresh when another tab/window in the same browser has updated them)
  • Extra failsafe behavior for trying to clear queued requests when localStorage doesn't work on startup, e.g., when localStorage is full so writes fail
  • Block Chrome-Lighthouse user agent
  • Fix for error in add_group() when adding a new group to an existing list

2.47.0 (27 Apr 2023)

  • Collect richer marketing attribution properties for multi-touch attribution
  • New implementation of previously-deprecated track_pageview() method and init option to send automatically
  • Use performance.now when available for time-based entropy component of UUID-generation (thanks @​adrianherd)
  • Looser API Host check for default JSON-payload sending to mipxanel.com hosts

2.46.0 (20 Mar 2023)

... (truncated)

Commits
  • 9f18241 2.54.1
  • e48b00c changelog for 2.54.1
  • e022473 rebuild 2.54.1
  • 0be2f51 don't send rrweb events after idle timeout reset until user activity starts
  • 49c1a34 extra safety around preventing scheduled flushes from a stopped batcher
  • c3c6445 fix SR isUserEvent for idleness checks
  • 319b2b1 Merge pull request #211 from mixpanel/2.54.0-rc
  • e1b1a7c 2.54.0
  • 7f558a0 changelog for 2.54.0
  • 31d8461 rebuild
  • Additional commits viewable in compare view

Updates @types/mixpanel-browser from 2.49.0 to 2.49.1

Commits

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) 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.49.0 to 2.54.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.49.0...v2.54.1)

Updates `@types/mixpanel-browser` from 2.49.0 to 2.49.1
- [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-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: "@types/mixpanel-browser"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Copy link

netlify bot commented Aug 1, 2024

Deploy Preview for nndesign ready!

Name Link
🔨 Latest commit 6608395
🔍 Latest deploy log https://app.netlify.com/sites/nndesign/deploys/66ac0e7eeb80dd0008dcdb98
😎 Deploy Preview https://deploy-preview-635--nndesign.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor Author

dependabot bot commented on behalf of github Sep 13, 2024

OK, I won't notify you again about this release, but will get in touch when a new version is available. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@jgresham jgresham deleted the dependabot/npm_and_yarn/multi-3b9632c3b2 branch September 13, 2024 19:51
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