Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions .changeset/cute-ties-sink.md

This file was deleted.

14 changes: 14 additions & 0 deletions packages/node-sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# @reflag/node-sdk

## 1.4.0

### Minor Changes

- dca2bd7: Introduce flag fallback providers

Add support for `flagsFallbackProvider`, a reliability feature that lets the Node SDK persist the latest successfully fetched flag definitions to fallback storage such as a local file, S3, Redis, or a custom backend.

Reflag servers remain the primary source of truth. On startup, the SDK still tries to fetch a live snapshot first. If that initial fetch fails, it can load the last saved snapshot from the fallback provider so new processes can still initialize in the exceedingly rare case that Reflag has an outage.

After successfully fetching updated flag definitions, the SDK saves the latest definitions back through the provider to keep the fallback snapshot up to date.

This improves service startup reliability and outage recovery without changing normal flag evaluation behavior.

## 1.3.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/node-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@reflag/node-sdk",
"version": "1.3.0",
"version": "1.4.0",
"license": "MIT",
"repository": {
"type": "git",
Expand Down
7 changes: 7 additions & 0 deletions packages/openfeature-node-provider/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @reflag/openfeature-node-provider

## 1.0.3

### Patch Changes

- Updated dependencies [dca2bd7]
- @reflag/node-sdk@1.4.0

## 1.0.2

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/openfeature-node-provider/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@reflag/openfeature-node-provider",
"version": "1.0.2",
"version": "1.0.3",
"license": "MIT",
"repository": {
"type": "git",
Expand Down Expand Up @@ -50,7 +50,7 @@
"vitest": "~1.6.0"
},
"dependencies": {
"@reflag/node-sdk": "1.3.0"
"@reflag/node-sdk": "1.4.0"
},
"peerDependencies": {
"@openfeature/server-sdk": ">=1.16.1"
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6732,7 +6732,7 @@ __metadata:
languageName: unknown
linkType: soft

"@reflag/node-sdk@npm:1.3.0, @reflag/node-sdk@workspace:^, @reflag/node-sdk@workspace:packages/node-sdk":
"@reflag/node-sdk@npm:1.4.0, @reflag/node-sdk@workspace:^, @reflag/node-sdk@workspace:packages/node-sdk":
version: 0.0.0-use.local
resolution: "@reflag/node-sdk@workspace:packages/node-sdk"
dependencies:
Expand Down Expand Up @@ -6787,7 +6787,7 @@ __metadata:
"@openfeature/core": "npm:^1.5.0"
"@openfeature/server-sdk": "npm:>=1.16.1"
"@reflag/eslint-config": "npm:~0.0.2"
"@reflag/node-sdk": "npm:1.3.0"
"@reflag/node-sdk": "npm:1.4.0"
"@reflag/tsconfig": "npm:~0.0.2"
"@types/node": "npm:^22.12.0"
eslint: "npm:^9.21.0"
Expand Down
Loading