Skip to content

Commit 6dc6ff9

Browse files
authored
Reduce update latency by using new config endpoint (#13)
reduce update latency by using new config endpoint
1 parent a1d1a21 commit 6dc6ff9

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@eppo/js-client-sdk",
3-
"version": "0.1.0",
3+
"version": "0.2.0",
44
"description": "Eppo SDK for client-side JavaScript applications",
55
"main": "dist/index.js",
66
"files": [

src/client/eppo-client.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe('EppoClient E2E test', () => {
2626
window.localStorage.clear();
2727
window.sessionStorage.clear();
2828
mock.setup();
29-
mock.get(/randomized_assignment\/v2\/config*/, (_req, res) => {
29+
mock.get(/randomized_assignment\/v3\/config*/, (_req, res) => {
3030
const rac = readMockRacResponse();
3131
return res.status(200).body(JSON.stringify(rac));
3232
});

src/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export const REQUEST_TIMEOUT_MILLIS = 5000;
2-
export const BASE_URL = 'https://eppo.cloud/api';
2+
export const BASE_URL = 'https://fscdn.eppo.cloud/api';
33
export const SESSION_ASSIGNMENT_CONFIG_LOADED = 'eppo-session-assignment-config-loaded';
44
export const NULL_SENTINEL = 'EPPO_NULL';
55
// number of logging events that may be queued while waiting for initialization

src/experiment-configuration-requestor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { IExperimentConfiguration } from './dto/experiment-configuration-dto';
22
import HttpClient from './http-client';
33
import { EppoLocalStorage } from './local-storage';
44

5-
const RAC_ENDPOINT = '/randomized_assignment/v2/config';
5+
const RAC_ENDPOINT = '/randomized_assignment/v3/config';
66

77
interface IRandomizedAssignmentConfig {
88
flags: Record<string, IExperimentConfiguration>;

0 commit comments

Comments
 (0)