Skip to content

Promote ReplayManager to component, replacing Recorder#1348

Merged
waltjones merged 1 commit into
masterfrom
waltjones/replay-manager-conponent
Oct 7, 2025
Merged

Promote ReplayManager to component, replacing Recorder#1348
waltjones merged 1 commit into
masterfrom
waltjones/replay-manager-conponent

Conversation

@waltjones

Copy link
Copy Markdown
Contributor

Description of the change

This PR replaces Recorder as a component passed to core.js with ReplayManager and encapsulates Recorder and replayPredicates within ReplayManager. This allows all replay classes to be removed when replay is not added as a component.

This PR also renames the recorder config key to replay.

Type of change

  • Refactor

Checklists

Development

  • Lint rules pass locally
  • The code changed/added as part of this pull request has been covered with tests
  • All tests related to the changed code pass in development

@matux matux left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! 100% agree with changing options name from recorder to replay, and fully encapsulating the Recorder in ReplayManager, and the exporting doing the full exporting round including post.

This is much cleaner and straightforward! 👏 😀

this._map = new Map();
this._recorder = recorder;
this._api = api;
this._recorder = new Recorder(options);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@waltjones waltjones merged commit 3287684 into master Oct 7, 2025
4 checks passed
@waltjones waltjones deleted the waltjones/replay-manager-conponent branch October 7, 2025 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants