Skip to content

feat(contract-tests): Implement flag change listener tests in the JavaScript browser SDK#1121

Draft
aaron-zeisler wants to merge 1 commit intomainfrom
aaronz/flag-change-listener-tests-in-js-client-sdk
Draft

feat(contract-tests): Implement flag change listener tests in the JavaScript browser SDK#1121
aaron-zeisler wants to merge 1 commit intomainfrom
aaronz/flag-change-listener-tests-in-js-client-sdk

Conversation

@aaron-zeisler
Copy link

@aaron-zeisler aaron-zeisler commented Feb 24, 2026

This pull request is part of a larger set of PRs that implement Flag Change Listener tests for both the server SDKs and the client SDKs. Here's the list of pull requests that I currently have open:

Requirements

  • I have added test coverage for new or changed functionality
  • I have followed the repository's pull request submission guidelines
  • I have validated my changes against all supported platform versions

Related issues

Provide links to any issues in this repository or elsewhere relating to this pull request.

Describe the solution you've provided

Provide a clear and concise description of what you expect to happen.

Describe alternatives you've considered

Provide a clear and concise description of any alternative solutions or features you've considered.

Additional context

Add any other context about the pull request here.

Implement contract test support for flag change listeners in the browser SDK
test service:

- Add 'flag-change-listeners' capability to the service
- Handle registerFlagChangeListener, registerFlagValueChangeListener, and
  unregisterListener commands
- Use SDK 'change' and 'change:${key}' events for config and value changes
- Post listener callbacks to the test harness via fetch
- Unregister listeners on client close
- Add dataSystem config parsing to map streaming and polling endpoints from
  the test harness to SDK options (streamUri, baseUri)
@github-actions
Copy link
Contributor

@launchdarkly/js-sdk-common size report
This is the brotli compressed size of the ESM build.
Compressed size: 25394 bytes
Compressed size limit: 26000
Uncompressed size: 124693 bytes

@github-actions
Copy link
Contributor

@launchdarkly/browser size report
This is the brotli compressed size of the ESM build.
Compressed size: 171304 bytes
Compressed size limit: 200000
Uncompressed size: 798320 bytes

@github-actions
Copy link
Contributor

@launchdarkly/js-client-sdk-common size report
This is the brotli compressed size of the ESM build.
Compressed size: 19370 bytes
Compressed size limit: 20000
Uncompressed size: 99722 bytes

@github-actions
Copy link
Contributor

@launchdarkly/js-client-sdk size report
This is the brotli compressed size of the ESM build.
Compressed size: 23373 bytes
Compressed size limit: 25000
Uncompressed size: 81215 bytes

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.

1 participant