-
Notifications
You must be signed in to change notification settings - Fork 36
feat: add init/shutdown and events #436
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
feat: add init/shutdown and events #436
Conversation
Codecov Report
@@ Coverage Diff @@
## main #436 +/- ##
==========================================
+ Coverage 99.44% 99.47% +0.03%
==========================================
Files 24 25 +1
Lines 2331 2468 +137
Branches 211 236 +25
==========================================
+ Hits 2318 2455 +137
Misses 13 13
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
7591d9f
to
9894e08
Compare
Signed-off-by: Lukas Reining <[email protected]>
9894e08
to
2d5e404
Compare
@lukas-reining I'll manually test this tomorrow (just to make sure everything still bundles/packages nicely) but once the remaining issues are closed it think this is good to merge from my perspective. |
Signed-off-by: Lukas Reining <[email protected]>
Signed-off-by: Lukas Reining <[email protected]>
Signed-off-by: Lukas Reining <[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.
I've tested the packaging locally and consumed the web and server SDKs in a web app, and esm and commonjs node apps. Everything looks great and I didn't have any breaking changes.
Nothing else to say except excellent work. Approving.
I encourage any @open-feature/sdk-javascript-approvers @open-feature/sdk-javascript-maintainers and @open-feature/technical-steering-committee to review. I'll merge this next week unless I hear objections. |
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.
I noticed a few little things, but overall it looks great. Thank you very much for all your hard work.
Co-authored-by: Michael Beemer <[email protected]> Signed-off-by: Lukas Reining <[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.
Thank you, looks good to me! Excited about the shutdown change :)
Signed-off-by: Lukas Reining <[email protected]>
🤖 I have created a release *beep* *boop* --- ## [0.0.4](shared-v0.0.3...shared-v0.0.4) (2023-06-06) ### Features * add init/shutdown and events ([#436](#436)) ([5d55ea1](5d55ea1)) * add named client support ([#429](#429)) ([310c6ac](310c6ac)) * add support for flag metadata ([#426](#426)) ([029ec26](029ec26)) ### Bug Fixes * only shutdown providers that are not attached to any client ([#444](#444)) ([7e469c4](7e469c4)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
🤖 I have created a release *beep* *boop* --- ## [0.3.3-experimental](web-sdk-v0.3.2-experimental...web-sdk-v0.3.3-experimental) (2023-06-06) ### Features * add init/shutdown and events ([#436](#436)) ([5d55ea1](5d55ea1)) * add named client support ([#429](#429)) ([310c6ac](310c6ac)) * add support for flag metadata ([#426](#426)) ([029ec26](029ec26)) ### Bug Fixes * bundlers wrongly resolving server/client modules ([#445](#445)) ([6acddd5](6acddd5)) * only shutdown providers that are not attached to any client ([#444](#444)) ([7e469c4](7e469c4)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
🤖 I have created a release *beep* *boop* --- ## [1.3.0](js-sdk-v1.2.0...js-sdk-v1.3.0) (2023-06-06) ### Features * add init/shutdown and events ([#436](#436)) ([5d55ea1](5d55ea1)) * add named client support ([#429](#429)) ([310c6ac](310c6ac)) * add support for flag metadata ([#426](#426)) ([029ec26](029ec26)) ### Bug Fixes * bundlers wrongly resolving server/client modules ([#445](#445)) ([6acddd5](6acddd5)) * only shutdown providers that are not attached to any client ([#444](#444)) ([7e469c4](7e469c4)) --- 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: Michael Beemer <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Michael Beemer <[email protected]>
This PR
Implements init/shutdown and events support from spec version 0.6.0. #424 #434 #435
Related Issues
Fixes #434
Fixes #435
Notes
Moved as much code as possible to the shared package.
Maybe we could even share some more code of the client.
Follow-up Tasks
How to test
Tests are included for both client and server.