js-sdk-contrib
js-sdk-contrib copied to clipboard
[flagd] Update selector handling for consistency with sync, evaluation, and OFREP services
Context
This ticket follows open-feature/flagd#1814, which aims to normalize selector usage across all flagd services. Currently, selectors are handled differently in sync, evaluation, and OFREP services.
Requirements
- Reference: https://github.com/open-feature/flagd/issues/1814
- Ensure selector handling is consistent between js-sdk-contrib and core flagd, especially for clients and plugins interfacing with flagd.
- Ensure backwards compatibility, supporting the deprecated selector until the deprecation period ends.
Tasks
- Audit all usages of selector in js-sdk-contrib (including SDK components interacting with flagd)
- Update to prefer
flagd-selectorheader when communicating with flagd services - Ensure backward compatibility where needed
- Document selector handling patterns for maintainers and users
- Prepare for future removal of deprecated behaviors
Benefits
- Predictable and consistent selector support when integrating with flagd
- Lower maintenance burden for migration in future major releases
Additional notes
- Work in alignment with the migration guidance and deprecation plan discussed in the core flagd ticket.