Skip to content

Conversation

@vasil-cf
Copy link

@vasil-cf vasil-cf commented Sep 30, 2025

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.


Note

Sets up 8.x maintenance branch CI/release, bumps @launchdarkly/node-server-sdk to 8.2.6 with SSE backoff and safer response handling, and adds Redis store fallback/reconnect improvements plus maintenance-tag publishing.

  • Node.js Server SDK (packages/sdk/server-node):
    • Add SSE backoff config (maxBackoffMillis, jitterRatio) in NodeRequests.createEventSource.
    • Improve NodeResponse to propagate errors even if body isn’t awaited; add tests for interrupted/partial responses.
    • Bump version to 8.2.6; update CHANGELOG.
  • Redis Store (packages/store/node-server-sdk-redis):
    • On reconnect, mark connection as disconnected; improve getAll to fall back to a provided localFeatureStore when Redis is down or on MaxRetriesPerRequestError.
    • Add helpers to serialize/prepare results; plumb localFeatureStore through RedisFeatureStore and RedisFeatureStoreFactory.
  • CI/Release:
    • Configure maintenance branch node-server-sdk-8.x: update server-node workflow triggers and release-please default branch; conditionally publish docs.
    • Publish non-prerelease packages with npm maintenance tag (scripts/publish.sh).
    • Add .nvmrc (Node 20.18.0); update release manifest.
  • Docs:
    • README: note this branch is for @launchdarkly/node-server-sdk 8.x maintenance.

Written by Cursor Bugbot for commit f2f732c. This will update automatically on new commits. Configure here.

kinyoklion and others added 22 commits February 8, 2024 14:25
This implements support for a maintenance branch for creating
node-server-sdk releases.

It removes all builds related to other packages and can only
build/release node-server-sdk.
… promise rejection. (launchdarkly#374)

This is a cherry-pick from the 9.x release.

---------

Co-authored-by: Yusinto Ngadiman <[email protected]>
🤖 I have created a release *beep* *boop*
---


<details><summary>node-server-sdk: 8.2.5</summary>

##
[8.2.5](launchdarkly/js-core@node-server-sdk-v8.2.4...node-server-sdk-v8.2.5)
(2024-02-12)


### Bug Fixes

* Fix an issue where failed http requests could cause an unhandled
promise rejection.
([launchdarkly#374](launchdarkly#374))
([ecfd2db](launchdarkly@ecfd2db))
</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>
This PR is to prevent 8.x docs from overwriting 9.x docs.

In the future we may want to consider docs for multiple versions, but we
do not currently support that.
🤖 I have created a release *beep* *boop*
---


<details><summary>node-server-sdk: 8.2.6</summary>

##
[8.2.6](launchdarkly/js-core@node-server-sdk-v8.2.5...node-server-sdk-v8.2.6)
(2024-05-21)


### Bug Fixes

* Configure max backoff and jitter ratio to ensure exponential backoff.
([launchdarkly#464](launchdarkly#464))
([87563cb](launchdarkly@87563cb))
</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>
feat: adjust node-server-sdk-redis for codefresh
@vasil-cf vasil-cf requested a review from a team as a code owner September 30, 2025 23:08
@vasil-cf vasil-cf marked this pull request as draft September 30, 2025 23:09
@vasil-cf vasil-cf closed this Sep 30, 2025
results.push({ key, item: { version: 0, deleted: false, serializedItem: value } });
});
callback(results);
callback(this.#prepareArray(values));
Copy link

Choose a reason for hiding this comment

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

Bug: Redis Fallback Failures and Error Handling

The getAll method has a couple of issues with its error and fallback handling. When the Redis connection is down or a MaxRetriesPerRequestError occurs, calling the localFeatureStore fallback doesn't stop further execution, which can lead to redundant Redis operations and the callback being invoked multiple times. Additionally, if hgetall encounters any other error, the callback is never called, potentially causing the calling code to hang.

Fix in Cursor Fix in Web

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