Skip to content

feat: Make push the default node-sdk sync mode#615

Merged
roncohen merged 1 commit intomainfrom
node-sdk-push-default
Apr 19, 2026
Merged

feat: Make push the default node-sdk sync mode#615
roncohen merged 1 commit intomainfrom
node-sdk-push-default

Conversation

@roncohen
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the Node SDK to use SSE-based “push” synchronization for flag definitions by default, adjusting docs and tests accordingly and documenting the release via changesets.

Changes:

  • Switch default flagsSyncMode from "polling" to "push" (with deprecated cacheStrategy mapping preserved).
  • Update README/types/docs and examples to reflect the new default behavior.
  • Expand tests to assert default "push" mode behavior and validate deprecated cacheStrategy mappings.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/node-sdk/src/client.ts Changes default sync mode selection logic to prefer "push".
packages/node-sdk/src/types.ts Updates ClientOptions.flagsSyncMode doc comment to indicate "push" is default.
packages/node-sdk/test/client.test.ts Updates tests for new default and adds coverage for deprecated cacheStrategy mapping.
packages/node-sdk/examples/express/reflag.ts Removes explicit flagsSyncMode: "push" since it’s now the default.
packages/node-sdk/README.md Updates narrative and options table to reflect "push" as default.
.changeset/node-sdk-push-default.md Changeset documenting the Node SDK default sync mode change.
.changeset/openfeature-node-provider-push-default.md Changeset claiming a dependency update for the OpenFeature node provider.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/node-sdk/src/client.ts
Comment thread .changeset/openfeature-node-provider-push-default.md
@roncohen roncohen added this pull request to the merge queue Apr 19, 2026
Merged via the queue into main with commit 76f4492 Apr 19, 2026
11 checks passed
@roncohen roncohen deleted the node-sdk-push-default branch April 19, 2026 11:47
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