Skip to content

Commit cd9b33b

Browse files
committed
Remove Replane Cloud references
1 parent 396eed7 commit cd9b33b

13 files changed

Lines changed: 38 additions & 43 deletions

File tree

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<p align="center">Dynamic configuration for JavaScript and TypeScript applications.</p>
33

44
<p align="center">
5-
<a href="https://cloud.replane.dev"><img src="https://img.shields.io/badge/Try-Replane%20Cloud-blue" alt="Replane Cloud"></a>
65
<a href="https://github.com/replane-dev/replane-javascript/actions"><img src="https://github.com/replane-dev/replane-javascript/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
76
<a href="https://github.com/replane-dev/replane-javascript/blob/main/LICENSE"><img src="https://img.shields.io/github/license/replane-dev/replane-javascript" alt="License"></a>
87
<a href="https://github.com/orgs/replane-dev/discussions"><img src="https://img.shields.io/badge/discussions-join-blue?logo=github" alt="Community"></a>
@@ -48,7 +47,7 @@ import { Replane } from "@replanejs/sdk";
4847
const replane = new Replane();
4948
await replane.connect({
5049
sdkKey: process.env.REPLANE_SDK_KEY!,
51-
baseUrl: "https://cloud.replane.dev", // or your self-hosted URL
50+
baseUrl: "https://replane.example.com",
5251
});
5352

5453
const featureEnabled = replane.get("my-feature");
@@ -67,7 +66,7 @@ function App() {
6766
return (
6867
<ReplaneProvider
6968
options={{
70-
baseUrl: "https://cloud.replane.dev", // or your self-hosted URL
69+
baseUrl: "https://replane.example.com",
7170
sdkKey: process.env.REPLANE_SDK_KEY!,
7271
}}
7372
>
@@ -135,7 +134,7 @@ npm install @replanejs/svelte
135134
136135
<ReplaneContext
137136
options={{
138-
baseUrl: "https://cloud.replane.dev", // or your self-hosted URL
137+
baseUrl: "https://replane.example.com",
139138
sdkKey: "your-sdk-key",
140139
}}
141140
>

packages/admin/src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export class ReplaneAdminError extends Error {
6161
* import { ReplaneAdmin } from "@replanejs/admin";
6262
*
6363
* const admin = new ReplaneAdmin({
64-
* baseUrl: "https://app.replane.dev",
64+
* baseUrl: "https://replane.example.com",
6565
* apiKey: "rpa_...",
6666
* });
6767
*

packages/admin/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ export interface ReplaneAdminOptions {
355355

356356
/**
357357
* Base URL for Replane instance
358-
* @example "https://app.replane.dev"
358+
* @example "https://replane.example.com"
359359
*/
360360
baseUrl: string;
361361

packages/admin/tests/client.spec.ts

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function noContentResponse(): Response {
3636
describe("ReplaneAdmin - Initialization", () => {
3737
it("creates client with required options", () => {
3838
const admin = new ReplaneAdmin({
39-
baseUrl: "https://app.replane.dev",
39+
baseUrl: "https://replane.example.com",
4040
apiKey: "rpa_test_key",
4141
});
4242

@@ -56,14 +56,14 @@ describe("ReplaneAdmin - Initialization", () => {
5656
vi.stubGlobal("fetch", mockFetch);
5757

5858
const admin = new ReplaneAdmin({
59-
baseUrl: "https://app.replane.dev",
59+
baseUrl: "https://replane.example.com",
6060
apiKey: "rpa_test_key",
6161
});
6262

6363
await admin.projects.list();
6464

6565
expect(mockFetch).toHaveBeenCalledWith(
66-
"https://app.replane.dev/api/admin/v1/projects",
66+
"https://replane.example.com/api/admin/v1/projects",
6767
expect.any(Object)
6868
);
6969

@@ -77,14 +77,14 @@ describe("ReplaneAdmin - Initialization", () => {
7777
vi.stubGlobal("fetch", mockFetch);
7878

7979
const admin = new ReplaneAdmin({
80-
baseUrl: "https://app.replane.dev/",
80+
baseUrl: "https://replane.example.com/",
8181
apiKey: "rpa_test_key",
8282
});
8383

8484
await admin.projects.list();
8585

8686
expect(mockFetch).toHaveBeenCalledWith(
87-
"https://app.replane.dev/api/admin/v1/projects",
87+
"https://replane.example.com/api/admin/v1/projects",
8888
expect.any(Object)
8989
);
9090

@@ -98,7 +98,7 @@ describe("ReplaneAdmin - Initialization", () => {
9898
vi.stubGlobal("fetch", mockFetch);
9999

100100
const admin = new ReplaneAdmin({
101-
baseUrl: "https://app.replane.dev",
101+
baseUrl: "https://replane.example.com",
102102
apiKey: "rpa_test_key",
103103
});
104104

@@ -123,7 +123,7 @@ describe("ReplaneAdmin - Initialization", () => {
123123
vi.stubGlobal("fetch", mockFetch);
124124

125125
const admin = new ReplaneAdmin({
126-
baseUrl: "https://app.replane.dev",
126+
baseUrl: "https://replane.example.com",
127127
apiKey: "rpa_test_key",
128128
agent: "my-custom-agent/1.0.0",
129129
});
@@ -163,7 +163,7 @@ describe("ReplaneAdmin - Authentication", () => {
163163
mockFetch.mockResolvedValueOnce(jsonResponse({ projects: [] }));
164164

165165
const admin = new ReplaneAdmin({
166-
baseUrl: "https://app.replane.dev",
166+
baseUrl: "https://replane.example.com",
167167
apiKey: "rpa_my_secret_key",
168168
});
169169

@@ -200,7 +200,7 @@ describe("ReplaneAdmin - Error Handling", () => {
200200
mockFetch.mockResolvedValueOnce(errorResponse("Invalid API key", 401));
201201

202202
const admin = new ReplaneAdmin({
203-
baseUrl: "https://app.replane.dev",
203+
baseUrl: "https://replane.example.com",
204204
apiKey: "rpa_invalid_key",
205205
});
206206

@@ -220,7 +220,7 @@ describe("ReplaneAdmin - Error Handling", () => {
220220
mockFetch.mockResolvedValueOnce(errorResponse("Forbidden", 403));
221221

222222
const admin = new ReplaneAdmin({
223-
baseUrl: "https://app.replane.dev",
223+
baseUrl: "https://replane.example.com",
224224
apiKey: "rpa_test_key",
225225
});
226226

@@ -240,7 +240,7 @@ describe("ReplaneAdmin - Error Handling", () => {
240240
mockFetch.mockResolvedValueOnce(errorResponse("Project not found", 404));
241241

242242
const admin = new ReplaneAdmin({
243-
baseUrl: "https://app.replane.dev",
243+
baseUrl: "https://replane.example.com",
244244
apiKey: "rpa_test_key",
245245
});
246246

@@ -260,7 +260,7 @@ describe("ReplaneAdmin - Error Handling", () => {
260260
mockFetch.mockResolvedValueOnce(errorResponse("Internal server error", 500));
261261

262262
const admin = new ReplaneAdmin({
263-
baseUrl: "https://app.replane.dev",
263+
baseUrl: "https://replane.example.com",
264264
apiKey: "rpa_test_key",
265265
});
266266

@@ -280,7 +280,7 @@ describe("ReplaneAdmin - Error Handling", () => {
280280
mockFetch.mockResolvedValueOnce(new Response("Bad Gateway", { status: 502 }));
281281

282282
const admin = new ReplaneAdmin({
283-
baseUrl: "https://app.replane.dev",
283+
baseUrl: "https://replane.example.com",
284284
apiKey: "rpa_test_key",
285285
});
286286

@@ -308,7 +308,7 @@ describe("Workspaces API", () => {
308308
beforeEach(() => {
309309
mockFetch = createFetchMock();
310310
vi.stubGlobal("fetch", mockFetch);
311-
admin = new ReplaneAdmin({ baseUrl: "https://test.replane.dev", apiKey: "rpa_test_key" });
311+
admin = new ReplaneAdmin({ baseUrl: "https://test.replane.example.com", apiKey: "rpa_test_key" });
312312
});
313313

314314
afterEach(() => {
@@ -457,7 +457,7 @@ describe("Projects API", () => {
457457
beforeEach(() => {
458458
mockFetch = createFetchMock();
459459
vi.stubGlobal("fetch", mockFetch);
460-
admin = new ReplaneAdmin({ baseUrl: "https://test.replane.dev", apiKey: "rpa_test_key" });
460+
admin = new ReplaneAdmin({ baseUrl: "https://test.replane.example.com", apiKey: "rpa_test_key" });
461461
});
462462

463463
afterEach(() => {
@@ -650,7 +650,7 @@ describe("Configs API", () => {
650650
beforeEach(() => {
651651
mockFetch = createFetchMock();
652652
vi.stubGlobal("fetch", mockFetch);
653-
admin = new ReplaneAdmin({ baseUrl: "https://test.replane.dev", apiKey: "rpa_test_key" });
653+
admin = new ReplaneAdmin({ baseUrl: "https://test.replane.example.com", apiKey: "rpa_test_key" });
654654
});
655655

656656
afterEach(() => {
@@ -894,7 +894,7 @@ describe("Environments API", () => {
894894
beforeEach(() => {
895895
mockFetch = createFetchMock();
896896
vi.stubGlobal("fetch", mockFetch);
897-
admin = new ReplaneAdmin({ baseUrl: "https://test.replane.dev", apiKey: "rpa_test_key" });
897+
admin = new ReplaneAdmin({ baseUrl: "https://test.replane.example.com", apiKey: "rpa_test_key" });
898898
});
899899

900900
afterEach(() => {
@@ -944,7 +944,7 @@ describe("SDK Keys API", () => {
944944
beforeEach(() => {
945945
mockFetch = createFetchMock();
946946
vi.stubGlobal("fetch", mockFetch);
947-
admin = new ReplaneAdmin({ baseUrl: "https://test.replane.dev", apiKey: "rpa_test_key" });
947+
admin = new ReplaneAdmin({ baseUrl: "https://test.replane.example.com", apiKey: "rpa_test_key" });
948948
});
949949

950950
afterEach(() => {
@@ -1081,7 +1081,7 @@ describe("Members API", () => {
10811081
beforeEach(() => {
10821082
mockFetch = createFetchMock();
10831083
vi.stubGlobal("fetch", mockFetch);
1084-
admin = new ReplaneAdmin({ baseUrl: "https://test.replane.dev", apiKey: "rpa_test_key" });
1084+
admin = new ReplaneAdmin({ baseUrl: "https://test.replane.example.com", apiKey: "rpa_test_key" });
10851085
});
10861086

10871087
afterEach(() => {

packages/next/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<p align="center">Dynamic configuration for Next.js applications with SSR support.</p>
33

44
<p align="center">
5-
<a href="https://cloud.replane.dev"><img src="https://img.shields.io/badge/Try-Replane%20Cloud-blue" alt="Replane Cloud"></a>
65
<a href="https://www.npmjs.com/package/@replanejs/next"><img src="https://img.shields.io/npm/v/@replanejs/next" alt="npm"></a>
76
<a href="https://github.com/replane-dev/replane-javascript/blob/main/LICENSE"><img src="https://img.shields.io/github/license/replane-dev/replane-javascript" alt="License"></a>
87
<a href="https://github.com/orgs/replane-dev/discussions"><img src="https://img.shields.io/badge/discussions-join-blue?logo=github" alt="Community"></a>

packages/react/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<p align="center">Dynamic configuration for React applications.</p>
33

44
<p align="center">
5-
<a href="https://cloud.replane.dev"><img src="https://img.shields.io/badge/Try-Replane%20Cloud-blue" alt="Replane Cloud"></a>
65
<a href="https://www.npmjs.com/package/@replanejs/react"><img src="https://img.shields.io/npm/v/@replanejs/react" alt="npm"></a>
76
<a href="https://github.com/replane-dev/replane-javascript/blob/main/LICENSE"><img src="https://img.shields.io/github/license/replane-dev/replane-javascript" alt="License"></a>
87
<a href="https://github.com/orgs/replane-dev/discussions"><img src="https://img.shields.io/badge/discussions-join-blue?logo=github" alt="Community"></a>
@@ -49,7 +48,7 @@ function App() {
4948
return (
5049
<ReplaneProvider
5150
connection={{
52-
baseUrl: "https://cloud.replane.dev", // or your self-hosted URL
51+
baseUrl: "https://replane.example.com",
5352
sdkKey: "your-sdk-key",
5453
}}
5554
loader={<div>Loading...</div>}
@@ -148,7 +147,7 @@ Integrates with React Suspense for loading states:
148147
<Suspense fallback={<LoadingSpinner />}>
149148
<ReplaneProvider
150149
connection={{
151-
baseUrl: "https://cloud.replane.dev", // or your self-hosted URL
150+
baseUrl: "https://replane.example.com",
152151
sdkKey: "your-sdk-key",
153152
}}
154153
suspense

packages/react/examples/basic/src/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import type { AppConfigs } from "./configs";
77

88
// Environment variables (in a real app, use import.meta.env)
99
const sdkKey = import.meta.env.VITE_REPLANE_SDK_KEY || "demo-sdk-key";
10-
const baseUrl = import.meta.env.VITE_REPLANE_BASE_URL || "https://app.replane.dev";
10+
const baseUrl = import.meta.env.VITE_REPLANE_BASE_URL || "https://replane.example.com";
1111

1212
createRoot(document.getElementById("root")!).render(
1313
<StrictMode>

packages/react/tests/index.spec.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
103103
}
104104

105105
const defaultConnection: ConnectOptions = {
106-
baseUrl: "https://test.replane.dev",
106+
baseUrl: "https://test.replane.example.com",
107107
sdkKey: "rp_test_key",
108108
};
109109

@@ -980,7 +980,7 @@ describe("ReplaneProvider with suspense", () => {
980980

981981
// Second render with different sdkKey
982982
const differentConnection: ConnectOptions = {
983-
baseUrl: "https://test.replane.dev",
983+
baseUrl: "https://test.replane.example.com",
984984
sdkKey: "rp_different_key",
985985
};
986986

packages/sdk/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<p align="center">Dynamic configuration for Node.js, Deno, Bun, and browsers.</p>
33

44
<p align="center">
5-
<a href="https://cloud.replane.dev"><img src="https://img.shields.io/badge/Try-Replane%20Cloud-blue" alt="Replane Cloud"></a>
65
<a href="https://www.npmjs.com/package/@replanejs/sdk"><img src="https://img.shields.io/npm/v/@replanejs/sdk" alt="npm"></a>
76
<a href="https://github.com/replane-dev/replane-javascript/blob/main/LICENSE"><img src="https://img.shields.io/github/license/replane-dev/replane-javascript" alt="License"></a>
87
<a href="https://github.com/orgs/replane-dev/discussions"><img src="https://img.shields.io/badge/discussions-join-blue?logo=github" alt="Community"></a>
@@ -74,7 +73,7 @@ const replane = new Replane<Configs>({
7473
// Connect to the server
7574
await replane.connect({
7675
sdkKey: process.env.REPLANE_SDK_KEY!,
77-
baseUrl: "https://cloud.replane.dev", // or your self-hosted URL
76+
baseUrl: "https://replane.example.com",
7877
});
7978

8079
// Get a config value (knows about latest updates via SSE)
@@ -171,7 +170,7 @@ interface Configs {
171170
const replane = new Replane<Configs>();
172171
await replane.connect({
173172
sdkKey: "your-sdk-key",
174-
baseUrl: "https://cloud.replane.dev", // or your self-hosted URL
173+
baseUrl: "https://replane.example.com",
175174
});
176175

177176
// Get value without context - TypeScript knows this is boolean
@@ -211,7 +210,7 @@ interface Configs {
211210
const replane = new Replane<Configs>();
212211
await replane.connect({
213212
sdkKey: "your-sdk-key",
214-
baseUrl: "https://cloud.replane.dev", // or your self-hosted URL
213+
baseUrl: "https://replane.example.com",
215214
});
216215

217216
// Subscribe to a specific config

packages/sdk/src/client-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export interface ConnectOptions {
9494
/**
9595
* Base URL of the Replane instance (no trailing slash).
9696
* @example
97-
* "https://app.replane.dev"
97+
* "https://replane.example.com"
9898
*
9999
* @example
100100
* "https://replane.yourdomain.com"

0 commit comments

Comments
 (0)