Skip to content

3.2.0 - SessionReplay and AutoCapture setup improvements

Compare
Choose a tag to compare
@daniel-statsig daniel-statsig released this 11 Oct 21:47
· 59 commits to main since this release
3846943

Makes setting up Session Replay and Web Analytics easier by adding the plugins field to StatsigOptions

// ⭐️ New ⭐️
import { StatsigSessionReplayPlugin } from '@statsig/session-replay';
import { StatsigAutoCapturePlugin } from '@statsig/web-analytics';

const myStatsigClient = new StatsigClient(
    'client-key',
    { userID: 'a-user' },
    {
      plugins: [
        new StatsigSessionReplayPlugin({
          rrwebConfig: { blockClass: 'do-not-record' },
        }),
        new StatsigAutoCapturePlugin(),
      ],
    },
  );

Changelog

@statsig/client-core

  • refac: switch enums to objects c416298
  • chore: restrict sendBeacon usage to 'unload' only 43d4bc2

@statsig/js-client @statsig/js-on-device-eval-client

  • chore: ensure re-init works after shutdown 5f4cef2

@statsig/js-client @statsig/session-replay @statsig/web-analytics

  • feat: allow SessionReplay and AutoCapture via StatsigOptions 02c4819

@statsig/react-bindings

  • chore: useRef instead of useState for client factory hooks 239dfca