@aurabase/aurabase-js 0.5.1 → 0.5.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 +1 -1
- package/dist/ssr.d.cts +1 -1
- package/dist/ssr.d.ts +1 -1
- package/package.json +18 -19
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ Ce package ne réimplémente aucune logique de service : il compose `AuthService
|
|
|
20
20
|
|
|
21
21
|
- `createClient(projectUrl, apiKey, options?)` — client applicatif standard. **L'URL est le projet** : chaque projet est servi sur son propre sous-domaine (`https://<slug>.aurabase.cloud`) et la passerelle injecte elle-même le `project_id` dans le chemin. Aucun identifiant de projet dans le code client.
|
|
22
22
|
- `createAdminClient(projectUrl, serviceRoleKey, options?)` — client serveur avec `authAdmin` (clé `service_role`, jamais côté navigateur).
|
|
23
|
-
-
|
|
23
|
+
- `@aurabase/aurabase-js/ssr` — `createServerClient`/`createBrowserClient` pour Next.js et frameworks SSR (cookies, session partagée serveur/navigateur).
|
|
24
24
|
|
|
25
25
|
## Quick Start
|
|
26
26
|
|
package/dist/ssr.d.cts
CHANGED
|
@@ -14,7 +14,7 @@ import '@aurabase/storage';
|
|
|
14
14
|
*
|
|
15
15
|
* @example Next.js middleware
|
|
16
16
|
* ```ts
|
|
17
|
-
* import { createServerClient } from 'aurabase/ssr'
|
|
17
|
+
* import { createServerClient } from '@aurabase/aurabase-js/ssr'
|
|
18
18
|
*
|
|
19
19
|
* export async function middleware(request) {
|
|
20
20
|
* let response = NextResponse.next({ request })
|
package/dist/ssr.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ import '@aurabase/storage';
|
|
|
14
14
|
*
|
|
15
15
|
* @example Next.js middleware
|
|
16
16
|
* ```ts
|
|
17
|
-
* import { createServerClient } from 'aurabase/ssr'
|
|
17
|
+
* import { createServerClient } from '@aurabase/aurabase-js/ssr'
|
|
18
18
|
*
|
|
19
19
|
* export async function middleware(request) {
|
|
20
20
|
* let response = NextResponse.next({ request })
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aurabase/aurabase-js",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "Official JavaScript/TypeScript client for Aurabase BaaS",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -55,29 +55,28 @@
|
|
|
55
55
|
"sdk",
|
|
56
56
|
"client"
|
|
57
57
|
],
|
|
58
|
+
"dependencies": {
|
|
59
|
+
"@aurabase/core": "0.5.2",
|
|
60
|
+
"@aurabase/db": "0.5.2",
|
|
61
|
+
"@aurabase/storage": "0.5.2",
|
|
62
|
+
"@aurabase/auth": "0.5.2",
|
|
63
|
+
"@aurabase/realtime": "0.5.2",
|
|
64
|
+
"@aurabase/notifications": "0.5.2",
|
|
65
|
+
"@aurabase/ai": "0.5.2",
|
|
66
|
+
"@aurabase/functions": "0.5.2"
|
|
67
|
+
},
|
|
68
|
+
"devDependencies": {
|
|
69
|
+
"@types/node": "20.14.15",
|
|
70
|
+
"tsup": "^8.0.0",
|
|
71
|
+
"typescript": "^5.5.0",
|
|
72
|
+
"vitest": "^4.1.6"
|
|
73
|
+
},
|
|
58
74
|
"scripts": {
|
|
59
75
|
"build": "tsup",
|
|
60
76
|
"test": "vitest run && tsc --noEmit -p tsconfig.test-d.json",
|
|
61
77
|
"test:types": "tsc --noEmit -p tsconfig.test-d.json",
|
|
62
78
|
"test:e2e": "RUN_E2E=true vitest run --config vitest.e2e.config.ts tests/integration.test.ts",
|
|
63
79
|
"typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.test.json",
|
|
64
|
-
"prepack": "pnpm build",
|
|
65
80
|
"typecheck:tests": "tsc --noEmit -p tsconfig.test.json"
|
|
66
|
-
},
|
|
67
|
-
"dependencies": {
|
|
68
|
-
"@aurabase/core": "workspace:*",
|
|
69
|
-
"@aurabase/auth": "workspace:*",
|
|
70
|
-
"@aurabase/db": "workspace:*",
|
|
71
|
-
"@aurabase/storage": "workspace:*",
|
|
72
|
-
"@aurabase/realtime": "workspace:*",
|
|
73
|
-
"@aurabase/functions": "workspace:*",
|
|
74
|
-
"@aurabase/ai": "workspace:*",
|
|
75
|
-
"@aurabase/notifications": "workspace:*"
|
|
76
|
-
},
|
|
77
|
-
"devDependencies": {
|
|
78
|
-
"@types/node": "catalog:",
|
|
79
|
-
"tsup": "catalog:",
|
|
80
|
-
"typescript": "catalog:",
|
|
81
|
-
"vitest": "catalog:"
|
|
82
81
|
}
|
|
83
|
-
}
|
|
82
|
+
}
|