Skip to content

Commit d5a5b9a

Browse files
Update changelog entry date
1 parent 34f4914 commit d5a5b9a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
2.3.0 (May 15, 2025)
1+
2.3.0 (May 16, 2025)
22
- Updated the Redis storage to:
33
- Avoid lazy require of the `ioredis` dependency when the SDK is initialized, and
44
- Flag the SDK as ready from cache immediately to allow queueing feature flag evaluations before SDK_READY event is emitted (Reverted in v1.7.0).

src/services/splitHttpClient.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { IPlatform } from '../sdkFactory/types';
66
import { decorateHeaders, removeNonISO88591 } from './decorateHeaders';
77
import { timeout } from '../utils/promise/timeout';
88

9+
const PENDING_FETCH_ERROR_TIMEOUT = 100;
910
const messageNoFetch = 'Global fetch API is not available.';
1011

1112
/**
@@ -47,7 +48,7 @@ export function splitHttpClientFactory(settings: ISettings, { getOptions, getFet
4748
.then(response => {
4849
if (!response.ok) {
4950
// `text()` promise might not settle in some fetch implementations and cases (e.g. no content)
50-
return timeout(100, response.text()).then(message => Promise.reject({ response, message }), () => Promise.reject({ response }));
51+
return timeout(PENDING_FETCH_ERROR_TIMEOUT, response.text()).then(message => Promise.reject({ response, message }), () => Promise.reject({ response }));
5152
}
5253
latencyTracker();
5354
return response;

0 commit comments

Comments
 (0)