Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion packages/platform/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/platform/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Loading