@base44-preview/sdk 0.8.54-pr.332.30ac6b3 → 0.8.54-pr.333.b2eeefe

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.
@@ -17,10 +17,12 @@ import type { FetchWithAuthInit } from "./utils/fetch-with-auth.js";
17
17
  */
18
18
  export interface CreateClientOptions {
19
19
  /**
20
- * Optional error handler that will be called whenever an API error occurs.
20
+ * Optional error handler that the SDK calls when:
21
21
  *
22
- * Also receives {@link ActorsModule | actors} connection failures. Errors
23
- * are usually {@linkcode Base44Error} instances — check `error.status`.
22
+ * - An API request fails.
23
+ * - A client can't connect to an {@link ActorsModule | actor}.
24
+ *
25
+ * Errors are usually {@linkcode Base44Error} instances. Check `error.status` for the HTTP status code. Returns `undefined` for network errors.
24
26
  */
25
27
  onError?: (error: Error) => void;
26
28
  /**
@@ -127,7 +129,7 @@ export interface Base44Client {
127
129
  appLogs: AppLogsModule;
128
130
  /** {@link AppModule | App module} for reading the app's own public configuration. */
129
131
  app: AppModule;
130
- /** {@link ActorsModule | Actors module} for subscribing to and sending messages via Cloudflare Durable Object-backed Actors. */
132
+ /** {@link ActorsModule | Actors module} for connecting to actor sessions and exchanging messages with actors. */
131
133
  actors: ActorsModule;
132
134
  /** {@link AuthModule | Auth module} for user authentication and management. */
133
135
  auth: AuthModule;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base44-preview/sdk",
3
- "version": "0.8.54-pr.332.30ac6b3",
3
+ "version": "0.8.54-pr.333.b2eeefe",
4
4
  "description": "JavaScript SDK for Base44 API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",