@pairdraw/cloud 0.19.2 → 0.21.0

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/dist/client.d.ts CHANGED
@@ -1358,7 +1358,7 @@ declare function createCloudPortalClient(options?: CloudPortalClientOptions): {
1358
1358
  sessions: {
1359
1359
  id: string;
1360
1360
  current: boolean;
1361
- method: "password" | "google" | "apple" | "passkey" | "two-step" | "email-link" | "desktop" | "other" | null;
1361
+ method: "passkey" | "password" | "google" | "apple" | "two-step" | "email-link" | "desktop" | "other" | null;
1362
1362
  ipAddress: string | null;
1363
1363
  browser: string | null;
1364
1364
  system: string | null;
@@ -1368,7 +1368,7 @@ declare function createCloudPortalClient(options?: CloudPortalClientOptions): {
1368
1368
  }[];
1369
1369
  signIns: {
1370
1370
  id: string;
1371
- method: "password" | "google" | "apple" | "passkey" | "two-step" | "email-link" | "desktop" | "other";
1371
+ method: "passkey" | "password" | "google" | "apple" | "two-step" | "email-link" | "desktop" | "other";
1372
1372
  ipAddress: string | null;
1373
1373
  browser: string | null;
1374
1374
  system: string | null;
@@ -1377,7 +1377,7 @@ declare function createCloudPortalClient(options?: CloudPortalClientOptions): {
1377
1377
  workspaces: {
1378
1378
  id: string;
1379
1379
  name: string;
1380
- role: "admin" | "viewer" | "editor";
1380
+ role: "viewer" | "editor" | "admin";
1381
1381
  memberCount: number;
1382
1382
  joinedAt: string;
1383
1383
  }[];
@@ -1538,7 +1538,7 @@ declare function createCloudPortalClient(options?: CloudPortalClientOptions): {
1538
1538
  sessions: {
1539
1539
  id: string;
1540
1540
  current: boolean;
1541
- method: "password" | "google" | "apple" | "passkey" | "two-step" | "email-link" | "desktop" | "other" | null;
1541
+ method: "passkey" | "password" | "google" | "apple" | "two-step" | "email-link" | "desktop" | "other" | null;
1542
1542
  ipAddress: string | null;
1543
1543
  browser: string | null;
1544
1544
  system: string | null;
@@ -1556,7 +1556,7 @@ declare function createCloudPortalClient(options?: CloudPortalClientOptions): {
1556
1556
  signIns(signal?: AbortSignal): Promise<{
1557
1557
  signIns: {
1558
1558
  id: string;
1559
- method: "password" | "google" | "apple" | "passkey" | "two-step" | "email-link" | "desktop" | "other";
1559
+ method: "passkey" | "password" | "google" | "apple" | "two-step" | "email-link" | "desktop" | "other";
1560
1560
  ipAddress: string | null;
1561
1561
  browser: string | null;
1562
1562
  system: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pairdraw/cloud",
3
- "version": "0.19.2",
3
+ "version": "0.21.0",
4
4
  "license": "Apache-2.0 AND MIT",
5
5
  "files": [
6
6
  "dist",
@@ -23,7 +23,7 @@
23
23
  "@internationalized/date": "^3.12.3",
24
24
  "@noble/hashes": "^2.4.0",
25
25
  "@openfeature/server-sdk": "^1.23.0",
26
- "@pairdraw/scene-graph": "^0.19.2",
26
+ "@pairdraw/scene-graph": "^0.21.0",
27
27
  "@vue-email/components": "^0.0.21",
28
28
  "@vue-email/render": "^0.0.9",
29
29
  "better-auth": "1.7.7",
@@ -10,7 +10,9 @@ const database = createPostgresCloudDatabase({
10
10
  statementTimeoutMs: null
11
11
  })
12
12
  try {
13
- const auth = createBetterAuthAdapter(config, database)
13
+ // The migration is what brings the schema up to date, so the adapter must not check it first:
14
+ // on a fresh database that check logs every auth table as missing.
15
+ const auth = createBetterAuthAdapter(config, database, undefined, { validateSchema: false })
14
16
  await migrateCloudDatabase(database, { run: auth.migrate, schemaVersion: auth.schemaVersion })
15
17
  } finally {
16
18
  await database.destroy()