Skip to content

fix: provider js-doc improvments #506

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

Merged
merged 1 commit into from
Jul 26, 2023
Merged

Conversation

toddbaert
Copy link
Member

@toddbaert toddbaert commented Jul 26, 2023

In 3 event provider implementations, flagd-java, go-feature-flag-web, and even my own implementation of flagd-js, authors have forgotten to properly implement getState (which means the SDK assumes the provider is already READY and doesn't run initialize().)

This is an easy pitfall. To help with this, I'm adding doc.

We may be able to improve the interfaces to help with this, but I think this is a safe and helpful change for now.

Relates to: open-feature/java-sdk#531

@toddbaert
Copy link
Member Author

@lukas-reining @thomaspoignant @beeme1mr if you agree, when this is merged, I will manually update the resulting web-sdk release PR to be 0.4.0, our first non-experimental release.

@toddbaert toddbaert force-pushed the fix/add-stateful-provider branch from 9e2791d to 458061a Compare July 26, 2023 18:23
@toddbaert toddbaert changed the title feat: StatefulProvider helper interface fix: provider js-doc improvments Jul 26, 2023
@toddbaert toddbaert merged commit c815bc8 into main Jul 26, 2023
@toddbaert toddbaert deleted the fix/add-stateful-provider branch July 26, 2023 19:21
toddbaert pushed a commit that referenced this pull request Jul 26, 2023
🤖 I have created a release *beep* *boop*
---


##
[0.0.9](shared-v0.0.8...shared-v0.0.9)
(2023-07-26)


### Bug Fixes

* provider js-doc improvments
([#506](#506))
([c815bc8](c815bc8))

---
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>
toddbaert pushed a commit that referenced this pull request Jul 26, 2023
🤖 I have created a release *beep* *boop*
---


##
[0.0.9](shared-v0.0.8...shared-v0.0.9)
(2023-07-26)


### Bug Fixes

* provider js-doc improvments
([#506](#506))
([c815bc8](c815bc8))

---
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>
toddbaert added a commit that referenced this pull request Jul 26, 2023
🤖 I have created a release *beep* *boop*
---


##
[1.4.1](js-sdk-v1.4.0...js-sdk-v1.4.1)
(2023-07-26)


### Bug Fixes

* provider js-doc improvments
([#506](#506))
([c815bc8](c815bc8))

---
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: Todd Baert <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

2 participants