-
Notifications
You must be signed in to change notification settings - Fork 39
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
Conversation
Signed-off-by: Developer <[email protected]>
I'm going to switch to a draft. I found a number of issues when I removed the weak map. |
Signed-off-by: Michael Beemer <[email protected]>
There was a problem hiding this 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 :)
There was a problem hiding this 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.
Signed-off-by: Michael Beemer <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with 2 nits.
Testing looks good by the way, I like the timing use-case inclusion.
@beeme1mr I guess one other question is, why go for an interface with custom methods for hook data, as opposed to a very simple "Record-based" type, more similar to what we did with |
Signed-off-by: Michael Beemer <[email protected]>
Signed-off-by: Michael Beemer <[email protected]> Signed-off-by: Weyert de Boer <[email protected]>
🤖 I have created a release *beep* *boop* --- ## [1.9.0](core-v1.8.1...core-v1.9.0) (2025-08-10) ### ✨ New Features * add evaluation-scoped hook data ([#1216](#1216)) ([07af3a9](07af3a9)) * support Angular 20 ([#1220](#1220)) ([aa232a9](aa232a9)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Signed-off-by: OpenFeature Bot <[email protected]>
🤖 I have created a release *beep* *boop* --- ## [1.6.0](web-sdk-v1.5.0...web-sdk-v1.6.0) (2025-08-12) ### ✨ New Features * add evaluation-scoped hook data ([#1216](#1216)) ([07af3a9](07af3a9)) * **web-global-build:** publish web packages to unpkg and jsdelivr ([#1225](#1225)) ([40a512e](40a512e)) ### 📚 Documentation * Clarify the behavior of setProviderAndWait ([#1180](#1180)) ([4fe8d87](4fe8d87)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Signed-off-by: OpenFeature Bot <[email protected]>
🤖 I have created a release *beep* *boop* --- ## [1.19.0](server-sdk-v1.18.0...server-sdk-v1.19.0) (2025-08-14) ### ✨ New Features * add evaluation-scoped hook data ([#1216](#1216)) ([07af3a9](07af3a9)) ### 🐛 Bug Fixes * update core dep ([#1228](#1228)) ([845d24c](845d24c)) ### 🧹 Chore * update node to v20+ ([#1203](#1203)) ([1f33453](1f33453)) ### 📚 Documentation * Clarify the behavior of setProviderAndWait ([#1180](#1180)) ([4fe8d87](4fe8d87)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Signed-off-by: OpenFeature Bot <[email protected]> Signed-off-by: Todd Baert <[email protected]> Co-authored-by: Todd Baert <[email protected]>
This PR
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