@mitway/sdk 0.7.1 → 0.7.2

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/README.md CHANGED
@@ -47,7 +47,7 @@ const { data: session, error } = await client.auth.signInWithPassword({
47
47
  password: 'a-strong-password',
48
48
  });
49
49
 
50
- // Database query (PostgREST query builder — same surface as Supabase)
50
+ // Database query (PostgREST query builder)
51
51
  const { data: posts, error: dbError } = await client.database
52
52
  .from('posts')
53
53
  .select('*, author:users(*)')
package/dist/index.d.cts CHANGED
@@ -723,9 +723,7 @@ type AuthResult<T> = {
723
723
  error: MitwayBaasError | null;
724
724
  };
725
725
  /**
726
- * Event names emitted by `auth.onAuthStateChange`. Mirrors
727
- * `@supabase/supabase-js` event names so consumers that already know that
728
- * contract do not have to re-learn ours.
726
+ * Event names emitted by `auth.onAuthStateChange`.
729
727
  *
730
728
  * - `INITIAL_SESSION` — emitted once per `auth.initialize()` call
731
729
  * regardless of whether a persisted session was found. `session` is
@@ -992,7 +990,7 @@ type UploadBody = Blob | ArrayBuffer | ArrayBufferView | ReadableStream<Uint8Arr
992
990
  * Storage module — thin wrapper over the /api/storage/* REST endpoints
993
991
  * exposed by MITWAY-BaaS.
994
992
  *
995
- * Surface mirrors what coding agents expect from a Supabase-style storage
993
+ * Surface exposes per-bucket object operations + admin bucket CRUD via `/api/storage/*`
996
994
  * SDK but routes through the Mitway backend (no direct S3 calls). Binary
997
995
  * upload/download uses `HttpClient.rawFetch`; JSON operations use the
998
996
  * standard typed `request<T>` path.
@@ -1162,7 +1160,7 @@ declare class MitwayBaasClient {
1162
1160
  *
1163
1161
  * Currently ships:
1164
1162
  * - auth (signUp, signInWithPassword, signOut, refreshSession, getSession, getUser)
1165
- * - database (PostgREST-backed query builder via @supabase/postgrest-js)
1163
+ * - database (PostgREST-backed query builder)
1166
1164
  * - realtime (Socket.IO transport: subscribe / unsubscribe / publish / on)
1167
1165
  * - storage (bucket admin + per-bucket object operations)
1168
1166
  * - functions (edge function CRUD, invoke, secrets management)
package/dist/index.d.ts CHANGED
@@ -723,9 +723,7 @@ type AuthResult<T> = {
723
723
  error: MitwayBaasError | null;
724
724
  };
725
725
  /**
726
- * Event names emitted by `auth.onAuthStateChange`. Mirrors
727
- * `@supabase/supabase-js` event names so consumers that already know that
728
- * contract do not have to re-learn ours.
726
+ * Event names emitted by `auth.onAuthStateChange`.
729
727
  *
730
728
  * - `INITIAL_SESSION` — emitted once per `auth.initialize()` call
731
729
  * regardless of whether a persisted session was found. `session` is
@@ -992,7 +990,7 @@ type UploadBody = Blob | ArrayBuffer | ArrayBufferView | ReadableStream<Uint8Arr
992
990
  * Storage module — thin wrapper over the /api/storage/* REST endpoints
993
991
  * exposed by MITWAY-BaaS.
994
992
  *
995
- * Surface mirrors what coding agents expect from a Supabase-style storage
993
+ * Surface exposes per-bucket object operations + admin bucket CRUD via `/api/storage/*`
996
994
  * SDK but routes through the Mitway backend (no direct S3 calls). Binary
997
995
  * upload/download uses `HttpClient.rawFetch`; JSON operations use the
998
996
  * standard typed `request<T>` path.
@@ -1162,7 +1160,7 @@ declare class MitwayBaasClient {
1162
1160
  *
1163
1161
  * Currently ships:
1164
1162
  * - auth (signUp, signInWithPassword, signOut, refreshSession, getSession, getUser)
1165
- * - database (PostgREST-backed query builder via @supabase/postgrest-js)
1163
+ * - database (PostgREST-backed query builder)
1166
1164
  * - realtime (Socket.IO transport: subscribe / unsubscribe / publish / on)
1167
1165
  * - storage (bucket admin + per-bucket object operations)
1168
1166
  * - functions (edge function CRUD, invoke, secrets management)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mitway/sdk",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "TypeScript/JavaScript client for MITWAY-BaaS — auth + database for end-user apps",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",