diff --git a/package-lock.json b/package-lock.json index ab90231..fd934da 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5978,7 +5978,7 @@ }, "packages/platform": { "name": "@base44/platform", - "version": "0.2.0", + "version": "0.1.0", "license": "MIT", "dependencies": { "socket.io-client": "^4.8.3" diff --git a/packages/platform/CHANGELOG.md b/packages/platform/CHANGELOG.md index da66809..ae1f67d 100644 --- a/packages/platform/CHANGELOG.md +++ b/packages/platform/CHANGELOG.md @@ -3,7 +3,7 @@ ## 0.2.0 **Breaking.** The client, its options and the event type names change, and events the SDK doesn't -know now reach `onEvent`. +know now reach `onEvent`. A server entrypoint, `@base44/platform/server`, is new. ### Client and session @@ -35,6 +35,14 @@ const client = createPlatformClient(); const builder = client.builder.init({ getSession: fetchSession, onError }); ``` +### Server entrypoint + +- New: `@base44/platform/server` exports `createPlatformServer({ serverUrl, apiKey })` for your + server, authenticated with a workspace API key. It has no modules yet. Keep the key on your + server; the browser client never takes it. +- The browser client moves to `dist/client/`. Import paths don't change: `@base44/platform` is + still the client. + ### Event types The event types are generated from the service's AsyncAPI document and take the backend's model diff --git a/packages/platform/package.json b/packages/platform/package.json index 175dc18..91ef1b7 100644 --- a/packages/platform/package.json +++ b/packages/platform/package.json @@ -1,6 +1,6 @@ { "name": "@base44/platform", - "version": "0.2.0", + "version": "0.1.0", "description": "Client and server SDK for building on the Base44 platform", "main": "dist/client/index.js", "types": "dist/client/index.d.ts",