@edge-base/web 0.1.4 → 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/web</h1>
2
8
 
3
9
  <p align="center">
@@ -37,7 +43,9 @@ It is designed for apps that need:
37
43
 
38
44
  If you need privileged or server-only access, use [`@edge-base/admin`](https://www.npmjs.com/package/@edge-base/admin) instead.
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
 
@@ -170,7 +170,7 @@ export class DatabaseLiveClient {
170
170
  if (!token) {
171
171
  throw new EdgeBaseError(401, 'No access token available. Sign in first.');
172
172
  }
173
- this.sendRaw({ type: 'auth', token, sdkVersion: '0.1.4' });
173
+ this.sendRaw({ type: 'auth', token, sdkVersion: '0.1.5' });
174
174
  return new Promise((resolve, reject) => {
175
175
  const timeout = setTimeout(() => {
176
176
  reject(new EdgeBaseError(401, 'Auth timeout'));
@@ -310,7 +310,7 @@ export class DatabaseLiveClient {
310
310
  const token = this.tokenManager.currentAccessToken;
311
311
  if (!token || !this.ws || !this.connected)
312
312
  return;
313
- this.sendRaw({ type: 'auth', token, sdkVersion: '0.1.4' });
313
+ this.sendRaw({ type: 'auth', token, sdkVersion: '0.1.5' });
314
314
  }
315
315
  handleAuthStateChange(user) {
316
316
  if (user) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edge-base/web",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "EdgeBase web SDK — browser client with database-live subscriptions, room, and auth persistence",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -35,7 +35,7 @@
35
35
  "access": "public"
36
36
  },
37
37
  "dependencies": {
38
- "@edge-base/core": "0.1.4"
38
+ "@edge-base/core": "0.1.5"
39
39
  },
40
40
  "devDependencies": {
41
41
  "typescript": "^5.7.0",