@edge-base/admin 0.1.3 → 0.1.5

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
@@ -1,3 +1,9 @@
1
+ <p align="center">
2
+ <a href="https://github.com/edge-base/edgebase">
3
+ <img src="https://raw.githubusercontent.com/edge-base/edgebase/main/docs/static/img/logo-icon.svg" alt="EdgeBase Logo" width="72" />
4
+ </a>
5
+ </p>
6
+
1
7
  <h1 align="center">@edge-base/admin</h1>
2
8
 
3
9
  <p align="center">
@@ -37,7 +43,9 @@ Use it when you need:
37
43
 
38
44
  If code runs in a browser, use [`@edge-base/web`](https://www.npmjs.com/package/@edge-base/web) instead. If code runs on the server but should act as the current signed-in user through cookies, use [`@edge-base/ssr`](https://www.npmjs.com/package/@edge-base/ssr).
39
45
 
40
- EdgeBase is an open-source edge-native BaaS that runs on Edge, Docker, and Node.js. If you want the full platform, CLI, docs, and the rest of the public SDKs, see the main repository: [edge-base/edgebase](https://github.com/edge-base/edgebase).
46
+ EdgeBase is the open-source edge-native BaaS that runs on Edge, Docker, and Node.js.
47
+
48
+ This package is one part of the wider EdgeBase platform. For the full platform, CLI, Admin Dashboard, server runtime, docs, and all public SDKs, see the main repository: [edge-base/edgebase](https://github.com/edge-base/edgebase).
41
49
 
42
50
  > Beta: the package is already usable, but some APIs may still evolve before general availability.
43
51
 
package/dist/client.d.ts CHANGED
@@ -37,8 +37,8 @@ export interface JuneAdminClientOptions {
37
37
  * Does NOT expose: auth, database-live, presence, channel (client-only).
38
38
  *
39
39
  * @example
40
- * const posts = await admin.db('shared').table('posts').get();
41
- * const docs = await admin.db('workspace', 'ws-456').table('documents').get();
40
+ * const posts = await admin.db('shared').table('posts').getList();
41
+ * const docs = await admin.db('workspace', 'ws-456').table('documents').getList();
42
42
  */
43
43
  export declare class AdminEdgeBase {
44
44
  /** Admin user management. */
@@ -58,13 +58,13 @@ export declare class AdminEdgeBase {
58
58
  *
59
59
  * @example
60
60
  * // Static shared DB (id omitted)
61
- * const posts = await admin.db('shared').table('posts').get();
61
+ * const posts = await admin.db('shared').table('posts').getList();
62
62
  *
63
63
  * // Dynamic workspace DB
64
- * const docs = await admin.db('workspace', 'ws-456').table('documents').get();
64
+ * const docs = await admin.db('workspace', 'ws-456').table('documents').getList();
65
65
  *
66
66
  * // Per-user DB
67
- * const notes = await admin.db('user', 'user-123').table('notes').get();
67
+ * const notes = await admin.db('user', 'user-123').table('notes').getList();
68
68
  */
69
69
  db(namespace: string, id?: string): DbRef;
70
70
  /**
package/dist/client.js CHANGED
@@ -32,8 +32,8 @@ import { AnalyticsClient } from './analytics.js';
32
32
  * Does NOT expose: auth, database-live, presence, channel (client-only).
33
33
  *
34
34
  * @example
35
- * const posts = await admin.db('shared').table('posts').get();
36
- * const docs = await admin.db('workspace', 'ws-456').table('documents').get();
35
+ * const posts = await admin.db('shared').table('posts').getList();
36
+ * const docs = await admin.db('workspace', 'ws-456').table('documents').getList();
37
37
  */
38
38
  export class AdminEdgeBase {
39
39
  /** Admin user management. */
@@ -70,13 +70,13 @@ export class AdminEdgeBase {
70
70
  *
71
71
  * @example
72
72
  * // Static shared DB (id omitted)
73
- * const posts = await admin.db('shared').table('posts').get();
73
+ * const posts = await admin.db('shared').table('posts').getList();
74
74
  *
75
75
  * // Dynamic workspace DB
76
- * const docs = await admin.db('workspace', 'ws-456').table('documents').get();
76
+ * const docs = await admin.db('workspace', 'ws-456').table('documents').getList();
77
77
  *
78
78
  * // Per-user DB
79
- * const notes = await admin.db('user', 'user-123').table('notes').get();
79
+ * const notes = await admin.db('user', 'user-123').table('notes').getList();
80
80
  */
81
81
  db(namespace, id) {
82
82
  return new DbRef(this.core, namespace, id, undefined, undefined, this.httpClient);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edge-base/admin",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "EdgeBase admin SDK — server-side client for user management, database admin, and analytics",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -8,7 +8,7 @@
8
8
  "url": "https://github.com/edge-base/edgebase.git",
9
9
  "directory": "packages/sdk/js/packages/admin"
10
10
  },
11
- "homepage": "https://edgebase.fun",
11
+ "homepage": "https://github.com/edge-base/edgebase/tree/main/packages/sdk/js/packages/admin",
12
12
  "bugs": "https://github.com/edge-base/edgebase/issues",
13
13
  "keywords": [
14
14
  "edgebase",
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@codemirror/lang-html": "^6.4.11",
39
- "@edge-base/core": "0.1.3"
39
+ "@edge-base/core": "0.1.5"
40
40
  },
41
41
  "devDependencies": {
42
42
  "fast-check": "^4.5.3",