File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1- 1.18.0 (September XX, 2024)
1+ 1.18.0 (October XX, 2024)
22 - Added `factory.destroy()` method, which invokes the `destroy` method on all SDK clients created by the factory.
3+ - Bugfixing - Fixed an issue with the server-side polling manager that caused dangling timers when the SDK was destroyed before it was ready.
34
451.17.0 (September 6, 2024)
56 - Added `sync.requestOptions.getHeaderOverrides` configuration option to enhance SDK HTTP request Headers for Authorization Frameworks.
Original file line number Diff line number Diff line change 1- // http://www.wheresrhys.co.uk/fetch-mock/#usageinstallation
1+ // @TODO upgrade fetch-mock when fetch-mock-jest vulnerabilities are fixed
2+ // https://www.wheresrhys.co.uk/fetch-mock/docs/fetch-mock/Usage/cheatsheet#local-fetch-with-jest
23import fetchMockLib from 'fetch-mock' ;
34
45const fetchMock = fetchMockLib . sandbox ( ) ;
Original file line number Diff line number Diff line change 11import { splitsSyncTaskFactory } from './syncTasks/splitsSyncTask' ;
22import { segmentsSyncTaskFactory } from './syncTasks/segmentsSyncTask' ;
33import { IPollingManager , ISegmentsSyncTask , ISplitsSyncTask } from './types' ;
4- import { thenable } from '../../utils/promise/thenable' ;
54import { POLLING_START , POLLING_STOP , LOG_PREFIX_SYNC_POLLING } from '../../logger/constants' ;
65import { ISdkFactoryContextSync } from '../../sdkFactory/types' ;
76
@@ -29,9 +28,9 @@ export function pollingManagerSSFactory(
2928 log . debug ( LOG_PREFIX_SYNC_POLLING + `Segments will be refreshed each ${ settings . scheduler . segmentsRefreshRate } millis` ) ;
3029
3130 const startingUp = splitsSyncTask . start ( ) ;
32- if ( thenable ( startingUp ) ) {
31+ if ( startingUp ) {
3332 startingUp . then ( ( ) => {
34- segmentsSyncTask . start ( ) ;
33+ if ( splitsSyncTask . isRunning ( ) ) segmentsSyncTask . start ( ) ;
3534 } ) ;
3635 }
3736 } ,
You can’t perform that action at this time.
0 commit comments