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

feat: Add support for client-side prerequisite events. #112

Merged
merged 7 commits into from
Oct 18, 2024

Conversation

kinyoklion
Copy link
Member

No description provided.

src/index.js Outdated
@@ -320,6 +321,12 @@ function initialize(env, context, specifiedOptions, platform, extraOptionDefs) {
}

if (sendEvent) {
// An event will be send for each of these by virtue of sending events for all flags.
if (!allFlags) {
Copy link
Member Author

Choose a reason for hiding this comment

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

So, I am not 100% sure there is a good answer here. For sure if you are sending events for all flags, then the prereq will have an event if it was visible to the client.

Copy link
Member Author

Choose a reason for hiding this comment

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

This comment is still relevant github. I just corrected part of the line. >.<

@kinyoklion kinyoklion force-pushed the rlamb/sdk-685/client-side-prerequisites branch from 7a0437d to 39a1155 Compare October 14, 2024 20:39
@@ -552,7 +552,7 @@ declare module 'launchdarkly-js-sdk-common' {

/**
* Describes the reason that a flag evaluation produced a particular value. This is
* part of the {@link LDEvaluationDetail} object returned by {@link LDClient.variationDetail]].
Copy link
Member Author

Choose a reason for hiding this comment

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

Noticed this when working on the docs for node-client-sdk. So a good chance to just fix that link.

@@ -1,3 +1,4 @@
// @ts-nocheck
Copy link
Member Author

Choose a reason for hiding this comment

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

Added this ts-nocheck as typescript checking in eslint isn't happy in this file. Nothing changed, but the typescript version was updated. Basically just affects the IDE.

@kinyoklion kinyoklion marked this pull request as ready for review October 15, 2024 17:11
@kinyoklion kinyoklion requested a review from a team as a code owner October 15, 2024 17:11
src/index.js Outdated
options,
diagnosticId
)
platform,
Copy link
Member Author

Choose a reason for hiding this comment

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

There are a few formatting changes from prettier.

@kinyoklion kinyoklion merged commit 9d1708b into main Oct 18, 2024
3 checks passed
@kinyoklion kinyoklion deleted the rlamb/sdk-685/client-side-prerequisites branch October 18, 2024 16:16
kinyoklion pushed a commit that referenced this pull request Oct 18, 2024
🤖 I have created a release *beep* *boop*
---


##
[5.4.0](5.3.0...5.4.0)
(2024-10-18)


### Features

* Add support for client-side prerequisite events.
([#112](#112))
([9d1708b](9d1708b))

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