eraspace 0.2.0 → 0.3.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/README.md +5 -1
- package/bin.js +344 -62
- package/package.json +1 -1
- package/sdk/src/client/client.ts +4 -2
- package/sdk/src/client/config.ts +17 -1
- package/sdk/src/client/connection.ts +67 -12
- package/sdk/src/client/files.ts +34 -9
- package/sdk/src/client/router.ts +1 -1
- package/sdk/src/client/storage.ts +31 -0
- package/sdk/src/client/sub-key.ts +16 -0
- package/sdk/src/client/subscription.ts +12 -1
- package/sdk/src/client/transport.ts +82 -15
- package/sdk/src/server/index.ts +41 -2
- package/templates/chat/client/index.tsx +1 -1
- package/templates/poll/client/index.tsx +1 -1
- package/templates/todo/client/index.tsx +1 -1
package/README.md
CHANGED
|
@@ -23,10 +23,14 @@ sign in and claim it (`eraspace auth login`, then `eraspace claim`).
|
|
|
23
23
|
| --- | --- |
|
|
24
24
|
| `new <name>` / `init` | Create an app in a new directory or the current one |
|
|
25
25
|
| `typecheck` | Typecheck `server/`, `client/` and `shared/` |
|
|
26
|
-
| `deploy` | Build the client, compile the server and deploy (`--delete-table <table>=<rows>` confirms deleting a removed table) |
|
|
26
|
+
| `deploy` | Build the client, compile the server and deploy (`--delete-table <table>=<rows>` confirms deleting a removed table; `--shadow` first reruns the app's live queries on the new code and reports which results change or start throwing, and `--fail-on-query-errors` refuses the deploy if any would throw) |
|
|
27
27
|
| `dev` | Deploy, then redeploy whenever `server/`, `client/`, `shared/` or `.env.eraspace.server` change |
|
|
28
28
|
| `call <fn> '<json>'...` | Call a query, mutation or action, each argument a JSON value |
|
|
29
|
+
| `profile [app] --seconds <n>` | Sample the app's server CPU time and write a `.cpuprofile` (TypeScript positions) for Chrome DevTools, printing the top functions by self time (`--out <file>`) |
|
|
30
|
+
| `explain <fn> '<json>'...` | Run a query once and print the rows it scanned and kept, with an index for each scan it filtered in JavaScript (`--json` for the full report) |
|
|
29
31
|
| `logs [app]` | Read handler logs (`--follow` to stream) |
|
|
32
|
+
| `changes` | Print recent committed row changes as NDJSON (`--since <commit>`, `--limit <rows>`) |
|
|
33
|
+
| `undo <commit> --yes` | Put every row changed after a commit back as it was; the undo is a commit too, so it can be undone |
|
|
30
34
|
| `inspect` | Show the schema, functions and deploys |
|
|
31
35
|
| `auth login` / `logout` / `whoami` | Sign in with your browser, sign out, or show who you are |
|
|
32
36
|
| `claim` | Take ownership of this checkout's unclaimed app |
|