Skip to content

feat: add evaluation-scoped hook data #1216

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

feat: add evaluation-scoped hook data #1216

wants to merge 4 commits into from

Conversation

beeme1mr
Copy link
Member

@beeme1mr beeme1mr commented Jun 6, 2025

This PR

  • adds support for hook data in accordance to the spec
  • adds optional type safety to the hook data keys and values

Related Issues

Fixes #1215

Notes

I had to add a bit more complexity in order to maintain support for existing hook implementations that used weakmaps.

How to test

Unit tests have been added

@beeme1mr beeme1mr requested review from a team as code owners June 6, 2025 00:33
@beeme1mr
Copy link
Member Author

beeme1mr commented Jun 9, 2025

I'm going to switch to a draft. I found a number of issues when I removed the weak map.

@beeme1mr beeme1mr marked this pull request as draft June 9, 2025 16:19
Signed-off-by: Michael Beemer <[email protected]>
Copy link
Member

@lukas-reining lukas-reining left a comment

Choose a reason for hiding this comment

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

Looks good to me, left two questions :)

Copy link
Member

@lukas-reining lukas-reining left a comment

Choose a reason for hiding this comment

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

Looks good, left two minor suggestions.

@beeme1mr beeme1mr marked this pull request as ready for review June 13, 2025 18:31
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.

Add Hook Data Support
3 participants