Skip to content

Commit 3a4742b

Browse files
authored
Merge pull request #1 from Eppo-exp/cdn-upgrade
Reduce update latency by using new config endpoint
2 parents 911a44d + af7bc60 commit 3a4742b

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

js-client-sdk-common.api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import { AxiosInstance } from 'axios';
88

99
// @public (undocumented)
10-
const BASE_URL = "https://eppo.cloud/api";
10+
const BASE_URL = "https://fscdn.eppo.cloud/api";
1111

1212
declare namespace constants {
1313
export {

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-common",
3-
"version": "1.0.4",
3+
"version": "1.1.0",
44
"description": "Eppo SDK for client-side JavaScript applications (base for both web and react native)",
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
@@ -65,7 +65,7 @@ describe('EppoClient E2E test', () => {
6565

6666
beforeAll(async () => {
6767
mock.setup();
68-
mock.get(/randomized_assignment\/v2\/config*/, (_req, res) => {
68+
mock.get(/randomized_assignment\/v3\/config*/, (_req, res) => {
6969
const rac = readMockRacResponse();
7070
return res.status(200).body(JSON.stringify(rac));
7171
});

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 { IConfigurationStore } from './configuration-store';
22
import { IExperimentConfiguration } from './dto/experiment-configuration-dto';
33
import HttpClient from './http-client';
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)