Skip to content
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

fix: type support for Promise<void> before hook #693

Merged
merged 3 commits into from
Nov 30, 2023

Conversation

beeme1mr
Copy link
Member

This PR

  • Updates the server-side before hook type to perform async work without modifying context.

Related Issues

Fixes #689

Notes

I added a test but the test runner isn't not validating types.

@beeme1mr beeme1mr requested a review from a team as a code owner November 27, 2023 21:53
@beeme1mr beeme1mr linked an issue Nov 27, 2023 that may be closed by this pull request
@toddbaert toddbaert self-requested a review November 28, 2023 20:52
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.

LGTM!

@toddbaert toddbaert changed the title fix: allow server-side before hook to run async without modifying context fix: type support for Promise<void> before hook Nov 30, 2023
@toddbaert
Copy link
Member

@beeme1mr I made slight changes to the title. Hope you don't mind. Feel free to merge if you're OK with it.

@beeme1mr beeme1mr added this pull request to the merge queue Nov 30, 2023
Merged via the queue into main with commit 0b9ca18 Nov 30, 2023
7 checks passed
@beeme1mr beeme1mr deleted the 689-bug-typings-dont-support-returning-promisevoid branch November 30, 2023 17:26
github-merge-queue bot pushed a commit that referenced this pull request Dec 11, 2023
🤖 I have created a release *beep* *boop*
---


##
[1.7.5](server-sdk-v1.7.4...server-sdk-v1.7.5)
(2023-12-08)


### 🐛 Bug Fixes

* handlers should run immediately
([#701](#701))
([dba858b](dba858b))
* type support for Promise&lt;void&gt; before hook
([#693](#693))
([0b9ca18](0b9ca18))

---
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]>
toddbaert added a commit that referenced this pull request Jan 11, 2024
🤖 I have created a release *beep* *boop*
---


##
[1.7.5](server-sdk-v1.7.4...server-sdk-v1.7.5)
(2023-12-08)


### 🐛 Bug Fixes

* handlers should run immediately
([#701](#701))
([dba858b](dba858b))
* type support for Promise&lt;void&gt; before hook
([#693](#693))
([0b9ca18](0b9ca18))

---
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]>
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.

[BUG] typings don't support returning Promise<void>
4 participants