@rebasepro/cli 0.12.0 → 0.12.1-canary.g009ed95
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/bin/rebase.js +27 -1
- package/dist/bundle.d.ts +36 -0
- package/dist/commands/cloud/context.d.ts +53 -0
- package/dist/commands/cloud/deploy.d.ts +64 -0
- package/dist/commands/cloud/index.d.ts +23 -0
- package/dist/commands/dev.d.ts +16 -0
- package/dist/index.es.js +370 -41
- package/dist/index.es.js.map +1 -1
- package/package.json +11 -11
- package/templates/overlays/baas/backend/package.json +2 -2
- package/templates/overlays/baas/package.json +1 -2
- package/templates/template/backend/package.json +2 -2
- package/templates/template/config/collections/index.ts +9 -1
- package/templates/template/frontend/package.json +3 -3
- package/templates/template/frontend/src/App.tsx +2 -1
- package/templates/template/frontend/src/main.tsx +2 -1
- package/templates/template/frontend/vite.config.ts +0 -1
- package/templates/template/package.json +1 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rebasepro/cli",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.1-canary.g009ed95",
|
|
4
4
|
"description": "Developer tools for Rebase projects",
|
|
5
5
|
"main": "./dist/index.es.js",
|
|
6
6
|
"module": "./dist/index.es.js",
|
|
@@ -31,20 +31,20 @@
|
|
|
31
31
|
"execa": "^9.6.1",
|
|
32
32
|
"inquirer": "14.0.2",
|
|
33
33
|
"jiti": "^2.7.0",
|
|
34
|
-
"@rebasepro/
|
|
35
|
-
"@rebasepro/
|
|
36
|
-
"@rebasepro/server": "0.12.
|
|
37
|
-
"@rebasepro/
|
|
38
|
-
"@rebasepro/client": "0.12.
|
|
39
|
-
"@rebasepro/
|
|
34
|
+
"@rebasepro/agent-skills": "0.12.1-canary.g009ed95",
|
|
35
|
+
"@rebasepro/codegen": "0.12.1-canary.g009ed95",
|
|
36
|
+
"@rebasepro/server": "0.12.1-canary.g009ed95",
|
|
37
|
+
"@rebasepro/server-postgres": "0.12.1-canary.g009ed95",
|
|
38
|
+
"@rebasepro/client": "0.12.1-canary.g009ed95",
|
|
39
|
+
"@rebasepro/types": "0.12.1-canary.g009ed95"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@types/node": "^
|
|
42
|
+
"@types/node": "^26.1.2",
|
|
43
43
|
"@types/pg": "^8.20.0",
|
|
44
|
-
"pg": "^8.
|
|
44
|
+
"pg": "^8.22.0",
|
|
45
45
|
"typescript": "^6.0.3",
|
|
46
|
-
"vite": "^8.
|
|
47
|
-
"vitest": "4.1.
|
|
46
|
+
"vite": "^8.1.5",
|
|
47
|
+
"vitest": "4.1.10"
|
|
48
48
|
},
|
|
49
49
|
"files": [
|
|
50
50
|
"bin/",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"@rebasepro/server-postgres": "workspace:*",
|
|
12
12
|
"@rebasepro/types": "workspace:*",
|
|
13
13
|
"drizzle-orm": "^0.45.2",
|
|
14
|
-
"hono": "^4.12.
|
|
15
|
-
"@hono/node-server": "^
|
|
14
|
+
"hono": "^4.12.27",
|
|
15
|
+
"@hono/node-server": "^2.0.12",
|
|
16
16
|
"pg": "^8.11.3",
|
|
17
17
|
"ws": "^8.16.0",
|
|
18
18
|
"dotenv": "^16.0.0",
|
|
@@ -17,12 +17,11 @@
|
|
|
17
17
|
"generate:sdk": "rebase generate-sdk",
|
|
18
18
|
"skills:install": "rebase skills install",
|
|
19
19
|
"example": "tsx scripts/example.ts",
|
|
20
|
-
"deploy": "rebase
|
|
20
|
+
"deploy": "rebase cloud deploy"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@rebasepro/cli": "workspace:*",
|
|
24
24
|
"@rebasepro/types": "workspace:*",
|
|
25
|
-
"concurrently": "^8.2.2",
|
|
26
25
|
"tsx": "^4.20.6",
|
|
27
26
|
"typescript": "^5.9.2"
|
|
28
27
|
},
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"@rebasepro/server-postgres": "workspace:*",
|
|
14
14
|
"@rebasepro/types": "workspace:*",
|
|
15
15
|
"drizzle-orm": "^0.45.2",
|
|
16
|
-
"hono": "^4.12.
|
|
17
|
-
"@hono/node-server": "^
|
|
16
|
+
"hono": "^4.12.27",
|
|
17
|
+
"@hono/node-server": "^2.0.12",
|
|
18
18
|
"pg": "^8.11.3",
|
|
19
19
|
"ws": "^8.16.0",
|
|
20
20
|
"dotenv": "^16.0.0",
|
|
@@ -8,7 +8,15 @@ export const collections = [postsCollection, authorsCollection, tagsCollection,
|
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Applied to any collection in this directory that declares no
|
|
11
|
-
* `securityRules` of its own:
|
|
11
|
+
* `securityRules` of its own: every signed-in user reads every row, only
|
|
12
|
+
* admins write.
|
|
13
|
+
*
|
|
14
|
+
* `access: "public"` is about ROWS, not about who may call the API — it means
|
|
15
|
+
* "no row filter", not "no login". A request with no token is still answered
|
|
16
|
+
* 401 by the API before RLS is ever consulted. To serve readers who are not
|
|
17
|
+
* signed in (a public website reading this backend), set `AUTH_REQUIRE=false`
|
|
18
|
+
* in the backend's environment; access then rests entirely on these rules,
|
|
19
|
+
* which is what they are for.
|
|
12
20
|
*
|
|
13
21
|
* These live here, next to the collections, because `rebase db push`
|
|
14
22
|
* generates the Postgres policies from these files — that is what actually
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
"{{PROJECT_NAME}}-config": "*",
|
|
16
16
|
"react": "^19.0.0",
|
|
17
17
|
"react-dom": "^19.0.0",
|
|
18
|
-
"react-router": "^
|
|
19
|
-
"react-router-dom": "^7.0.0",
|
|
18
|
+
"react-router": "^8.3.0",
|
|
20
19
|
"react-compiler-runtime": "^1.0.0",
|
|
21
|
-
"@fontsource/
|
|
20
|
+
"@fontsource-variable/inter": "^5.3.0",
|
|
21
|
+
"@fontsource-variable/instrument-sans": "^5.3.0"
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|
|
24
24
|
"dev": "vite --mode development",
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
3
|
import "@fontsource/jetbrains-mono";
|
|
4
|
-
import "@fontsource/
|
|
4
|
+
import "@fontsource-variable/inter";
|
|
5
|
+
import "@fontsource-variable/instrument-sans";
|
|
5
6
|
|
|
6
7
|
import { Rebase, RebaseAuth, useRebaseAuthController } from "@rebasepro/app";
|
|
7
8
|
import { RebaseAdmin, RebaseShell } from "@rebasepro/admin";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import ReactDOM from "react-dom/client";
|
|
3
|
-
import { createBrowserRouter
|
|
3
|
+
import { createBrowserRouter } from "react-router";
|
|
4
|
+
import { RouterProvider } from "react-router/dom";
|
|
4
5
|
import { App } from "./App";
|
|
5
6
|
import "./index.css";
|
|
6
7
|
|
|
@@ -20,12 +20,11 @@
|
|
|
20
20
|
"schema:generate": "rebase schema generate --collections ../config/collections",
|
|
21
21
|
"generate:sdk": "rebase generate-sdk",
|
|
22
22
|
"skills:install": "rebase skills install",
|
|
23
|
-
"deploy": "rebase
|
|
23
|
+
"deploy": "rebase cloud deploy"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@rebasepro/cli": "workspace:*",
|
|
27
27
|
"@rebasepro/types": "workspace:*",
|
|
28
|
-
"concurrently": "^8.2.2",
|
|
29
28
|
"typescript": "^5.9.2"
|
|
30
29
|
},
|
|
31
30
|
"engines": {
|