@rebasepro/server 0.9.1-canary.ff338b5 → 0.10.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.
@@ -82,7 +82,7 @@ export type BackendStorageConfig = LocalStorageConfig | S3StorageConfig | GCSSto
82
82
  export type StorageOperation = "read" | "write" | "delete" | "list";
83
83
  /** The caller, as resolved by whichever auth middleware ran. */
84
84
  export interface StorageAuthorizeUser {
85
- userId: string;
85
+ uid: string;
86
86
  email?: string;
87
87
  roles?: string[];
88
88
  }
@@ -2,10 +2,10 @@ import { SQL } from "drizzle-orm";
2
2
  /**
3
3
  * Returns a SQL chunk calling `auth.uid()` — the current user's ID.
4
4
  * This is a PostgreSQL RLS helper function created in the `auth` schema
5
- * that reads `app.user_id` set per-transaction by `withAuth()`.
5
+ * that reads `app.uid` set per-transaction by `withAuth()`.
6
6
  *
7
7
  * @example
8
- * sql`${table.user_id} = ${authUid()}`
8
+ * sql`${table.uid} = ${authUid()}`
9
9
  */
10
10
  export declare const authUid: () => SQL;
11
11
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rebasepro/server",
3
3
  "type": "module",
4
- "version": "0.9.1-canary.ff338b5",
4
+ "version": "0.10.0",
5
5
  "description": "Database-Agnostic Backend Core for Rebase",
6
6
  "funding": {
7
7
  "url": "https://github.com/sponsors/rebaseco"
@@ -44,10 +44,10 @@
44
44
  "jsonwebtoken": "^9.0.3",
45
45
  "ws": "^8.21.0",
46
46
  "zod": "^4.4.3",
47
- "@rebasepro/client": "0.9.1-canary.ff338b5",
48
- "@rebasepro/common": "0.9.1-canary.ff338b5",
49
- "@rebasepro/utils": "0.9.1-canary.ff338b5",
50
- "@rebasepro/types": "0.9.1-canary.ff338b5"
47
+ "@rebasepro/types": "0.10.0",
48
+ "@rebasepro/common": "0.10.0",
49
+ "@rebasepro/client": "0.10.0",
50
+ "@rebasepro/utils": "0.10.0"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@jest/globals": "^30.4.1",