Skip to content

feat(node-sdk): add push-based flags sync mode#591

Draft
roncohen wants to merge 2 commits intomainfrom
feat/node-sdk-flags-sync-mode-push
Draft

feat(node-sdk): add push-based flags sync mode#591
roncohen wants to merge 2 commits intomainfrom
feat/node-sdk-flags-sync-mode-push

Conversation

@roncohen
Copy link
Copy Markdown
Contributor

@roncohen roncohen commented Mar 27, 2026

Summary

  • add a new flagsSyncMode option for node-sdk: polling | in-request | push
  • add push transport support via SSE (default https://pubsub.reflag.com/sse)
  • on push updates, refresh /features using waitForVersion from flag_state_updated messages
  • add flagsPushUrl option
  • keep cacheStrategy as deprecated backward compatibility
  • set EdgeClient default to flagsSyncMode: "in-request"
  • update node-sdk docs and tests

Validation

  • yarn workspace @reflag/node-sdk test
  • yarn workspace @reflag/node-sdk build

@roncohen roncohen force-pushed the feat/node-sdk-flags-sync-mode-push branch from 81c291e to ffecd3d Compare March 28, 2026 19:39
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