Skip to content

Add support for the on annotation hook#111

Merged
Andarist merged 5 commits intomasterfrom
annotaton-hook
Sep 4, 2025
Merged

Add support for the on annotation hook#111
Andarist merged 5 commits intomasterfrom
annotaton-hook

Conversation

@Andarist
Copy link
Member

@Andarist Andarist commented Sep 3, 2025

This PR exposes process.recordreplay.annotationHook that can be used like:

process.recordreplay.annotationHook("my-kind", {
  payload: "foo",
});

It's the equivalent of Chromium's

window.__RECORD_REPLAY_ANNOTATION_HOOK__("my-kind", {
  payload: "foo",
});

We'll use this to add network-related annotations to the node recordings.

@Andarist Andarist merged commit dd2662b into master Sep 4, 2025
2 of 3 checks passed
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