@madewithremy/admin 0.1.64 → 0.1.65

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/CHANGELOG.md CHANGED
@@ -4,6 +4,17 @@ What changed in `@madewithremy/admin`, newest first, each version under its own
4
4
 
5
5
  Versions before 0.1.44 aren't recorded here.
6
6
 
7
+ ## 0.1.65
8
+
9
+ ### New
10
+
11
+ - `infra.view`, an admin permission a method declares to read its own app's dedicated capacity through `createAdminClient()`: `infra.list`, `infra.get` and `infra.logs`, so the app can tell whether it runs on a database server of its own, which size, and whether it's parked. The changes (provision, hibernate, resume, resize, destroy, rename) stay a person's.
12
+
13
+ ### Fixed
14
+
15
+ - `infra provision`, `hibernate`, `resume`, `destroy` and `resize` with `--wait` print one JSON value when the change fails or times out, the result with its `status` and the resource, as `releases wait` does. They printed it and then `{"error": …}` after it, so a caller reading the last value saw no status. The exit codes are unchanged: 1 when it failed, 2 on a timeout.
16
+ - `infra resize` on a database server says its app's queries pause while it's parked and restored, where it said its sources' searches did.
17
+
7
18
  ## 0.1.64
8
19
 
9
20
  ### New
package/dist/client.d.ts CHANGED
@@ -170,6 +170,7 @@ export type AdminClient = ReturnType<typeof buildClient>;
170
170
  * | `datasources.manage` | `dataSources` and its jobs, connectors, evals, mappers and readers |
171
171
  * | `cron.view` / `cron.manage` | `cron` overview / run now |
172
172
  * | `releases.view` | `releases`, `diagnostics`' release reads |
173
+ * | `infra.view` | `infra` reads: list, get, logs (never provisioning, resizing, parking or deleting, which spend) |
173
174
  *
174
175
  * The rules:
175
176
  * - Only the method's own app: `forApp()` and another `appId` get