Skip to content

fix: Handle default flush interval for browser SDK. #822

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
Apr 15, 2025

Conversation

kinyoklion
Copy link
Member

The browser SDK was incorrectly handling its default flush interval configuration.

There are two layers to defaults for the browser SDK. The first is defaults which differ from the base configuration defaults, second is defaults for browser specific configuration.

The base defaults were being applied to the browser specific configuration, which meant those changes were being lost and instead the base default was being used instead.

Fixes: SDK-1199

Copy link
Contributor

@launchdarkly/js-sdk-common size report
This is the brotli compressed size of the ESM build.
Size: 19038 bytes
Size limit: 21000

Copy link
Contributor

@launchdarkly/js-client-sdk-common size report
This is the brotli compressed size of the ESM build.
Size: 15371 bytes
Size limit: 20000

Copy link
Contributor

github-actions bot commented Apr 14, 2025

@launchdarkly/js-client-sdk size report
This is the brotli compressed size of the ESM build.
Size: 19889 bytes
Size limit: 21000

@kinyoklion kinyoklion force-pushed the rlamb/correct-browser-defaults branch 3 times, most recently from a637e8d to 95eaedf Compare April 14, 2025 22:55
@kinyoklion kinyoklion force-pushed the rlamb/correct-browser-defaults branch from 95eaedf to 1abe883 Compare April 14, 2025 22:56
@kinyoklion kinyoklion marked this pull request as ready for review April 14, 2025 22:57
@kinyoklion kinyoklion requested a review from a team as a code owner April 14, 2025 22:57
@kinyoklion kinyoklion merged commit 2c1cc7a into main Apr 15, 2025
23 checks passed
@kinyoklion kinyoklion deleted the rlamb/correct-browser-defaults branch April 15, 2025 16:54
@github-actions github-actions bot mentioned this pull request Apr 15, 2025
kinyoklion pushed a commit that referenced this pull request Apr 15, 2025
🤖 I have created a release *beep* *boop*
---


<details><summary>browser-telemetry: 1.0.5</summary>

##
[1.0.5](browser-telemetry-v1.0.4...browser-telemetry-v1.0.5)
(2025-04-15)


### Dependencies

* The following workspace dependencies were updated
  * devDependencies
    * @launchdarkly/js-client-sdk bumped from 0.5.1 to 0.5.2
</details>

<details><summary>js-client-sdk: 0.5.2</summary>

##
[0.5.2](js-client-sdk-v0.5.1...js-client-sdk-v0.5.2)
(2025-04-15)


### Bug Fixes

* Handle default flush interval for browser SDK.
([#822](#822))
([2c1cc7a](2c1cc7a))
</details>

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