@cascayd/experiment 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.js CHANGED
@@ -1,10 +1,9 @@
1
1
  import { getOrCreateSession, readVariantChoice } from './cookies';
2
2
  let API_KEY = '';
3
- let BASE_URL = 'http://localhost:8000';
3
+ let BASE_URL = 'https://ab-mvp-backend.onrender.com';
4
4
  const SDK_VERSION = '0.1.0-dev';
5
5
  export function initCascayd(opts) {
6
6
  API_KEY = opts.apiKey;
7
- BASE_URL = opts.baseUrl ?? BASE_URL;
8
7
  const masked = API_KEY ? API_KEY.slice(0, 3) + '***' + API_KEY.slice(-3) : '(empty)';
9
8
  // Visible init log to confirm updated SDK loaded
10
9
  // eslint-disable-next-line no-console
package/dist/types.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  export type InitOptions = {
2
2
  apiKey: string;
3
- baseUrl?: string;
4
3
  };
5
4
  export type VariantConfig = {
6
5
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cascayd/experiment",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "A lightweight A/B testing SDK for React applications with server-side analytics integration",
5
5
  "keywords": [
6
6
  "ab-testing",